Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
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
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,
24 double,
26 int32_t,
27 uint64_t,
28 uint32_t,
29 uint32_t,
30 int),
31 (override));
34 (double,
35 double,
37 int32_t,
38 uint64_t,
39 uint32_t,
40 uint32_t),
41 (override));
44 (double, double, FlutterPointerDeviceKind, int32_t, uint64_t),
45 (override));
48 (double, double, FlutterPointerDeviceKind, int32_t),
49 (override));
50 MOCK_METHOD(void, OnPointerPanZoomStart, (int32_t), (override));
53 (int32_t, double, double, double, double),
54 (override));
55 MOCK_METHOD(void, OnPointerPanZoomEnd, (int32_t), (override));
56 MOCK_METHOD(void, OnText, (const std::u16string&), (override));
58 OnKey,
59 (int, int, int, char32_t, bool, bool, KeyEventCallback),
60 (override));
62 OnFocus,
64 (override));
65 MOCK_METHOD(void, OnComposeBegin, (), (override));
66 MOCK_METHOD(void, OnComposeCommit, (), (override));
67 MOCK_METHOD(void, OnComposeEnd, (), (override));
68 MOCK_METHOD(void, OnComposeChange, (const std::u16string&, int), (override));
69 MOCK_METHOD(void, OnUpdateSemanticsEnabled, (bool), (override));
72 (),
73 (override));
75 void,
77 (double, double, double, double, int, FlutterPointerDeviceKind, int32_t),
78 (override));
79 MOCK_METHOD(void, OnScrollInertiaCancel, (int32_t), (override));
80 MOCK_METHOD(void, OnHighContrastChanged, (), (override));
81
84 (),
85 (override));
86
87 MOCK_METHOD(void, OnWindowStateEvent, (HWND, WindowStateEvent), (override));
88
89 private:
91};
92
93} // namespace testing
94} // namespace flutter
95
96#endif // FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_WINDOW_BINDING_HANDLER_DELEGATE_H_
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 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 OnPointerUp(double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, uint64_t buttons)=0
virtual void OnFocus(FlutterViewFocusState focus_state, FlutterViewFocusDirection direction)=0
virtual void OnPointerDown(double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, uint64_t buttons, uint32_t rotation, uint32_t pressure)=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
virtual void OnPointerMove(double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, uint64_t buttons, uint32_t rotation, uint32_t pressure, int modifiers_state)=0
MOCK_METHOD(void, OnPointerUp,(double, double, FlutterPointerDeviceKind, int32_t, uint64_t),(override))
MOCK_METHOD(void, OnPointerMove,(double, double, FlutterPointerDeviceKind, int32_t, uint64_t, uint32_t, uint32_t, int),(override))
MOCK_METHOD(void, OnComposeEnd,(),(override))
MOCK_METHOD(void, OnPointerDown,(double, double, FlutterPointerDeviceKind, int32_t, uint64_t, uint32_t, uint32_t),(override))
MOCK_METHOD(void, OnComposeCommit,(),(override))
MOCK_METHOD(gfx::NativeViewAccessible, GetNativeViewAccessible,(),(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, 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, OnFocus,(FlutterViewFocusState, FlutterViewFocusDirection),(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))
FlutterViewFocusState
Represents the focus state of a given [FlutterView].
Definition embedder.h:1219
FlutterViewFocusDirection
Definition embedder.h:1200
FlutterPointerDeviceKind
The device type that created a pointer event.
Definition embedder.h:1309
#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