| OLD | NEW |
| 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 "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 13 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
| 14 #include "third_party/skia/include/core/SkColor.h" | 15 #include "third_party/skia/include/core/SkColor.h" |
| 15 #include "ui/gfx/image/image_skia.h" | 16 #include "ui/gfx/image/image_skia.h" |
| 16 | 17 |
| 17 namespace aura { | 18 namespace aura { |
| 18 class RootWindow; | 19 class RootWindow; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace ash { | 22 namespace ash { |
| 22 | 23 |
| 23 class UserWallpaperDelegate { | 24 class UserWallpaperDelegate { |
| 24 public: | 25 public: |
| 25 virtual ~UserWallpaperDelegate() {} | 26 virtual ~UserWallpaperDelegate() {} |
| 26 | 27 |
| 28 // Returns type of window animation that should be used when showin wallpaper. |
| 29 virtual ash::WindowVisibilityAnimationType GetAnimationType() = 0; |
| 30 |
| 27 // Initialize wallpaper. | 31 // Initialize wallpaper. |
| 28 virtual void InitializeWallpaper() = 0; | 32 virtual void InitializeWallpaper() = 0; |
| 29 | 33 |
| 30 // Opens the set wallpaper page in the browser. | 34 // Opens the set wallpaper page in the browser. |
| 31 virtual void OpenSetWallpaperPage() = 0; | 35 virtual void OpenSetWallpaperPage() = 0; |
| 32 | 36 |
| 33 // Returns true if user can open set wallpaper page. Only guest user returns | 37 // Returns true if user can open set wallpaper page. Only guest user returns |
| 34 // false currently. | 38 // false currently. |
| 35 virtual bool CanOpenSetWallpaperPage() = 0; | 39 virtual bool CanOpenSetWallpaperPage() = 0; |
| 36 | 40 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 scoped_refptr<WallpaperOperation> wallpaper_op_; | 123 scoped_refptr<WallpaperOperation> wallpaper_op_; |
| 120 | 124 |
| 121 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_; | 125 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_; |
| 122 | 126 |
| 123 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); | 127 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); |
| 124 }; | 128 }; |
| 125 | 129 |
| 126 } // namespace ash | 130 } // namespace ash |
| 127 | 131 |
| 128 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ | 132 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
| OLD | NEW |