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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.mm

Issue 7740044: Implement fullscreen info bubble on Win and Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win work 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/browser_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index 21b475f943fccdb7a8507593a522ca59debf3c05..99fc4bb6bef010e9f01a279cb13067730f272f2c 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -1907,7 +1907,9 @@ willAnimateFromState:(bookmarks::VisualState)oldState
// "Enter Full Screen" menu item. On Snow Leopard, this function is never
// called by the UI directly, but it provides the implementation for
// |-setPresentationMode:|.
-- (void)setFullscreen:(BOOL)fullscreen {
+- (void)setFullscreen:(BOOL)fullscreen
+ forURL:(const GURL&)url
+ showButtons:(BOOL)show_buttons {
if (fullscreen == [self isFullscreen])
return;
@@ -1925,8 +1927,9 @@ willAnimateFromState:(bookmarks::VisualState)oldState
[self exitFullscreenForSnowLeopardOrEarlier];
}
- if (fullscreen) {
- [self showFullscreenExitBubbleIfNecessary];
+ if (fullscreen && !url.is_empty()) {
+ [self showFullscreenExitBubbleIfNecessaryWithURL:url
+ showButtons:show_buttons];
} else {
[self destroyFullscreenExitBubbleIfNecessary];
}
@@ -1950,11 +1953,13 @@ willAnimateFromState:(bookmarks::VisualState)oldState
// set presentation mode. On Snow Leopard, this function is called by the
// "Enter Presentation Mode" menu item, and triggering presentation mode always
// moves the user into fullscreen mode.
-- (void)setPresentationMode:(BOOL)presentationMode {
+- (void)setPresentationMode:(BOOL)presentationMode
+ url:(const GURL&)url
+ showButtons:(BOOL)show_buttons {
// Presentation mode on Leopard and Snow Leopard maps directly to fullscreen
// mode.
if (base::mac::IsOSSnowLeopardOrEarlier()) {
- [self setFullscreen:presentationMode];
+ [self setFullscreen:presentationMode forURL:url showButtons:show_buttons];
return;
}
@@ -1985,7 +1990,8 @@ willAnimateFromState:(bookmarks::VisualState)oldState
[static_cast<FramedBrowserWindow*>(window) toggleSystemFullScreen];
}
- [self showFullscreenExitBubbleIfNecessary];
+ [self showFullscreenExitBubbleIfNecessaryWithURL:url
+ showButtons:show_buttons];
} else {
if (enteredPresentationModeFromFullscreen_) {
// The window is currently in fullscreen mode, but the user is choosing to

Powered by Google App Engine
This is Rietveld 408576698