OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 // A class acting as the Objective-C controller for the Browser | 9 // A class acting as the Objective-C controller for the Browser |
10 // object. Handles interactions between Cocoa and the cross-platform | 10 // object. Handles interactions between Cocoa and the cross-platform |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 227 |
228 // Returns the (lazily created) window sheet controller of this window. Used | 228 // Returns the (lazily created) window sheet controller of this window. Used |
229 // for the per-tab sheets. | 229 // for the per-tab sheets. |
230 - (GTMWindowSheetController*)sheetController; | 230 - (GTMWindowSheetController*)sheetController; |
231 | 231 |
232 // Requests that |window| is opened as a per-tab sheet to the current tab. | 232 // Requests that |window| is opened as a per-tab sheet to the current tab. |
233 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; | 233 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; |
234 // Closes the tab sheet |window| and potentially shows the next sheet in the | 234 // Closes the tab sheet |window| and potentially shows the next sheet in the |
235 // tab's sheet queue. | 235 // tab's sheet queue. |
236 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; | 236 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; |
| 237 // Returns NO if constrained windows cannot be attached to this window. |
| 238 - (BOOL)canAttachConstrainedWindow; |
237 | 239 |
238 // Shows or hides the docked web inspector depending on |contents|'s state. | 240 // Shows or hides the docked web inspector depending on |contents|'s state. |
239 - (void)updateDevToolsForContents:(TabContents*)contents; | 241 - (void)updateDevToolsForContents:(TabContents*)contents; |
240 | 242 |
241 // Displays the active sidebar linked to the |contents| or hides sidebar UI, | 243 // Displays the active sidebar linked to the |contents| or hides sidebar UI, |
242 // if there's no such sidebar. | 244 // if there's no such sidebar. |
243 - (void)updateSidebarForContents:(TabContents*)contents; | 245 - (void)updateSidebarForContents:(TabContents*)contents; |
244 | 246 |
245 // Gets the current theme provider. | 247 // Gets the current theme provider. |
246 - (ThemeProvider*)themeProvider; | 248 - (ThemeProvider*)themeProvider; |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 - (void)resetWindowGrowthState; | 388 - (void)resetWindowGrowthState; |
387 | 389 |
388 // Computes by how far in each direction, horizontal and vertical, the | 390 // Computes by how far in each direction, horizontal and vertical, the |
389 // |source| rect doesn't fit into |target|. | 391 // |source| rect doesn't fit into |target|. |
390 - (NSSize)overflowFrom:(NSRect)source | 392 - (NSSize)overflowFrom:(NSRect)source |
391 to:(NSRect)target; | 393 to:(NSRect)target; |
392 @end // @interface BrowserWindowController(TestingAPI) | 394 @end // @interface BrowserWindowController(TestingAPI) |
393 | 395 |
394 | 396 |
395 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 397 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |