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

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

Issue 2808873002: [ObjC ARC] Converts ios/chrome/browser/ui/toolbar:toolbar to ARC. (Closed)
Patch Set: feedback Created 3 years, 8 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698