Declare native wrapper classes in Fuchsia packages as base classes (flutter/engine#46305)

This prohibits other implementations of the class interface that can not act as native wrappers.

See https://github.com/flutter/flutter/issues/123756
This commit is contained in:
Jason Simmons 2023-09-27 08:44:58 -07:00 committed by GitHub
parent aaea48626e
commit bfc3acee24
4 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ part of zircon;
// ignore_for_file: public_member_api_docs
@pragma('vm:entry-point')
class Handle extends NativeFieldWrapperClass1 {
base class Handle extends NativeFieldWrapperClass1 {
// No public constructor - this can only be created from native code.
@pragma('vm:entry-point')
Handle._();

View File

@ -8,7 +8,7 @@ part of zircon;
// ignore_for_file: public_member_api_docs
@pragma('vm:entry-point')
class HandleDisposition extends NativeFieldWrapperClass1 {
base class HandleDisposition extends NativeFieldWrapperClass1 {
@pragma('vm:entry-point')
HandleDisposition(int operation, Handle handle, int type, int rights) {
_constructor(operation, handle, type, rights);

View File

@ -10,7 +10,7 @@ part of zircon;
typedef AsyncWaitCallback = void Function(int status, int pending);
@pragma('vm:entry-point')
class HandleWaiter extends NativeFieldWrapperClass1 {
base class HandleWaiter extends NativeFieldWrapperClass1 {
// Private constructor.
@pragma('vm:entry-point')
HandleWaiter._();

View File

@ -193,7 +193,7 @@ class MapResult extends _Result {
}
@pragma('vm:entry-point')
class System extends NativeFieldWrapperClass1 {
base class System extends NativeFieldWrapperClass1 {
// No public constructor - this only has static methods.
System._();