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

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

Issue 2064943002: Pass in extra parameters to WebApkBuilder#buildWebApkAsync() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into webapk_manifest Created 4 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
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 "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/jni_weak_ref.h" 9 #include "base/android/jni_weak_ref.h"
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 15 matching lines...) Expand all
26 // Adds a shortcut to the launcher using a SkBitmap. If the shortcut is for 26 // Adds a shortcut to the launcher using a SkBitmap. If the shortcut is for
27 // a standalone-capable site, |splash_image_callback| will be invoked once the 27 // a standalone-capable site, |splash_image_callback| will be invoked once the
28 // Java-side operation has completed. This is necessary as Java will 28 // Java-side operation has completed. This is necessary as Java will
29 // asynchronously create and populate a WebappDataStorage object for 29 // asynchronously create and populate a WebappDataStorage object for
30 // standalone-capable sites. This must exist before the splash image can be 30 // standalone-capable sites. This must exist before the splash image can be
31 // stored. 31 // stored.
32 // Must not be called on the UI thread. 32 // Must not be called on the UI thread.
33 static void AddShortcutInBackgroundWithSkBitmap( 33 static void AddShortcutInBackgroundWithSkBitmap(
34 const ShortcutInfo& info, 34 const ShortcutInfo& info,
35 const std::string& webapp_id, 35 const std::string& webapp_id,
36 const GURL& icon_url,
36 const SkBitmap& icon_bitmap, 37 const SkBitmap& icon_bitmap,
37 const base::Closure& splash_image_callback); 38 const base::Closure& splash_image_callback);
38 39
39 // Returns the ideal size for an icon representing a web app. 40 // Returns the ideal size for an icon representing a web app.
40 static int GetIdealHomescreenIconSizeInDp(); 41 static int GetIdealHomescreenIconSizeInDp();
41 42
42 // Returns the minimum size for an icon representing a web app. 43 // Returns the minimum size for an icon representing a web app.
43 static int GetMinimumHomescreenIconSizeInDp(); 44 static int GetMinimumHomescreenIconSizeInDp();
44 45
45 // Returns the ideal size for an image displayed on a web app's splash 46 // Returns the ideal size for an image displayed on a web app's splash
(...skipping 27 matching lines...) Expand all
73 bool* is_generated); 74 bool* is_generated);
74 75
75 private: 76 private:
76 ShortcutHelper() = delete; 77 ShortcutHelper() = delete;
77 ~ShortcutHelper() = delete; 78 ~ShortcutHelper() = delete;
78 79
79 DISALLOW_COPY_AND_ASSIGN(ShortcutHelper); 80 DISALLOW_COPY_AND_ASSIGN(ShortcutHelper);
80 }; 81 };
81 82
82 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_ 83 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698