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

Unified Diff: ash/desktop_background/desktop_background_controller.h

Issue 10827154: Preload default wallpaper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nikita's reivew 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..91a486c0080a2c38d13e08c12a8414ac651aec22 100644
--- a/ash/desktop_background/desktop_background_controller.h
+++ b/ash/desktop_background/desktop_background_controller.h
@@ -70,6 +70,11 @@ class ASH_EXPORT DesktopBackgroundController {
// Initialize root window's background.
void OnRootWindowAdded(aura::RootWindow* root_window);
+ // Loads default wallpaper at |index| asynchronously but does not set the
+ // loaded image to current wallpaper. Resource bundle will cache the loaded
+ // image.
+ void TriggerCacheDefaultWallpaper(int index);
Nikita (slow) 2012/08/06 16:36:01 nit: just CacheDefaultWallpaper ?
bshe 2012/08/07 15:18:57 Done.
+
// Loads default wallpaper at |index| asynchronously and sets to current
// wallpaper after loaded.
void SetDefaultWallpaper(int index);

Powered by Google App Engine
This is Rietveld 408576698