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

Unified Diff: chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source.h

Issue 10857019: wallpaper-webui: Make sure the wallpaper thumbnails are appropriately scaled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/ui/webui/options2/chromeos/wallpaper_thumbnail_source.h
diff --git a/chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source.h b/chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source.h
index 1e14f97d27d641172cc2cc083088193c81f20bba..451fb657ad6f67052644616910458b7629693cee 100644
--- a/chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source.h
+++ b/chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source.h
@@ -10,6 +10,7 @@
#include "base/compiler_specific.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
+#include "ui/base/layout.h"
namespace base {
class RefCountedBytes;
@@ -50,9 +51,11 @@ class WallpaperThumbnailSource : public ChromeURLDataManager::DataSource {
virtual ~WallpaperThumbnailSource();
void GetCurrentUserThumbnail(const std::string& path,
+ ui::ScaleFactor scale_factor,
int request_id);
void StartCustomThumbnailEncodingOperation(const chromeos::User* user,
+ ui::ScaleFactor scale_factor,
int request_id);
void CancelPendingCustomThumbnailEncodingOperation();
@@ -64,6 +67,7 @@ class WallpaperThumbnailSource : public ChromeURLDataManager::DataSource {
int request_id);
void SendCurrentUserDefaultThumbnail(const std::string& path,
+ ui::ScaleFactor scale_factor,
int request_id);
scoped_refptr<ThumbnailEncodingOperation> thumbnail_encoding_op_;

Powered by Google App Engine
This is Rietveld 408576698