OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ | |
6 #define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ | |
7 #pragma once | |
8 | |
9 #include "ash/ash_export.h" | |
10 #include "base/basictypes.h" | |
11 #include "third_party/skia/include/core/SkBitmap.h" | |
12 | |
13 namespace ash { | |
14 | |
15 // A class to listen for login and desktop background change events and set the | |
16 // corresponding default wallpaper in Aura shell. | |
17 class ASH_EXPORT DesktopBackgroundController { | |
18 public: | |
19 DesktopBackgroundController(); | |
20 virtual ~DesktopBackgroundController(); | |
21 | |
22 // Change the desktop background image to default wallpaper with |index|. | |
23 void OnDesktopBackgroundChange(int index); | |
24 | |
25 // Returns the preset default wallpaper. | |
26 const SkBitmap& GetPresetWallpaper(); | |
Ben Goodger (Google)
2012/03/09 23:20:17
GetDefaultWallpaper
bshe
2012/03/12 00:14:25
Done.
| |
27 | |
28 // Returns previous wallpaper. | |
29 const SkBitmap& GetPreviouseWallpaper(); | |
Ben Goodger (Google)
2012/03/09 23:20:17
Describe what the previous wallpaper is used for.
bshe
2012/03/12 00:14:25
Done. Add comments above definition of variable pr
| |
30 | |
31 private: | |
32 | |
Ben Goodger (Google)
2012/03/09 23:20:17
kill the space
bshe
2012/03/12 00:14:25
Done.
| |
33 int previous_wallpaper_index_; | |
34 | |
35 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); | |
36 }; | |
37 | |
38 } // namespace ash | |
39 | |
40 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ | |
OLD | NEW |