| Index: chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.h
|
| diff --git a/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.h b/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.h
|
| index 07dfc1a785e313c9954beacdcc7c4c74aab04b3b..d23132ce3582da8a54849e7c1859ce06ef61923e 100644
|
| --- a/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.h
|
| +++ b/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.h
|
| @@ -8,22 +8,29 @@
|
| #include "base/memory/scoped_nsobject.h"
|
| #include "googleurl/src/gurl.h"
|
|
|
| -@class AnimatableView;
|
| class TabContentsWrapper;
|
| @class BrowserWindowController;
|
| class Browser;
|
| +@class GTMUILocalizerAndLayoutTweaker;
|
|
|
| // The FullscreenExitBubbleController manages the bubble that tells the user
|
| // how to escape fullscreen mode. The bubble only appears when a tab requests
|
| // fullscreen mode via webkitRequestFullScreen().
|
| @interface FullscreenExitBubbleController :
|
| - NSViewController<NSTextViewDelegate, NSAnimationDelegate> {
|
| + NSWindowController<NSTextViewDelegate, NSAnimationDelegate> {
|
| @private
|
| BrowserWindowController* owner_; // weak
|
| Browser* browser_; // weak
|
| + GURL url_;
|
| + BOOL showButtons_;
|
|
|
| @protected
|
| IBOutlet NSTextField* exitLabelPlaceholder_;
|
| + IBOutlet NSTextField* messageLabel_;
|
| + IBOutlet NSButton* allowButton_;
|
| + IBOutlet NSButton* denyButton_;
|
| + IBOutlet InfoBubbleView* bubble_;
|
| + IBOutlet GTMUILocalizerAndLayoutTweaker* tweaker_;
|
|
|
| // Text fields don't work as well with embedded links as text views, but
|
| // text views cannot conveniently be created in IB. The xib file contains
|
| @@ -35,12 +42,18 @@ class Browser;
|
| scoped_nsobject<NSAnimation> hideAnimation_;
|
| };
|
|
|
| -- (id)initWithOwner:(BrowserWindowController*)owner browser:(Browser*)browser;
|
| +// Initializes a new InfoBarController.
|
| +- (id)initWithOwner:(BrowserWindowController*)owner
|
| + browser:(Browser*)browser
|
| + url:(const GURL&)url
|
| + askPermission:(BOOL)askPermission;
|
| +
|
| +- (void)allow:(id)sender;
|
| +- (void)deny:(id)sender;
|
| +
|
| +- (void)showWindow;
|
|
|
| // Positions the fullscreen exit bubble in the top-center of the window.
|
| - (void)positionInWindowAtTop:(CGFloat)maxY width:(CGFloat)maxWidth;
|
|
|
| -// Returns a pointer to this controller's view, cast as an AnimatableView.
|
| -- (AnimatableView*)animatableView;
|
| -
|
| @end
|
|
|