Chromium Code Reviews| 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 we're logged in as a Guest. | |
| 28 virtual bool IsLoggedInAsGuest() = 0; | |
|
sky
2012/04/10 19:55:45
This is really generic. How about making it explic
bshe
2012/04/10 20:46:14
It looks like guest user uses the delegate to get
| |
| 26 }; | 29 }; |
| 27 | 30 |
| 28 // A class to listen for login and desktop background change events and set the | 31 // A class to listen for login and desktop background change events and set the |
| 29 // corresponding default wallpaper in Aura shell. | 32 // corresponding default wallpaper in Aura shell. |
| 30 class ASH_EXPORT DesktopBackgroundController { | 33 class ASH_EXPORT DesktopBackgroundController { |
| 31 public: | 34 public: |
| 32 enum BackgroundMode { | 35 enum BackgroundMode { |
| 33 BACKGROUND_IMAGE, | 36 BACKGROUND_IMAGE, |
| 34 BACKGROUND_SOLID_COLOR | 37 BACKGROUND_SOLID_COLOR |
| 35 }; | 38 }; |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 57 private: | 60 private: |
| 58 // Can change at runtime. | 61 // Can change at runtime. |
| 59 BackgroundMode desktop_background_mode_; | 62 BackgroundMode desktop_background_mode_; |
| 60 | 63 |
| 61 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); | 64 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); |
| 62 }; | 65 }; |
| 63 | 66 |
| 64 } // namespace ash | 67 } // namespace ash |
| 65 | 68 |
| 66 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ | 69 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
| OLD | NEW |