OLD | NEW |
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" |
11 #include "ios/chrome/browser/ui/qr_scanner/qr_scanner_view_controller.h" | 11 #include "ios/chrome/browser/ui/qr_scanner/qr_scanner_view_controller.h" |
12 #import "ios/chrome/browser/ui/toolbar/toolbar_controller.h" | 12 #import "ios/chrome/browser/ui/toolbar/toolbar_controller.h" |
13 #include "ios/public/provider/chrome/browser/voice/voice_search_controller_deleg
ate.h" | 13 #include "ios/public/provider/chrome/browser/voice/voice_search_controller_deleg
ate.h" |
14 #include "ios/web/public/navigation_item_list.h" | 14 #include "ios/web/public/navigation_item_list.h" |
15 | 15 |
| 16 @protocol BrowserCommands; |
16 @protocol PreloadProvider; | 17 @protocol PreloadProvider; |
17 @class Tab; | 18 @class Tab; |
18 @protocol ToolbarFrameDelegate; | 19 @protocol ToolbarFrameDelegate; |
19 class ToolbarModelIOS; | 20 class ToolbarModelIOS; |
20 @protocol UrlLoader; | 21 @protocol UrlLoader; |
21 | 22 |
22 namespace ios { | 23 namespace ios { |
23 class ChromeBrowserState; | 24 class ChromeBrowserState; |
24 } | 25 } |
25 | 26 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 90 |
90 // Mark inherited initializer as unavailable. | 91 // Mark inherited initializer as unavailable. |
91 - (instancetype)initWithStyle:(ToolbarControllerStyle)style NS_UNAVAILABLE; | 92 - (instancetype)initWithStyle:(ToolbarControllerStyle)style NS_UNAVAILABLE; |
92 | 93 |
93 // Create a new web toolbar controller whose omnibox is backed by | 94 // Create a new web toolbar controller whose omnibox is backed by |
94 // |browserState|. | 95 // |browserState|. |
95 - (instancetype)initWithDelegate:(id<WebToolbarDelegate>)delegate | 96 - (instancetype)initWithDelegate:(id<WebToolbarDelegate>)delegate |
96 urlLoader:(id<UrlLoader>)urlLoader | 97 urlLoader:(id<UrlLoader>)urlLoader |
97 browserState:(ios::ChromeBrowserState*)browserState | 98 browserState:(ios::ChromeBrowserState*)browserState |
98 preloadProvider:(id<PreloadProvider>)preloader | 99 preloadProvider:(id<PreloadProvider>)preloader |
| 100 dispatcher:(id<BrowserCommands>)dispatcher |
99 NS_DESIGNATED_INITIALIZER; | 101 NS_DESIGNATED_INITIALIZER; |
100 | 102 |
101 // Called when the browser state this object was initialized with is being | 103 // Called when the browser state this object was initialized with is being |
102 // destroyed. | 104 // destroyed. |
103 - (void)browserStateDestroyed; | 105 - (void)browserStateDestroyed; |
104 | 106 |
105 // Update the visibility of the back/forward buttons, omnibox, etc. | 107 // Update the visibility of the back/forward buttons, omnibox, etc. |
106 - (void)updateToolbarState; | 108 - (void)updateToolbarState; |
107 | 109 |
108 // Update the visibility of the toolbar before making a side swipe snapshot so | 110 // Update the visibility of the toolbar before making a side swipe snapshot so |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 - (BOOL)isOmniboxFirstResponder; | 159 - (BOOL)isOmniboxFirstResponder; |
158 | 160 |
159 // Returns whether the omnibox popup is currently displayed. | 161 // Returns whether the omnibox popup is currently displayed. |
160 - (BOOL)showingOmniboxPopup; | 162 - (BOOL)showingOmniboxPopup; |
161 | 163 |
162 - (void)traitCollectionDidChange:(UITraitCollection*)previousTraitCollection; | 164 - (void)traitCollectionDidChange:(UITraitCollection*)previousTraitCollection; |
163 | 165 |
164 @end | 166 @end |
165 | 167 |
166 #endif // IOS_CHROME_BROWSER_UI_TOOLBAR_WEB_TOOLBAR_CONTROLLER_H_ | 168 #endif // IOS_CHROME_BROWSER_UI_TOOLBAR_WEB_TOOLBAR_CONTROLLER_H_ |
OLD | NEW |