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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 171 |
172 // The number of overlapped views being shown. | 172 // The number of overlapped views being shown. |
173 NSUInteger overlappedViewCount_; | 173 NSUInteger overlappedViewCount_; |
| 174 |
| 175 // Whether the root view of the window is layer backed. |
| 176 BOOL windowViewWantsLayer_; |
174 } | 177 } |
175 | 178 |
176 // A convenience class method which gets the |BrowserWindowController| for a | 179 // A convenience class method which gets the |BrowserWindowController| for a |
177 // given window. This method returns nil if no window in the chain has a BWC. | 180 // given window. This method returns nil if no window in the chain has a BWC. |
178 + (BrowserWindowController*)browserWindowControllerForWindow:(NSWindow*)window; | 181 + (BrowserWindowController*)browserWindowControllerForWindow:(NSWindow*)window; |
179 | 182 |
180 // A convenience class method which gets the |BrowserWindowController| for a | 183 // A convenience class method which gets the |BrowserWindowController| for a |
181 // given view. This is the controller for the window containing |view|, if it | 184 // given view. This is the controller for the window containing |view|, if it |
182 // is a BWC, or the first controller in the parent-window chain that is a | 185 // is a BWC, or the first controller in the parent-window chain that is a |
183 // BWC. This method returns nil if no window in the chain has a BWC. | 186 // BWC. This method returns nil if no window in the chain has a BWC. |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 // positioned relative to. | 539 // positioned relative to. |
537 - (NSRect)omniboxPopupAnchorRect; | 540 - (NSRect)omniboxPopupAnchorRect; |
538 | 541 |
539 // Force a layout of info bars. | 542 // Force a layout of info bars. |
540 - (void)layoutInfoBars; | 543 - (void)layoutInfoBars; |
541 | 544 |
542 @end // @interface BrowserWindowController (TestingAPI) | 545 @end // @interface BrowserWindowController (TestingAPI) |
543 | 546 |
544 | 547 |
545 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 548 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |