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

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: Fix regression with the toolbar not dropping down. Created 3 years, 10 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 // Called by the Window delegate so we can provide a custom field editor if 112 // Called by the Window delegate so we can provide a custom field editor if
113 // needed. 113 // needed.
114 // Note that this may be called for objects unrelated to the toolbar. 114 // Note that this may be called for objects unrelated to the toolbar.
115 // returns nil if we don't want to override the custom field editor for |obj|. 115 // returns nil if we don't want to override the custom field editor for |obj|.
116 - (id)customFieldEditorForObject:(id)obj; 116 - (id)customFieldEditorForObject:(id)obj;
117 117
118 // Called by the |locationBar_| when it has been added to its window. 118 // Called by the |locationBar_| when it has been added to its window.
119 - (void)locationBarWasAddedToWindow; 119 - (void)locationBarWasAddedToWindow;
120 120
121 // Return YES if the location bar is the first responder.
122 - (BOOL)locationBarHasFocus;
123
121 // Make the location bar the first responder, if possible. 124 // Make the location bar the first responder, if possible.
122 - (void)focusLocationBar:(BOOL)selectAll; 125 - (void)focusLocationBar:(BOOL)selectAll;
123 126
124 // Called by CommandObserverBridge when there is a state change for the given 127 // Called by CommandObserverBridge when there is a state change for the given
125 // command. 128 // command.
126 - (void)enabledStateChangedForCommand:(int)command enabled:(bool)enabled; 129 - (void)enabledStateChangedForCommand:(int)command enabled:(bool)enabled;
127 130
128 // Forces the toolbar (and transitively the location bar) to update its current 131 // Forces the toolbar (and transitively the location bar) to update its current
129 // state. If |tab| is non-NULL, we're switching (back?) to this tab and should 132 // state. If |tab| is non-NULL, we're switching (back?) to this tab and should
130 // restore any previous location bar state (such as user editing) as well. 133 // restore any previous location bar state (such as user editing) as well.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 - (void)installAppMenu; 203 - (void)installAppMenu;
201 // Return a hover button for the current event. 204 // Return a hover button for the current event.
202 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; 205 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent;
203 // Adjusts browser actions container view in response to toolbar frame changes. 206 // Adjusts browser actions container view in response to toolbar frame changes.
204 // Outside of tests, called in response to frame changed/new window 207 // Outside of tests, called in response to frame changed/new window
205 // notifications. 208 // notifications.
206 - (void)toolbarFrameChanged; 209 - (void)toolbarFrameChanged;
207 @end 210 @end
208 211
209 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ 212 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698