| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 @class TranslateBubbleController; | 58 @class TranslateBubbleController; |
| 59 | 59 |
| 60 namespace content { | 60 namespace content { |
| 61 class WebContents; | 61 class WebContents; |
| 62 } | 62 } |
| 63 | 63 |
| 64 namespace extensions { | 64 namespace extensions { |
| 65 class Command; | 65 class Command; |
| 66 } | 66 } |
| 67 | 67 |
| 68 constexpr const gfx::Size kMinCocoaTabbedWindowSize(400, 272); |
| 69 constexpr const gfx::Size kMinCocoaPopupWindowSize(100, 122); |
| 70 |
| 68 @interface BrowserWindowController | 71 @interface BrowserWindowController |
| 69 : TabWindowController<BookmarkBarControllerDelegate, | 72 : TabWindowController<BookmarkBarControllerDelegate, |
| 70 ViewResizer, | 73 ViewResizer, |
| 71 TabStripControllerDelegate> { | 74 TabStripControllerDelegate> { |
| 72 @private | 75 @private |
| 73 // The ordering of these members is important as it determines the order in | 76 // The ordering of these members is important as it determines the order in |
| 74 // which they are destroyed. |browser_| needs to be destroyed last as most of | 77 // which they are destroyed. |browser_| needs to be destroyed last as most of |
| 75 // the other objects hold weak references to it or things it owns | 78 // the other objects hold weak references to it or things it owns |
| 76 // (tab/toolbar/bookmark models, profiles, etc). | 79 // (tab/toolbar/bookmark models, profiles, etc). |
| 77 std::unique_ptr<Browser> browser_; | 80 std::unique_ptr<Browser> browser_; |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 // Returns the fullscreen toolbar controller. | 617 // Returns the fullscreen toolbar controller. |
| 615 - (FullscreenToolbarController*)fullscreenToolbarController; | 618 - (FullscreenToolbarController*)fullscreenToolbarController; |
| 616 | 619 |
| 617 // Sets the fullscreen toolbar controller. | 620 // Sets the fullscreen toolbar controller. |
| 618 - (void)setFullscreenToolbarController:(FullscreenToolbarController*)controller; | 621 - (void)setFullscreenToolbarController:(FullscreenToolbarController*)controller; |
| 619 | 622 |
| 620 @end // @interface BrowserWindowController (TestingAPI) | 623 @end // @interface BrowserWindowController (TestingAPI) |
| 621 | 624 |
| 622 | 625 |
| 623 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 626 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |