WKFullScreenWindowController.h [plain text]
#if ENABLE(FULLSCREEN_API)
#import <wtf/OwnPtr.h>
#import <wtf/RetainPtr.h>
namespace WebKit {
class LayerTreeContext;
}
namespace WebCore {
class DisplaySleepDisabler;
class IntRect;
}
@class WKView;
@class WebCoreFullScreenPlaceholderView;
@class WebWindowScaleAnimation;
@class WebWindowFadeAnimation;
typedef enum FullScreenState : NSInteger FullScreenState;
@interface WKFullScreenWindowController : NSWindowController<NSWindowDelegate> {
@private
WKView *_webView;
RetainPtr<WebCoreFullScreenPlaceholderView> _webViewPlaceholder;
RetainPtr<WebWindowScaleAnimation> _scaleAnimation;
RetainPtr<WebWindowFadeAnimation> _fadeAnimation;
RetainPtr<NSWindow> _backgroundWindow;
NSRect _initialFrame;
NSRect _finalFrame;
RetainPtr<NSTimer> _watchdogTimer;
FullScreenState _fullScreenState;
double _savedScale;
}
- (WKView*)webView;
- (void)setWebView:(WKView*)webView;
- (WebCoreFullScreenPlaceholderView*)webViewPlaceholder;
- (BOOL)isFullScreen;
- (void)enterFullScreen:(NSScreen *)screen;
- (void)exitFullScreen;
- (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