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

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: 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 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 WallpaperLayout GetWallpaperLayout() const; 64 WallpaperLayout GetWallpaperLayout() const;
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. When |force_reload| is true, reload wallpaper
75 void SetDefaultWallpaper(int index); 75 // for all root windows even if |index| is the same as current wallpaper. It
76 // must be true when a different resolution of current wallpaper is needed.
77 void SetDefaultWallpaper(int index, bool force_reload);
76 78
77 // Sets the user selected custom wallpaper. Called when user selected a file 79 // Sets the user selected custom wallpaper. Called when user selected a file
78 // from file system or changed the layout of wallpaper. 80 // from file system or changed the layout of wallpaper.
79 void SetCustomWallpaper(const gfx::ImageSkia& wallpaper, 81 void SetCustomWallpaper(const gfx::ImageSkia& wallpaper,
80 WallpaperLayout layout); 82 WallpaperLayout layout);
81 83
82 // Cancels the current wallpaper loading operation. 84 // Cancels the current wallpaper loading operation.
83 void CancelPendingWallpaperOperation(); 85 void CancelPendingWallpaperOperation();
84 86
85 // Sets the desktop background to solid color mode and creates a solid 87 // 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_; 125 scoped_refptr<WallpaperOperation> wallpaper_op_;
124 126
125 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_; 127 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_;
126 128
127 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); 129 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController);
128 }; 130 };
129 131
130 } // namespace ash 132 } // namespace ash
131 133
132 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ 134 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_
OLDNEW
« 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