Chromium Code Reviews| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 175 | 175 |
| 176 // When going fullscreen for a tab, we need to store the URL and the | 176 // When going fullscreen for a tab, we need to store the URL and the |
| 177 // fullscreen type, since we can't show the bubble until | 177 // fullscreen type, since we can't show the bubble until |
| 178 // -windowDidEnterFullScreen: gets called. | 178 // -windowDidEnterFullScreen: gets called. |
| 179 GURL fullscreenUrl_; | 179 GURL fullscreenUrl_; |
| 180 ExclusiveAccessBubbleType exclusiveAccessBubbleType_; | 180 ExclusiveAccessBubbleType exclusiveAccessBubbleType_; |
| 181 | 181 |
| 182 // The Extension Command Registry used to determine which keyboard events to | 182 // The Extension Command Registry used to determine which keyboard events to |
| 183 // handle. | 183 // handle. |
| 184 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 184 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
| 185 | |
| 186 BOOL shouldShowToolbar_; | |
|
tapted
2015/09/08 05:55:05
needs a comment. Importantly, it needs to explain
dominickn
2015/10/09 06:37:02
Done.
| |
| 185 } | 187 } |
| 186 | 188 |
| 187 // A convenience class method which gets the |BrowserWindowController| for a | 189 // A convenience class method which gets the |BrowserWindowController| for a |
| 188 // given window. This method returns nil if no window in the chain has a BWC. | 190 // given window. This method returns nil if no window in the chain has a BWC. |
| 189 + (BrowserWindowController*)browserWindowControllerForWindow:(NSWindow*)window; | 191 + (BrowserWindowController*)browserWindowControllerForWindow:(NSWindow*)window; |
| 190 | 192 |
| 191 // A convenience class method which gets the |BrowserWindowController| for a | 193 // A convenience class method which gets the |BrowserWindowController| for a |
| 192 // given view. This is the controller for the window containing |view|, if it | 194 // given view. This is the controller for the window containing |view|, if it |
| 193 // is a BWC, or the first controller in the parent-window chain that is a | 195 // is a BWC, or the first controller in the parent-window chain that is a |
| 194 // BWC. This method returns nil if no window in the chain has a BWC. | 196 // BWC. This method returns nil if no window in the chain has a BWC. |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 608 - (ExclusiveAccessBubbleWindowController*)exclusiveAccessBubbleWindowController; | 610 - (ExclusiveAccessBubbleWindowController*)exclusiveAccessBubbleWindowController; |
| 609 | 611 |
| 610 // Gets the rect, in window base coordinates, that the omnibox popup should be | 612 // Gets the rect, in window base coordinates, that the omnibox popup should be |
| 611 // positioned relative to. | 613 // positioned relative to. |
| 612 - (NSRect)omniboxPopupAnchorRect; | 614 - (NSRect)omniboxPopupAnchorRect; |
| 613 | 615 |
| 614 @end // @interface BrowserWindowController (TestingAPI) | 616 @end // @interface BrowserWindowController (TestingAPI) |
| 615 | 617 |
| 616 | 618 |
| 617 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 619 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |