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

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

Issue 2851303006: [ObjC ARC] Converts ios/chrome/browser/ui/toolbar:toolbar to ARC. (Closed)
Patch Set: Fix DCHECK 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698