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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_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: . 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_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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // Updates the toolbar (and transitively the location bar) with the states of 216 // Updates the toolbar (and transitively the location bar) with the states of
217 // the specified |tab|. If |shouldRestore| is true, we're switching 217 // the specified |tab|. If |shouldRestore| is true, we're switching
218 // (back?) to this tab and should restore any previous location bar state 218 // (back?) to this tab and should restore any previous location bar state
219 // (such as user editing) as well. 219 // (such as user editing) as well.
220 - (void)updateToolbarWithContents:(content::WebContents*)tab 220 - (void)updateToolbarWithContents:(content::WebContents*)tab
221 shouldRestoreState:(BOOL)shouldRestore; 221 shouldRestoreState:(BOOL)shouldRestore;
222 222
223 // Sets whether or not the current page in the frontmost tab is bookmarked. 223 // Sets whether or not the current page in the frontmost tab is bookmarked.
224 - (void)setStarredState:(BOOL)isStarred; 224 - (void)setStarredState:(BOOL)isStarred;
225 225
226 // Happens when the zoom level is changed in the active tab, the active tab is
227 // changed, or a new browser window or tab is created. |canShowBubble| denotes
228 // whether it would be appropriate to show a zoom bubble or not.
229 - (void)zoomChangedForActiveTab:(BOOL)canShowBubble;
230
226 // Return the rect, in WebKit coordinates (flipped), of the window's grow box 231 // Return the rect, in WebKit coordinates (flipped), of the window's grow box
227 // in the coordinate system of the content area of the currently selected tab. 232 // in the coordinate system of the content area of the currently selected tab.
228 - (NSRect)selectedTabGrowBoxRect; 233 - (NSRect)selectedTabGrowBoxRect;
229 234
230 // Called to tell the selected tab to update its loading state. 235 // Called to tell the selected tab to update its loading state.
231 // |force| is set if the update is due to changing tabs, as opposed to 236 // |force| is set if the update is due to changing tabs, as opposed to
232 // the page-load finishing. See comment in reload_button.h. 237 // the page-load finishing. See comment in reload_button.h.
233 - (void)setIsLoading:(BOOL)isLoading force:(BOOL)force; 238 - (void)setIsLoading:(BOOL)isLoading force:(BOOL)force;
234 239
235 // Brings this controller's window to the front. 240 // Brings this controller's window to the front.
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 // |source| rect doesn't fit into |target|. 487 // |source| rect doesn't fit into |target|.
483 - (NSSize)overflowFrom:(NSRect)source 488 - (NSSize)overflowFrom:(NSRect)source
484 to:(NSRect)target; 489 to:(NSRect)target;
485 490
486 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. 491 // The fullscreen exit bubble controller, or nil if the bubble isn't showing.
487 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; 492 - (FullscreenExitBubbleController*)fullscreenExitBubbleController;
488 @end // @interface BrowserWindowController (TestingAPI) 493 @end // @interface BrowserWindowController (TestingAPI)
489 494
490 495
491 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 496 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698