@@ -33,7 +33,7 @@ class Win32FlutterWindow : public Win32Window {
3333 // Create flutter Window for use as child window
3434 Win32FlutterWindow (int width, int height);
3535
36- ~Win32FlutterWindow ();
36+ virtual ~Win32FlutterWindow ();
3737
3838 static FlutterDesktopViewControllerRef CreateWin32FlutterWindow (int width,
3939 int height);
@@ -65,9 +65,6 @@ class Win32FlutterWindow : public Win32Window {
6565 // |Win32Window|
6666 void OnScroll (double delta_x, double delta_y) override ;
6767
68- // |Win32Window|
69- void OnClose () override ;
70-
7168 // |Win32Window|
7269 void OnFontChange () override ;
7370
@@ -85,9 +82,6 @@ class Win32FlutterWindow : public Win32Window {
8582 // Create a surface for Flutter engine to render into.
8683 void CreateRenderSurface ();
8784
88- // Destroy current rendering surface if one has been allocated.
89- void DestroyRenderSurface ();
90-
9185 // Callbacks for clearing context, settings context and swapping buffers.
9286 bool ClearContext ();
9387 bool MakeCurrent ();
@@ -99,6 +93,9 @@ class Win32FlutterWindow : public Win32Window {
9993 void SendWindowMetrics ();
10094
10195 private:
96+ // Destroy current rendering surface if one has been allocated.
97+ void DestroyRenderSurface ();
98+
10299 // Reports a mouse movement to Flutter engine.
103100 void SendPointerMove (double x, double y);
104101
@@ -174,9 +171,6 @@ class Win32FlutterWindow : public Win32Window {
174171
175172 // should we forword input messages or not
176173 bool process_events_ = false ;
177-
178- // flag indicating if the message loop should be running
179- bool messageloop_running_ = false ;
180174};
181175
182176} // namespace flutter
0 commit comments