Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(936)

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_controller.h

Issue 2742813003: [Mac] Lay out the browser window when adding the download shelf. (Closed)
Patch Set: Put a stray word away. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698