Chromium Code Reviews| Index: ash/monitor/monitor_controller.h |
| diff --git a/ash/monitor/monitor_controller.h b/ash/monitor/monitor_controller.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..512174aa15cdfa4cc5338e19565e58da007b3bda |
| --- /dev/null |
| +++ b/ash/monitor/monitor_controller.h |
| @@ -0,0 +1,43 @@ |
| +// 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_MONITOR_MONITOR_CONTROLLER_H_ |
| +#define ASH_MONITOR_MONITOR_CONTROLLER_H_ |
| +#pragma once |
| + |
| +#include <map> |
| + |
| +#include "base/basictypes.h" |
| +#include "base/compiler_specific.h" |
| +#include "ui/aura/monitor_manager.h" |
| + |
| +namespace aura { |
| +class RootWindow; |
| +} |
| + |
| +namespace ash { |
| +namespace internal { |
| + |
| +// MonitorController controls RootWindow to match monitor's configuration. |
|
Ben Goodger (Google)
2012/03/20 17:09:02
"MonitorController creates and maintains RootWindo
oshima
2012/03/20 19:26:36
Done.
|
| +class MonitorController : public aura::MonitorObserver { |
| + public: |
| + MonitorController(); |
| + virtual ~MonitorController(); |
| + |
| + // aura::MonitorObserver overrides: |
| + virtual void OnMonitorBoundsChanged(const aura::Monitor* monitor) OVERRIDE; |
| + |
| + private: |
| + void Init(); |
| + |
| + // Mapping from monitor to RootWindows. |
|
Ben Goodger (Google)
2012/03/20 17:09:02
comment is not that useful :-)
oshima
2012/03/20 19:26:36
Remoevd
|
| + std::map<const aura::Monitor*, aura::RootWindow*> root_windows_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(MonitorController); |
| +}; |
| + |
| +} // namespace internal |
| +} // namespace ash |
| + |
| +#endif // ASH_MONITOR_MONITOR_CONTROLLER_H_ |