5#ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_WINDOW_H_
6#define FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_WINDOW_H_
8#include "flutter/fml/macros.h"
9#include "flutter/shell/platform/windows/flutter_window.h"
10#include "flutter/shell/platform/windows/testing/test_keyboard.h"
11#include "gmock/gmock.h"
20 MockWindow(std::unique_ptr<WindowsProcTable> windows_proc_table,
21 std::unique_ptr<TextInputManager> text_input_manager);
29 std::unique_ptr<DirectManipulationOwner> owner);
virtual void OnPointerLeave(double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id)
virtual void OnText(const std::u16string &text) override
virtual void OnThemeChange()
virtual void OnSetCursor()
virtual ui::AXFragmentRootDelegateWin * GetAxFragmentRootDelegate()
virtual void OnScroll(double delta_x, double delta_y, FlutterPointerDeviceKind device_kind, int32_t device_id)
virtual void OnPointerUp(double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, UINT button)
virtual void OnPointerDown(double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, UINT button)
virtual void OnComposeCommit()
virtual void OnWindowStateEvent(WindowStateEvent event)
virtual void OnKey(int key, int scancode, int action, char32_t character, bool extended, bool was_down, KeyEventCallback callback) override
virtual void OnPointerMove(double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, int modifiers_state)
virtual void OnComposeEnd()
virtual void OnComposeChange(const std::u16string &text, int cursor_pos)
virtual void OnImeComposition(UINT const message, WPARAM const wparam, LPARAM const lparam)
virtual void OnDpiScale(unsigned int dpi)
virtual void OnUpdateSemanticsEnabled(bool enabled)
virtual LRESULT OnGetObject(UINT const message, WPARAM const wparam, LPARAM const lparam)
virtual gfx::NativeViewAccessible GetNativeViewAccessible()
virtual void OnComposeBegin()
virtual void OnResize(unsigned int width, unsigned int height)
std::function< void(bool)> KeyEventCallback
Mock for the |FlutterWindow| base class.
MOCK_METHOD(void, OnComposeBegin,(),(override))
LRESULT InjectWindowMessage(UINT const message, WPARAM const wparam, LPARAM const lparam)
MOCK_METHOD(void, OnPointerLeave,(double, double, FlutterPointerDeviceKind, int32_t),(override))
MOCK_METHOD(void, OnPaint,(),(override))
MOCK_METHOD(void, OnImeComposition,(UINT const, WPARAM const, LPARAM const),(override))
MOCK_METHOD(LRESULT, OnGetObject,(UINT, WPARAM, LPARAM),(override))
MOCK_METHOD(ui::AXFragmentRootDelegateWin *, GetAxFragmentRootDelegate,(),(override))
MOCK_METHOD(void, OnThemeChange,(),(override))
MOCK_METHOD(void, OnPointerMove,(double, double, FlutterPointerDeviceKind, int32_t, int),(override))
void InjectMessageList(int count, const Win32Message *messages)
MOCK_METHOD(void, OnUpdateSemanticsEnabled,(bool),(override))
MOCK_METHOD(void, OnKey,(int, int, int, char32_t, bool, bool, KeyEventCallback),(override))
MOCK_METHOD(void, OnDpiScale,(unsigned int),(override))
MOCK_METHOD(void, OnPointerDown,(double, double, FlutterPointerDeviceKind, int32_t, UINT),(override))
MOCK_METHOD(void, OnWindowStateEvent,(WindowStateEvent),(override))
MOCK_METHOD(void, OnText,(const std::u16string &),(override))
MOCK_METHOD(void, OnResize,(unsigned int, unsigned int),(override))
MOCK_METHOD(void, OnComposeChange,(const std::u16string &, int),(override))
LRESULT Win32DefWindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
MOCK_METHOD(void, OnScroll,(double, double, FlutterPointerDeviceKind, int32_t),(override))
void SetDirectManipulationOwner(std::unique_ptr< DirectManipulationOwner > owner)
MOCK_METHOD(gfx::NativeViewAccessible, GetNativeViewAccessible,(),(override))
MOCK_METHOD(void, OnPointerUp,(double, double, FlutterPointerDeviceKind, int32_t, UINT),(override))
MOCK_METHOD(void, OnSetCursor,(),(override))
MOCK_METHOD(void, OnComposeCommit,(),(override))
MOCK_METHOD(void, OnComposeEnd,(),(override))
void CallOnImeComposition(UINT const message, WPARAM const wparam, LPARAM const lparam)
FlutterPointerDeviceKind
The device type that created a pointer event.
WindowStateEvent
An event representing a change in window state that may update the.
UnimplementedNativeViewAccessible * NativeViewAccessible