| 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_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 #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 25 matching lines...) Expand all Loading... |
| 36 @class FindBarCocoaController; | 36 @class FindBarCocoaController; |
| 37 @class FullscreenController; | 37 @class FullscreenController; |
| 38 @class GTMWindowSheetController; | 38 @class GTMWindowSheetController; |
| 39 @class IncognitoImageView; | 39 @class IncognitoImageView; |
| 40 @class InfoBarContainerController; | 40 @class InfoBarContainerController; |
| 41 class LocationBarViewMac; | 41 class LocationBarViewMac; |
| 42 @class PreviewableContentsController; | 42 @class PreviewableContentsController; |
| 43 @class SidebarController; | 43 @class SidebarController; |
| 44 class StatusBubbleMac; | 44 class StatusBubbleMac; |
| 45 class TabContents; | 45 class TabContents; |
| 46 class TabContentsWrapper; |
| 46 @class TabStripController; | 47 @class TabStripController; |
| 47 @class TabStripView; | 48 @class TabStripView; |
| 48 @class ToolbarController; | 49 @class ToolbarController; |
| 49 | 50 |
| 50 | 51 |
| 51 @interface BrowserWindowController : | 52 @interface BrowserWindowController : |
| 52 TabWindowController<NSUserInterfaceValidations, | 53 TabWindowController<NSUserInterfaceValidations, |
| 53 BookmarkBarControllerDelegate, | 54 BookmarkBarControllerDelegate, |
| 54 BrowserCommandExecutor, | 55 BrowserCommandExecutor, |
| 55 ViewResizer, | 56 ViewResizer, |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; | 234 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; |
| 234 // Closes the tab sheet |window| and potentially shows the next sheet in the | 235 // Closes the tab sheet |window| and potentially shows the next sheet in the |
| 235 // tab's sheet queue. | 236 // tab's sheet queue. |
| 236 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; | 237 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; |
| 237 // Returns NO if constrained windows cannot be attached to this window. | 238 // Returns NO if constrained windows cannot be attached to this window. |
| 238 - (BOOL)canAttachConstrainedWindow; | 239 - (BOOL)canAttachConstrainedWindow; |
| 239 | 240 |
| 240 // Shows or hides the docked web inspector depending on |contents|'s state. | 241 // Shows or hides the docked web inspector depending on |contents|'s state. |
| 241 - (void)updateDevToolsForContents:(TabContents*)contents; | 242 - (void)updateDevToolsForContents:(TabContents*)contents; |
| 242 | 243 |
| 243 // Displays the active sidebar linked to the |contents| or hides sidebar UI, | 244 // Displays the active sidebar linked to the |tab| or hides sidebar UI, |
| 244 // if there's no such sidebar. | 245 // if there's no such sidebar. |
| 245 - (void)updateSidebarForContents:(TabContents*)contents; | 246 - (void)updateSidebarForTab:(TabContentsWrapper*)tab; |
| 246 | 247 |
| 247 // Gets the current theme provider. | 248 // Gets the current theme provider. |
| 248 - (ui::ThemeProvider*)themeProvider; | 249 - (ui::ThemeProvider*)themeProvider; |
| 249 | 250 |
| 250 // Gets the window style. | 251 // Gets the window style. |
| 251 - (ThemedWindowStyle)themedWindowStyle; | 252 - (ThemedWindowStyle)themedWindowStyle; |
| 252 | 253 |
| 253 // Gets the pattern phase for the window. | 254 // Gets the pattern phase for the window. |
| 254 - (NSPoint)themePatternPhase; | 255 - (NSPoint)themePatternPhase; |
| 255 | 256 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 - (void)resetWindowGrowthState; | 389 - (void)resetWindowGrowthState; |
| 389 | 390 |
| 390 // Computes by how far in each direction, horizontal and vertical, the | 391 // Computes by how far in each direction, horizontal and vertical, the |
| 391 // |source| rect doesn't fit into |target|. | 392 // |source| rect doesn't fit into |target|. |
| 392 - (NSSize)overflowFrom:(NSRect)source | 393 - (NSSize)overflowFrom:(NSRect)source |
| 393 to:(NSRect)target; | 394 to:(NSRect)target; |
| 394 @end // @interface BrowserWindowController(TestingAPI) | 395 @end // @interface BrowserWindowController(TestingAPI) |
| 395 | 396 |
| 396 | 397 |
| 397 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 398 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |