#include <flutter_windows_view.h>
Public Member Functions | |
FlutterWindowsView (FlutterViewId view_id, FlutterWindowsEngine *engine, std::unique_ptr< WindowBindingHandler > window_binding, std::shared_ptr< WindowsProcTable > windows_proc_table=nullptr) | |
virtual | ~FlutterWindowsView () |
FlutterViewId | view_id () const |
bool | IsImplicitView () const |
void | CreateRenderSurface () |
egl::WindowSurface * | surface () const |
virtual HWND | GetWindowHandle () const |
FlutterWindowsEngine * | GetEngine () const |
void | ForceRedraw () |
virtual bool | ClearSoftwareBitmap () |
virtual bool | PresentSoftwareBitmap (const void *allocation, size_t row_bytes, size_t height) |
FlutterWindowMetricsEvent | CreateWindowMetricsEvent () const |
void | SendInitialBounds () |
void | AnnounceAlert (const std::wstring &text) |
void | OnHighContrastChanged () override |
bool | OnEmptyFrameGenerated () |
bool | OnFrameGenerated (size_t width, size_t height) |
virtual void | OnFramePresented () |
void | UpdateFlutterCursor (const std::string &cursor_name) |
void | SetFlutterCursor (HCURSOR cursor) |
bool | OnWindowSizeChanged (size_t width, size_t height) override |
void | OnWindowRepaint () override |
void | OnPointerMove (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, int modifiers_state) override |
void | OnPointerDown (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, FlutterPointerMouseButtons button) override |
void | OnPointerUp (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, FlutterPointerMouseButtons button) override |
void | OnPointerLeave (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id=0) override |
virtual void | OnPointerPanZoomStart (int32_t device_id) override |
virtual void | OnPointerPanZoomUpdate (int32_t device_id, double pan_x, double pan_y, double scale, double rotation) override |
virtual void | OnPointerPanZoomEnd (int32_t device_id) override |
void | OnText (const std::u16string &) override |
void | OnKey (int key, int scancode, int action, char32_t character, bool extended, bool was_down, KeyEventCallback callback) override |
void | OnComposeBegin () override |
void | OnComposeCommit () override |
void | OnComposeEnd () override |
void | OnComposeChange (const std::u16string &text, int cursor_pos) override |
void | OnScroll (double x, double y, double delta_x, double delta_y, int scroll_offset_multiplier, FlutterPointerDeviceKind device_kind, int32_t device_id) override |
void | OnScrollInertiaCancel (int32_t device_id) override |
virtual void | OnUpdateSemanticsEnabled (bool enabled) override |
virtual gfx::NativeViewAccessible | GetNativeViewAccessible () override |
virtual void | OnCursorRectUpdated (const Rect &rect) |
virtual void | OnResetImeComposing () |
void | OnDwmCompositionChanged () |
ui::AXPlatformNodeWin * | AlertNode () const |
virtual ui::AXFragmentRootDelegateWin * | GetAxFragmentRootDelegate () override |
virtual void | UpdateSemanticsEnabled (bool enabled) |
std::weak_ptr< AccessibilityBridgeWindows > | accessibility_bridge () |
void | OnWindowStateEvent (HWND hwnd, WindowStateEvent event) override |
Protected Member Functions | |
virtual void | NotifyWinEventWrapper (ui::AXPlatformNodeWin *node, ax::mojom::Event event) |
virtual std::shared_ptr< AccessibilityBridgeWindows > | CreateAccessibilityBridge () |
Friends | |
class | ViewModifier |
Additional Inherited Members | |
Public Types inherited from flutter::WindowBindingHandlerDelegate | |
using | KeyEventCallback = std::function< void(bool)> |
Definition at line 34 of file flutter_windows_view.h.
flutter::FlutterWindowsView::FlutterWindowsView | ( | FlutterViewId | view_id, |
FlutterWindowsEngine * | engine, | ||
std::unique_ptr< WindowBindingHandler > | window_binding, | ||
std::shared_ptr< WindowsProcTable > | windows_proc_table = nullptr |
||
) |
Definition at line 104 of file flutter_windows_view.cc.
|
virtual |
Definition at line 121 of file flutter_windows_view.cc.
References GetWindowHandle(), flutter::kHide, and flutter::FlutterWindowsEngine::OnWindowStateEvent().
|
inline |
Definition at line 242 of file flutter_windows_view.h.
Referenced by flutter::FlutterWindowsEngine::Run().
ui::AXPlatformNodeWin * flutter::FlutterWindowsView::AlertNode | ( | ) | const |
Definition at line 787 of file flutter_windows_view.cc.
void flutter::FlutterWindowsView::AnnounceAlert | ( | const std::wstring & | text | ) |
Definition at line 766 of file flutter_windows_view.cc.
References NotifyWinEventWrapper(), and text.
|
virtual |
Definition at line 678 of file flutter_windows_view.cc.
Referenced by flutter::CompositorSoftware::Present().
|
protectedvirtual |
Definition at line 792 of file flutter_windows_view.cc.
Referenced by UpdateSemanticsEnabled().
void flutter::FlutterWindowsView::CreateRenderSurface | ( | ) |
Definition at line 697 of file flutter_windows_view.cc.
References flutter::egl::Manager::CreateWindowSurface(), flutter::FlutterWindowsEngine::egl_manager(), GetWindowHandle(), flutter::PhysicalWindowBounds::height, and flutter::PhysicalWindowBounds::width.
FlutterWindowMetricsEvent flutter::FlutterWindowsView::CreateWindowMetricsEvent | ( | ) | const |
Definition at line 375 of file flutter_windows_view.cc.
References flutter::PhysicalWindowBounds::height, and flutter::PhysicalWindowBounds::width.
Referenced by SendInitialBounds().
void flutter::FlutterWindowsView::ForceRedraw | ( | ) |
Definition at line 187 of file flutter_windows_view.cc.
References flutter::FlutterWindowsEngine::ScheduleFrame().
Referenced by OnWindowRepaint().
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 783 of file flutter_windows_view.cc.
FlutterWindowsEngine * flutter::FlutterWindowsView::GetEngine | ( | ) | const |
Definition at line 762 of file flutter_windows_view.cc.
Referenced by flutter::AccessibilityBridgeWindows::DispatchAccessibilityAction(), and FlutterDesktopViewGetGraphicsAdapter().
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 346 of file flutter_windows_view.cc.
|
virtual |
Definition at line 758 of file flutter_windows_view.cc.
Referenced by CreateRenderSurface(), FlutterDesktopViewGetHWND(), flutter::FlutterPlatformNodeDelegateWindows::GetBoundsRect(), flutter::PlatformHandler::GetHasStrings(), flutter::PlatformHandler::GetPlainText(), flutter::FlutterPlatformNodeDelegateWindows::GetTargetForNativeAccessibilityEvent(), flutter::PlatformHandler::SetPlainText(), and ~FlutterWindowsView().
bool flutter::FlutterWindowsView::IsImplicitView | ( | ) | const |
Definition at line 693 of file flutter_windows_view.cc.
References flutter::kImplicitViewId.
Referenced by SendInitialBounds().
|
protectedvirtual |
Definition at line 776 of file flutter_windows_view.cc.
Referenced by AnnounceAlert().
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 309 of file flutter_windows_view.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 321 of file flutter_windows_view.cc.
References text.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 313 of file flutter_windows_view.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 317 of file flutter_windows_view.cc.
|
virtual |
Definition at line 354 of file flutter_windows_view.cc.
void flutter::FlutterWindowsView::OnDwmCompositionChanged | ( | ) |
Definition at line 808 of file flutter_windows_view.cc.
bool flutter::FlutterWindowsView::OnEmptyFrameGenerated | ( | ) |
Definition at line 131 of file flutter_windows_view.cc.
bool flutter::FlutterWindowsView::OnFrameGenerated | ( | size_t | width, |
size_t | height | ||
) |
Definition at line 153 of file flutter_windows_view.cc.
Referenced by flutter::CompositorOpenGL::Present().
|
virtual |
Definition at line 646 of file flutter_windows_view.cc.
Referenced by flutter::CompositorOpenGL::Present().
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 754 of file flutter_windows_view.cc.
References flutter::FlutterWindowsEngine::UpdateHighContrastMode().
|
overridevirtual |
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 245 of file flutter_windows_view.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 271 of file flutter_windows_view.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 236 of file flutter_windows_view.cc.
References flutter::FlutterWindowsEngine::keyboard_key_handler(), and flutter::KeyboardHandlerBase::SyncModifiersIfNeeded().
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 291 of file flutter_windows_view.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 278 of file flutter_windows_view.cc.
References flutter::PointerLocation::x, and flutter::PointerLocation::y.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 283 of file flutter_windows_view.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 258 of file flutter_windows_view.cc.
|
virtual |
Definition at line 358 of file flutter_windows_view.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 326 of file flutter_windows_view.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 337 of file flutter_windows_view.cc.
References flutter::PointerLocation::x, and flutter::PointerLocation::y.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 295 of file flutter_windows_view.cc.
References text.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 342 of file flutter_windows_view.cc.
References flutter::FlutterWindowsEngine::UpdateSemanticsEnabled().
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 232 of file flutter_windows_view.cc.
References ForceRedraw().
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 194 of file flutter_windows_view.cc.
References flutter::FlutterWindowsEngine::egl_manager().
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 812 of file flutter_windows_view.cc.
References flutter::FlutterWindowsEngine::OnWindowStateEvent().
|
virtual |
Definition at line 682 of file flutter_windows_view.cc.
Referenced by flutter::CompositorSoftware::Present().
void flutter::FlutterWindowsView::SendInitialBounds | ( | ) |
Definition at line 389 of file flutter_windows_view.cc.
References CreateWindowMetricsEvent(), IsImplicitView(), and flutter::FlutterWindowsEngine::SendWindowMetricsEvent().
void flutter::FlutterWindowsView::SetFlutterCursor | ( | HCURSOR | cursor | ) |
Definition at line 183 of file flutter_windows_view.cc.
egl::WindowSurface * flutter::FlutterWindowsView::surface | ( | ) | const |
Definition at line 750 of file flutter_windows_view.cc.
Referenced by flutter::CompositorOpenGL::Present().
void flutter::FlutterWindowsView::UpdateFlutterCursor | ( | const std::string & | cursor_name | ) |
Definition at line 179 of file flutter_windows_view.cc.
|
virtual |
FlutterViewId flutter::FlutterWindowsView::view_id | ( | ) | const |
Definition at line 689 of file flutter_windows_view.cc.
|
friend |
Definition at line 259 of file flutter_windows_view.h.