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..a26ae68d7261e7a55a8a1d922b3ccfd998444c90 |
| --- /dev/null |
| +++ b/ash/desktop_background/desktop_background_controller.h |
| @@ -0,0 +1,37 @@ |
| +// 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 "content/public/browser/notification_observer.h" |
| +#include "content/public/browser/notification_registrar.h" |
| +#include "ui/aura/root_window_observer.h" |
| +#include "third_party/skia/include/core/SkBitmap.h" |
| + |
| +namespace ash { |
| + |
| +class ASH_EXPORT DesktopBackgroundController : |
|
flackr
2012/03/06 17:16:49
Comment the class and all non-override functions.
bshe
2012/03/06 19:56:16
Done.
|
| + public aura::RootWindowObserver, |
|
flackr
2012/03/06 17:16:49
This doesn't override any functions from RootWindo
bshe
2012/03/06 19:56:16
Done.
|
| + public content::NotificationObserver { |
| + public: |
| + DesktopBackgroundController(); |
| + virtual ~DesktopBackgroundController(); |
| + void OnDesktopBackgroundChange(int index); |
| + private: |
| + virtual void Observe(int type, |
| + const content::NotificationSource& source, |
| + const content::NotificationDetails& details) OVERRIDE; |
| + |
| + content::NotificationRegistrar registrar_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); |
| +}; |
| + |
| +} // namespace ash |
| + |
| +#endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |