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

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

Issue 1250403002: [Mac] Move UI item validation to UserInterfaceItemCommandHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@commandexecute
Patch Set: Sync Created 5 years, 3 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 @class TranslateBubbleController; 51 @class TranslateBubbleController;
52 52
53 namespace content { 53 namespace content {
54 class WebContents; 54 class WebContents;
55 } 55 }
56 56
57 namespace extensions { 57 namespace extensions {
58 class Command; 58 class Command;
59 } 59 }
60 60
61 @interface BrowserWindowController : 61 @interface BrowserWindowController
62 TabWindowController<NSUserInterfaceValidations, 62 : TabWindowController<BookmarkBarControllerDelegate,
63 BookmarkBarControllerDelegate, 63 ViewResizer,
64 ViewResizer, 64 TabStripControllerDelegate> {
65 TabStripControllerDelegate> {
66 @private 65 @private
67 // The ordering of these members is important as it determines the order in 66 // The ordering of these members is important as it determines the order in
68 // which they are destroyed. |browser_| needs to be destroyed last as most of 67 // which they are destroyed. |browser_| needs to be destroyed last as most of
69 // the other objects hold weak references to it or things it owns 68 // the other objects hold weak references to it or things it owns
70 // (tab/toolbar/bookmark models, profiles, etc). 69 // (tab/toolbar/bookmark models, profiles, etc).
71 scoped_ptr<Browser> browser_; 70 scoped_ptr<Browser> browser_;
72 NSWindow* savedRegularWindow_; 71 NSWindow* savedRegularWindow_;
73 scoped_ptr<BrowserWindowCocoa> windowShim_; 72 scoped_ptr<BrowserWindowCocoa> windowShim_;
74 base::scoped_nsobject<ToolbarController> toolbarController_; 73 base::scoped_nsobject<ToolbarController> toolbarController_;
75 base::scoped_nsobject<TabStripController> tabStripController_; 74 base::scoped_nsobject<TabStripController> tabStripController_;
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 - (ExclusiveAccessBubbleWindowController*)exclusiveAccessBubbleWindowController; 607 - (ExclusiveAccessBubbleWindowController*)exclusiveAccessBubbleWindowController;
609 608
610 // Gets the rect, in window base coordinates, that the omnibox popup should be 609 // Gets the rect, in window base coordinates, that the omnibox popup should be
611 // positioned relative to. 610 // positioned relative to.
612 - (NSRect)omniboxPopupAnchorRect; 611 - (NSRect)omniboxPopupAnchorRect;
613 612
614 @end // @interface BrowserWindowController (TestingAPI) 613 @end // @interface BrowserWindowController (TestingAPI)
615 614
616 615
617 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 616 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698