diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterEngine.h b/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterEngine.h index 7c7bea7158..f854976ebd 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterEngine.h +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterEngine.h @@ -17,17 +17,6 @@ // TODO: Merge this file with the iOS FlutterEngine.h. -/** - * The view ID for APIs that don't support multi-view. - * - * Some single-view APIs will eventually be replaced by their multi-view - * variant. During the deprecation period, the single-view APIs will coexist with - * and work with the multi-view APIs as if the other views don't exist. For - * backward compatibility, single-view APIs will always operate on the view with - * this ID. Also, the first view assigned to the engine will also have this ID. - */ -extern const uint64_t kFlutterDefaultViewId; - @class FlutterViewController; /** diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterPluginRegistrarMacOS.h b/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterPluginRegistrarMacOS.h index 67a843474b..8e99ad83eb 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterPluginRegistrarMacOS.h +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterPluginRegistrarMacOS.h @@ -44,11 +44,6 @@ FLUTTER_DARWIN_EXPORT */ @property(nullable, readonly) NSView* view; -/** - * The `NSView` associated with the given view ID, if any. - */ -- (nullable NSView*)viewForId:(uint64_t)viewId; - /** * Registers |delegate| to receive handleMethodCall:result: callbacks for the given |channel|. */ diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h b/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h index 401a6ae5eb..b0d7a9f8bd 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h @@ -53,16 +53,6 @@ FLUTTER_DARWIN_EXPORT */ @property(nonatomic, nonnull, readonly) FlutterEngine* engine; -/** - * The identifier for this view controller. - * - * The ID is assigned by FlutterEngine when the view controller is attached. - * - * If the view controller is unattached (see FlutterViewController#attached), - * reading this property throws an assertion. - */ -@property(nonatomic, readonly) uint64_t viewId; - /** * The style of mouse tracking to use for the view. Defaults to * FlutterMouseTrackingModeInKeyWindow. diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterViewController_Internal.h b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterViewController_Internal.h index 1281b60694..467bf644c9 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterViewController_Internal.h +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterViewController_Internal.h @@ -13,6 +13,16 @@ @interface FlutterViewController () +/** + * The identifier for this view controller. + * + * The ID is assigned by FlutterEngine when the view controller is attached. + * + * If the view controller is unattached (see FlutterViewController#attached), + * reading this property throws an assertion. + */ +@property(nonatomic, readonly) uint64_t viewId; + // The FlutterView for this view controller. @property(nonatomic, readonly, nullable) FlutterView* flutterView;