| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #import "base/mac/cocoa_protocols.h" | 7 #import "base/mac/cocoa_protocols.h" |
| 8 #include "base/memory/scoped_nsobject.h" | 8 #include "base/memory/scoped_nsobject.h" |
| 9 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" | 9 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" |
| 10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| 11 | 11 |
| 12 class TabContentsWrapper; | |
| 13 @class BrowserWindowController; | 12 @class BrowserWindowController; |
| 14 class Browser; | 13 class Browser; |
| 15 @class GTMUILocalizerAndLayoutTweaker; | 14 @class GTMUILocalizerAndLayoutTweaker; |
| 16 @class InfoBubbleView; | 15 @class InfoBubbleView; |
| 17 | 16 |
| 18 // The FullscreenExitBubbleController manages the bubble that tells the user | 17 // The FullscreenExitBubbleController manages the bubble that tells the user |
| 19 // how to escape fullscreen mode. The bubble only appears when a tab requests | 18 // how to escape fullscreen mode. The bubble only appears when a tab requests |
| 20 // fullscreen mode via webkitRequestFullScreen(). | 19 // fullscreen mode via webkitRequestFullScreen(). |
| 21 @interface FullscreenExitBubbleController : | 20 @interface FullscreenExitBubbleController : |
| 22 NSWindowController<NSTextViewDelegate, NSAnimationDelegate> { | 21 NSWindowController<NSTextViewDelegate, NSAnimationDelegate> { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 - (void)closeImmediately; | 57 - (void)closeImmediately; |
| 59 | 58 |
| 60 // Positions the fullscreen exit bubble in the top-center of the window. | 59 // Positions the fullscreen exit bubble in the top-center of the window. |
| 61 - (void)positionInWindowAtTop:(CGFloat)maxY width:(CGFloat)maxWidth; | 60 - (void)positionInWindowAtTop:(CGFloat)maxY width:(CGFloat)maxWidth; |
| 62 | 61 |
| 63 // Updates the bubble contents with |url| and |bubbleType|. | 62 // Updates the bubble contents with |url| and |bubbleType|. |
| 64 - (void)updateURL:(const GURL&)url | 63 - (void)updateURL:(const GURL&)url |
| 65 bubbleType:(FullscreenExitBubbleType)bubbleType; | 64 bubbleType:(FullscreenExitBubbleType)bubbleType; |
| 66 | 65 |
| 67 @end | 66 @end |
| OLD | NEW |