Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4733)

Unified Diff: chrome/browser/chromeos/options2/desktop_background_observer.h

Issue 9580023: Enable user change background image in settings page in Aura build. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: More refactor Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/options2/desktop_background_observer.h
diff --git a/chrome/browser/chromeos/options2/desktop_background_observer.h b/chrome/browser/chromeos/options2/desktop_background_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..50fcbbbe1ffa3321ad40454c53a0286e0c1f8784
--- /dev/null
+++ b/chrome/browser/chromeos/options2/desktop_background_observer.h
@@ -0,0 +1,31 @@
+// 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 CHROME_BROWSER_CHROMEOS_OPTIONS2_DESKTOP_BACKGROUND_OBSERVER_H_
+#define CHROME_BROWSER_CHROMEOS_OPTIONS2_DESKTOP_BACKGROUND_OBSERVER_H_
+#pragma once
+
+#include "content/public/browser/notification_observer.h"
+#include "content/public/browser/notification_registrar.h"
+
+namespace chromeos {
+
+// Listens for background change events and passes them to
+// 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.
+class DesktopBackgroundObserver : public content::NotificationObserver{
+ public:
+ DesktopBackgroundObserver();
+ virtual ~DesktopBackgroundObserver();
+ private:
+ virtual void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) OVERRIDE;
+
+ content::NotificationRegistrar registrar_;
+
+ DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundObserver);
+};
+
+} // namespace chromeos
+#endif // CHROME_BROWSER_CHROMEOS_OPTIONS2_DESKTOP_BACKGROUND_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698