@@ -79,73 +79,7 @@ class Win32FlutterWindow : public Win32Window,
79
79
// |GetPhysicalHeight|
80
80
float GetPhysicalHeight () override ;
81
81
82
- // Configures the window instance with an instance of a running Flutter engine
83
- // returning a configured FlutterDesktopWindowControllerRef.
84
- void SetState (FLUTTER_API_SYMBOL(FlutterEngine) state);
85
-
86
- // Returns the currently configured Plugin Registrar.
87
- FlutterDesktopPluginRegistrarRef GetRegistrar ();
88
-
89
- // Callback passed to Flutter engine for notifying window of platform
90
- // messages.
91
- void HandlePlatformMessage (const FlutterPlatformMessage*);
92
-
93
- // Create a surface for Flutter engine to render into.
94
- void CreateRenderSurface ();
95
-
96
- // Callbacks for clearing context, settings context and swapping buffers.
97
- bool ClearContext ();
98
- bool MakeCurrent ();
99
- bool MakeResourceCurrent ();
100
- bool SwapBuffers ();
101
-
102
- // Sends a window metrics update to the Flutter engine using current window
103
- // dimensions in physical
104
- void SendWindowMetrics ();
105
-
106
- private:
107
- // Destroy current rendering surface if one has been allocated.
108
- void DestroyRenderSurface ();
109
-
110
- // Reports a mouse movement to Flutter engine.
111
- void SendPointerMove (double x, double y);
112
-
113
- // Reports mouse press to Flutter engine.
114
- void SendPointerDown (double x, double y);
115
-
116
- // Reports mouse release to Flutter engine.
117
- void SendPointerUp (double x, double y);
118
-
119
- // Reports mouse left the window client area.
120
- //
121
- // Win32 api doesn't have "mouse enter" event. Therefore, there is no
122
- // SendPointerEnter method. A mouse enter event is tracked then the "move"
123
- // event is called.
124
- void SendPointerLeave ();
125
-
126
- // Reports text input to Flutter engine.
127
- void SendText (const std::u16string& text);
128
-
129
- // Reports a raw keyboard message to Flutter engine.
130
- void SendKey (int key, int scancode, int action, char32_t character);
131
-
132
- // Reports scroll wheel events to Flutter engine.
133
- void SendScroll (double delta_x, double delta_y);
134
-
135
- // Updates |event_data| with the current location of the mouse cursor.
136
- void SetEventLocationFromCursorPosition (FlutterPointerEvent* event_data);
137
-
138
- // Set's |event_data|'s phase to either kMove or kHover depending on the
139
- // current
140
- // primary mouse button state.
141
- void SetEventPhaseFromCursorButtonState (FlutterPointerEvent* event_data);
142
-
143
- // Sends a pointer event to the Flutter engine based on givern data. Since
144
- // all input messages are passed in physical pixel values, no translation is
145
- // needed before passing on to engine.
146
- void SendPointerEventWithData (const FlutterPointerEvent& event_data);
147
-
148
- // state of the mouse button
82
+ // state of the mouse button
149
83
bool pointer_is_down_ = false ;
150
84
151
85
// The handle to the Flutter engine instance.
0 commit comments