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

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

Issue 10736028: Refactor browser window zoom handling and enable zoom icon on all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 8 years, 4 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/memory/scoped_nsobject.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Updates the toolbar (and transitively the location bar) with the states of 119 // Updates the toolbar (and transitively the location bar) with the states of
120 // the specified |tab|. If |shouldRestore| is true, we're switching 120 // the specified |tab|. If |shouldRestore| is true, we're switching
121 // (back?) to this tab and should restore any previous location bar state 121 // (back?) to this tab and should restore any previous location bar state
122 // (such as user editing) as well. 122 // (such as user editing) as well.
123 - (void)updateToolbarWithContents:(content::WebContents*)tabForRestoring 123 - (void)updateToolbarWithContents:(content::WebContents*)tabForRestoring
124 shouldRestoreState:(BOOL)shouldRestore; 124 shouldRestoreState:(BOOL)shouldRestore;
125 125
126 // Sets whether or not the current page in the frontmost tab is bookmarked. 126 // Sets whether or not the current page in the frontmost tab is bookmarked.
127 - (void)setStarredState:(BOOL)isStarred; 127 - (void)setStarredState:(BOOL)isStarred;
128 128
129 // Happens when the zoom for the active tab changes, the active tab switches, or
130 // a new tab or browser window is created. |canShowBubble| indicates if it is
131 // appropriate to show a zoom bubble for the change.
132 - (void)zoomChangedForActiveTab:(BOOL)canShowBubble;
133
129 // Called to update the loading state. Handles updating the go/stop 134 // Called to update the loading state. Handles updating the go/stop
130 // button state. |force| is set if the update is due to changing 135 // button state. |force| is set if the update is due to changing
131 // tabs, as opposed to the page-load finishing. See comment in 136 // tabs, as opposed to the page-load finishing. See comment in
132 // reload_button.h. 137 // reload_button.h.
133 - (void)setIsLoading:(BOOL)isLoading force:(BOOL)force; 138 - (void)setIsLoading:(BOOL)isLoading force:(BOOL)force;
134 139
135 // Allow turning off the toolbar (but we may keep the location bar without a 140 // Allow turning off the toolbar (but we may keep the location bar without a
136 // surrounding toolbar). If |toolbar| is YES, the value of |hasLocationBar| is 141 // surrounding toolbar). If |toolbar| is YES, the value of |hasLocationBar| is
137 // ignored. This changes the behavior of other methods, like |-view|. 142 // ignored. This changes the behavior of other methods, like |-view|.
138 - (void)setHasToolbar:(BOOL)toolbar hasLocationBar:(BOOL)locBar; 143 - (void)setHasToolbar:(BOOL)toolbar hasLocationBar:(BOOL)locBar;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // Returns an array of views in the order of the outlets above. 186 // Returns an array of views in the order of the outlets above.
182 - (NSArray*)toolbarViews; 187 - (NSArray*)toolbarViews;
183 - (void)showOptionalHomeButton; 188 - (void)showOptionalHomeButton;
184 - (void)installWrenchMenu; 189 - (void)installWrenchMenu;
185 - (WrenchMenuController*)wrenchMenuController; 190 - (WrenchMenuController*)wrenchMenuController;
186 // Return a hover button for the current event. 191 // Return a hover button for the current event.
187 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; 192 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent;
188 @end 193 @end
189 194
190 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ 195 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698