5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_PLATFORM_VIEW_IOS_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_PLATFORM_VIEW_IOS_H_
10 #include "flutter/fml/closure.h"
11 #include "flutter/fml/macros.h"
12 #include "flutter/shell/common/platform_view.h"
42 const std::shared_ptr<IOSContext>& context,
44 const flutter::TaskRunners& task_runners);
47 PlatformView::Delegate& delegate,
49 const flutter::TaskRunners& task_runners,
50 const std::shared_ptr<const fml::SyncSwitch>& is_gpu_disabled_sync_switch);
101 flutter::SemanticsNodeUpdates update,
102 flutter::CustomAccessibilityActionUpdates actions) override;
115 const std::vector<std::
string>& supported_locale_data) override;
121 return platform_message_handler_;
125 return platform_message_handler_;
134 void ApplyLocaleToOwnerController();
135 void EnsureAccessibilityBridge();
136 void PostSemanticsUpdateNotification();
140 class ScopedObserver {
144 void reset(id<NSObject> observer);
145 ScopedObserver(
const ScopedObserver&) =
delete;
146 ScopedObserver& operator=(
const ScopedObserver&) =
delete;
149 id<NSObject> observer_ = nil;
153 std::string application_locale_;
156 std::mutex ios_surface_mutex_;
157 std::unique_ptr<IOSSurface> ios_surface_;
158 std::shared_ptr<IOSContext> ios_context_;
160 std::unique_ptr<AccessibilityBridge> accessibility_bridge_;
161 bool semantics_tree_enabled_ =
false;
162 ScopedObserver dealloc_view_controller_observer_;
163 std::vector<std::string> platform_resolved_locale_;
164 std::shared_ptr<PlatformMessageHandlerIos> platform_message_handler_;
Manages the lifetime of the on-screen and off-screen rendering contexts on iOS. On-screen contexts ar...