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

Unified Diff: ash/monitor/monitor_controller.h

Issue 9701098: MultiMonitor support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang fix Created 8 years, 9 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
« no previous file with comments | « ash/ash.gyp ('k') | ash/monitor/monitor_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..52df5f7626c9401efd474e758545daa1785a5968
--- /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 creates and maintains RootWindows for each
+// attached monitor, keeping them in sync with monitor configuration changes.
+class MonitorController : public aura::MonitorObserver {
+ public:
+ MonitorController();
+ virtual ~MonitorController();
+
+ // aura::MonitorObserver overrides:
+ virtual void OnMonitorBoundsChanged(const aura::Monitor* monitor) OVERRIDE;
+
+ private:
+ void Init();
+
+ std::map<const aura::Monitor*, aura::RootWindow*> root_windows_;
+
+ DISALLOW_COPY_AND_ASSIGN(MonitorController);
+};
+
+} // namespace internal
+} // namespace ash
+
+#endif // ASH_MONITOR_MONITOR_CONTROLLER_H_
« no previous file with comments | « ash/ash.gyp ('k') | ash/monitor/monitor_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698