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_OPTIONS2_DESKTOP_BACKGROUND_OBSERVER_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS2_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 chromeos { | |
13 | |
14 // Listens for background change events and passes them to | |
15 // the Aura shell's DesktopBackgroundController class. | |
flackr
2012/03/05 16:16:03
This class seems misplaced / unnecessary. Aura she
bshe
2012/03/06 01:33:27
Done.
| |
16 class DesktopBackgroundObserver : public content::NotificationObserver{ | |
17 public: | |
18 DesktopBackgroundObserver(); | |
19 virtual ~DesktopBackgroundObserver(); | |
20 private: | |
21 virtual void Observe(int type, | |
22 const content::NotificationSource& source, | |
23 const content::NotificationDetails& details) OVERRIDE; | |
24 | |
25 content::NotificationRegistrar registrar_; | |
26 | |
27 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundObserver); | |
28 }; | |
29 | |
30 } // namespace chromeos | |
31 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS2_DESKTOP_BACKGROUND_OBSERVER_H_ | |
OLD | NEW |