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

Side by Side Diff: ios/chrome/browser/ui/toolbar/web_toolbar_controller.h

Issue 2829003002: Add CommandDispatcher to BrowserViewController. (Closed)
Patch Set: rohit comments 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 IOS_CHROME_BROWSER_UI_TOOLBAR_WEB_TOOLBAR_CONTROLLER_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_TOOLBAR_WEB_TOOLBAR_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_UI_TOOLBAR_WEB_TOOLBAR_CONTROLLER_H_ 6 #define IOS_CHROME_BROWSER_UI_TOOLBAR_WEB_TOOLBAR_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include "ios/chrome/browser/ui/omnibox/omnibox_popup_positioner.h" 10 #include "ios/chrome/browser/ui/omnibox/omnibox_popup_positioner.h"
(...skipping 28 matching lines...) Expand all
39 @protocol WebToolbarDelegate<NSObject> 39 @protocol WebToolbarDelegate<NSObject>
40 @required 40 @required
41 // Called when the location bar gains keyboard focus. 41 // Called when the location bar gains keyboard focus.
42 - (IBAction)locationBarDidBecomeFirstResponder:(id)sender; 42 - (IBAction)locationBarDidBecomeFirstResponder:(id)sender;
43 // Called when the location bar loses keyboard focus. 43 // Called when the location bar loses keyboard focus.
44 - (IBAction)locationBarDidResignFirstResponder:(id)sender; 44 - (IBAction)locationBarDidResignFirstResponder:(id)sender;
45 // Called when the location bar receives a key press. 45 // Called when the location bar receives a key press.
46 - (IBAction)locationBarBeganEdit:(id)sender; 46 - (IBAction)locationBarBeganEdit:(id)sender;
47 // Called when the stack view controller is about to be shown. 47 // Called when the stack view controller is about to be shown.
48 - (IBAction)prepareToEnterTabSwitcher:(id)sender; 48 - (IBAction)prepareToEnterTabSwitcher:(id)sender;
49 // Loads the text entered in the location bar as javascript.
50 // Note: The JavaScript is executed asynchronously.
51 - (void)loadJavaScriptFromLocationBar:(NSString*)script;
52 // Returns the WebState. 49 // Returns the WebState.
53 - (web::WebState*)currentWebState; 50 - (web::WebState*)currentWebState;
54 // Called when the toolbar height changes. Other elements, such as the web view, 51 // Called when the toolbar height changes. Other elements, such as the web view,
55 // may need to adjust accordingly. This is called from within an animation 52 // may need to adjust accordingly. This is called from within an animation
56 // block. 53 // block.
57 - (void)toolbarHeightChanged; 54 - (void)toolbarHeightChanged;
58 - (ToolbarModelIOS*)toolbarModelIOS; 55 - (ToolbarModelIOS*)toolbarModelIOS;
59 // Sets the alpha for the toolbar's background views. 56 // Sets the alpha for the toolbar's background views.
60 - (void)updateToolbarBackgroundAlpha:(CGFloat)backgroundAlpha; 57 - (void)updateToolbarBackgroundAlpha:(CGFloat)backgroundAlpha;
61 // Sets the alpha for the toolbar's background views. 58 // Sets the alpha for the toolbar's background views.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 - (BOOL)isOmniboxFirstResponder; 157 - (BOOL)isOmniboxFirstResponder;
161 158
162 // Returns whether the omnibox popup is currently displayed. 159 // Returns whether the omnibox popup is currently displayed.
163 - (BOOL)showingOmniboxPopup; 160 - (BOOL)showingOmniboxPopup;
164 161
165 - (void)traitCollectionDidChange:(UITraitCollection*)previousTraitCollection; 162 - (void)traitCollectionDidChange:(UITraitCollection*)previousTraitCollection;
166 163
167 @end 164 @end
168 165
169 #endif // IOS_CHROME_BROWSER_UI_TOOLBAR_WEB_TOOLBAR_CONTROLLER_H_ 166 #endif // IOS_CHROME_BROWSER_UI_TOOLBAR_WEB_TOOLBAR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/ntp/new_tab_page_toolbar_controller.mm ('k') | ios/chrome/browser/ui/toolbar/web_toolbar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698