Chromium Code Reviews| 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 "content/public/browser/notification_observer.h" | |
| 12 #include "content/public/browser/notification_registrar.h" | |
| 13 #include "ui/aura/root_window_observer.h" | |
|
flackr
2012/03/06 20:25:28
Remove this include as well.
bshe
2012/03/07 19:50:44
Done.
| |
| 14 #include "third_party/skia/include/core/SkBitmap.h" | |
| 15 | |
| 16 namespace ash { | |
| 17 | |
| 18 // A class to listen for login and desktop background change events and set the | |
| 19 // corresponding default wallpaper in Aura shell. | |
| 20 class ASH_EXPORT DesktopBackgroundController : | |
| 21 public content::NotificationObserver { | |
| 22 public: | |
| 23 DesktopBackgroundController(); | |
| 24 virtual ~DesktopBackgroundController(); | |
| 25 | |
| 26 // Change the desktop background image to default wallpaper with |index|. | |
| 27 void OnDesktopBackgroundChange(int index); | |
| 28 private: | |
| 29 virtual void Observe(int type, | |
| 30 const content::NotificationSource& source, | |
| 31 const content::NotificationDetails& details) OVERRIDE; | |
| 32 | |
| 33 content::NotificationRegistrar registrar_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); | |
| 36 }; | |
| 37 | |
| 38 } // namespace ash | |
| 39 | |
| 40 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ | |
| OLD | NEW |