#include <flutter_window.h>
Public Member Functions | |
| FlutterWindow (int width, int height, std::shared_ptr< DisplayManagerWin32 > const &display_manager, 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, uint64_t buttons, uint32_t rotation, uint32_t pressure, int modifiers_state) |
| virtual void | OnPointerDown (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, uint64_t buttons, uint32_t rotation, uint32_t pressure) |
| virtual void | OnPointerUp (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, uint64_t buttons) |
| 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 FlutterEngineDisplayId | GetDisplayId () 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) |
Public Member Functions inherited from flutter::KeyboardManager::WindowDelegate | |
| virtual | ~WindowDelegate ()=default |
Public Member Functions inherited from flutter::WindowBindingHandler | |
| 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 | |
Public Types inherited from flutter::KeyboardManager::WindowDelegate | |
| using | KeyEventCallback = std::function< void(bool)> |
Definition at line 37 of file flutter_window.h.
| flutter::FlutterWindow::FlutterWindow | ( | int | width, |
| int | height, | ||
| std::shared_ptr< DisplayManagerWin32 > const & | display_manager, | ||
| std::shared_ptr< WindowsProcTable > | windows_proc_table = nullptr, |
||
| std::unique_ptr< TextInputManager > | text_input_manager = nullptr |
||
| ) |
Definition at line 151 of file flutter_window.cc.
References flutter::GetDpiForHWND(), and InitializeChild().
|
virtual |
Definition at line 187 of file flutter_window.cc.
|
protected |
Definition at line 184 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 1005 of file flutter_window.cc.
Referenced by OnResetImeComposing().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 212 of file flutter_window.cc.
References GetWindowHandle().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 407 of file flutter_window.cc.
References alert_node_.
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 402 of file flutter_window.cc.
References alert_delegate_.
|
virtual |
Definition at line 398 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::GetAxFragmentRootDelegate().
|
protected |
Definition at line 1013 of file flutter_window.cc.
Referenced by GetDpiScale().
|
protected |
Definition at line 1021 of file flutter_window.cc.
Referenced by GetPhysicalWindowBounds().
|
protected |
Definition at line 1017 of file flutter_window.cc.
Referenced by GetPhysicalWindowBounds().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 384 of file flutter_window.cc.
References GetWindowHandle().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 204 of file flutter_window.cc.
References GetCurrentDPI().
Referenced by OnCursorRectUpdated().
|
virtual |
Definition at line 369 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::GetNativeViewAccessible().
Referenced by OnGetObject().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 208 of file flutter_window.cc.
References GetCurrentHeight(), and GetCurrentWidth().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 377 of file flutter_window.cc.
References GetWindowHandle().
|
protectedvirtual |
Definition at line 1025 of file flutter_window.cc.
Referenced by OnScroll().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 516 of file flutter_window.cc.
Referenced by flutter::DirectManipulationOwner::Destroy(), Focus(), GetDisplayId(), GetPrimaryPointerLocation(), flutter::DirectManipulationOwner::Init(), OnBitmapSurfaceCleared(), OnBitmapSurfaceUpdated(), OnScroll(), and OnWindowStateEvent().
|
protectednoexcept |
Definition at line 584 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 481 of file flutter_window.cc.
References direct_manipulation_owner_, message, and NarrowToWide().
Referenced by FlutterWindow().
|
protected |
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 344 of file flutter_window.cc.
References GetWindowHandle().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 351 of file flutter_window.cc.
References GetWindowHandle().
Referenced by flutter::testing::TEST_F().
|
virtual |
Definition at line 298 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnComposeBegin().
Referenced by OnImeStartComposition().
|
virtual |
Definition at line 310 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnComposeChange(), and text.
Referenced by OnImeComposition().
|
virtual |
Definition at line 302 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnComposeCommit().
Referenced by OnImeComposition().
|
virtual |
Definition at line 306 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnComposeEnd().
Referenced by OnImeEndComposition().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 332 of file flutter_window.cc.
References GetDpiScale(), and UpdateCursorRect().
|
virtual |
Definition at line 226 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 882 of file flutter_window.cc.
References GetNativeViewAccessible(), and OnUpdateSemanticsEnabled().
|
protectedvirtual |
Definition at line 953 of file flutter_window.cc.
References OnComposeChange(), OnComposeCommit(), and text.
|
protectedvirtual |
|
protectedvirtual |
Definition at line 997 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 938 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 946 of file flutter_window.cc.
References OnComposeBegin().
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 287 of file flutter_window.cc.
References action, callback, character, extended, key, flutter::WindowBindingHandlerDelegate::OnKey(), scancode, and was_down.
|
virtual |
Definition at line 236 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnWindowRepaint().
|
virtual |
Definition at line 255 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnPointerDown().
Referenced by flutter::testing::TEST_F().
|
virtual |
Definition at line 276 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnPointerLeave().
Referenced by flutter::testing::TEST_F().
|
virtual |
Definition at line 242 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnPointerMove().
Referenced by flutter::testing::TEST_F().
|
virtual |
Definition at line 268 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnPointerUp().
Referenced by flutter::testing::TEST_F().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 340 of file flutter_window.cc.
References AbortImeComposing().
|
virtual |
Definition at line 230 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnWindowSizeChanged().
|
virtual |
Definition at line 319 of file flutter_window.cc.
References GetScrollOffsetMultiplier(), GetWindowHandle(), and flutter::WindowBindingHandlerDelegate::OnScroll().
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 283 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnText(), and text.
|
virtual |
Definition at line 394 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnHighContrastChanged().
|
virtual |
Definition at line 315 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnUpdateSemanticsEnabled().
Referenced by OnGetObject().
|
virtual |
Definition at line 412 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 191 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 1009 of file flutter_window.cc.
Referenced by OnCursorRectUpdated().
|
protectedvirtual |
Definition at line 1029 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 532 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 528 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 520 of file flutter_window.cc.
|
friend |
Definition at line 390 of file flutter_window.h.
|
protected |
Definition at line 279 of file flutter_window.h.
Referenced by GetAlertDelegate().
|
protected |
Definition at line 282 of file flutter_window.h.
Referenced by GetAlert().
|
protected |
Definition at line 286 of file flutter_window.h.
Referenced by InitializeChild(), and SetView().