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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 // When going fullscreen for a tab, we need to store the URL and the | 162 // When going fullscreen for a tab, we need to store the URL and the |
163 // fullscreen type, since we can't show the bubble until | 163 // fullscreen type, since we can't show the bubble until |
164 // -windowDidEnterFullScreen: gets called. | 164 // -windowDidEnterFullScreen: gets called. |
165 GURL fullscreenUrl_; | 165 GURL fullscreenUrl_; |
166 FullscreenExitBubbleType fullscreenBubbleType_; | 166 FullscreenExitBubbleType fullscreenBubbleType_; |
167 | 167 |
168 // The Extension Command Registry used to determine which keyboard events to | 168 // The Extension Command Registry used to determine which keyboard events to |
169 // handle. | 169 // handle. |
170 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 170 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
| 171 |
| 172 // Whether the root view of the window is layer backed. |
| 173 BOOL windowViewWantsLayer_; |
171 } | 174 } |
172 | 175 |
173 // A convenience class method which gets the |BrowserWindowController| for a | 176 // A convenience class method which gets the |BrowserWindowController| for a |
174 // given window. This method returns nil if no window in the chain has a BWC. | 177 // given window. This method returns nil if no window in the chain has a BWC. |
175 + (BrowserWindowController*)browserWindowControllerForWindow:(NSWindow*)window; | 178 + (BrowserWindowController*)browserWindowControllerForWindow:(NSWindow*)window; |
176 | 179 |
177 // A convenience class method which gets the |BrowserWindowController| for a | 180 // A convenience class method which gets the |BrowserWindowController| for a |
178 // given view. This is the controller for the window containing |view|, if it | 181 // given view. This is the controller for the window containing |view|, if it |
179 // is a BWC, or the first controller in the parent-window chain that is a | 182 // is a BWC, or the first controller in the parent-window chain that is a |
180 // BWC. This method returns nil if no window in the chain has a BWC. | 183 // BWC. This method returns nil if no window in the chain has a BWC. |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 // positioned relative to. | 522 // positioned relative to. |
520 - (NSRect)omniboxPopupAnchorRect; | 523 - (NSRect)omniboxPopupAnchorRect; |
521 | 524 |
522 // Force a layout of info bars. | 525 // Force a layout of info bars. |
523 - (void)layoutInfoBars; | 526 - (void)layoutInfoBars; |
524 | 527 |
525 @end // @interface BrowserWindowController (TestingAPI) | 528 @end // @interface BrowserWindowController (TestingAPI) |
526 | 529 |
527 | 530 |
528 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 531 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |