Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.h

Issue 7740044: Implement fullscreen info bubble on Win and Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix license Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..998c907559d251f66c1fd7f236e35fa0e70bed76 100644
--- a/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.h
+++ b/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.h
@@ -8,22 +8,30 @@
#include "base/memory/scoped_nsobject.h"
#include "googleurl/src/gurl.h"
-@class AnimatableView;
class TabContentsWrapper;
@class BrowserWindowController;
class Browser;
+@class GTMUILocalizerAndLayoutTweaker;
+@class InfoBubbleView;
// 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 +43,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

Powered by Google App Engine
This is Rietveld 408576698