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

Side by Side Diff: chrome/browser/android/shortcut_helper.h

Issue 2676863002: Update WebApkInstaller to support badge icon in installation. (Closed)
Patch Set: Revert git cl format Created 3 years, 10 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 #ifndef CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_
6 #define CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_ 6 #define CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 content::BrowserContext* browser_context, 40 content::BrowserContext* browser_context,
41 const ShortcutInfo& info, 41 const ShortcutInfo& info,
42 const std::string& webapp_id, 42 const std::string& webapp_id,
43 const SkBitmap& icon_bitmap, 43 const SkBitmap& icon_bitmap,
44 const base::Closure& splash_image_callback); 44 const base::Closure& splash_image_callback);
45 45
46 // Installs WebAPK and adds shortcut to the launcher. 46 // Installs WebAPK and adds shortcut to the launcher.
47 static void InstallWebApkWithSkBitmap( 47 static void InstallWebApkWithSkBitmap(
48 content::BrowserContext* browser_context, 48 content::BrowserContext* browser_context,
49 const ShortcutInfo& info, 49 const ShortcutInfo& info,
50 const SkBitmap& icon_bitmap, 50 const SkBitmap& primary_icon_bitmap,
51 const SkBitmap& badge_icon_bitmap,
51 const WebApkInstaller::FinishCallback& callback); 52 const WebApkInstaller::FinishCallback& callback);
52 53
53 // Adds a shortcut which opens in a fullscreen window to the launcher. 54 // Adds a shortcut which opens in a fullscreen window to the launcher.
54 // |splash_image_callback| will be invoked once the Java-side operation has 55 // |splash_image_callback| will be invoked once the Java-side operation has
55 // completed. This is necessary as Java will asynchronously create and 56 // completed. This is necessary as Java will asynchronously create and
56 // populate a WebappDataStorage object for standalone-capable sites. This must 57 // populate a WebappDataStorage object for standalone-capable sites. This must
57 // exist before the splash image can be stored. 58 // exist before the splash image can be stored.
58 static void AddWebappWithSkBitmap( 59 static void AddWebappWithSkBitmap(
59 const ShortcutInfo& info, 60 const ShortcutInfo& info,
60 const std::string& webapp_id, 61 const std::string& webapp_id,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 static void RetrieveWebApks(const WebApkInfoCallback& callback); 130 static void RetrieveWebApks(const WebApkInfoCallback& callback);
130 131
131 private: 132 private:
132 ShortcutHelper() = delete; 133 ShortcutHelper() = delete;
133 ~ShortcutHelper() = delete; 134 ~ShortcutHelper() = delete;
134 135
135 DISALLOW_COPY_AND_ASSIGN(ShortcutHelper); 136 DISALLOW_COPY_AND_ASSIGN(ShortcutHelper);
136 }; 137 };
137 138
138 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_ 139 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698