diff options
Diffstat (limited to 'chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm')
-rw-r--r-- | chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm b/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm index 88ebc6d..3f0e1d8 100644 --- a/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm +++ b/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm @@ -96,8 +96,6 @@ const float kHideDuration = 0.7; DCHECK(fullscreen_bubble::ShowButtonsForType(bubbleType_)); browser_->OnAcceptFullscreenPermission( url_, bubbleType_); - [self showButtons:NO]; - [self hideSoon]; } - (void)deny:(id)sender { @@ -148,36 +146,6 @@ const float kHideDuration = 0.7; [[self window] setFrameOrigin:origin]; } -- (void)updateURL:(const GURL&)url - bubbleType:(FullscreenExitBubbleType)bubbleType { - bubbleType_ = bubbleType; - - [messageLabel_ setStringValue:[self getLabelText]]; - - // Make sure the bubble is visible. - [hideAnimation_.get() stopAnimation]; - [hideTimer_ invalidate]; - [[[self window] animator] setAlphaValue:1.0]; - - if (fullscreen_bubble::ShowButtonsForType(bubbleType)) { - [denyButton_ setTitle:SysUTF16ToNSString( - fullscreen_bubble::GetDenyButtonTextForType(bubbleType))]; - [self showButtons:YES]; - - // Reenable mouse events if they were disabled previously. - [[self window] setIgnoresMouseEvents:NO]; - } else { - [self showButtons:NO]; - // Only button-less bubbles auto-hide. - [self hideSoon]; - } - // TODO(jeremya): show "Press Esc to exit" instead of a link on mouselock. - - // Relayout. A bit jumpy, but functional. - [tweaker_ tweakUI:[self window]]; - [owner_ layoutSubviews]; -} - // Called when someone clicks on the embedded link. - (BOOL) textView:(NSTextView*)textView clickedOnLink:(id)link |