| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |