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

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

Issue 2824493002: Reland of [ObjC ARC] Converts ios/chrome/browser/ui/contextual_search:contextual_search to ARC. (Closed)
Patch Set: fix test 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_TOUCH_TO_SEARCH_PERMISSIONS_MEDI ATOR_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_TOUCH_TO_SEARCH_PERMISSIONS_MEDI ATOR_H_
6 #define IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_TOUCH_TO_SEARCH_PERMISSIONS_MEDI ATOR_H_ 6 #define IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_TOUCH_TO_SEARCH_PERMISSIONS_MEDI ATOR_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #import "url/gurl.h" 10 #import "url/gurl.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 NS_DESIGNATED_INITIALIZER; 51 NS_DESIGNATED_INITIALIZER;
52 52
53 - (instancetype)init NS_UNAVAILABLE; 53 - (instancetype)init NS_UNAVAILABLE;
54 54
55 // Current preference state. Assigning to this property will update the internal 55 // Current preference state. Assigning to this property will update the internal
56 // representation backing this state. 56 // representation backing this state.
57 @property(nonatomic, assign) 57 @property(nonatomic, assign)
58 TouchToSearch::TouchToSearchPreferenceState preferenceState; 58 TouchToSearch::TouchToSearchPreferenceState preferenceState;
59 59
60 // Current audience object. 60 // Current audience object.
61 @property(nonatomic, assign) 61 @property(nonatomic, weak)
62 NSObject<TouchToSearchPermissionsChangeAudience>* audience; 62 NSObject<TouchToSearchPermissionsChangeAudience>* audience;
63 63
64 // YES if, given the current permissions state, touch-to-search can be enabled. 64 // YES if, given the current permissions state, touch-to-search can be enabled.
65 - (BOOL)canEnable; 65 - (BOOL)canEnable;
66 66
67 // YES if, given the current permissions state, surrounding text in |URL| may be 67 // YES if, given the current permissions state, surrounding text in |URL| may be
68 // extracted. 68 // extracted.
69 - (BOOL)canExtractTapContextForURL:(const GURL&)url; 69 - (BOOL)canExtractTapContextForURL:(const GURL&)url;
70 70
71 // YES if it is permitted to send page URLs to the contextual search service. 71 // YES if it is permitted to send page URLs to the contextual search service.
72 - (BOOL)canSendPageURLs; 72 - (BOOL)canSendPageURLs;
73 73
74 // YES if search results pages can be preloaded. 74 // YES if search results pages can be preloaded.
75 - (BOOL)canPreloadSearchResults; 75 - (BOOL)canPreloadSearchResults;
76 76
77 @end 77 @end
78 78
79 #endif // IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_TOUCH_TO_SEARCH_PERMISSIONS_M EDIATOR_H_ 79 #endif // IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_TOUCH_TO_SEARCH_PERMISSIONS_M EDIATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698