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

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: reviews 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
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 // The width and height of small/large resolution wallpaper. When screen size is
28 // smaller than kSmallWallpaperMaxWidth and kSmallWallpaperMaxHeight, the small
Ivan Korotkov 2012/08/30 10:53:15 vars in |...|
bshe 2012/08/30 16:39:02 Done.
29 // resolution wallpaper should be used. Otherwise, uses the large resolution
30 // wallpaper.
31 ASH_EXPORT extern const int kSmallWallpaperMaxWidth;
32 ASH_EXPORT extern const int kSmallWallpaperMaxHeight;
33 ASH_EXPORT extern const int kLargeWallpaperMaxWidth;
34 ASH_EXPORT extern const int kLargeWallpaperMaxHeight;
35
27 class UserWallpaperDelegate { 36 class UserWallpaperDelegate {
28 public: 37 public:
29 virtual ~UserWallpaperDelegate() {} 38 virtual ~UserWallpaperDelegate() {}
30 39
31 // Returns type of window animation that should be used when showin wallpaper. 40 // Returns type of window animation that should be used when showin wallpaper.
32 virtual ash::WindowVisibilityAnimationType GetAnimationType() = 0; 41 virtual ash::WindowVisibilityAnimationType GetAnimationType() = 0;
33 42
34 // Initialize wallpaper. 43 // Initialize wallpaper.
35 virtual void InitializeWallpaper() = 0; 44 virtual void InitializeWallpaper() = 0;
36 45
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 scoped_refptr<WallpaperOperation> wallpaper_op_; 178 scoped_refptr<WallpaperOperation> wallpaper_op_;
170 179
171 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_; 180 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_;
172 181
173 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); 182 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController);
174 }; 183 };
175 184
176 } // namespace ash 185 } // namespace ash
177 186
178 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ 187 #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') | chrome/browser/chromeos/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698