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

Unified Diff: chrome/browser/android/shortcut_helper.h

Issue 1310223002: webapps: initial addition of splash screen icon downloading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webapps-database-exp
Patch Set: Fix review comments and update code as discussed Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/shortcut_helper.h
diff --git a/chrome/browser/android/shortcut_helper.h b/chrome/browser/android/shortcut_helper.h
index 93e1c9d589a86307befc9bbc041867eb15ffadae..39604e471abbfc6a206ed10c9bddeb4ac96917f5 100644
--- a/chrome/browser/android/shortcut_helper.h
+++ b/chrome/browser/android/shortcut_helper.h
@@ -11,9 +11,8 @@
#include "third_party/skia/include/core/SkBitmap.h"
// ShortcutHelper is the C++ counterpart of org.chromium.chrome.browser's
-// ShortcutHelper in Java. The object is owned by the Java object. It is created
-// from there via a JNI (Initialize) call and MUST BE DESTROYED via Destroy().
gone 2015/08/26 02:01:19 I asked you to update this comment when your origi
Lalit Maganti 2015/08/26 13:11:56 Yeah I missed them all because I basically redid t
-class ShortcutHelper {
+// ShortcutHelper in Java.
+class ShortcutHelper final {
public:
// Registers JNI hooks.
static bool RegisterShortcutHelper(JNIEnv* env);
@@ -21,9 +20,16 @@ class ShortcutHelper {
// Adds a shortcut to the launcher using a SkBitmap.
// Must be called on the IO thread.
static void AddShortcutInBackgroundWithSkBitmap(const ShortcutInfo& info,
+ const std::string& webapp_id,
const SkBitmap& icon_bitmap);
+
+ // Add splashscreen icon to the data of the webapp.
+ static void AddSplashscreenIconToWebappData(const std::string& webapp_id,
+ const SkBitmap& splash_icon);
+
private:
- ShortcutHelper();
+ ShortcutHelper() = delete;
+ ~ShortcutHelper() = delete;
DISALLOW_COPY_AND_ASSIGN(ShortcutHelper);
};

Powered by Google App Engine
This is Rietveld 408576698