#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 | OnSetCursor () |
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 void | UpdateFlutterCursor (const std::string &cursor_name) override |
virtual void | SetFlutterCursor (HCURSOR cursor) 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 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 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 119 of file flutter_window.cc.
References flutter::GetDpiForHWND(), and InitializeChild().
|
virtual |
Definition at line 154 of file flutter_window.cc.
|
protected |
Definition at line 151 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 905 of file flutter_window.cc.
Referenced by OnResetImeComposing().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 364 of file flutter_window.cc.
References alert_node_.
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 359 of file flutter_window.cc.
References alert_delegate_.
|
virtual |
Definition at line 355 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::GetAxFragmentRootDelegate().
|
protected |
Definition at line 913 of file flutter_window.cc.
Referenced by GetDpiScale().
|
protected |
Definition at line 921 of file flutter_window.cc.
Referenced by GetPhysicalWindowBounds().
|
protected |
Definition at line 917 of file flutter_window.cc.
Referenced by GetPhysicalWindowBounds().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 171 of file flutter_window.cc.
References GetCurrentDPI().
Referenced by OnCursorRectUpdated().
|
virtual |
Definition at line 336 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::GetNativeViewAccessible().
Referenced by OnGetObject().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 175 of file flutter_window.cc.
References GetCurrentHeight(), and GetCurrentWidth().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 344 of file flutter_window.cc.
References GetWindowHandle().
|
protectedvirtual |
Definition at line 925 of file flutter_window.cc.
Referenced by OnScroll().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 463 of file flutter_window.cc.
Referenced by flutter::DirectManipulationOwner::Destroy(), GetPrimaryPointerLocation(), flutter::DirectManipulationOwner::Init(), OnBitmapSurfaceCleared(), OnBitmapSurfaceUpdated(), OnScroll(), and OnWindowStateEvent().
|
protectednoexcept |
Definition at line 532 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 428 of file flutter_window.cc.
References direct_manipulation_owner_, message, and NarrowToWide().
Referenced by FlutterWindow().
|
protected |
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 311 of file flutter_window.cc.
References GetWindowHandle().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 318 of file flutter_window.cc.
References GetWindowHandle().
Referenced by flutter::testing::TEST_F().
|
virtual |
Definition at line 265 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnComposeBegin().
Referenced by OnImeStartComposition().
|
virtual |
Definition at line 277 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnComposeChange(), and text.
Referenced by OnImeComposition().
|
virtual |
Definition at line 269 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnComposeCommit().
Referenced by OnImeComposition().
|
virtual |
Definition at line 273 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnComposeEnd().
Referenced by OnImeEndComposition().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 299 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 188 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 784 of file flutter_window.cc.
References GetNativeViewAccessible(), and OnUpdateSemanticsEnabled().
|
protectedvirtual |
Definition at line 855 of file flutter_window.cc.
References OnComposeChange(), OnComposeCommit(), and text.
|
protectedvirtual |
Definition at line 890 of file flutter_window.cc.
References OnComposeEnd().
|
protectedvirtual |
Definition at line 897 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 840 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 848 of file flutter_window.cc.
References OnComposeBegin().
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 254 of file flutter_window.cc.
References action, callback, character, extended, key, flutter::WindowBindingHandlerDelegate::OnKey(), scancode, and was_down.
|
virtual |
Definition at line 198 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnWindowRepaint().
|
virtual |
Definition at line 213 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnPointerDown().
Referenced by flutter::testing::TEST_F().
|
virtual |
Definition at line 239 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnPointerLeave().
Referenced by flutter::testing::TEST_F().
|
virtual |
Definition at line 204 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnPointerMove().
Referenced by flutter::testing::TEST_F().
|
virtual |
Definition at line 226 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnPointerUp().
Referenced by flutter::testing::TEST_F().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 307 of file flutter_window.cc.
References AbortImeComposing().
|
virtual |
Definition at line 192 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnWindowSizeChanged().
|
virtual |
Definition at line 286 of file flutter_window.cc.
References GetScrollOffsetMultiplier(), GetWindowHandle(), and flutter::WindowBindingHandlerDelegate::OnScroll().
|
virtual |
Definition at line 246 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 250 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnText(), and text.
|
virtual |
Definition at line 351 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnHighContrastChanged().
|
virtual |
Definition at line 282 of file flutter_window.cc.
References flutter::WindowBindingHandlerDelegate::OnUpdateSemanticsEnabled().
Referenced by OnGetObject().
|
virtual |
Definition at line 369 of file flutter_window.cc.
References GetWindowHandle(), flutter::kFocus, flutter::kHide, flutter::kShow, flutter::kUnfocus, and flutter::WindowBindingHandlerDelegate::OnWindowStateEvent().
Referenced by SetView().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 183 of file flutter_window.cc.
Referenced by UpdateFlutterCursor().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 158 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 909 of file flutter_window.cc.
Referenced by OnCursorRectUpdated().
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 179 of file flutter_window.cc.
References SetFlutterCursor().
Referenced by flutter::testing::TEST_F().
|
protectedvirtual |
Definition at line 929 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 479 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 475 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 467 of file flutter_window.cc.
|
friend |
Definition at line 385 of file flutter_window.h.
|
protected |
Definition at line 274 of file flutter_window.h.
Referenced by GetAlertDelegate().
|
protected |
Definition at line 277 of file flutter_window.h.
Referenced by GetAlert().
|
protected |
Definition at line 281 of file flutter_window.h.
Referenced by InitializeChild(), and SetView().