| 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
|
|
|