| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ash/ash_export.h" | 9 #include "ash/ash_export.h" |
| 10 #include "ash/desktop_background/desktop_background_resources.h" | 10 #include "ash/desktop_background/desktop_background_resources.h" |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 | 12 |
| 13 class SkBitmap; | 13 class SkBitmap; |
| 14 | 14 |
| 15 namespace ash { | 15 namespace ash { |
| 16 | 16 |
| 17 class UserWallpaperDelegate { | 17 class UserWallpaperDelegate { |
| 18 public: | 18 public: |
| 19 virtual ~UserWallpaperDelegate() {} | 19 virtual ~UserWallpaperDelegate() {} |
| 20 | 20 |
| 21 // Gets the index of user selected wallpaper. | 21 // Gets the index of user selected wallpaper. |
| 22 virtual const int GetUserWallpaperIndex() = 0; | 22 virtual const int GetUserWallpaperIndex() = 0; |
| 23 | 23 |
| 24 // Open the set wallpaper page in the browser. | 24 // Open the set wallpaper page in the browser. |
| 25 virtual void OpenSetWallpaperPage() = 0; | 25 virtual void OpenSetWallpaperPage() = 0; |
| 26 |
| 27 // Returns true if user can open set wallpaper page. Only guest user returns |
| 28 // false currently. |
| 29 virtual bool CanOpenSetWallpaperPage() = 0; |
| 26 }; | 30 }; |
| 27 | 31 |
| 28 // A class to listen for login and desktop background change events and set the | 32 // A class to listen for login and desktop background change events and set the |
| 29 // corresponding default wallpaper in Aura shell. | 33 // corresponding default wallpaper in Aura shell. |
| 30 class ASH_EXPORT DesktopBackgroundController { | 34 class ASH_EXPORT DesktopBackgroundController { |
| 31 public: | 35 public: |
| 32 enum BackgroundMode { | 36 enum BackgroundMode { |
| 33 BACKGROUND_IMAGE, | 37 BACKGROUND_IMAGE, |
| 34 BACKGROUND_SOLID_COLOR | 38 BACKGROUND_SOLID_COLOR |
| 35 }; | 39 }; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 57 private: | 61 private: |
| 58 // Can change at runtime. | 62 // Can change at runtime. |
| 59 BackgroundMode desktop_background_mode_; | 63 BackgroundMode desktop_background_mode_; |
| 60 | 64 |
| 61 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); | 65 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); |
| 62 }; | 66 }; |
| 63 | 67 |
| 64 } // namespace ash | 68 } // namespace ash |
| 65 | 69 |
| 66 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ | 70 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
| OLD | NEW |