| 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_ID = "org.chromium.chrome.browser.webapp_id
"; | |
| 19 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"; |
| 20 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"; |
| 21 public static final String EXTRA_WEBAPK_PACKAGE_NAME = | 20 public static final String EXTRA_WEBAPK_PACKAGE_NAME = |
| 22 "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 |
| 23 // open. |
| 24 public static final String EXTRA_WEBAPK_FORCE_NAVIGATION = |
| 25 "org.chromium.chrome.browser.webapk_force_navigation"; |
| 23 } | 26 } |
| OLD | NEW |