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

Side by Side Diff: ash/monitor/monitor_controller.h

Issue 9701098: MultiMonitor support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix shutdown order 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 ASH_MONITOR_MONITOR_CONTROLLER_H_
6 #define ASH_MONITOR_MONITOR_CONTROLLER_H_
7 #pragma once
8
9 #include <map>
10
11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h"
13 #include "ui/aura/monitor_manager.h"
14
15 namespace aura {
16 class RootWindow;
17 }
18
19 namespace ash {
20 namespace internal {
21
22 // 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.
23 class MonitorController : public aura::MonitorObserver {
24 public:
25 MonitorController();
26 virtual ~MonitorController();
27
28 // aura::MonitorObserver overrides:
29 virtual void OnMonitorBoundsChanged(const aura::Monitor* monitor) OVERRIDE;
30
31 private:
32 void Init();
33
34 // 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
35 std::map<const aura::Monitor*, aura::RootWindow*> root_windows_;
36
37 DISALLOW_COPY_AND_ASSIGN(MonitorController);
38 };
39
40 } // namespace internal
41 } // namespace ash
42
43 #endif // ASH_MONITOR_MONITOR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698