| 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" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 - (void)onFakeboxAnimationComplete; | 80 - (void)onFakeboxAnimationComplete; |
| 81 @end | 81 @end |
| 82 | 82 |
| 83 // Web-view specific toolbar, adding navigation controls like back/forward, | 83 // Web-view specific toolbar, adding navigation controls like back/forward, |
| 84 // omnibox, etc. | 84 // omnibox, etc. |
| 85 @interface WebToolbarController | 85 @interface WebToolbarController |
| 86 : ToolbarController<OmniboxFocuser, | 86 : ToolbarController<OmniboxFocuser, |
| 87 QRScannerViewControllerDelegate, | 87 QRScannerViewControllerDelegate, |
| 88 VoiceSearchControllerDelegate> | 88 VoiceSearchControllerDelegate> |
| 89 | 89 |
| 90 @property(nonatomic, assign) id<WebToolbarDelegate> delegate; | 90 @property(nonatomic, weak) id<WebToolbarDelegate> delegate; |
| 91 @property(nonatomic, assign, readonly) id<UrlLoader> urlLoader; | 91 @property(nonatomic, weak, readonly) id<UrlLoader> urlLoader; |
| 92 | 92 |
| 93 // Mark inherited initializer as unavailable. | 93 // Mark inherited initializer as unavailable. |
| 94 - (instancetype)initWithStyle:(ToolbarControllerStyle)style NS_UNAVAILABLE; | 94 - (instancetype)initWithStyle:(ToolbarControllerStyle)style NS_UNAVAILABLE; |
| 95 | 95 |
| 96 // Create a new web toolbar controller whose omnibox is backed by | 96 // Create a new web toolbar controller whose omnibox is backed by |
| 97 // |browserState|. | 97 // |browserState|. |
| 98 - (instancetype)initWithDelegate:(id<WebToolbarDelegate>)delegate | 98 - (instancetype)initWithDelegate:(id<WebToolbarDelegate>)delegate |
| 99 urlLoader:(id<UrlLoader>)urlLoader | 99 urlLoader:(id<UrlLoader>)urlLoader |
| 100 browserState:(ios::ChromeBrowserState*)browserState | 100 browserState:(ios::ChromeBrowserState*)browserState |
| 101 preloadProvider:(id<PreloadProvider>)preloader | 101 preloadProvider:(id<PreloadProvider>)preloader |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 - (BOOL)isOmniboxFirstResponder; | 160 - (BOOL)isOmniboxFirstResponder; |
| 161 | 161 |
| 162 // Returns whether the omnibox popup is currently displayed. | 162 // Returns whether the omnibox popup is currently displayed. |
| 163 - (BOOL)showingOmniboxPopup; | 163 - (BOOL)showingOmniboxPopup; |
| 164 | 164 |
| 165 - (void)traitCollectionDidChange:(UITraitCollection*)previousTraitCollection; | 165 - (void)traitCollectionDidChange:(UITraitCollection*)previousTraitCollection; |
| 166 | 166 |
| 167 @end | 167 @end |
| 168 | 168 |
| 169 #endif // IOS_CHROME_BROWSER_UI_TOOLBAR_WEB_TOOLBAR_CONTROLLER_H_ | 169 #endif // IOS_CHROME_BROWSER_UI_TOOLBAR_WEB_TOOLBAR_CONTROLLER_H_ |
| OLD | NEW |