WKFullScreenWindowController.h [plain text]
#if ENABLE(FULLSCREEN_API)
#import "GenericCallback.h"
#import <wtf/RetainPtr.h>
namespace WebKit {
class LayerTreeContext;
class WebPageProxy;
}
namespace WebCore {
class SleepDisabler;
class IntRect;
}
@class WKView;
@class WebCoreFullScreenPlaceholderView;
typedef enum FullScreenState : NSInteger FullScreenState;
@interface WKFullScreenWindowController : NSWindowController<NSWindowDelegate> {
@private
NSView *_webView; WebKit::WebPageProxy* _page;
RetainPtr<WebCoreFullScreenPlaceholderView> _webViewPlaceholder;
RetainPtr<NSView> _clipView;
RetainPtr<NSView> _backgroundView;
NSRect _initialFrame;
NSRect _finalFrame;
RetainPtr<NSTimer> _watchdogTimer;
RetainPtr<NSArray> _savedConstraints;
FullScreenState _fullScreenState;
double _savedScale;
RefPtr<WebKit::VoidCallback> _repaintCallback;
float _savedTopContentInset;
}
@property (readonly) NSRect initialFrame;
@property (readonly) NSRect finalFrame;
@property (assign) NSArray *savedConstraints;
- (id)initWithWindow:(NSWindow *)window webView:(NSView *)webView page:(WebKit::WebPageProxy&)page;
- (WebCoreFullScreenPlaceholderView*)webViewPlaceholder;
- (BOOL)isFullScreen;
- (void)enterFullScreen:(NSScreen *)screen;
- (void)exitFullScreen;
- (void)requestExitFullScreen;
- (void)close;
- (void)beganEnterFullScreenWithInitialFrame:(const WebCore::IntRect&)initialFrame finalFrame:(const WebCore::IntRect&)finalFrame;
- (void)beganExitFullScreenWithInitialFrame:(const WebCore::IntRect&)initialFrame finalFrame:(const WebCore::IntRect&)finalFrame;
@end
#endif