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