diff --git a/engine/src/flutter/lib/ui/channel_buffers.dart b/engine/src/flutter/lib/ui/channel_buffers.dart index 34ae394c44..ae9fbd78c9 100644 --- a/engine/src/flutter/lib/ui/channel_buffers.dart +++ b/engine/src/flutter/lib/ui/channel_buffers.dart @@ -330,7 +330,8 @@ class ChannelBuffers { 'framework has had an opportunity to register a listener. See the ChannelBuffers ' 'API documentation for details on how to configure the channel to expect more ' 'messages, or to expect messages to get discarded:\n' - ' https://api.flutter.dev/flutter/dart-ui/ChannelBuffers-class.html' + ' https://api.flutter.dev/flutter/dart-ui/ChannelBuffers-class.html\n' + 'The capacity of the $name channel is ${channel._capacity} message${channel._capacity != 1 ? 's' : ''}.', ); } } diff --git a/engine/src/flutter/lib/ui/window/platform_configuration.cc b/engine/src/flutter/lib/ui/window/platform_configuration.cc index 4e6e583745..4a9f3fb85a 100644 --- a/engine/src/flutter/lib/ui/window/platform_configuration.cc +++ b/engine/src/flutter/lib/ui/window/platform_configuration.cc @@ -379,17 +379,17 @@ void PlatformConfigurationNativeApi::SetIsolateDebugName( UIDartState::Current()->SetDebugName(name); } -Dart_PerformanceMode PlatformConfigurationNativeApi::current_performace_mode_ = +Dart_PerformanceMode PlatformConfigurationNativeApi::current_performance_mode_ = Dart_PerformanceMode_Default; Dart_PerformanceMode PlatformConfigurationNativeApi::GetDartPerformanceMode() { - return current_performace_mode_; + return current_performance_mode_; } int PlatformConfigurationNativeApi::RequestDartPerformanceMode(int mode) { UIDartState::ThrowIfUIOperationsProhibited(); - current_performace_mode_ = static_cast(mode); - return Dart_SetPerformanceMode(current_performace_mode_); + current_performance_mode_ = static_cast(mode); + return Dart_SetPerformanceMode(current_performance_mode_); } Dart_Handle PlatformConfigurationNativeApi::GetPersistentIsolateData() { diff --git a/engine/src/flutter/lib/ui/window/platform_configuration.h b/engine/src/flutter/lib/ui/window/platform_configuration.h index 381b8e02e1..4428e2e40d 100644 --- a/engine/src/flutter/lib/ui/window/platform_configuration.h +++ b/engine/src/flutter/lib/ui/window/platform_configuration.h @@ -30,7 +30,7 @@ class Scene; /// @brief An enum for defining the different kinds of accessibility features /// that can be enabled by the platform. /// -/// Must match the `AccessibilityFeatureFlag` enum in framework. +/// Must match the `AccessibilityFeatures` class in framework. enum class AccessibilityFeatureFlag : int32_t { kAccessibleNavigation = 1 << 0, kInvertColors = 1 << 1, @@ -538,7 +538,7 @@ class PlatformConfigurationNativeApi { static void RegisterBackgroundIsolate(int64_t root_isolate_token); private: - static Dart_PerformanceMode current_performace_mode_; + static Dart_PerformanceMode current_performance_mode_; }; } // namespace flutter diff --git a/engine/src/flutter/shell/platform/common/client_wrapper/include/flutter/plugin_registrar.h b/engine/src/flutter/shell/platform/common/client_wrapper/include/flutter/plugin_registrar.h index 858119e38b..15cf99689a 100644 --- a/engine/src/flutter/shell/platform/common/client_wrapper/include/flutter/plugin_registrar.h +++ b/engine/src/flutter/shell/platform/common/client_wrapper/include/flutter/plugin_registrar.h @@ -49,8 +49,8 @@ class PluginRegistrar { // Takes ownership of |plugin|. // // Plugins are not required to call this method if they have other lifetime - // management, but this is a convient place for plugins to be owned to ensure - // that they stay valid for any registered callbacks. + // management, but this is a convenient place for plugins to be owned to + // ensure that they stay valid for any registered callbacks. void AddPlugin(std::unique_ptr plugin); protected: diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h b/engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h index e86ce58344..b270414900 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h @@ -28,7 +28,7 @@ NS_ASSUME_NONNULL_BEGIN /** * Called if this has been registered for `UIApplicationDelegate` callbacks. * - * @return `NO` if this vetoes application launch. + * @return `NO` if this vetos application launch. */ - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions; @@ -36,7 +36,7 @@ NS_ASSUME_NONNULL_BEGIN /** * Called if this has been registered for `UIApplicationDelegate` callbacks. * - * @return `NO` if this vetoes application launch. + * @return `NO` if this vetos application launch. */ - (BOOL)application:(UIApplication*)application willFinishLaunchingWithOptions:(NSDictionary*)launchOptions; diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterPluginAppLifeCycleDelegate.h b/engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterPluginAppLifeCycleDelegate.h index 883dccb867..ba317f4214 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterPluginAppLifeCycleDelegate.h +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterPluginAppLifeCycleDelegate.h @@ -16,17 +16,17 @@ FLUTTER_DARWIN_EXPORT @interface FlutterPluginAppLifeCycleDelegate : NSObject /** - * Registers `delegate` to receive life cycle callbacks via this FlutterPluginAppLifecycleDelegate + * Registers `delegate` to receive life cycle callbacks via this FlutterPluginAppLifeCycleDelegate * as long as it is alive. * - * `delegate` will only referenced weakly. + * `delegate` will only be referenced weakly. */ - (void)addDelegate:(NSObject*)delegate; /** * Calls all plugins registered for `UIApplicationDelegate` callbacks. * - * @return `NO` if any plugin vetoes application launch. + * @return `NO` if any plugin vetos application launch. */ - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions; @@ -34,7 +34,7 @@ FLUTTER_DARWIN_EXPORT /** * Calls all plugins registered for `UIApplicationDelegate` callbacks. * - * @return `NO` if any plugin vetoes application launch. + * @return `NO` if any plugin vetos application launch. */ - (BOOL)application:(UIApplication*)application willFinishLaunchingWithOptions:(NSDictionary*)launchOptions;