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

Side by Side Diff: ios/chrome/app/spotlight/actions_spotlight_manager.h

Issue 2580363002: Upstream Chrome on iOS source code [1/11]. (Closed)
Patch Set: Created 4 years 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
(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_
OLDNEW
« no previous file with comments | « ios/chrome/app/safe_mode/safe_mode_view_controller_unittest.mm ('k') | ios/chrome/app/spotlight/actions_spotlight_manager.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698