OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
7 | 7 |
8 // A class acting as the Objective-C controller for the Browser | 8 // A class acting as the Objective-C controller for the Browser |
9 // object. Handles interactions between Cocoa and the cross-platform | 9 // object. Handles interactions between Cocoa and the cross-platform |
10 // code. Each window has a single toolbar and, by virtue of being a | 10 // code. Each window has a single toolbar and, by virtue of being a |
(...skipping 20 matching lines...) Expand all Loading... |
31 class BrowserWindowCocoa; | 31 class BrowserWindowCocoa; |
32 @class DevToolsController; | 32 @class DevToolsController; |
33 @class DownloadShelfController; | 33 @class DownloadShelfController; |
34 class ExtensionKeybindingRegistryCocoa; | 34 class ExtensionKeybindingRegistryCocoa; |
35 @class FindBarCocoaController; | 35 @class FindBarCocoaController; |
36 @class FullscreenModeController; | 36 @class FullscreenModeController; |
37 @class FullscreenWindow; | 37 @class FullscreenWindow; |
38 @class InfoBarContainerController; | 38 @class InfoBarContainerController; |
39 class LocationBarViewMac; | 39 class LocationBarViewMac; |
40 @class OverlayableContentsController; | 40 @class OverlayableContentsController; |
| 41 class PermissionBubbleCocoa; |
41 @class PresentationModeController; | 42 @class PresentationModeController; |
42 class StatusBubbleMac; | 43 class StatusBubbleMac; |
43 @class TabStripController; | 44 @class TabStripController; |
44 @class TabStripView; | 45 @class TabStripView; |
45 @class ToolbarController; | 46 @class ToolbarController; |
46 | 47 |
47 namespace content { | 48 namespace content { |
48 class WebContents; | 49 class WebContents; |
49 } | 50 } |
50 | 51 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 115 |
115 // Lazily created view which draws the background for the floating set of bars | 116 // Lazily created view which draws the background for the floating set of bars |
116 // in presentation mode (for window types having a floating bar; it remains | 117 // in presentation mode (for window types having a floating bar; it remains |
117 // nil for those which don't). | 118 // nil for those which don't). |
118 base::scoped_nsobject<NSView> floatingBarBackingView_; | 119 base::scoped_nsobject<NSView> floatingBarBackingView_; |
119 | 120 |
120 // The borderless window used in fullscreen mode. Lion reuses the original | 121 // The borderless window used in fullscreen mode. Lion reuses the original |
121 // window in fullscreen mode, so this is always nil on Lion. | 122 // window in fullscreen mode, so this is always nil on Lion. |
122 base::scoped_nsobject<NSWindow> fullscreenWindow_; | 123 base::scoped_nsobject<NSWindow> fullscreenWindow_; |
123 | 124 |
| 125 // The Cocoa implementation of the PermissionBubbleView. |
| 126 scoped_ptr<PermissionBubbleCocoa> permissionBubbleCocoa_; |
| 127 |
124 // Tracks whether presentation mode was entered from fullscreen mode or | 128 // Tracks whether presentation mode was entered from fullscreen mode or |
125 // directly from normal windowed mode. Used to determine what to do when | 129 // directly from normal windowed mode. Used to determine what to do when |
126 // exiting presentation mode. | 130 // exiting presentation mode. |
127 BOOL enteredPresentationModeFromFullscreen_; | 131 BOOL enteredPresentationModeFromFullscreen_; |
128 | 132 |
129 // True between -windowWillEnterFullScreen and -windowDidEnterFullScreen. | 133 // True between -windowWillEnterFullScreen and -windowDidEnterFullScreen. |
130 // Only used on Lion and higher. | 134 // Only used on Lion and higher. |
131 BOOL enteringFullscreen_; | 135 BOOL enteringFullscreen_; |
132 | 136 |
133 // True between |-setPresentationMode:url:bubbleType:| and | 137 // True between |-setPresentationMode:url:bubbleType:| and |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 // positioned relative to. | 510 // positioned relative to. |
507 - (NSRect)omniboxPopupAnchorRect; | 511 - (NSRect)omniboxPopupAnchorRect; |
508 | 512 |
509 // Force a layout of info bars. | 513 // Force a layout of info bars. |
510 - (void)layoutInfoBars; | 514 - (void)layoutInfoBars; |
511 | 515 |
512 @end // @interface BrowserWindowController (TestingAPI) | 516 @end // @interface BrowserWindowController (TestingAPI) |
513 | 517 |
514 | 518 |
515 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 519 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |