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

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

Issue 9837046: Revert r128507 "Revert r128436 "relanding: disabled workspace_window_resizer test. fixed access-aft… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « ash/ash.gyp ('k') | ash/monitor/monitor_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_MONITOR_MONITOR_CONTROLLER_H_ 5 #ifndef ASH_MONITOR_MONITOR_CONTROLLER_H_
6 #define ASH_MONITOR_MONITOR_CONTROLLER_H_ 6 #define ASH_MONITOR_MONITOR_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 // MonitorController creates and maintains RootWindows for each 22 // MonitorController creates and maintains RootWindows for each
23 // attached monitor, keeping them in sync with monitor configuration changes. 23 // attached monitor, keeping them in sync with monitor configuration changes.
24 class MonitorController : public aura::MonitorObserver { 24 class MonitorController : public aura::MonitorObserver {
25 public: 25 public:
26 MonitorController(); 26 MonitorController();
27 virtual ~MonitorController(); 27 virtual ~MonitorController();
28 28
29 // aura::MonitorObserver overrides: 29 // aura::MonitorObserver overrides:
30 virtual void OnMonitorBoundsChanged(const aura::Monitor* monitor) OVERRIDE; 30 virtual void OnMonitorBoundsChanged(const aura::Monitor* monitor) OVERRIDE;
31 virtual void OnMonitorAdded(aura::Monitor* monitor) OVERRIDE;
32 virtual void OnMonitorRemoved(const aura::Monitor* monitor) OVERRIDE;
31 33
32 private: 34 private:
33 void Init(); 35 void Init();
34 36
35 std::map<const aura::Monitor*, aura::RootWindow*> root_windows_; 37 std::map<const aura::Monitor*, aura::RootWindow*> root_windows_;
36 38
37 DISALLOW_COPY_AND_ASSIGN(MonitorController); 39 DISALLOW_COPY_AND_ASSIGN(MonitorController);
38 }; 40 };
39 41
40 } // namespace internal 42 } // namespace internal
41 } // namespace ash 43 } // namespace ash
42 44
43 #endif // ASH_MONITOR_MONITOR_CONTROLLER_H_ 45 #endif // ASH_MONITOR_MONITOR_CONTROLLER_H_
OLDNEW
« 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