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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java

Issue 2760103002: Merge WebApkConstants.EXTRA_WEBAPK_PACKAGE_NAME and ShortcutHelper.EXTRA_WEBAPK_PACKAGE_NAME (Closed)
Patch Set: Merge branch 'master' into package_name Created 3 years, 9 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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.chrome.browser; 5 package org.chromium.chrome.browser;
6 6
7 import android.app.ActivityManager; 7 import android.app.ActivityManager;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.Intent; 9 import android.content.Intent;
10 import android.content.pm.ApplicationInfo; 10 import android.content.pm.ApplicationInfo;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 public static final String EXTRA_SOURCE = "org.chromium.chrome.browser.webap p_source"; 72 public static final String EXTRA_SOURCE = "org.chromium.chrome.browser.webap p_source";
73 public static final String EXTRA_THEME_COLOR = "org.chromium.chrome.browser. theme_color"; 73 public static final String EXTRA_THEME_COLOR = "org.chromium.chrome.browser. theme_color";
74 public static final String EXTRA_BACKGROUND_COLOR = 74 public static final String EXTRA_BACKGROUND_COLOR =
75 "org.chromium.chrome.browser.background_color"; 75 "org.chromium.chrome.browser.background_color";
76 public static final String EXTRA_IS_ICON_GENERATED = 76 public static final String EXTRA_IS_ICON_GENERATED =
77 "org.chromium.chrome.browser.is_icon_generated"; 77 "org.chromium.chrome.browser.is_icon_generated";
78 public static final String EXTRA_VERSION = 78 public static final String EXTRA_VERSION =
79 "org.chromium.chrome.browser.webapp_shortcut_version"; 79 "org.chromium.chrome.browser.webapp_shortcut_version";
80 public static final String REUSE_URL_MATCHING_TAB_ELSE_NEW_TAB = 80 public static final String REUSE_URL_MATCHING_TAB_ELSE_NEW_TAB =
81 "REUSE_URL_MATCHING_TAB_ELSE_NEW_TAB"; 81 "REUSE_URL_MATCHING_TAB_ELSE_NEW_TAB";
82 public static final String EXTRA_WEBAPK_PACKAGE_NAME =
83 "org.chromium.chrome.browser.webapk_package_name";
84 82
85 /** Used for the callback intent when using the new shortcut API. */ 83 /** Used for the callback intent when using the new shortcut API. */
86 public static final String SHORTCUT_TOAST_CATEGORY = 84 public static final String SHORTCUT_TOAST_CATEGORY =
87 "com.google.intent.category.SHORTCUT_TOAST"; 85 "com.google.intent.category.SHORTCUT_TOAST";
88 86
89 // When a new field is added to the intent, this version should be increment ed so that it will 87 // When a new field is added to the intent, this version should be increment ed so that it will
90 // be correctly populated into the WebappRegistry/WebappDataStorage. 88 // be correctly populated into the WebappRegistry/WebappDataStorage.
91 public static final int WEBAPP_SHORTCUT_VERSION = 2; 89 public static final int WEBAPP_SHORTCUT_VERSION = 2;
92 90
93 // This value is equal to kInvalidOrMissingColor in the C++ content::Manifes t struct. 91 // This value is equal to kInvalidOrMissingColor in the C++ content::Manifes t struct.
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 } 732 }
735 return array; 733 return array;
736 } 734 }
737 735
738 private static native void nativeOnWebappDataStored(long callbackPointer); 736 private static native void nativeOnWebappDataStored(long callbackPointer);
739 private static native void nativeOnWebApksRetrieved(long callbackPointer, St ring[] names, 737 private static native void nativeOnWebApksRetrieved(long callbackPointer, St ring[] names,
740 String[] shortNames, String[] packageName, int[] shellApkVersions, i nt[] versionCodes, 738 String[] shortNames, String[] packageName, int[] shellApkVersions, i nt[] versionCodes,
741 String[] uris, String[] scopes, String[] manifestUrls, String[] mani festStartUrls, 739 String[] uris, String[] scopes, String[] manifestUrls, String[] mani festStartUrls,
742 int[] displayModes, int[] orientations, long[] themeColors, long[] b ackgroundColors); 740 int[] displayModes, int[] orientations, long[] themeColors, long[] b ackgroundColors);
743 } 741 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698