| Flutter Windows Embedder |

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.
24 struct FlutterDesktopViewControllerState {
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.
31 struct FlutterDesktopPluginRegistrar {
32 // The engine that owns this state object.
33 flutter::FlutterWindowsEngine* engine = nullptr;
34 };
35
36 #endif // FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_WINDOW_STATE_H_
plugin_registrar.h
flutter::FlutterWindowsEngine
Definition: flutter_windows_engine.h:78
flutter
Definition: accessibility_bridge_windows.cc:11
FlutterDesktopPluginRegistrar::engine
flutter::FlutterWindowsEngine * engine
Definition: window_state.h:33
FlutterDesktopViewControllerState::view
std::unique_ptr< flutter::FlutterWindowsView > view
Definition: window_state.h:26
incoming_message_dispatcher.h
FlutterDesktopPluginRegistrar
Definition: window_state.h:31
FlutterDesktopViewControllerState
Definition: window_state.h:24