OLD | NEW |
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 static void StoreWebappSplashImage(const std::string& webapp_id, | 65 static void StoreWebappSplashImage(const std::string& webapp_id, |
66 const SkBitmap& splash_image); | 66 const SkBitmap& splash_image); |
67 | 67 |
68 // Returns the given icon, modified to match the launcher requirements. | 68 // Returns the given icon, modified to match the launcher requirements. |
69 // This method may generate an entirely new icon; if this is the case, | 69 // This method may generate an entirely new icon; if this is the case, |
70 // |is_generated| will be set to |true|. | 70 // |is_generated| will be set to |true|. |
71 static SkBitmap FinalizeLauncherIcon(const SkBitmap& icon, | 71 static SkBitmap FinalizeLauncherIcon(const SkBitmap& icon, |
72 const GURL& url, | 72 const GURL& url, |
73 bool* is_generated); | 73 bool* is_generated); |
74 | 74 |
| 75 // Returns whether there is a WebAPK installed which can handle |url|. |
| 76 static bool IsWebApkInstalled(const GURL& url); |
| 77 |
75 private: | 78 private: |
76 ShortcutHelper() = delete; | 79 ShortcutHelper() = delete; |
77 ~ShortcutHelper() = delete; | 80 ~ShortcutHelper() = delete; |
78 | 81 |
79 DISALLOW_COPY_AND_ASSIGN(ShortcutHelper); | 82 DISALLOW_COPY_AND_ASSIGN(ShortcutHelper); |
80 }; | 83 }; |
81 | 84 |
82 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_ | 85 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_ |
OLD | NEW |