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

Side by Side Diff: ash/desktop_background/user_wallpaper_delegate.h

Issue 190993003: Invalidate all wallpaper cache if display configuration changed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comment to be more specific 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 ASH_DESKTOP_BACKGROUND_USER_WALLPAPER_DELEGATE_H_ 5 #ifndef ASH_DESKTOP_BACKGROUND_USER_WALLPAPER_DELEGATE_H_
6 #define ASH_DESKTOP_BACKGROUND_USER_WALLPAPER_DELEGATE_H_ 6 #define ASH_DESKTOP_BACKGROUND_USER_WALLPAPER_DELEGATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ui/views/corewm/window_animations.h" 9 #include "ui/views/corewm/window_animations.h"
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 // Sets wallpaper animation duration in ms. Pass 0 to use the default. 25 // Sets wallpaper animation duration in ms. Pass 0 to use the default.
26 virtual void SetAnimationDurationOverride(int animation_duration_in_ms) = 0; 26 virtual void SetAnimationDurationOverride(int animation_duration_in_ms) = 0;
27 27
28 // Should the slower initial animation be shown (as opposed to the faster 28 // Should the slower initial animation be shown (as opposed to the faster
29 // animation that's used e.g. when switching from one user's wallpaper to 29 // animation that's used e.g. when switching from one user's wallpaper to
30 // another's on the login screen)? 30 // another's on the login screen)?
31 virtual bool ShouldShowInitialAnimation() = 0; 31 virtual bool ShouldShowInitialAnimation() = 0;
32 32
33 // Updates current wallpaper. It may switch the size of wallpaper based on the 33 // Updates current wallpaper. It may switch the size of wallpaper based on the
34 // current display's resolution. 34 // current display's resolution. If |clear_cache| is true, all wallpaper
35 virtual void UpdateWallpaper() = 0; 35 // cache should be cleared. This is required when the display's native
36 // resolution changes to a larger resolution (e.g. when hooked up a large
37 // external display) and we need to load a larger resolution wallpaper for the
38 // large display. All the previous small resolution wallpaper cache should be
39 // cleared.
40 virtual void UpdateWallpaper(bool clear_cache) = 0;
36 41
37 // Initialize wallpaper. 42 // Initialize wallpaper.
38 virtual void InitializeWallpaper() = 0; 43 virtual void InitializeWallpaper() = 0;
39 44
40 // Opens the set wallpaper page in the browser. 45 // Opens the set wallpaper page in the browser.
41 virtual void OpenSetWallpaperPage() = 0; 46 virtual void OpenSetWallpaperPage() = 0;
42 47
43 // Returns true if user can open set wallpaper page. Only guest user returns 48 // Returns true if user can open set wallpaper page. Only guest user returns
44 // false currently. 49 // false currently.
45 virtual bool CanOpenSetWallpaperPage() = 0; 50 virtual bool CanOpenSetWallpaperPage() = 0;
46 51
47 // Notifies delegate that wallpaper animation has finished. 52 // Notifies delegate that wallpaper animation has finished.
48 virtual void OnWallpaperAnimationFinished() = 0; 53 virtual void OnWallpaperAnimationFinished() = 0;
49 54
50 // Notifies delegate that wallpaper boot animation has finished. 55 // Notifies delegate that wallpaper boot animation has finished.
51 virtual void OnWallpaperBootAnimationFinished() = 0; 56 virtual void OnWallpaperBootAnimationFinished() = 0;
52 }; 57 };
53 58
54 } // namespace ash 59 } // namespace ash
55 60
56 #endif // ASH_DESKTOP_BACKGROUND_USER_WALLPAPER_DELEGATE_H_ 61 #endif // ASH_DESKTOP_BACKGROUND_USER_WALLPAPER_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/desktop_background/desktop_background_controller.cc ('k') | ash/test/test_user_wallpaper_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698