Flutter Windows Embedder
flutter::testing::MockFlutterWindowsView Class Reference
Inheritance diagram for flutter::testing::MockFlutterWindowsView:
flutter::FlutterWindowsView flutter::FlutterWindowsView flutter::FlutterWindowsView flutter::FlutterWindowsView flutter::WindowBindingHandlerDelegate flutter::WindowBindingHandlerDelegate flutter::WindowBindingHandlerDelegate flutter::WindowBindingHandlerDelegate

Public Member Functions

 MockFlutterWindowsView (FlutterWindowsEngine *engine, std::unique_ptr< WindowBindingHandler > wbh)
 
 ~MockFlutterWindowsView ()
 
 MOCK_METHOD (void, NotifyWinEventWrapper,(ui::AXPlatformNodeWin *, ax::mojom::Event),(override))
 
 MOCK_METHOD (HWND, GetWindowHandle,(),(const, override))
 
- Public Member Functions inherited from flutter::FlutterWindowsView
 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::WindowSurfacesurface () const
 
virtual HWND GetWindowHandle () const
 
FlutterWindowsEngineGetEngine () 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< AccessibilityBridgeWindowsaccessibility_bridge ()
 
void OnWindowStateEvent (HWND hwnd, WindowStateEvent event) override
 

Additional Inherited Members

- Public Types inherited from flutter::WindowBindingHandlerDelegate
using KeyEventCallback = std::function< void(bool)>
 
- Protected Member Functions inherited from flutter::FlutterWindowsView
virtual void NotifyWinEventWrapper (ui::AXPlatformNodeWin *node, ax::mojom::Event event)
 
virtual std::shared_ptr< AccessibilityBridgeWindowsCreateAccessibilityBridge ()
 

Detailed Description

Definition at line 639 of file flutter_windows_engine_unittests.cc.

Constructor & Destructor Documentation

◆ MockFlutterWindowsView()

flutter::testing::MockFlutterWindowsView::MockFlutterWindowsView ( FlutterWindowsEngine engine,
std::unique_ptr< WindowBindingHandler wbh 
)
inline

Definition at line 641 of file flutter_windows_engine_unittests.cc.

643  : FlutterWindowsView(kImplicitViewId, engine, std::move(wbh)) {}

◆ ~MockFlutterWindowsView()

flutter::testing::MockFlutterWindowsView::~MockFlutterWindowsView ( )
inline

Definition at line 644 of file flutter_windows_engine_unittests.cc.

644 {}

Member Function Documentation

◆ MOCK_METHOD() [1/2]

flutter::testing::MockFlutterWindowsView::MOCK_METHOD ( HWND  ,
GetWindowHandle  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [2/2]

flutter::testing::MockFlutterWindowsView::MOCK_METHOD ( void  ,
NotifyWinEventWrapper  ,
(ui::AXPlatformNodeWin *, ax::mojom::Event)  ,
(override)   
)

The documentation for this class was generated from the following file:
flutter::kImplicitViewId
constexpr FlutterViewId kImplicitViewId
Definition: flutter_windows_engine.h:55
flutter::FlutterWindowsView::FlutterWindowsView
FlutterWindowsView(FlutterViewId view_id, FlutterWindowsEngine *engine, std::unique_ptr< WindowBindingHandler > window_binding, std::shared_ptr< WindowsProcTable > windows_proc_table=nullptr)
Definition: flutter_windows_view.cc:104