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

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

Issue 65011: Flatten down to a single toolbar per window, significantly simplifying the ta... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 8 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
Property Changes:
Name: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_
6 #define CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_
7
8 #import <Cocoa/Cocoa.h>
9
10 #import "chrome/browser/cocoa/command_observer_bridge.h"
11
12 class CommandUpdater;
13 class LocationBar;
14 class LocationBarViewMac;
15 class TabContents;
16 class ToolbarModel;
17 class ToolbarView;
18
19 // A controller for the toolbar in the browser window. Manages updating the
20 // state for location bar and back/fwd/reload/go buttons.
21
22 @interface ToolbarController : NSViewController<CommandObserverProtocol> {
23 @private
24 ToolbarModel* toolbarModel_; // weak, one per window
25 CommandUpdater* commands_; // weak, one per window
26 CommandObserverBridge* commandObserver_;
27 LocationBarViewMac* locationBarView_;
28
29 IBOutlet NSButton* backButton_;
30 IBOutlet NSButton* forwardButton_;
31 IBOutlet NSButton* reloadButton_;
32 IBOutlet NSButton* starButton_;
33 IBOutlet NSButton* goButton_;
34 IBOutlet NSTextField* locationBar_;
35 }
36
37 // Initialize the toolbar and register for command updates.
38 - (id)initWithModel:(ToolbarModel*)model
39 commands:(CommandUpdater*)commands;
40
41 // Get the C++ bridge object representing the location bar for this tab.
42 - (LocationBar*)locationBar;
43
44 // Make the location bar the first responder, if possible.
45 - (void)focusLocationBar;
46
47 // Called when any url bar state changes. If |tabForRestoring| is non-NULL,
48 // it points to a TabContents whose state we should restore.
49 - (void)updateToolbarWithContents:(TabContents*)tabForRestoring;
50
51 // Sets whether or not the current page in the frontmost tab is bookmarked.
52 - (void)setStarredState:(BOOL)isStarred;
53
54 // Called to update the loading state. Handles updating the go/stop button
55 // state.
56 - (void)setIsLoading:(BOOL)isLoading;
57
58 @end
59
60 #endif // CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698