Chromium Code Reviews| Index: ash/desktop_background/desktop_background_controller.h |
| diff --git a/ash/desktop_background/desktop_background_controller.h b/ash/desktop_background/desktop_background_controller.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3f1781db16589519d0f8f79b435e74711a663642 |
| --- /dev/null |
| +++ b/ash/desktop_background/desktop_background_controller.h |
| @@ -0,0 +1,40 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
| +#define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
| +#pragma once |
| + |
| +#include "ash/ash_export.h" |
| +#include "base/basictypes.h" |
| +#include "third_party/skia/include/core/SkBitmap.h" |
| + |
| +namespace ash { |
| + |
| +// A class to listen for login and desktop background change events and set the |
| +// corresponding default wallpaper in Aura shell. |
| +class ASH_EXPORT DesktopBackgroundController { |
| + public: |
| + DesktopBackgroundController(); |
| + virtual ~DesktopBackgroundController(); |
| + |
| + // Change the desktop background image to default wallpaper with |index|. |
| + void OnDesktopBackgroundChange(int index); |
| + |
| + // Returns the preset default wallpaper. |
| + const SkBitmap& GetPresetWallpaper(); |
|
Ben Goodger (Google)
2012/03/09 23:20:17
GetDefaultWallpaper
bshe
2012/03/12 00:14:25
Done.
|
| + |
| + // Returns previous wallpaper. |
| + 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
|
| + |
| + private: |
| + |
|
Ben Goodger (Google)
2012/03/09 23:20:17
kill the space
bshe
2012/03/12 00:14:25
Done.
|
| + int previous_wallpaper_index_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); |
| +}; |
| + |
| +} // namespace ash |
| + |
| +#endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |