#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, uint32_t rotation, uint32_t pressure, int modifiers_state) |
| virtual void | OnPointerDown (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, UINT button, uint32_t rotation, uint32_t pressure) |
| 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 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 77 of file flutter_window.cc.
References flutter::GetDpiForHWND(), and InitializeChild().
|
virtual |
Definition at line 113 of file flutter_window.cc.
|
protected |
Definition at line 110 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 916 of file flutter_window.cc.
Referenced by OnResetImeComposing().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 138 of file flutter_window.cc.
References GetWindowHandle().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 339 of file flutter_window.cc.
References alert_node_.
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 334 of file flutter_window.cc.
References alert_delegate_.
|
virtual |
Definition at line 330 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::GetAxFragmentRootDelegate().
|
protected |
Definition at line 924 of file flutter_window.cc.
Referenced by GetDpiScale().
|
protected |
Definition at line 932 of file flutter_window.cc.
Referenced by GetPhysicalWindowBounds().
|
protected |
Definition at line 928 of file flutter_window.cc.
Referenced by GetPhysicalWindowBounds().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 316 of file flutter_window.cc.
References GetWindowHandle().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 130 of file flutter_window.cc.
References GetCurrentDPI().
Referenced by OnCursorRectUpdated().
|
virtual |
Definition at line 301 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::GetNativeViewAccessible().
Referenced by OnGetObject().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 134 of file flutter_window.cc.
References GetCurrentHeight(), and GetCurrentWidth().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 309 of file flutter_window.cc.
References GetWindowHandle().
|
protectedvirtual |
Definition at line 936 of file flutter_window.cc.
Referenced by OnScroll().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 448 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 516 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 413 of file flutter_window.cc.
References direct_manipulation_owner_, message, and NarrowToWide().
Referenced by FlutterWindow().
|
protected |
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 276 of file flutter_window.cc.
References GetWindowHandle().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 283 of file flutter_window.cc.
References GetWindowHandle().
Referenced by flutter::testing::TEST_F().
|
virtual |
Definition at line 230 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnComposeBegin().
Referenced by OnImeStartComposition().
|
virtual |
Definition at line 242 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnComposeChange(), and text.
Referenced by OnImeComposition().
|
virtual |
Definition at line 234 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnComposeCommit().
Referenced by OnImeComposition().
|
virtual |
Definition at line 238 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnComposeEnd().
Referenced by OnImeEndComposition().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 264 of file flutter_window.cc.
References GetDpiScale(), and UpdateCursorRect().
|
virtual |
Definition at line 152 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 795 of file flutter_window.cc.
References GetNativeViewAccessible(), and OnUpdateSemanticsEnabled().
|
protectedvirtual |
Definition at line 866 of file flutter_window.cc.
References OnComposeChange(), OnComposeCommit(), and text.
|
protectedvirtual |
|
protectedvirtual |
Definition at line 908 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 851 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 859 of file flutter_window.cc.
References OnComposeBegin().
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 219 of file flutter_window.cc.
References action, callback, character, extended, key, flutter::WindowBindingHandlerDelegate::OnKey(), scancode, and was_down.
|
virtual |
Definition at line 162 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnWindowRepaint().
|
virtual |
Definition at line 179 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnPointerDown().
Referenced by flutter::testing::TEST_F().
|
virtual |
Definition at line 208 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnPointerLeave().
Referenced by flutter::testing::TEST_F().
|
virtual |
Definition at line 168 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnPointerMove().
Referenced by flutter::testing::TEST_F().
|
virtual |
Definition at line 195 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnPointerUp().
Referenced by flutter::testing::TEST_F().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 272 of file flutter_window.cc.
References AbortImeComposing().
|
virtual |
Definition at line 156 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnWindowSizeChanged().
|
virtual |
Definition at line 251 of file flutter_window.cc.
References GetScrollOffsetMultiplier(), GetWindowHandle(), and flutter::WindowBindingHandlerDelegate::OnScroll().
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 215 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnText(), and text.
|
virtual |
Definition at line 326 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnHighContrastChanged().
|
virtual |
Definition at line 247 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnUpdateSemanticsEnabled().
Referenced by OnGetObject().
|
virtual |
Definition at line 344 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 117 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 920 of file flutter_window.cc.
Referenced by OnCursorRectUpdated().
|
protectedvirtual |
Definition at line 940 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 464 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 460 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 452 of file flutter_window.cc.
|
friend |
Definition at line 389 of file flutter_window.h.
|
protected |
Definition at line 278 of file flutter_window.h.
Referenced by GetAlertDelegate().
|
protected |
Definition at line 281 of file flutter_window.h.
Referenced by GetAlert().
|
protected |
Definition at line 285 of file flutter_window.h.
Referenced by InitializeChild(), and SetView().