OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_APP_SPOTLIGHT_ACTIONS_SPOTLIGHT_MANAGER_H_ |
| 6 #define IOS_CHROME_APP_SPOTLIGHT_ACTIONS_SPOTLIGHT_MANAGER_H_ |
| 7 |
| 8 #import "ios/chrome/app/spotlight/base_spotlight_manager.h" |
| 9 |
| 10 @class AppStartupParameters; |
| 11 |
| 12 namespace spotlight { |
| 13 |
| 14 // Keys for Spotlight actions. |
| 15 extern const char kSpotlightActionNewTab[]; |
| 16 extern const char kSpotlightActionNewIncognitoTab[]; |
| 17 extern const char kSpotlightActionVoiceSearch[]; |
| 18 extern const char kSpotlightActionQRScanner[]; |
| 19 |
| 20 // Sets the correct properties for startup parameters according to the action |
| 21 // specified by the |query|. Returns YES if the properties were successfully |
| 22 // set. The query must represent an action and |startupParams| must not be nil. |
| 23 BOOL SetStartupParametersForSpotlightAction( |
| 24 NSString* query, |
| 25 AppStartupParameters* startupParams); |
| 26 |
| 27 } // namespace spotlight |
| 28 |
| 29 // Allows Chrome to add links to actions to the systemwide Spotlight search |
| 30 // index. |
| 31 @interface ActionsSpotlightManager : BaseSpotlightManager |
| 32 |
| 33 // Creates an ActionsSpotlightManager. |
| 34 + (ActionsSpotlightManager*)actionsSpotlightManager; |
| 35 |
| 36 // Updates the index with the Spotlight actions if the EnableSpotlightActions |
| 37 // experimental flag is set. Otherwise the index is only cleared. |
| 38 - (void)indexActions; |
| 39 |
| 40 @end |
| 41 |
| 42 #endif // IOS_CHROME_APP_SPOTLIGHT_ACTIONS_SPOTLIGHT_MANAGER_H_ |
OLD | NEW |