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 package org.chromium.webapk.lib.common; | 5 package org.chromium.webapk.lib.common; |
6 | 6 |
7 /** | 7 /** |
8 * Stores WebAPK related constants. | 8 * Stores WebAPK related constants. |
9 */ | 9 */ |
10 public final class WebApkConstants { | 10 public final class WebApkConstants { |
11 public static final String WEBAPK_PACKAGE_PREFIX = "org.chromium.webapk"; | 11 public static final String WEBAPK_PACKAGE_PREFIX = "org.chromium.webapk"; |
12 | 12 |
13 // WebAPK id prefix. The id is used for storing WebAPK data in Chrome's Shar
edPreferences. | 13 // WebAPK id prefix. The id is used for storing WebAPK data in Chrome's Shar
edPreferences. |
14 public static final String WEBAPK_ID_PREFIX = "webapk:"; | 14 public static final String WEBAPK_ID_PREFIX = "webapk:"; |
15 | 15 |
16 // These EXTRA_* values must stay in sync with | 16 // These EXTRA_* values must stay in sync with |
17 // {@link org.chromium.chrome.browser.ShortcutHelper}. | 17 // {@link org.chromium.chrome.browser.ShortcutHelper}. |
18 public static final String EXTRA_URL = "org.chromium.chrome.browser.webapp_u
rl"; | 18 public static final String EXTRA_URL = "org.chromium.chrome.browser.webapp_u
rl"; |
19 public static final String EXTRA_SOURCE = "org.chromium.chrome.browser.webap
p_source"; | 19 public static final String EXTRA_SOURCE = "org.chromium.chrome.browser.webap
p_source"; |
20 public static final String EXTRA_WEBAPK_PACKAGE_NAME = | 20 public static final String EXTRA_WEBAPK_PACKAGE_NAME = |
21 "org.chromium.chrome.browser.webapk_package_name"; | 21 "org.chromium.chrome.browser.webapk_package_name"; |
22 // Whether the WebAPK should navigate to the URL in {@link EXTRA_URL} if the
WebAPK is already | 22 // Whether the WebAPK should navigate to the URL in {@link EXTRA_URL} if the
WebAPK is already |
23 // open. | 23 // open. |
24 public static final String EXTRA_WEBAPK_FORCE_NAVIGATION = | 24 public static final String EXTRA_WEBAPK_FORCE_NAVIGATION = |
25 "org.chromium.chrome.browser.webapk_force_navigation"; | 25 "org.chromium.chrome.browser.webapk_force_navigation"; |
26 | 26 |
| 27 public static final String DEFAULT_HOST_BROWSER = "com.android.chrome"; |
| 28 |
27 // Must be kept in sync with chrome/browser/android/shortcut_info.h. | 29 // Must be kept in sync with chrome/browser/android/shortcut_info.h. |
28 public static final int SHORTCUT_SOURCE_UNKNOWN = 0; | 30 public static final int SHORTCUT_SOURCE_UNKNOWN = 0; |
29 public static final int SHORTCUT_SOURCE_EXTERNAL_INTENT = 9; | 31 public static final int SHORTCUT_SOURCE_EXTERNAL_INTENT = 9; |
| 32 |
| 33 /** Name of the shared preferences file. */ |
| 34 public static final String PREF_PACKAGE = "org.chromium.webapk.shell_apk"; |
30 } | 35 } |
OLD | NEW |