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

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

Issue 10829178: Revert 149915 - Use low resolution wallpapers for small screens (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « no previous file | ash/desktop_background/desktop_background_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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. When |force_reload| is true, reload wallpaper 74 // wallpaper after loaded.
75 // for all root windows even if |index| is the same as current wallpaper. It 75 void SetDefaultWallpaper(int index);
76 // must be true when a different resolution of current wallpaper is needed.
77 void SetDefaultWallpaper(int index, bool force_reload);
78 76
79 // 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
80 // from file system or changed the layout of wallpaper. 78 // from file system or changed the layout of wallpaper.
81 void SetCustomWallpaper(const gfx::ImageSkia& wallpaper, 79 void SetCustomWallpaper(const gfx::ImageSkia& wallpaper,
82 WallpaperLayout layout); 80 WallpaperLayout layout);
83 81
84 // Cancels the current wallpaper loading operation. 82 // Cancels the current wallpaper loading operation.
85 void CancelPendingWallpaperOperation(); 83 void CancelPendingWallpaperOperation();
86 84
87 // 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
125 scoped_refptr<WallpaperOperation> wallpaper_op_; 123 scoped_refptr<WallpaperOperation> wallpaper_op_;
126 124
127 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_; 125 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_;
128 126
129 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); 127 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController);
130 }; 128 };
131 129
132 } // namespace ash 130 } // namespace ash
133 131
134 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ 132 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698