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

Side by Side Diff: chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkConstants.java

Issue 2858563004: Add support for webapk without runtimeHost (Closed)
Patch Set: Nits. Created 3 years, 6 months 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
« no previous file with comments | « no previous file | chrome/android/webapk/shell_apk/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/android/webapk/shell_apk/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698