Flutter Windows Embedder
flutter_window.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_FLUTTER_WINDOW_H_
6 #define FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_WINDOW_H_
7 
8 #include <string>
9 #include <vector>
10 
11 #include "flutter/fml/macros.h"
14 #include "flutter/shell/platform/embedder/embedder.h"
24 #include "flutter/third_party/accessibility/ax/platform/ax_fragment_root_delegate_win.h"
25 #include "flutter/third_party/accessibility/ax/platform/ax_fragment_root_win.h"
26 #include "flutter/third_party/accessibility/ax/platform/ax_platform_node_win.h"
27 #include "flutter/third_party/accessibility/gfx/native_widget_types.h"
28 
29 namespace flutter {
30 
31 // A win32 flutter child window used as implementations for flutter view. In
32 // the future, there will likely be a CoreWindow-based FlutterWindow as well.
33 // At the point may make sense to dependency inject the native window rather
34 // than inherit.
36  public WindowBindingHandler {
37  public:
38  // Create flutter Window for use as child window
39  FlutterWindow(int width,
40  int height,
41  std::shared_ptr<WindowsProcTable> windows_proc_table = nullptr,
42  std::unique_ptr<TextInputManager> text_input_manager = nullptr);
43 
44  virtual ~FlutterWindow();
45 
46  // Initializes as a child window with size using |width| and |height| and
47  // |title| to identify the windowclass. Does not show window, window must be
48  // parented into window hierarchy by caller.
49  void InitializeChild(const char* title,
50  unsigned int width,
51  unsigned int height);
52 
53  // |KeyboardManager::WindowDelegate|
54  virtual BOOL Win32PeekMessage(LPMSG lpMsg,
55  UINT wMsgFilterMin,
56  UINT wMsgFilterMax,
57  UINT wRemoveMsg) override;
58 
59  // |KeyboardManager::WindowDelegate|
60  virtual uint32_t Win32MapVkToChar(uint32_t virtual_key) override;
61 
62  // |KeyboardManager::WindowDelegate|
63  virtual UINT Win32DispatchMessage(UINT Msg,
64  WPARAM wParam,
65  LPARAM lParam) override;
66 
67  // Called when the DPI changes either when a
68  // user drags the window between monitors of differing DPI or when the user
69  // manually changes the scale factor.
70  virtual void OnDpiScale(unsigned int dpi);
71 
72  // Called when a resize occurs.
73  virtual void OnResize(unsigned int width, unsigned int height);
74 
75  // Called when a paint is requested.
76  virtual void OnPaint();
77 
78  // Called when the pointer moves within the
79  // window bounds.
80  virtual void OnPointerMove(double x,
81  double y,
82  FlutterPointerDeviceKind device_kind,
83  int32_t device_id,
84  int modifiers_state);
85 
86  // Called when the a mouse button, determined by |button|, goes down.
87  virtual void OnPointerDown(double x,
88  double y,
89  FlutterPointerDeviceKind device_kind,
90  int32_t device_id,
91  UINT button);
92 
93  // Called when the a mouse button, determined by |button|, goes from
94  // down to up
95  virtual void OnPointerUp(double x,
96  double y,
97  FlutterPointerDeviceKind device_kind,
98  int32_t device_id,
99  UINT button);
100 
101  // Called when the mouse leaves the window.
102  virtual void OnPointerLeave(double x,
103  double y,
104  FlutterPointerDeviceKind device_kind,
105  int32_t device_id);
106 
107  // Called when the cursor should be set for the client area.
108  virtual void OnSetCursor();
109 
110  // |WindowBindingHandlerDelegate|
111  virtual void OnText(const std::u16string& text) override;
112 
113  // |WindowBindingHandlerDelegate|
114  virtual void OnKey(int key,
115  int scancode,
116  int action,
117  char32_t character,
118  bool extended,
119  bool was_down,
120  KeyEventCallback callback) override;
121 
122  // Called when IME composing begins.
123  virtual void OnComposeBegin();
124 
125  // Called when IME composing text is committed.
126  virtual void OnComposeCommit();
127 
128  // Called when IME composing ends.
129  virtual void OnComposeEnd();
130 
131  // Called when IME composing text or cursor position changes.
132  virtual void OnComposeChange(const std::u16string& text, int cursor_pos);
133 
134  // |FlutterWindowBindingHandler|
135  virtual void OnCursorRectUpdated(const Rect& rect) override;
136 
137  // |FlutterWindowBindingHandler|
138  virtual void OnResetImeComposing() override;
139 
140  // Called when accessibility support is enabled or disabled.
141  virtual void OnUpdateSemanticsEnabled(bool enabled);
142 
143  // Called when mouse scrollwheel input occurs.
144  virtual void OnScroll(double delta_x,
145  double delta_y,
146  FlutterPointerDeviceKind device_kind,
147  int32_t device_id);
148 
149  // Returns the root view accessibility node, or nullptr if none.
150  virtual gfx::NativeViewAccessible GetNativeViewAccessible();
151 
152  // |FlutterWindowBindingHandler|
153  virtual void SetView(WindowBindingHandlerDelegate* view) override;
154 
155  // |FlutterWindowBindingHandler|
156  virtual HWND GetWindowHandle() override;
157 
158  // |FlutterWindowBindingHandler|
159  virtual float GetDpiScale() override;
160 
161  // |FlutterWindowBindingHandler|
162  virtual bool IsVisible() override;
163 
164  // |FlutterWindowBindingHandler|
166 
167  // |FlutterWindowBindingHandler|
168  virtual void UpdateFlutterCursor(const std::string& cursor_name) override;
169 
170  // |FlutterWindowBindingHandler|
171  virtual void SetFlutterCursor(HCURSOR cursor) override;
172 
173  // |FlutterWindowBindingHandler|
174  virtual bool OnBitmapSurfaceUpdated(const void* allocation,
175  size_t row_bytes,
176  size_t height) override;
177 
178  // |FlutterWindowBindingHandler|
179  virtual PointerLocation GetPrimaryPointerLocation() override;
180 
181  // Called when a theme change message is issued.
182  virtual void OnThemeChange();
183 
184  // |WindowBindingHandler|
185  virtual AlertPlatformNodeDelegate* GetAlertDelegate() override;
186 
187  // |WindowBindingHandler|
188  virtual ui::AXPlatformNodeWin* GetAlert() override;
189 
190  // Called to obtain a pointer to the fragment root delegate.
191  virtual ui::AXFragmentRootDelegateWin* GetAxFragmentRootDelegate();
192 
193  // Called on a resize or focus event.
194  virtual void OnWindowStateEvent(WindowStateEvent event);
195 
196  protected:
197  // Win32's DefWindowProc.
198  //
199  // Used as the fallback behavior of HandleMessage. Exposed for dependency
200  // injection.
201  virtual LRESULT Win32DefWindowProc(HWND hWnd,
202  UINT Msg,
203  WPARAM wParam,
204  LPARAM lParam);
205 
206  // Converts a c string to a wide unicode string.
207  std::wstring NarrowToWide(const char* source);
208 
209  // Processes and route salient window messages for mouse handling,
210  // size change and DPI. Delegates handling of these to member overloads that
211  // inheriting classes can handle.
212  LRESULT HandleMessage(UINT const message,
213  WPARAM const wparam,
214  LPARAM const lparam) noexcept;
215 
216  // Called when the OS requests a COM object.
217  //
218  // The primary use of this function is to supply Windows with wrapped
219  // semantics objects for use by Windows accessibility.
220  virtual LRESULT OnGetObject(UINT const message,
221  WPARAM const wparam,
222  LPARAM const lparam);
223 
224  // Called when a window is activated in order to configure IME support for
225  // multi-step text input.
226  virtual void OnImeSetContext(UINT const message,
227  WPARAM const wparam,
228  LPARAM const lparam);
229 
230  // Called when multi-step text input begins when using an IME.
231  virtual void OnImeStartComposition(UINT const message,
232  WPARAM const wparam,
233  LPARAM const lparam);
234 
235  // Called when edits/commit of multi-step text input occurs when using an IME.
236  virtual void OnImeComposition(UINT const message,
237  WPARAM const wparam,
238  LPARAM const lparam);
239 
240  // Called when multi-step text input ends when using an IME.
241  virtual void OnImeEndComposition(UINT const message,
242  WPARAM const wparam,
243  LPARAM const lparam);
244 
245  // Called when the user triggers an IME-specific request such as input
246  // reconversion, where an existing input sequence is returned to composing
247  // mode to select an alternative candidate conversion.
248  virtual void OnImeRequest(UINT const message,
249  WPARAM const wparam,
250  LPARAM const lparam);
251 
252  // Called when the app ends IME composing, such as when the text input client
253  // is cleared or changed.
254  virtual void AbortImeComposing();
255 
256  // Called when the cursor rect has been updated.
257  //
258  // |rect| is in Win32 window coordinates.
259  virtual void UpdateCursorRect(const Rect& rect);
260 
261  UINT GetCurrentDPI();
262 
263  UINT GetCurrentWidth();
264 
265  UINT GetCurrentHeight();
266 
267  // Returns the current pixel per scroll tick value.
268  virtual float GetScrollOffsetMultiplier();
269 
270  // Delegate to a alert_node_ used to set the announcement text.
271  std::unique_ptr<AlertPlatformNodeDelegate> alert_delegate_;
272 
273  // Accessibility node that represents an alert.
274  std::unique_ptr<ui::AXPlatformNodeWin> alert_node_;
275 
276  // Handles running DirectManipulation on the window to receive trackpad
277  // gestures.
278  std::unique_ptr<DirectManipulationOwner> direct_manipulation_owner_;
279 
280  private:
281  // OS callback called by message pump. Handles the WM_NCCREATE message which
282  // is passed when the non-client area is being created and enables automatic
283  // non-client DPI scaling so that the non-client area automatically
284  // responsponds to changes in DPI. All other messages are handled by
285  // MessageHandler.
286  static LRESULT CALLBACK WndProc(HWND const window,
287  UINT const message,
288  WPARAM const wparam,
289  LPARAM const lparam) noexcept;
290 
291  // WM_DPICHANGED_BEFOREPARENT defined in more recent Windows
292  // SDK
293  static const long kWmDpiChangedBeforeParent = 0x02E2;
294 
295  // Timer identifier for DirectManipulation gesture polling.
296  static const int kDirectManipulationTimer = 1;
297 
298  // Release OS resources associated with the window.
299  void Destroy();
300 
301  // Registers a window class with default style attributes, cursor and
302  // icon.
303  WNDCLASS RegisterWindowClass(std::wstring& title);
304 
305  // Retrieves a class instance pointer for |window|
306  static FlutterWindow* GetThisFromHandle(HWND const window) noexcept;
307 
308  // Activates tracking for a "mouse leave" event.
309  void TrackMouseLeaveEvent(HWND hwnd);
310 
311  // Stores new width and height and calls |OnResize| to notify inheritors
312  void HandleResize(UINT width, UINT height);
313 
314  // Updates the cached scroll_offset_multiplier_ value based off OS settings.
315  void UpdateScrollOffsetMultiplier();
316 
317  // Creates the ax_fragment_root_, alert_delegate_ and alert_node_ if they do
318  // not yet exist.
319  // Once set, they are not reset to nullptr.
320  void CreateAxFragmentRoot();
321 
322  // A pointer to a FlutterWindowsView that can be used to update engine
323  // windowing and input state.
324  WindowBindingHandlerDelegate* binding_handler_delegate_;
325 
326  // The last cursor set by Flutter. Defaults to the arrow cursor.
327  HCURSOR current_cursor_;
328 
329  // The cursor rect set by Flutter.
330  RECT cursor_rect_;
331 
332  // The window receives resize and focus messages before its view is set, so
333  // these values cache the state of the window in the meantime so that the
334  // proper application lifecycle state can be updated once the view is set.
335  bool restored_ = false;
336  bool focused_ = false;
337 
338  int current_dpi_ = 0;
339  int current_width_ = 0;
340  int current_height_ = 0;
341 
342  // Holds the conversion factor from lines scrolled to pixels scrolled.
343  float scroll_offset_multiplier_;
344 
345  // Member variable to hold window handle.
346  HWND window_handle_ = nullptr;
347 
348  // Member variable to hold the window title.
349  std::wstring window_class_name_;
350 
351  // Set to true to be notified when the mouse leaves the window.
352  bool tracking_mouse_leave_ = false;
353 
354  // Keeps track of the last key code produced by a WM_KEYDOWN or WM_SYSKEYDOWN
355  // message.
356  int keycode_for_char_message_ = 0;
357 
358  // Keeps track of the last mouse coordinates by a WM_MOUSEMOVE message.
359  double mouse_x_ = 0;
360  double mouse_y_ = 0;
361 
362  // Generates touch point IDs for touch events.
363  SequentialIdGenerator touch_id_generator_;
364 
365  // Abstracts Windows APIs that may not be available on all supported versions
366  // of Windows.
367  std::shared_ptr<WindowsProcTable> windows_proc_table_;
368 
369  // Manages IME state.
370  std::unique_ptr<TextInputManager> text_input_manager_;
371 
372  // Manages IME state.
373  std::unique_ptr<KeyboardManager> keyboard_manager_;
374 
375  // Used for temporarily storing the WM_TOUCH-provided touch points.
376  std::vector<TOUCHINPUT> touch_points_;
377 
378  // Implements IRawElementProviderFragmentRoot when UIA is enabled.
379  std::unique_ptr<ui::AXFragmentRootWin> ax_fragment_root_;
380 
381  // Allow WindowAXFragmentRootDelegate to access protected method.
383 
384  FML_DISALLOW_COPY_AND_ASSIGN(FlutterWindow);
385 };
386 
387 } // namespace flutter
388 
389 #endif // FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_WINDOW_H_
flutter::AlertPlatformNodeDelegate
Definition: alert_platform_node_delegate.h:18
flutter::WindowStateEvent
WindowStateEvent
An event representing a change in window state that may update the.
Definition: windows_lifecycle_manager.h:24
direct_manipulation.h
flutter::FlutterWindow::GetWindowHandle
virtual HWND GetWindowHandle() override
Definition: flutter_window.cc:456
alert_platform_node_delegate.h
flutter::FlutterWindow::GetCurrentHeight
UINT GetCurrentHeight()
Definition: flutter_window.cc:914
flutter::FlutterWindow::OnComposeBegin
virtual void OnComposeBegin()
Definition: flutter_window.cc:265
scancode
int scancode
Definition: keyboard_key_handler_unittests.cc:115
flutter::FlutterWindow::GetDpiScale
virtual float GetDpiScale() override
Definition: flutter_window.cc:167
windows_lifecycle_manager.h
geometry.h
was_down
bool was_down
Definition: keyboard_key_handler_unittests.cc:119
extended
bool extended
Definition: keyboard_key_handler_unittests.cc:118
flutter::FlutterWindow::Win32DispatchMessage
virtual UINT Win32DispatchMessage(UINT Msg, WPARAM wParam, LPARAM lParam) override
Definition: flutter_window.cc:472
flutter::FlutterWindow::OnThemeChange
virtual void OnThemeChange()
Definition: flutter_window.cc:344
windowsx_shim.h
flutter::FlutterWindow::OnPointerDown
virtual void OnPointerDown(double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, UINT button)
Definition: flutter_window.cc:213
flutter::FlutterWindow::OnCursorRectUpdated
virtual void OnCursorRectUpdated(const Rect &rect) override
Definition: flutter_window.cc:299
character
char32_t character
Definition: keyboard_key_handler_unittests.cc:117
flutter::KeyboardManager::WindowDelegate::KeyEventCallback
std::function< void(bool)> KeyEventCallback
Definition: keyboard_manager.h:54
flutter::FlutterWindow::FlutterWindow
FlutterWindow(int width, int height, std::shared_ptr< WindowsProcTable > windows_proc_table=nullptr, std::unique_ptr< TextInputManager > text_input_manager=nullptr)
Definition: flutter_window.cc:119
flutter::FlutterWindow::GetCurrentWidth
UINT GetCurrentWidth()
Definition: flutter_window.cc:910
flutter::FlutterWindow::NarrowToWide
std::wstring NarrowToWide(const char *source)
Definition: flutter_window.cc:478
flutter::FlutterWindow::OnImeEndComposition
virtual void OnImeEndComposition(UINT const message, WPARAM const wparam, LPARAM const lparam)
Definition: flutter_window.cc:883
flutter::KeyboardManager::WindowDelegate
Definition: keyboard_manager.h:52
flutter::WindowBindingHandlerDelegate
Definition: window_binding_handler_delegate.h:18
flutter::FlutterWindow::OnGetObject
virtual LRESULT OnGetObject(UINT const message, WPARAM const wparam, LPARAM const lparam)
Definition: flutter_window.cc:777
flutter::FlutterWindow::InitializeChild
void InitializeChild(const char *title, unsigned int width, unsigned int height)
Definition: flutter_window.cc:421
flutter::Rect
Definition: geometry.h:56
flutter::FlutterWindow::AbortImeComposing
virtual void AbortImeComposing()
Definition: flutter_window.cc:898
flutter::PhysicalWindowBounds
Definition: window_binding_handler.h:27
flutter::PointerLocation
Definition: window_binding_handler.h:34
text_input_manager.h
flutter::FlutterWindow::OnBitmapSurfaceUpdated
virtual bool OnBitmapSurfaceUpdated(const void *allocation, size_t row_bytes, size_t height) override
Definition: flutter_window.cc:311
flutter::FlutterWindow::OnPointerMove
virtual void OnPointerMove(double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, int modifiers_state)
Definition: flutter_window.cc:204
flutter::FlutterWindow::GetAxFragmentRootDelegate
virtual ui::AXFragmentRootDelegateWin * GetAxFragmentRootDelegate()
Definition: flutter_window.cc:348
flutter::FlutterWindow::OnText
virtual void OnText(const std::u16string &text) override
Definition: flutter_window.cc:250
flutter::FlutterWindow::GetAlert
virtual ui::AXPlatformNodeWin * GetAlert() override
Definition: flutter_window.cc:357
windows_proc_table.h
flutter::FlutterWindow::WindowAXFragmentRootDelegate
friend class WindowAXFragmentRootDelegate
Definition: flutter_window.h:382
flutter::FlutterWindow::direct_manipulation_owner_
std::unique_ptr< DirectManipulationOwner > direct_manipulation_owner_
Definition: flutter_window.h:278
flutter::FlutterWindow::Win32PeekMessage
virtual BOOL Win32PeekMessage(LPMSG lpMsg, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg) override
Definition: flutter_window.cc:460
flutter::FlutterWindow::OnPointerLeave
virtual void OnPointerLeave(double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id)
Definition: flutter_window.cc:239
flutter::FlutterWindow::GetCurrentDPI
UINT GetCurrentDPI()
Definition: flutter_window.cc:906
flutter::FlutterWindow::OnUpdateSemanticsEnabled
virtual void OnUpdateSemanticsEnabled(bool enabled)
Definition: flutter_window.cc:282
flutter::FlutterWindow::OnPointerUp
virtual void OnPointerUp(double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, UINT button)
Definition: flutter_window.cc:226
flutter::FlutterWindow::GetNativeViewAccessible
virtual gfx::NativeViewAccessible GetNativeViewAccessible()
Definition: flutter_window.cc:329
flutter::FlutterWindow::UpdateFlutterCursor
virtual void UpdateFlutterCursor(const std::string &cursor_name) override
Definition: flutter_window.cc:179
flutter::FlutterWindow::OnImeSetContext
virtual void OnImeSetContext(UINT const message, WPARAM const wparam, LPARAM const lparam)
Definition: flutter_window.cc:833
flutter_windows_view.h
text
std::u16string text
Definition: keyboard_unittests.cc:332
flutter::FlutterWindow::SetFlutterCursor
virtual void SetFlutterCursor(HCURSOR cursor) override
Definition: flutter_window.cc:183
flutter::FlutterWindow::~FlutterWindow
virtual ~FlutterWindow()
Definition: flutter_window.cc:151
flutter::FlutterWindow::SetView
virtual void SetView(WindowBindingHandlerDelegate *view) override
Definition: flutter_window.cc:156
flutter::FlutterWindow::GetPrimaryPointerLocation
virtual PointerLocation GetPrimaryPointerLocation() override
Definition: flutter_window.cc:337
flutter::FlutterWindow::OnComposeChange
virtual void OnComposeChange(const std::u16string &text, int cursor_pos)
Definition: flutter_window.cc:277
flutter::FlutterWindow::OnImeStartComposition
virtual void OnImeStartComposition(UINT const message, WPARAM const wparam, LPARAM const lparam)
Definition: flutter_window.cc:841
flutter::FlutterWindow::OnPaint
virtual void OnPaint()
Definition: flutter_window.cc:198
window_binding_handler.h
flutter::FlutterWindow::OnSetCursor
virtual void OnSetCursor()
Definition: flutter_window.cc:246
flutter::FlutterWindow::OnResetImeComposing
virtual void OnResetImeComposing() override
Definition: flutter_window.cc:307
flutter::FlutterWindow::OnWindowStateEvent
virtual void OnWindowStateEvent(WindowStateEvent event)
Definition: flutter_window.cc:362
flutter::FlutterWindow::OnKey
virtual void OnKey(int key, int scancode, int action, char32_t character, bool extended, bool was_down, KeyEventCallback callback) override
Definition: flutter_window.cc:254
flutter
Definition: accessibility_bridge_windows.cc:11
flutter::FlutterWindow::OnResize
virtual void OnResize(unsigned int width, unsigned int height)
Definition: flutter_window.cc:192
flutter::FlutterWindow::Win32MapVkToChar
virtual uint32_t Win32MapVkToChar(uint32_t virtual_key) override
Definition: flutter_window.cc:468
sequential_id_generator.h
flutter::FlutterWindow::GetAlertDelegate
virtual AlertPlatformNodeDelegate * GetAlertDelegate() override
Definition: flutter_window.cc:352
flutter::FlutterWindow::OnComposeCommit
virtual void OnComposeCommit()
Definition: flutter_window.cc:269
flutter::FlutterWindow::HandleMessage
LRESULT HandleMessage(UINT const message, WPARAM const wparam, LPARAM const lparam) noexcept
Definition: flutter_window.cc:525
flutter::FlutterWindow::alert_node_
std::unique_ptr< ui::AXPlatformNodeWin > alert_node_
Definition: flutter_window.h:274
flutter::FlutterWindow::OnImeRequest
virtual void OnImeRequest(UINT const message, WPARAM const wparam, LPARAM const lparam)
Definition: flutter_window.cc:890
flutter::FlutterWindow::GetScrollOffsetMultiplier
virtual float GetScrollOffsetMultiplier()
Definition: flutter_window.cc:918
flutter::SequentialIdGenerator
Definition: sequential_id_generator.h:20
flutter::FlutterWindow::Win32DefWindowProc
virtual LRESULT Win32DefWindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
Definition: flutter_window.cc:922
flutter::FlutterWindow::OnScroll
virtual void OnScroll(double delta_x, double delta_y, FlutterPointerDeviceKind device_kind, int32_t device_id)
Definition: flutter_window.cc:286
flutter::FlutterWindow::OnImeComposition
virtual void OnImeComposition(UINT const message, WPARAM const wparam, LPARAM const lparam)
Definition: flutter_window.cc:848
flutter::FlutterWindow::OnComposeEnd
virtual void OnComposeEnd()
Definition: flutter_window.cc:273
flutter::FlutterWindow::GetPhysicalWindowBounds
virtual PhysicalWindowBounds GetPhysicalWindowBounds() override
Definition: flutter_window.cc:175
flutter::WindowBindingHandler
Definition: window_binding_handler.h:40
message
Win32Message message
Definition: keyboard_unittests.cc:137
action
int action
Definition: keyboard_key_handler_unittests.cc:116
flutter::FlutterWindow
Definition: flutter_window.h:35
keyboard_manager.h
flutter::FlutterWindow::alert_delegate_
std::unique_ptr< AlertPlatformNodeDelegate > alert_delegate_
Definition: flutter_window.h:271
flutter::FlutterWindow::IsVisible
virtual bool IsVisible() override
Definition: flutter_window.cc:171
key
int key
Definition: keyboard_key_handler_unittests.cc:114
flutter::FlutterWindow::OnDpiScale
virtual void OnDpiScale(unsigned int dpi)
Definition: flutter_window.cc:188
callback
FlutterDesktopBinaryReply callback
Definition: flutter_windows_view_unittests.cc:48
flutter::FlutterWindow::UpdateCursorRect
virtual void UpdateCursorRect(const Rect &rect)
Definition: flutter_window.cc:902