The FlutterWindow is one of the fundamental types of the Windows embedder. It listens to the Windows event loop, processes keyboard events, handles IME composition, accessibility, and more.
On top of all of this, it is also used to mock win32 APIs:
The WindowsProcTable was introduced to allow mocking win32 APIs. FlutterWindow methods that exist for mocking purposes should be moved to the WindowsProcTable.
Background
The
FlutterWindow
is one of the fundamental types of the Windows embedder. It listens to the Windows event loop, processes keyboard events, handles IME composition, accessibility, and more.On top of all of this, it is also used to mock win32 APIs:
These are debatable candidates:
Solution
The
WindowsProcTable
was introduced to allow mocking win32 APIs.FlutterWindow
methods that exist for mocking purposes should be moved to theWindowsProcTable
.