Flutter Engine
The Flutter Engine
|
#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 |
virtual bool | OnWindowSizeChanged (size_t width, size_t height)=0 |
virtual void | OnWindowRepaint ()=0 |
virtual void | OnPointerMove (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, int modifiers_state)=0 |
virtual void | OnPointerDown (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, FlutterPointerMouseButtons button)=0 |
virtual void | OnPointerUp (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, FlutterPointerMouseButtons button)=0 |
virtual void | OnPointerLeave (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id)=0 |
virtual void | OnPointerPanZoomStart (int32_t device_id)=0 |
virtual void | OnPointerPanZoomUpdate (int32_t device_id, double pan_x, double pan_y, double scale, double rotation)=0 |
virtual void | OnPointerPanZoomEnd (int32_t device_id)=0 |
virtual void | OnText (const std::u16string &)=0 |
virtual void | OnKey (int key, int scancode, int action, char32_t character, bool extended, bool was_down, KeyEventCallback callback)=0 |
virtual void | OnComposeBegin ()=0 |
virtual void | OnComposeCommit ()=0 |
virtual void | OnComposeEnd ()=0 |
virtual void | OnComposeChange (const std::u16string &text, int cursor_pos)=0 |
virtual void | OnScroll (double x, double y, double delta_x, double delta_y, int scroll_offset_multiplier, FlutterPointerDeviceKind device_kind, int32_t device_id)=0 |
virtual void | OnScrollInertiaCancel (int32_t device_id)=0 |
virtual void | OnUpdateSemanticsEnabled (bool enabled)=0 |
virtual gfx::NativeViewAccessible | GetNativeViewAccessible ()=0 |
virtual void | OnHighContrastChanged ()=0 |
virtual ui::AXFragmentRootDelegateWin * | GetAxFragmentRootDelegate ()=0 |
virtual void | OnWindowStateEvent (HWND hwnd, WindowStateEvent event)=0 |
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.
|
inline |
Definition at line 242 of file flutter_windows_view.h.
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.
|
virtual |
Definition at line 678 of file flutter_windows_view.cc.
|
protectedvirtual |
Definition at line 792 of file flutter_windows_view.cc.
void flutter::FlutterWindowsView::CreateRenderSurface | ( | ) |
Definition at line 697 of file flutter_windows_view.cc.
FlutterWindowMetricsEvent flutter::FlutterWindowsView::CreateWindowMetricsEvent | ( | ) | const |
Definition at line 375 of file flutter_windows_view.cc.
void flutter::FlutterWindowsView::ForceRedraw | ( | ) |
Definition at line 187 of file flutter_windows_view.cc.
|
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.
|
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.
bool flutter::FlutterWindowsView::IsImplicitView | ( | ) | const |
Definition at line 693 of file flutter_windows_view.cc.
|
protectedvirtual |
Definition at line 776 of file flutter_windows_view.cc.
|
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.
|
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.
|
virtual |
Definition at line 646 of file flutter_windows_view.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 754 of file flutter_windows_view.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 299 of file flutter_windows_view.cc.
|
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.
|
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.
|
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.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 295 of file flutter_windows_view.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 342 of file flutter_windows_view.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 232 of file flutter_windows_view.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 194 of file flutter_windows_view.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandlerDelegate.
Definition at line 812 of file flutter_windows_view.cc.
|
virtual |
Definition at line 682 of file flutter_windows_view.cc.
void flutter::FlutterWindowsView::SendInitialBounds | ( | ) |
Definition at line 389 of file flutter_windows_view.cc.
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.
void flutter::FlutterWindowsView::UpdateFlutterCursor | ( | const std::string & | cursor_name | ) |
Definition at line 179 of file flutter_windows_view.cc.
|
virtual |
Definition at line 796 of file flutter_windows_view.cc.
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.