| 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 | 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class TabStripModelObserverBridge; | 42 class TabStripModelObserverBridge; |
| 43 @class TabStripView; | 43 @class TabStripView; |
| 44 @class ToolbarController; | 44 @class ToolbarController; |
| 45 | 45 |
| 46 | 46 |
| 47 @interface BrowserWindowController : | 47 @interface BrowserWindowController : |
| 48 TabWindowController<NSUserInterfaceValidations, | 48 TabWindowController<NSUserInterfaceValidations, |
| 49 BookmarkBarControllerDelegate, | 49 BookmarkBarControllerDelegate, |
| 50 BrowserCommandExecutor, | 50 BrowserCommandExecutor, |
| 51 ViewResizer> { | 51 ViewResizer> { |
| 52 @private | 52 @public // FIXME |
| 53 // The ordering of these members is important as it determines the order in | 53 // The ordering of these members is important as it determines the order in |
| 54 // which they are destroyed. |browser_| needs to be destroyed last as most of | 54 // which they are destroyed. |browser_| needs to be destroyed last as most of |
| 55 // the other objects hold weak references to it or things it owns | 55 // the other objects hold weak references to it or things it owns |
| 56 // (tab/toolbar/bookmark models, profiles, etc). | 56 // (tab/toolbar/bookmark models, profiles, etc). |
| 57 scoped_ptr<Browser> browser_; | 57 scoped_ptr<Browser> browser_; |
| 58 NSWindow* savedRegularWindow_; | 58 NSWindow* savedRegularWindow_; |
| 59 scoped_ptr<TabStripModelObserverBridge> tabObserver_; | 59 scoped_ptr<TabStripModelObserverBridge> tabObserver_; |
| 60 scoped_ptr<BrowserWindowCocoa> windowShim_; | 60 scoped_ptr<BrowserWindowCocoa> windowShim_; |
| 61 scoped_nsobject<ToolbarController> toolbarController_; | 61 scoped_nsobject<ToolbarController> toolbarController_; |
| 62 scoped_nsobject<TabStripController> tabStripController_; | 62 scoped_nsobject<TabStripController> tabStripController_; |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 - (NSWindow*)createFullscreenWindow; | 363 - (NSWindow*)createFullscreenWindow; |
| 364 | 364 |
| 365 // Resets any saved state about window growth (due to showing the bookmark bar | 365 // Resets any saved state about window growth (due to showing the bookmark bar |
| 366 // or the download shelf), so that future shrinking will occur from the bottom. | 366 // or the download shelf), so that future shrinking will occur from the bottom. |
| 367 - (void)resetWindowGrowthState; | 367 - (void)resetWindowGrowthState; |
| 368 | 368 |
| 369 @end // @interface BrowserWindowController(TestingAPI) | 369 @end // @interface BrowserWindowController(TestingAPI) |
| 370 | 370 |
| 371 | 371 |
| 372 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 372 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |