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

Public Member Functions

 MockFlutterWindowsView (std::unique_ptr< WindowBindingHandler > wbh)
 
 ~MockFlutterWindowsView ()
 
 MOCK_METHOD (void, NotifyWinEventWrapper,(ui::AXPlatformNodeWin *, ax::mojom::Event),(override))
 
 MOCK_METHOD (PlatformWindow, GetPlatformWindow,(),(const, override))
 
- Public Member Functions inherited from flutter::FlutterWindowsView
 FlutterWindowsView (std::unique_ptr< WindowBindingHandler > window_binding)
 
virtual ~FlutterWindowsView ()
 
void SetEngine (std::unique_ptr< FlutterWindowsEngine > engine)
 
void CreateRenderSurface ()
 
void DestroyRenderSurface ()
 
WindowsRenderTargetGetRenderTarget () const
 
virtual PlatformWindow GetPlatformWindow () const
 
FlutterWindowsEngineGetEngine ()
 
void ForceRedraw ()
 
bool ClearContext ()
 
bool MakeCurrent ()
 
bool MakeResourceCurrent ()
 
bool SwapBuffers ()
 
bool PresentSoftwareBitmap (const void *allocation, size_t row_bytes, size_t height)
 
void SendInitialBounds ()
 
void SendInitialAccessibilityFeatures ()
 
void AnnounceAlert (const std::wstring &text)
 
void UpdateHighContrastEnabled (bool enabled) override
 
uint32_t GetFrameBufferId (size_t width, size_t height)
 
void UpdateFlutterCursor (const std::string &cursor_name)
 
void SetFlutterCursor (HCURSOR cursor)
 
void 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
 
void OnCursorRectUpdated (const Rect &rect) override
 
void OnResetImeComposing () override
 
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 603 of file flutter_windows_engine_unittests.cc.

Constructor & Destructor Documentation

◆ MockFlutterWindowsView()

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

Definition at line 605 of file flutter_windows_engine_unittests.cc.

606  : FlutterWindowsView(std::move(wbh)) {}

◆ ~MockFlutterWindowsView()

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

Definition at line 607 of file flutter_windows_engine_unittests.cc.

607 {}

Member Function Documentation

◆ MOCK_METHOD() [1/2]

flutter::testing::MockFlutterWindowsView::MOCK_METHOD ( PlatformWindow  ,
GetPlatformWindow  ,
()  ,
(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::FlutterWindowsView::FlutterWindowsView
FlutterWindowsView(std::unique_ptr< WindowBindingHandler > window_binding)
Definition: flutter_windows_view.cc:41