1 // Copyright 2013 The Flutter Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTER_OVERLAY_VIEW_H_ 6 #define SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTER_OVERLAY_VIEW_H_ 7 8 #include <UIKit/UIKit.h> 9 10 #include <memory> 11 12 #import "FlutterPlatformViews_Internal.h" 13 14 #include "flutter/fml/memory/weak_ptr.h" 15 #include "flutter/shell/common/shell.h" 16 #include "flutter/shell/platform/darwin/ios/ios_gl_context.h" 17 #include "flutter/shell/platform/darwin/ios/ios_surface.h" 18 #include "flutter/shell/platform/darwin/ios/ios_surface_gl.h" 19 20 @interface FlutterOverlayView : UIView 21 22 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; 23 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; 24 25 - (instancetype)init NS_DESIGNATED_INITIALIZER; 26 - (instancetype)initWithContentsScale:(CGFloat)contentsScale; 27 - (std::unique_ptr<flutter::IOSSurface>)createSoftwareSurface; 28 - (std::unique_ptr<flutter::IOSSurfaceGL>)createGLSurfaceWithContext: 29 (std::shared_ptr<flutter::IOSGLContext>)gl_context; 30 31 @end 32 33 #endif // SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTER_OVERLAY_VIEW_H_ 34