OLD | NEW |
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_COMMON_APP_GROUP_APP_GROUP_CONSTANTS_H_ | 5 #ifndef IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_CONSTANTS_H_ |
6 #define IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_CONSTANTS_H_ | 6 #define IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_CONSTANTS_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 // Constants that are shared between apps belonging to the chrome iOS app group. | 10 // Constants that are shared between apps belonging to the chrome iOS app group. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 // The command to trigger a voice search. | 48 // The command to trigger a voice search. |
49 extern const char kChromeAppGroupVoiceSearchCommand[]; | 49 extern const char kChromeAppGroupVoiceSearchCommand[]; |
50 | 50 |
51 // The command to open a new tab. | 51 // The command to open a new tab. |
52 extern const char kChromeAppGroupNewTabCommand[]; | 52 extern const char kChromeAppGroupNewTabCommand[]; |
53 | 53 |
54 // The command to focus the omnibox. | 54 // The command to focus the omnibox. |
55 extern const char kChromeAppGroupFocusOmniboxCommand[]; | 55 extern const char kChromeAppGroupFocusOmniboxCommand[]; |
56 | 56 |
| 57 // The command to open an incognito search. |
| 58 extern const char kChromeAppGroupIncognitoSearchCommand[]; |
| 59 |
| 60 // The command to open the QR Code scanner. |
| 61 extern const char kChromeAppGroupQRScannerCommand[]; |
| 62 |
57 // The key in kChromeAppGroupCommandPreference containing a NSDate at which | 63 // The key in kChromeAppGroupCommandPreference containing a NSDate at which |
58 // |kChromeAppGroupCommandAppPreference| issued the command. | 64 // |kChromeAppGroupCommandAppPreference| issued the command. |
59 extern const char kChromeAppGroupCommandTimePreference[]; | 65 extern const char kChromeAppGroupCommandTimePreference[]; |
60 | 66 |
61 // The key in kChromeAppGroupCommandPreference containing a parameter for the | 67 // The key in kChromeAppGroupCommandPreference containing a parameter for the |
62 // command. The nature of the parameter depends on the command. | 68 // command. The nature of the parameter depends on the command. |
63 extern const char kChromeAppGroupCommandParameterPreference[]; | 69 extern const char kChromeAppGroupCommandParameterPreference[]; |
64 | 70 |
65 // The key of a preference containing Chrome client ID reported in the metrics | 71 // The key of a preference containing Chrome client ID reported in the metrics |
66 // client ID. If the user does not opt in, this value must be cleared from the | 72 // client ID. If the user does not opt in, this value must be cleared from the |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // application group is defined. If not (i.e. on simulator, or if entitlements | 116 // application group is defined. If not (i.e. on simulator, or if entitlements |
111 // do not allow it) returns [NSUserDefaults standardUserDefaults]. | 117 // do not allow it) returns [NSUserDefaults standardUserDefaults]. |
112 NSUserDefaults* GetGroupUserDefaults(); | 118 NSUserDefaults* GetGroupUserDefaults(); |
113 | 119 |
114 // The application name of |application|. | 120 // The application name of |application|. |
115 NSString* ApplicationName(AppGroupApplications application); | 121 NSString* ApplicationName(AppGroupApplications application); |
116 | 122 |
117 } // namespace app_group | 123 } // namespace app_group |
118 | 124 |
119 #endif // IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_CONSTANTS_H_ | 125 #endif // IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_CONSTANTS_H_ |
OLD | NEW |