5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERVIEW_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERVIEW_H_
8 #import <Cocoa/Cocoa.h>
35 - (void)viewDidReshape:(nonnull NSView*)view;
40 - (BOOL)viewShouldAcceptFirstResponder:(nonnull NSView*)view;
53 - (nullable instancetype)initWithMTLDevice:(nonnull
id<MTLDevice>)device
54 commandQueue:(nonnull
id<MTLCommandQueue>)commandQueue
57 viewId:(int64_t)viewId NS_DESIGNATED_INITIALIZER;
59 - (nullable instancetype)initWithFrame:(NSRect)frameRect
60 pixelFormat:(nullable NSOpenGLPixelFormat*)format NS_UNAVAILABLE;
61 - (nonnull instancetype)initWithFrame:(NSRect)frameRect NS_UNAVAILABLE;
62 - (nullable instancetype)initWithCoder:(nonnull NSCoder*)coder NS_UNAVAILABLE;
78 - (void)setBackgroundColor:(nonnull NSColor*)color;
82 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERVIEW_H_