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

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

Issue 10883062: Resize and save custom wallpaper to large and small size (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "ui/aura/window.h" 14 #include "ui/aura/window.h"
15 #include "ui/aura/window_observer.h" 15 #include "ui/aura/window_observer.h"
16 #include "ui/compositor/layer.h" 16 #include "ui/compositor/layer.h"
17 #include "ui/gfx/image/image_skia.h" 17 #include "ui/gfx/image/image_skia.h"
18 18
19 typedef unsigned int SkColor; 19 typedef unsigned int SkColor;
20 20
21 namespace aura { 21 namespace aura {
22 class RootWindow; 22 class RootWindow;
23 } 23 }
24 24
25 namespace ash { 25 namespace ash {
26 26
27 ASH_EXPORT extern const int kSmallWallpaperMaximalWidth;
sky 2012/08/28 19:39:42 Document what these are.
bshe 2012/08/29 14:30:07 Done.
28 ASH_EXPORT extern const int kSmallWallpaperMaximalHeight;
29 ASH_EXPORT extern const int kLargeWallpaperMaximalWidth;
30 ASH_EXPORT extern const int kLargeWallpaperMaximalHeight;
31
27 class UserWallpaperDelegate { 32 class UserWallpaperDelegate {
28 public: 33 public:
29 virtual ~UserWallpaperDelegate() {} 34 virtual ~UserWallpaperDelegate() {}
30 35
31 // Returns type of window animation that should be used when showin wallpaper. 36 // Returns type of window animation that should be used when showin wallpaper.
32 virtual ash::WindowVisibilityAnimationType GetAnimationType() = 0; 37 virtual ash::WindowVisibilityAnimationType GetAnimationType() = 0;
33 38
34 // Initialize wallpaper. 39 // Initialize wallpaper.
35 virtual void InitializeWallpaper() = 0; 40 virtual void InitializeWallpaper() = 0;
36 41
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 scoped_refptr<WallpaperOperation> wallpaper_op_; 174 scoped_refptr<WallpaperOperation> wallpaper_op_;
170 175
171 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_; 176 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_;
172 177
173 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); 178 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController);
174 }; 179 };
175 180
176 } // namespace ash 181 } // namespace ash
177 182
178 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ 183 #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