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

Side by Side Diff: chrome/browser/chromeos/login/wallpaper_manager.h

Issue 190993003: Invalidate all wallpaper cache if display configuration changed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 273
274 // Sets wallpaper to |wallpaper| (asynchronously with zero delay). If 274 // Sets wallpaper to |wallpaper| (asynchronously with zero delay). If
275 // |update_wallpaper| is false, skip change wallpaper but only update cache. 275 // |update_wallpaper| is false, skip change wallpaper but only update cache.
276 void SetWallpaperFromImageSkia(const std::string& user_id, 276 void SetWallpaperFromImageSkia(const std::string& user_id,
277 const gfx::ImageSkia& wallpaper, 277 const gfx::ImageSkia& wallpaper,
278 ash::WallpaperLayout layout, 278 ash::WallpaperLayout layout,
279 bool update_wallpaper); 279 bool update_wallpaper);
280 280
281 // Updates current wallpaper. It may switch the size of wallpaper based on the 281 // Updates current wallpaper. It may switch the size of wallpaper based on the
282 // current display's resolution. (asynchronously with zero delay) 282 // current display's resolution. (asynchronously with zero delay)
283 void UpdateWallpaper(); 283 void UpdateWallpaper(bool clear_cache);
284 284
285 // Adds given observer to the list. 285 // Adds given observer to the list.
286 void AddObserver(Observer* observer); 286 void AddObserver(Observer* observer);
287 287
288 // Removes given observer from the list. 288 // Removes given observer from the list.
289 void RemoveObserver(Observer* observer); 289 void RemoveObserver(Observer* observer);
290 290
291 private: 291 private:
292 friend class TestApi; 292 friend class TestApi;
293 friend class WallpaperManagerBrowserTest; 293 friend class WallpaperManagerBrowserTest;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 // All pending will be finally deleted on destroy. 495 // All pending will be finally deleted on destroy.
496 typedef std::vector<scoped_refptr<PendingWallpaper> > PendingList; 496 typedef std::vector<scoped_refptr<PendingWallpaper> > PendingList;
497 PendingList loading_; 497 PendingList loading_;
498 498
499 DISALLOW_COPY_AND_ASSIGN(WallpaperManager); 499 DISALLOW_COPY_AND_ASSIGN(WallpaperManager);
500 }; 500 };
501 501
502 } // namespace chromeos 502 } // namespace chromeos
503 503
504 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ 504 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698