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

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

Issue 2679273002: [Mac] Retain location bar focus on switching to fullscreen and back. (Closed)
Patch Set: Undo previous change, add comment. Created 3 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) 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 <memory> 10 #include <memory>
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // Called by the Window delegate so we can provide a custom field editor if 114 // Called by the Window delegate so we can provide a custom field editor if
115 // needed. 115 // needed.
116 // Note that this may be called for objects unrelated to the toolbar. 116 // Note that this may be called for objects unrelated to the toolbar.
117 // returns nil if we don't want to override the custom field editor for |obj|. 117 // returns nil if we don't want to override the custom field editor for |obj|.
118 - (id)customFieldEditorForObject:(id)obj; 118 - (id)customFieldEditorForObject:(id)obj;
119 119
120 // Called by the |locationBar_| when it has been added to its window. 120 // Called by the |locationBar_| when it has been added to its window.
121 - (void)locationBarWasAddedToWindow; 121 - (void)locationBarWasAddedToWindow;
122 122
123 // Return YES if the location bar is the first responder.
124 - (BOOL)locationBarHasFocus;
125
123 // Make the location bar the first responder, if possible. 126 // Make the location bar the first responder, if possible.
124 - (void)focusLocationBar:(BOOL)selectAll; 127 - (void)focusLocationBar:(BOOL)selectAll;
125 128
126 // Called by CommandObserverBridge when there is a state change for the given 129 // Called by CommandObserverBridge when there is a state change for the given
127 // command. 130 // command.
128 - (void)enabledStateChangedForCommand:(int)command enabled:(bool)enabled; 131 - (void)enabledStateChangedForCommand:(int)command enabled:(bool)enabled;
129 132
130 // Forces the toolbar (and transitively the location bar) to update its current 133 // Forces the toolbar (and transitively the location bar) to update its current
131 // state. If |tab| is non-NULL, we're switching (back?) to this tab and should 134 // state. If |tab| is non-NULL, we're switching (back?) to this tab and should
132 // restore any previous location bar state (such as user editing) as well. 135 // restore any previous location bar state (such as user editing) as well.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 - (void)installAppMenu; 205 - (void)installAppMenu;
203 // Return a hover button for the current event. 206 // Return a hover button for the current event.
204 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; 207 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent;
205 // Adjusts browser actions container view in response to toolbar frame changes. 208 // Adjusts browser actions container view in response to toolbar frame changes.
206 // Outside of tests, called in response to frame changed/new window 209 // Outside of tests, called in response to frame changed/new window
207 // notifications. 210 // notifications.
208 - (void)toolbarFrameChanged; 211 - (void)toolbarFrameChanged;
209 @end 212 @end
210 213
211 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ 214 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_unittest.mm ('k') | chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698