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 24 matching lines...) Expand all Loading... |
35 @class BrowserWindowEnterFullscreenTransition; | 35 @class BrowserWindowEnterFullscreenTransition; |
36 @class DevToolsController; | 36 @class DevToolsController; |
37 @class DownloadShelfController; | 37 @class DownloadShelfController; |
38 class ExtensionKeybindingRegistryCocoa; | 38 class ExtensionKeybindingRegistryCocoa; |
39 @class FindBarCocoaController; | 39 @class FindBarCocoaController; |
40 @class FullscreenModeController; | 40 @class FullscreenModeController; |
41 @class FullscreenWindow; | 41 @class FullscreenWindow; |
42 @class InfoBarContainerController; | 42 @class InfoBarContainerController; |
43 class LocationBarViewMac; | 43 class LocationBarViewMac; |
44 @class OverlayableContentsController; | 44 @class OverlayableContentsController; |
45 class PermissionBubbleCocoa; | |
46 @class PresentationModeController; | 45 @class PresentationModeController; |
47 class StatusBubbleMac; | 46 class StatusBubbleMac; |
48 @class TabStripController; | 47 @class TabStripController; |
49 @class TabStripView; | 48 @class TabStripView; |
50 @class ToolbarController; | 49 @class ToolbarController; |
51 @class TranslateBubbleController; | 50 @class TranslateBubbleController; |
52 | 51 |
53 namespace content { | 52 namespace content { |
54 class WebContents; | 53 class WebContents; |
55 } | 54 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 121 |
123 // Lazily created view which draws the background for the floating set of bars | 122 // Lazily created view which draws the background for the floating set of bars |
124 // in presentation mode (for window types having a floating bar; it remains | 123 // in presentation mode (for window types having a floating bar; it remains |
125 // nil for those which don't). | 124 // nil for those which don't). |
126 base::scoped_nsobject<NSView> floatingBarBackingView_; | 125 base::scoped_nsobject<NSView> floatingBarBackingView_; |
127 | 126 |
128 // The borderless window used in fullscreen mode when Cocoa's System | 127 // The borderless window used in fullscreen mode when Cocoa's System |
129 // Fullscreen API is not being used (or not available, before OS 10.7). | 128 // Fullscreen API is not being used (or not available, before OS 10.7). |
130 base::scoped_nsobject<NSWindow> fullscreenWindow_; | 129 base::scoped_nsobject<NSWindow> fullscreenWindow_; |
131 | 130 |
132 // The Cocoa implementation of the PermissionBubbleView. | |
133 scoped_ptr<PermissionBubbleCocoa> permissionBubbleCocoa_; | |
134 | |
135 // True between |-windowWillEnterFullScreen:| and |-windowDidEnterFullScreen:| | 131 // True between |-windowWillEnterFullScreen:| and |-windowDidEnterFullScreen:| |
136 // to indicate that the window is in the process of transitioning into | 132 // to indicate that the window is in the process of transitioning into |
137 // AppKit fullscreen mode. | 133 // AppKit fullscreen mode. |
138 BOOL enteringAppKitFullscreen_; | 134 BOOL enteringAppKitFullscreen_; |
139 | 135 |
140 // True between |enterImmersiveFullscreen| and |-windowDidEnterFullScreen:| | 136 // True between |enterImmersiveFullscreen| and |-windowDidEnterFullScreen:| |
141 // to indicate that the window is in the process of transitioning into | 137 // to indicate that the window is in the process of transitioning into |
142 // AppKit fullscreen mode. | 138 // AppKit fullscreen mode. |
143 BOOL enteringImmersiveFullscreen_; | 139 BOOL enteringImmersiveFullscreen_; |
144 | 140 |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 - (ExclusiveAccessBubbleWindowController*)exclusiveAccessBubbleWindowController; | 601 - (ExclusiveAccessBubbleWindowController*)exclusiveAccessBubbleWindowController; |
606 | 602 |
607 // Gets the rect, in window base coordinates, that the omnibox popup should be | 603 // Gets the rect, in window base coordinates, that the omnibox popup should be |
608 // positioned relative to. | 604 // positioned relative to. |
609 - (NSRect)omniboxPopupAnchorRect; | 605 - (NSRect)omniboxPopupAnchorRect; |
610 | 606 |
611 @end // @interface BrowserWindowController (TestingAPI) | 607 @end // @interface BrowserWindowController (TestingAPI) |
612 | 608 |
613 | 609 |
614 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 610 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |