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

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

Issue 8356028: Add shortcut to show avatar menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build error Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 // A class acting as the Objective-C controller for the Browser 9 // A class acting as the Objective-C controller for the Browser
10 // object. Handles interactions between Cocoa and the cross-platform 10 // object. Handles interactions between Cocoa and the cross-platform
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 192
193 // Access the C++ bridge object representing the status bubble for the window. 193 // Access the C++ bridge object representing the status bubble for the window.
194 - (StatusBubbleMac*)statusBubble; 194 - (StatusBubbleMac*)statusBubble;
195 195
196 // Access the C++ bridge object representing the location bar. 196 // Access the C++ bridge object representing the location bar.
197 - (LocationBarViewMac*)locationBarBridge; 197 - (LocationBarViewMac*)locationBarBridge;
198 198
199 // Access the Profile object that backs this Browser. 199 // Access the Profile object that backs this Browser.
200 - (Profile*)profile; 200 - (Profile*)profile;
201 201
202 // Access the avatar button controller.
203 - (AvatarButtonController*)avatarButtonController;
204
202 // Updates the toolbar (and transitively the location bar) with the states of 205 // Updates the toolbar (and transitively the location bar) with the states of
203 // the specified |tab|. If |shouldRestore| is true, we're switching 206 // the specified |tab|. If |shouldRestore| is true, we're switching
204 // (back?) to this tab and should restore any previous location bar state 207 // (back?) to this tab and should restore any previous location bar state
205 // (such as user editing) as well. 208 // (such as user editing) as well.
206 - (void)updateToolbarWithContents:(TabContents*)tab 209 - (void)updateToolbarWithContents:(TabContents*)tab
207 shouldRestoreState:(BOOL)shouldRestore; 210 shouldRestoreState:(BOOL)shouldRestore;
208 211
209 // Sets whether or not the current page in the frontmost tab is bookmarked. 212 // Sets whether or not the current page in the frontmost tab is bookmarked.
210 - (void)setStarredState:(BOOL)isStarred; 213 - (void)setStarredState:(BOOL)isStarred;
211 214
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 - (void)resetWindowGrowthState; 457 - (void)resetWindowGrowthState;
455 458
456 // Computes by how far in each direction, horizontal and vertical, the 459 // Computes by how far in each direction, horizontal and vertical, the
457 // |source| rect doesn't fit into |target|. 460 // |source| rect doesn't fit into |target|.
458 - (NSSize)overflowFrom:(NSRect)source 461 - (NSSize)overflowFrom:(NSRect)source
459 to:(NSRect)target; 462 to:(NSRect)target;
460 @end // @interface BrowserWindowController (TestingAPI) 463 @end // @interface BrowserWindowController (TestingAPI)
461 464
462 465
463 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 466 #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