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

Unified Diff: ash/desktop_background/desktop_background_controller.h

Issue 10837089: Use low resolution wallpaper for small screens. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 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: ash/desktop_background/desktop_background_controller.h
diff --git a/ash/desktop_background/desktop_background_controller.h b/ash/desktop_background/desktop_background_controller.h
index b575654bdd60a65231d974e51d94eb54d41cd78e..813e338266e25e08d919be8a2ecc502359f3908d 100644
--- a/ash/desktop_background/desktop_background_controller.h
+++ b/ash/desktop_background/desktop_background_controller.h
@@ -71,8 +71,10 @@ class ASH_EXPORT DesktopBackgroundController {
void OnRootWindowAdded(aura::RootWindow* root_window);
// Loads default wallpaper at |index| asynchronously and sets to current
- // wallpaper after loaded.
- void SetDefaultWallpaper(int index);
+ // wallpaper after loaded. When |force_reload| is true, reload wallpaper
+ // for all root windows even if |index| is the same as current wallpaper. It
+ // must be true when a different resolution of current wallpaper is needed.
+ void SetDefaultWallpaper(int index, bool force_reload);
// Sets the user selected custom wallpaper. Called when user selected a file
// from file system or changed the layout of wallpaper.
« no previous file with comments | « no previous file | ash/desktop_background/desktop_background_controller.cc » ('j') | ui/resources/ui_resources.grd » ('J')

Powered by Google App Engine
This is Rietveld 408576698