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

Side by Side 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: Please review this patch 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_DESKTOP_BACKGROUND_CONTROLLER_H_ 5 #ifndef ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_
6 #define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ 6 #define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/desktop_background/desktop_background_resources.h" 9 #include "ash/desktop_background/desktop_background_resources.h"
10 #include "ash/wm/window_animations.h" 10 #include "ash/wm/window_animations.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // Provides current image on the background, or empty SkBitmap if there is 66 // Provides current image on the background, or empty SkBitmap if there is
67 // no image, e.g. background is solid color. 67 // no image, e.g. background is solid color.
68 SkBitmap GetCurrentWallpaperImage(); 68 SkBitmap GetCurrentWallpaperImage();
69 69
70 // Initialize root window's background. 70 // Initialize root window's background.
71 void OnRootWindowAdded(aura::RootWindow* root_window); 71 void OnRootWindowAdded(aura::RootWindow* root_window);
72 72
73 // Loads default wallpaper at |index| asynchronously and sets to current 73 // Loads default wallpaper at |index| asynchronously and sets to current
74 // wallpaper after loaded. 74 // wallpaper after loaded.
75 void SetDefaultWallpaper(int index); 75 void SetDefaultWallpaper(int index, bool force_reload);
76 76
77 // Sets the user selected custom wallpaper. Called when user selected a file 77 // Sets the user selected custom wallpaper. Called when user selected a file
78 // from file system or changed the layout of wallpaper. 78 // from file system or changed the layout of wallpaper.
79 void SetCustomWallpaper(const gfx::ImageSkia& wallpaper, 79 void SetCustomWallpaper(const gfx::ImageSkia& wallpaper,
80 WallpaperLayout layout); 80 WallpaperLayout layout);
81 81
82 // Cancels the current wallpaper loading operation. 82 // Cancels the current wallpaper loading operation.
83 void CancelPendingWallpaperOperation(); 83 void CancelPendingWallpaperOperation();
84 84
85 // Sets the desktop background to solid color mode and creates a solid 85 // Sets the desktop background to solid color mode and creates a solid
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 scoped_refptr<WallpaperOperation> wallpaper_op_; 123 scoped_refptr<WallpaperOperation> wallpaper_op_;
124 124
125 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_; 125 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); 127 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController);
128 }; 128 };
129 129
130 } // namespace ash 130 } // namespace ash
131 131
132 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ 132 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698