Chromium Code Reviews

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

Issue 10696002: ASH: Use virtual screen coordinates in Display::bounds() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
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 #include <vector> 10 #include <vector>
(...skipping 78 matching lines...)
89 // Is virtual screen coordinates enabled? 89 // Is virtual screen coordinates enabled?
90 static bool IsVirtualScreenCoordinatesEnabled(); 90 static bool IsVirtualScreenCoordinatesEnabled();
91 // Turns on/off the virtual screen coordinates. 91 // Turns on/off the virtual screen coordinates.
92 static void SetVirtualScreenCoordinatesEnabled(bool enabled); 92 static void SetVirtualScreenCoordinatesEnabled(bool enabled);
93 93
94 private: 94 private:
95 // Creates a root window for |display| and stores it in the |root_windows_| 95 // Creates a root window for |display| and stores it in the |root_windows_|
96 // map. 96 // map.
97 aura::RootWindow* AddRootWindowForDisplay(const gfx::Display& display); 97 aura::RootWindow* AddRootWindowForDisplay(const gfx::Display& display);
98 98
99 void UpdateDisplayBoundsForLayout();
100
99 std::map<int, aura::RootWindow*> root_windows_; 101 std::map<int, aura::RootWindow*> root_windows_;
100 102
101 SecondaryDisplayLayout secondary_display_layout_; 103 SecondaryDisplayLayout secondary_display_layout_;
102 104
103 DISALLOW_COPY_AND_ASSIGN(MonitorController); 105 DISALLOW_COPY_AND_ASSIGN(MonitorController);
104 }; 106 };
105 107
106 } // namespace internal 108 } // namespace internal
107 } // namespace ash 109 } // namespace ash
108 110
109 #endif // ASH_MONITOR_MONITOR_CONTROLLER_H_ 111 #endif // ASH_MONITOR_MONITOR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine