Flutter Engine
window_state.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_STATE_H_
6 #define FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_WINDOW_STATE_H_
7 
8 #include "flutter/shell/platform/common/client_wrapper/include/flutter/plugin_registrar.h"
9 #include "flutter/shell/platform/common/incoming_message_dispatcher.h"
10 #include "flutter/shell/platform/embedder/embedder.h"
11 
12 // Structs backing the opaque references used in the C API.
13 //
14 // DO NOT ADD ANY NEW CODE HERE. These are legacy, and are being phased out
15 // in favor of objects that own and manage the relevant functionality.
16 
17 namespace flutter {
18 struct FlutterWindowsEngine;
19 struct FlutterWindowsView;
20 } // namespace flutter
21 
22 // Wrapper to distinguish the view controller ref from the view ref given out
23 // in the C API.
25  // The view that backs this state object.
26  std::unique_ptr<flutter::FlutterWindowsView> view;
27 };
28 
29 // Wrapper to distinguish the plugin registrar ref from the engine ref given out
30 // in the C API.
32  // The engine that owns this state object.
34 };
35 
36 // Wrapper to distinguish the messenger ref from the engine ref given out
37 // in the C API.
39  // The engine that owns this state object.
41 };
42 
43 #endif // FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_WINDOW_STATE_H_
std::unique_ptr< flutter::FlutterWindowsView > view
Definition: window_state.h:26