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

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

Issue 114017: Use Chrome facilities for omnibox state save and restore on Mac. (Closed)
Patch Set: Wordsmithing. Created 11 years, 7 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 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_COCOA_TOOLBAR_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_
6 #define CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_ 6 #define CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 - (id)initWithModel:(ToolbarModel*)model 45 - (id)initWithModel:(ToolbarModel*)model
46 commands:(CommandUpdater*)commands 46 commands:(CommandUpdater*)commands
47 profile:(Profile*)profile; 47 profile:(Profile*)profile;
48 48
49 // Get the C++ bridge object representing the location bar for this tab. 49 // Get the C++ bridge object representing the location bar for this tab.
50 - (LocationBar*)locationBar; 50 - (LocationBar*)locationBar;
51 51
52 // Make the location bar the first responder, if possible. 52 // Make the location bar the first responder, if possible.
53 - (void)focusLocationBar; 53 - (void)focusLocationBar;
54 54
55 // Called when any url bar state changes. If |tabForRestoring| is non-NULL, 55 // Updates the toolbar (and transitively the location bar) with the states of
56 // it points to a TabContents whose state we should restore. 56 // the specified |tab|. If |shouldRestore| is true, we're switching
57 - (void)updateToolbarWithContents:(TabContents*)tabForRestoring; 57 // (back?) to this tab and should restore any previous location bar state
58 // (such as user editing) as well.
59 - (void)updateToolbarWithContents:(TabContents*)tabForRestoring
60 shouldRestoreState:(BOOL)shouldRestore;
58 61
59 // Sets whether or not the current page in the frontmost tab is bookmarked. 62 // Sets whether or not the current page in the frontmost tab is bookmarked.
60 - (void)setStarredState:(BOOL)isStarred; 63 - (void)setStarredState:(BOOL)isStarred;
61 64
62 // Called to update the loading state. Handles updating the go/stop button 65 // Called to update the loading state. Handles updating the go/stop button
63 // state. 66 // state.
64 - (void)setIsLoading:(BOOL)isLoading; 67 - (void)setIsLoading:(BOOL)isLoading;
65 68
66 @end 69 @end
67 70
68 // A set of private methods used by tests, in the absence of "friends" in ObjC. 71 // A set of private methods used by tests, in the absence of "friends" in ObjC.
69 @interface ToolbarController(PrivateTestMethods) 72 @interface ToolbarController(PrivateTestMethods)
70 // Returns an array of views in the order of the outlets above. 73 // Returns an array of views in the order of the outlets above.
71 - (NSArray*)toolbarViews; 74 - (NSArray*)toolbarViews;
72 @end 75 @end
73 76
74 #endif // CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_ 77 #endif // CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698