#include <flutter_window.h>
Public Member Functions | |
FlutterWindow (int width, int height, std::shared_ptr< WindowsProcTable > windows_proc_table=nullptr, std::unique_ptr< TextInputManager > text_input_manager=nullptr) | |
virtual | ~FlutterWindow () |
void | InitializeChild (const char *title, unsigned int width, unsigned int height) |
virtual BOOL | Win32PeekMessage (LPMSG lpMsg, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg) override |
virtual uint32_t | Win32MapVkToChar (uint32_t virtual_key) override |
virtual UINT | Win32DispatchMessage (UINT Msg, WPARAM wParam, LPARAM lParam) override |
virtual void | OnDpiScale (unsigned int dpi) |
virtual void | OnResize (unsigned int width, unsigned int height) |
virtual void | OnPaint () |
virtual void | OnPointerMove (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, int modifiers_state) |
virtual void | OnPointerDown (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, UINT button) |
virtual void | OnPointerUp (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, UINT button) |
virtual void | OnPointerLeave (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id) |
virtual void | OnText (const std::u16string &text) override |
virtual void | OnKey (int key, int scancode, int action, char32_t character, bool extended, bool was_down, KeyEventCallback callback) override |
virtual void | OnComposeBegin () |
virtual void | OnComposeCommit () |
virtual void | OnComposeEnd () |
virtual void | OnComposeChange (const std::u16string &text, int cursor_pos) |
virtual void | OnCursorRectUpdated (const Rect &rect) override |
virtual void | OnResetImeComposing () override |
virtual void | OnUpdateSemanticsEnabled (bool enabled) |
virtual void | OnScroll (double delta_x, double delta_y, FlutterPointerDeviceKind device_kind, int32_t device_id) |
virtual gfx::NativeViewAccessible | GetNativeViewAccessible () |
virtual void | SetView (WindowBindingHandlerDelegate *view) override |
virtual HWND | GetWindowHandle () override |
virtual float | GetDpiScale () override |
virtual PhysicalWindowBounds | GetPhysicalWindowBounds () override |
virtual bool | OnBitmapSurfaceCleared () override |
virtual bool | OnBitmapSurfaceUpdated (const void *allocation, size_t row_bytes, size_t height) override |
virtual PointerLocation | GetPrimaryPointerLocation () override |
virtual void | OnThemeChange () |
virtual AlertPlatformNodeDelegate * | GetAlertDelegate () override |
virtual ui::AXPlatformNodeWin * | GetAlert () override |
virtual bool | Focus () override |
virtual ui::AXFragmentRootDelegateWin * | GetAxFragmentRootDelegate () |
virtual void | OnWindowStateEvent (WindowStateEvent event) |
![]() | |
virtual | ~WindowDelegate ()=default |
![]() | |
virtual | ~WindowBindingHandler ()=default |
Protected Member Functions | |
FlutterWindow () | |
virtual LRESULT | Win32DefWindowProc (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) |
std::wstring | NarrowToWide (const char *source) |
LRESULT | HandleMessage (UINT const message, WPARAM const wparam, LPARAM const lparam) noexcept |
virtual LRESULT | OnGetObject (UINT const message, WPARAM const wparam, LPARAM const lparam) |
virtual void | OnImeSetContext (UINT const message, WPARAM const wparam, LPARAM const lparam) |
virtual void | OnImeStartComposition (UINT const message, WPARAM const wparam, LPARAM const lparam) |
virtual void | OnImeComposition (UINT const message, WPARAM const wparam, LPARAM const lparam) |
virtual void | OnImeEndComposition (UINT const message, WPARAM const wparam, LPARAM const lparam) |
virtual void | OnImeRequest (UINT const message, WPARAM const wparam, LPARAM const lparam) |
virtual void | AbortImeComposing () |
virtual void | UpdateCursorRect (const Rect &rect) |
UINT | GetCurrentDPI () |
UINT | GetCurrentWidth () |
UINT | GetCurrentHeight () |
virtual float | GetScrollOffsetMultiplier () |
Protected Attributes | |
std::unique_ptr< AlertPlatformNodeDelegate > | alert_delegate_ |
std::unique_ptr< ui::AXPlatformNodeWin > | alert_node_ |
std::unique_ptr< DirectManipulationOwner > | direct_manipulation_owner_ |
Friends | |
class | WindowAXFragmentRootDelegate |
Additional Inherited Members | |
![]() | |
using | KeyEventCallback = std::function< void(bool)> |
Definition at line 35 of file flutter_window.h.
flutter::FlutterWindow::FlutterWindow | ( | int | width, |
int | height, | ||
std::shared_ptr< WindowsProcTable > | windows_proc_table = nullptr , |
||
std::unique_ptr< TextInputManager > | text_input_manager = nullptr |
||
) |
Definition at line 76 of file flutter_window.cc.
References flutter::GetDpiForHWND(), and InitializeChild().
|
virtual |
Definition at line 110 of file flutter_window.cc.
|
protected |
Definition at line 107 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 873 of file flutter_window.cc.
Referenced by OnResetImeComposing().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 135 of file flutter_window.cc.
References GetWindowHandle().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 321 of file flutter_window.cc.
References alert_node_.
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 316 of file flutter_window.cc.
References alert_delegate_.
|
virtual |
Definition at line 312 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::GetAxFragmentRootDelegate().
|
protected |
Definition at line 881 of file flutter_window.cc.
Referenced by GetDpiScale().
|
protected |
Definition at line 889 of file flutter_window.cc.
Referenced by GetPhysicalWindowBounds().
|
protected |
Definition at line 885 of file flutter_window.cc.
Referenced by GetPhysicalWindowBounds().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 127 of file flutter_window.cc.
References GetCurrentDPI().
Referenced by OnCursorRectUpdated().
|
virtual |
Definition at line 293 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::GetNativeViewAccessible().
Referenced by OnGetObject().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 131 of file flutter_window.cc.
References GetCurrentHeight(), and GetCurrentWidth().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 301 of file flutter_window.cc.
References GetWindowHandle().
|
protectedvirtual |
Definition at line 893 of file flutter_window.cc.
Referenced by OnScroll().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 430 of file flutter_window.cc.
Referenced by flutter::DirectManipulationOwner::Destroy(), Focus(), GetPrimaryPointerLocation(), flutter::DirectManipulationOwner::Init(), OnBitmapSurfaceCleared(), OnBitmapSurfaceUpdated(), OnScroll(), and OnWindowStateEvent().
|
protectednoexcept |
Definition at line 499 of file flutter_window.cc.
References flutter::GetDpiForHWND(), flutter::kControl, flutter::kFocus, flutter::kHide, flutter::kShift, flutter::kShow, flutter::kUnfocus, and message.
void flutter::FlutterWindow::InitializeChild | ( | const char * | title, |
unsigned int | width, | ||
unsigned int | height | ||
) |
Definition at line 395 of file flutter_window.cc.
References direct_manipulation_owner_, message, and NarrowToWide().
Referenced by FlutterWindow().
|
protected |
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 268 of file flutter_window.cc.
References GetWindowHandle().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 275 of file flutter_window.cc.
References GetWindowHandle().
Referenced by flutter::testing::TEST_F().
|
virtual |
Definition at line 222 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnComposeBegin().
Referenced by OnImeStartComposition().
|
virtual |
Definition at line 234 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnComposeChange(), and text.
Referenced by OnImeComposition().
|
virtual |
Definition at line 226 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnComposeCommit().
Referenced by OnImeComposition().
|
virtual |
Definition at line 230 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnComposeEnd().
Referenced by OnImeEndComposition().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 256 of file flutter_window.cc.
References GetDpiScale(), flutter::Rect::height(), flutter::Rect::left(), flutter::Rect::top(), UpdateCursorRect(), and flutter::Rect::width().
|
virtual |
Definition at line 149 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 752 of file flutter_window.cc.
References GetNativeViewAccessible(), and OnUpdateSemanticsEnabled().
|
protectedvirtual |
Definition at line 823 of file flutter_window.cc.
References OnComposeChange(), OnComposeCommit(), and text.
|
protectedvirtual |
|
protectedvirtual |
Definition at line 865 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 808 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 816 of file flutter_window.cc.
References OnComposeBegin().
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 211 of file flutter_window.cc.
References action, callback, character, extended, key, flutter::WindowBindingHandlerDelegate::OnKey(), scancode, and was_down.
|
virtual |
Definition at line 159 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnWindowRepaint().
|
virtual |
Definition at line 174 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnPointerDown().
Referenced by flutter::testing::TEST_F().
|
virtual |
Definition at line 200 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnPointerLeave().
Referenced by flutter::testing::TEST_F().
|
virtual |
Definition at line 165 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnPointerMove().
Referenced by flutter::testing::TEST_F().
|
virtual |
Definition at line 187 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnPointerUp().
Referenced by flutter::testing::TEST_F().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 264 of file flutter_window.cc.
References AbortImeComposing().
|
virtual |
Definition at line 153 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnWindowSizeChanged().
|
virtual |
Definition at line 243 of file flutter_window.cc.
References GetScrollOffsetMultiplier(), GetWindowHandle(), and flutter::WindowBindingHandlerDelegate::OnScroll().
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 207 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnText(), and text.
|
virtual |
Definition at line 308 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnHighContrastChanged().
|
virtual |
Definition at line 239 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnUpdateSemanticsEnabled().
Referenced by OnGetObject().
|
virtual |
Definition at line 326 of file flutter_window.cc.
References GetWindowHandle(), flutter::kFocus, flutter::kHide, flutter::kShow, flutter::kUnfocus, flutter::WindowBindingHandlerDelegate::OnFocus(), and flutter::WindowBindingHandlerDelegate::OnWindowStateEvent().
Referenced by SetView().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 114 of file flutter_window.cc.
References direct_manipulation_owner_, flutter::kFocus, flutter::kShow, and OnWindowStateEvent().
Referenced by flutter::testing::TEST_F().
|
protectedvirtual |
Definition at line 877 of file flutter_window.cc.
Referenced by OnCursorRectUpdated().
|
protectedvirtual |
Definition at line 897 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 446 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 442 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 434 of file flutter_window.cc.
|
friend |
Definition at line 376 of file flutter_window.h.
|
protected |
Definition at line 268 of file flutter_window.h.
Referenced by GetAlertDelegate().
|
protected |
Definition at line 271 of file flutter_window.h.
Referenced by GetAlert().
|
protected |
Definition at line 275 of file flutter_window.h.
Referenced by InitializeChild(), and SetView().