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

Side by Side Diff: ios/chrome/browser/ui/contextual_search/contextual_search_controller.h

Issue 2626073003: [ObjC ARC] Converts ios/chrome/browser/ui/contextual_search:contextual_search to ARC. (Closed)
Patch Set: format Created 3 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_CONTROLLER_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_CONTROLLER_H_ 6 #define IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include "base/ios/block_types.h" 10 #include "base/ios/block_types.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // Only tests should set this directly; for general use, use -setTab:, which 82 // Only tests should set this directly; for general use, use -setTab:, which
83 // will set this property with the tab's webState. 83 // will set this property with the tab's webState.
84 @property(nonatomic, assign) web::WebState* webState; 84 @property(nonatomic, assign) web::WebState* webState;
85 85
86 // The panel view that this controller should populate with subviews and use. 86 // The panel view that this controller should populate with subviews and use.
87 // Owned by its superview. Setting this will have the controller create subviews 87 // Owned by its superview. Setting this will have the controller create subviews
88 // for the panel; code that sets this property is responsible for disposing of 88 // for the panel; code that sets this property is responsible for disposing of
89 // the old panel and its views. 89 // the old panel and its views.
90 // This property can only be assigned a non-nil value, and can only be assigned 90 // This property can only be assigned a non-nil value, and can only be assigned
91 // a value when its current value is nil. 91 // a value when its current value is nil.
92 @property(nonatomic, assign) ContextualSearchPanelView* panel; 92 @property(nonatomic, weak) ContextualSearchPanelView* panel;
93 93
94 // Designated initializer. 94 // Designated initializer.
95 - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState 95 - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState
96 delegate:(id<ContextualSearchControllerDelegate>) 96 delegate:(id<ContextualSearchControllerDelegate>)
97 delegate; 97 delegate;
98 98
99 // Set the Tab to be used as the opener for the search results tab. |opener|'s 99 // Set the Tab to be used as the opener for the search results tab. |opener|'s
100 // lifetime should be greater than the reciever's. |opener| can be nil. 100 // lifetime should be greater than the reciever's. |opener| can be nil.
101 - (void)setTab:(Tab*)tab; 101 - (void)setTab:(Tab*)tab;
102 102
(...skipping 13 matching lines...) Expand all
116 @end 116 @end
117 117
118 // Testing category that allows a permissions class to be injected. 118 // Testing category that allows a permissions class to be injected.
119 @interface ContextualSearchController (Testing) 119 @interface ContextualSearchController (Testing)
120 120
121 - (void)setPermissions:(TouchToSearchPermissionsMediator*)permissions; 121 - (void)setPermissions:(TouchToSearchPermissionsMediator*)permissions;
122 122
123 @end 123 @end
124 124
125 #endif // IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_CONTROLLER_ H_ 125 #endif // IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_CONTROLLER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698