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

Unified Diff: chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h

Issue 1308533006: webapps: allow callers of icon downloader/selector to specify a minimum size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webapps-splashscreen-icon
Patch Set: Fix non-compiling test Created 5 years, 3 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/webapps/add_to_homescreen_data_fetcher.h
diff --git a/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h b/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h
index 3b40f042a17006ae1d795cd777caebee452772fa..11bc58b54438b118ba050eab2e977c5933b29cb6 100644
--- a/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h
+++ b/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h
@@ -54,7 +54,9 @@ class AddToHomescreenDataFetcher
// OnDidGetWebApplicationInfo is expected to be called when finished.
AddToHomescreenDataFetcher(content::WebContents* web_contents,
int ideal_splash_image_size_in_dp,
+ int minimum_splash_image_size_in_dp,
int ideal_icon_size_in_dp,
+ int minimum_icon_size_in_dp,
Observer* observer);
// Called to fetch the splash screen image to be stored for the webapp with
@@ -109,7 +111,9 @@ class AddToHomescreenDataFetcher
base::CancelableTaskTracker favicon_task_tracker_;
const int ideal_splash_image_size_in_dp_;
+ const int minimum_splash_image_size_in_dp_;
const int ideal_icon_size_in_dp_;
+ const int minimum_icon_size_in_dp_;
friend class base::RefCounted<AddToHomescreenDataFetcher>;
DISALLOW_COPY_AND_ASSIGN(AddToHomescreenDataFetcher);

Powered by Google App Engine
This is Rietveld 408576698