Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
mock_window_binding_handler_delegate.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_WINDOW_BINDING_HANDLER_DELEGATE_H_
6#define FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_WINDOW_BINDING_HANDLER_DELEGATE_H_
7
8#include "flutter/fml/macros.h"
9#include "flutter/shell/platform/windows/window_binding_handler_delegate.h"
10#include "gmock/gmock.h"
11
12namespace flutter {
13namespace testing {
14
16 public:
18
19 MOCK_METHOD(bool, OnWindowSizeChanged, (size_t, size_t), (override));
20 MOCK_METHOD(void, OnWindowRepaint, (), (override));
23 (double, double, FlutterPointerDeviceKind, int32_t, int),
24 (override));
27 (double,
28 double,
30 int32_t,
32 (override));
35 (double,
36 double,
38 int32_t,
40 (override));
43 (double, double, FlutterPointerDeviceKind, int32_t),
44 (override));
45 MOCK_METHOD(void, OnPointerPanZoomStart, (int32_t), (override));
48 (int32_t, double, double, double, double),
49 (override));
50 MOCK_METHOD(void, OnPointerPanZoomEnd, (int32_t), (override));
51 MOCK_METHOD(void, OnText, (const std::u16string&), (override));
53 OnKey,
54 (int, int, int, char32_t, bool, bool, KeyEventCallback),
55 (override));
56 MOCK_METHOD(void, OnComposeBegin, (), (override));
57 MOCK_METHOD(void, OnComposeCommit, (), (override));
58 MOCK_METHOD(void, OnComposeEnd, (), (override));
59 MOCK_METHOD(void, OnComposeChange, (const std::u16string&, int), (override));
60 MOCK_METHOD(void, OnUpdateSemanticsEnabled, (bool), (override));
63 (),
64 (override));
66 void,
68 (double, double, double, double, int, FlutterPointerDeviceKind, int32_t),
69 (override));
70 MOCK_METHOD(void, OnScrollInertiaCancel, (int32_t), (override));
71 MOCK_METHOD(void, OnHighContrastChanged, (), (override));
72
75 (),
76 (override));
77
78 MOCK_METHOD(void, OnWindowStateEvent, (HWND, WindowStateEvent), (override));
79
80 private:
82};
83
84} // namespace testing
85} // namespace flutter
86
87#endif // FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_WINDOW_BINDING_HANDLER_DELEGATE_H_
virtual void OnPointerDown(double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, FlutterPointerMouseButtons button)=0
virtual void OnPointerMove(double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, int modifiers_state)=0
virtual void OnComposeChange(const std::u16string &text, int cursor_pos)=0
virtual void OnPointerPanZoomStart(int32_t device_id)=0
virtual void OnText(const std::u16string &)=0
virtual void OnPointerLeave(double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id)=0
virtual void OnKey(int key, int scancode, int action, char32_t character, bool extended, bool was_down, KeyEventCallback callback)=0
virtual void OnUpdateSemanticsEnabled(bool enabled)=0
virtual ui::AXFragmentRootDelegateWin * GetAxFragmentRootDelegate()=0
virtual void OnPointerUp(double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, FlutterPointerMouseButtons button)=0
virtual void OnPointerPanZoomEnd(int32_t device_id)=0
virtual void OnWindowStateEvent(HWND hwnd, WindowStateEvent event)=0
virtual void OnScrollInertiaCancel(int32_t device_id)=0
virtual gfx::NativeViewAccessible GetNativeViewAccessible()=0
virtual bool OnWindowSizeChanged(size_t width, size_t height)=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 OnPointerPanZoomUpdate(int32_t device_id, double pan_x, double pan_y, double scale, double rotation)=0
MOCK_METHOD(void, OnComposeEnd,(),(override))
MOCK_METHOD(void, OnPointerMove,(double, double, FlutterPointerDeviceKind, int32_t, int),(override))
MOCK_METHOD(void, OnComposeCommit,(),(override))
MOCK_METHOD(gfx::NativeViewAccessible, GetNativeViewAccessible,(),(override))
MOCK_METHOD(void, OnPointerDown,(double, double, FlutterPointerDeviceKind, int32_t, FlutterPointerMouseButtons),(override))
MOCK_METHOD(void, OnWindowStateEvent,(HWND, WindowStateEvent),(override))
MOCK_METHOD(void, OnPointerPanZoomEnd,(int32_t),(override))
MOCK_METHOD(void, OnPointerPanZoomUpdate,(int32_t, double, double, double, double),(override))
MOCK_METHOD(void, OnPointerUp,(double, double, FlutterPointerDeviceKind, int32_t, FlutterPointerMouseButtons),(override))
MOCK_METHOD(void, OnPointerPanZoomStart,(int32_t),(override))
MOCK_METHOD(void, OnText,(const std::u16string &),(override))
MOCK_METHOD(ui::AXFragmentRootDelegateWin *, GetAxFragmentRootDelegate,(),(override))
MOCK_METHOD(void, OnComposeChange,(const std::u16string &, int),(override))
MOCK_METHOD(bool, OnWindowSizeChanged,(size_t, size_t),(override))
MOCK_METHOD(void, OnComposeBegin,(),(override))
MOCK_METHOD(void, OnWindowRepaint,(),(override))
MOCK_METHOD(void, OnHighContrastChanged,(),(override))
MOCK_METHOD(void, OnScrollInertiaCancel,(int32_t),(override))
MOCK_METHOD(void, OnScroll,(double, double, double, double, int, FlutterPointerDeviceKind, int32_t),(override))
MOCK_METHOD(void, OnPointerLeave,(double, double, FlutterPointerDeviceKind, int32_t),(override))
MOCK_METHOD(void, OnKey,(int, int, int, char32_t, bool, bool, KeyEventCallback),(override))
MOCK_METHOD(void, OnUpdateSemanticsEnabled,(bool),(override))
FlutterPointerMouseButtons
Definition embedder.h:1014
FlutterPointerDeviceKind
The device type that created a pointer event.
Definition embedder.h:1005
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27
WindowStateEvent
An event representing a change in window state that may update the.
UnimplementedNativeViewAccessible * NativeViewAccessible