Chromium Code Reviews| 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 "chrome/browser/android/shortcut_info.h" | 10 #include "chrome/browser/android/shortcut_info.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 46 static void FetchSplashScreenImage(content::WebContents* web_contents, | 46 static void FetchSplashScreenImage(content::WebContents* web_contents, |
| 47 const GURL& image_url, | 47 const GURL& image_url, |
| 48 const int ideal_splash_image_size_in_dp, | 48 const int ideal_splash_image_size_in_dp, |
| 49 const int minimum_splash_image_size_in_dp, | 49 const int minimum_splash_image_size_in_dp, |
| 50 const std::string& webapp_id); | 50 const std::string& webapp_id); |
| 51 | 51 |
| 52 // Stores the data of the webapp which is not placed inside the shortcut. | 52 // Stores the data of the webapp which is not placed inside the shortcut. |
| 53 static void StoreWebappData(const std::string& webapp_id, | 53 static void StoreWebappData(const std::string& webapp_id, |
| 54 const SkBitmap& splash_image); | 54 const SkBitmap& splash_image); |
| 55 | 55 |
| 56 // Modify the given icon to matches the launcher requirements and returns the | |
|
gone
2015/10/21 23:35:57
to match
requirements, then returns
mlamouri (slow - plz ping)
2015/10/22 14:37:06
Done.
| |
| 57 // new icon. It might generate an entirely new icon, in which case, | |
| 58 // |generated| will be set to |true|. | |
| 59 static SkBitmap FinalizeLauncherIcon(const SkBitmap& icon, | |
| 60 const GURL& url, | |
| 61 bool* generated); | |
| 62 | |
| 56 private: | 63 private: |
| 57 ShortcutHelper() = delete; | 64 ShortcutHelper() = delete; |
| 58 ~ShortcutHelper() = delete; | 65 ~ShortcutHelper() = delete; |
| 59 | 66 |
| 60 DISALLOW_COPY_AND_ASSIGN(ShortcutHelper); | 67 DISALLOW_COPY_AND_ASSIGN(ShortcutHelper); |
| 61 }; | 68 }; |
| 62 | 69 |
| 63 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_ | 70 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_ |
| OLD | NEW |