| 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 CHROME_BROWSER_CHROMEOS_BACKGROUND_DESKTOP_BACKGROUND_OBSERVER_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_BACKGROUND_DESKTOP_BACKGROUND_OBSERVER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "content/public/browser/notification_observer.h" | |
| 10 #include "content/public/browser/notification_registrar.h" | |
| 11 | |
| 12 namespace ash { | |
| 13 class UserWallpaperDelegate; | |
| 14 } | |
| 15 | |
| 16 namespace chromeos { | |
| 17 | |
| 18 ash::UserWallpaperDelegate* CreateUserWallpaperDelegate(); | |
| 19 | |
| 20 // Listens for background change events and passes them to the Aura shell's | |
| 21 // DesktopBackgroundController class. | |
| 22 class DesktopBackgroundObserver : public content::NotificationObserver { | |
| 23 public: | |
| 24 DesktopBackgroundObserver(); | |
| 25 virtual ~DesktopBackgroundObserver(); | |
| 26 | |
| 27 private: | |
| 28 | |
| 29 // content::NotificationObserver implementation. | |
| 30 virtual void Observe(int type, | |
| 31 const content::NotificationSource& source, | |
| 32 const content::NotificationDetails& details) OVERRIDE; | |
| 33 | |
| 34 content::NotificationRegistrar registrar_; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundObserver); | |
| 37 }; | |
| 38 | |
| 39 } // namespace chromeos | |
| 40 #endif // CHROME_BROWSER_CHROMEOS_BACKGROUND_DESKTOP_BACKGROUND_OBSERVER_H_ | |
| OLD | NEW |