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

Side by Side Diff: chrome/browser/ui/cocoa/toolbar/toolbar_controller.h

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 6 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 | Annotate | Revision Log
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_TOOLBAR_TOOLBAR_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/memory/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/prefs/pref_member.h" 12 #include "base/prefs/pref_member.h"
13 #import "chrome/browser/ui/cocoa/command_observer_bridge.h" 13 #import "chrome/browser/ui/cocoa/command_observer_bridge.h"
14 #import "chrome/browser/ui/cocoa/url_drop_target.h" 14 #import "chrome/browser/ui/cocoa/url_drop_target.h"
15 #import "chrome/browser/ui/cocoa/view_resizer.h" 15 #import "chrome/browser/ui/cocoa/view_resizer.h"
16 #import "ui/base/cocoa/tracking_area.h" 16 #import "ui/base/cocoa/tracking_area.h"
17 17
18 @class AutocompleteTextField; 18 @class AutocompleteTextField;
19 @class AutocompleteTextFieldEditor; 19 @class AutocompleteTextFieldEditor;
20 @class BackForwardMenuController; 20 @class BackForwardMenuController;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 IBOutlet AutocompleteTextField* locationBar_; 57 IBOutlet AutocompleteTextField* locationBar_;
58 IBOutlet BrowserActionsContainerView* browserActionsContainerView_; 58 IBOutlet BrowserActionsContainerView* browserActionsContainerView_;
59 59
60 @private 60 @private
61 ToolbarModel* toolbarModel_; // weak, one per window 61 ToolbarModel* toolbarModel_; // weak, one per window
62 CommandUpdater* commands_; // weak, one per window 62 CommandUpdater* commands_; // weak, one per window
63 Profile* profile_; // weak, one per window 63 Profile* profile_; // weak, one per window
64 Browser* browser_; // weak, one per window 64 Browser* browser_; // weak, one per window
65 scoped_ptr<CommandObserverBridge> commandObserver_; 65 scoped_ptr<CommandObserverBridge> commandObserver_;
66 scoped_ptr<LocationBarViewMac> locationBarView_; 66 scoped_ptr<LocationBarViewMac> locationBarView_;
67 scoped_nsobject<AutocompleteTextFieldEditor> autocompleteTextFieldEditor_; 67 base::scoped_nsobject<AutocompleteTextFieldEditor>
68 autocompleteTextFieldEditor_;
68 id<ViewResizer> resizeDelegate_; // weak 69 id<ViewResizer> resizeDelegate_; // weak
69 scoped_nsobject<BackForwardMenuController> backMenuController_; 70 base::scoped_nsobject<BackForwardMenuController> backMenuController_;
70 scoped_nsobject<BackForwardMenuController> forwardMenuController_; 71 base::scoped_nsobject<BackForwardMenuController> forwardMenuController_;
71 scoped_nsobject<BrowserActionsController> browserActionsController_; 72 base::scoped_nsobject<BrowserActionsController> browserActionsController_;
72 73
73 // Lazily-instantiated menu controller. 74 // Lazily-instantiated menu controller.
74 scoped_nsobject<WrenchMenuController> wrenchMenuController_; 75 base::scoped_nsobject<WrenchMenuController> wrenchMenuController_;
75 76
76 // Used for monitoring the optional toolbar button prefs. 77 // Used for monitoring the optional toolbar button prefs.
77 scoped_ptr<ToolbarControllerInternal::NotificationBridge> notificationBridge_; 78 scoped_ptr<ToolbarControllerInternal::NotificationBridge> notificationBridge_;
78 BooleanPrefMember showHomeButton_; 79 BooleanPrefMember showHomeButton_;
79 BOOL hasToolbar_; // If NO, we may have only the location bar. 80 BOOL hasToolbar_; // If NO, we may have only the location bar.
80 BOOL hasLocationBar_; // If |hasToolbar_| is YES, this must also be YES. 81 BOOL hasLocationBar_; // If |hasToolbar_| is YES, this must also be YES.
81 BOOL locationBarAtMinSize_; // If the location bar is at the minimum size. 82 BOOL locationBarAtMinSize_; // If the location bar is at the minimum size.
82 83
83 // We have an extra retain in the locationBar_. 84 // We have an extra retain in the locationBar_.
84 // See comments in awakeFromNib for more info. 85 // See comments in awakeFromNib for more info.
85 scoped_nsobject<AutocompleteTextField> locationBarRetainer_; 86 base::scoped_nsobject<AutocompleteTextField> locationBarRetainer_;
86 87
87 // Tracking area for mouse enter/exit/moved in the toolbar. 88 // Tracking area for mouse enter/exit/moved in the toolbar.
88 ui::ScopedCrTrackingArea trackingArea_; 89 ui::ScopedCrTrackingArea trackingArea_;
89 90
90 // We retain/release the hover button since interaction with the 91 // We retain/release the hover button since interaction with the
91 // button may make it go away (e.g. delete menu option over a 92 // button may make it go away (e.g. delete menu option over a
92 // bookmark button). Thus this variable is not weak. The 93 // bookmark button). Thus this variable is not weak. The
93 // hoveredButton_ is required to have an NSCell that responds to 94 // hoveredButton_ is required to have an NSCell that responds to
94 // setMouseInside:animate:. 95 // setMouseInside:animate:.
95 NSButton* hoveredButton_; 96 NSButton* hoveredButton_;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // Returns an array of views in the order of the outlets above. 183 // Returns an array of views in the order of the outlets above.
183 - (NSArray*)toolbarViews; 184 - (NSArray*)toolbarViews;
184 - (void)showOptionalHomeButton; 185 - (void)showOptionalHomeButton;
185 - (void)installWrenchMenu; 186 - (void)installWrenchMenu;
186 - (WrenchMenuController*)wrenchMenuController; 187 - (WrenchMenuController*)wrenchMenuController;
187 // Return a hover button for the current event. 188 // Return a hover button for the current event.
188 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; 189 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent;
189 @end 190 @end
190 191
191 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ 192 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698