OLD | NEW |
---|---|
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_DISPLAY_DISPLAY_CONTROLLER_H_ | 5 #ifndef ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
6 #define ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 6 #define ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
93 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; | 93 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; |
94 | 94 |
95 // Is extended desktop enabled? | 95 // Is extended desktop enabled? |
96 static bool IsExtendedDesktopEnabled(); | 96 static bool IsExtendedDesktopEnabled(); |
97 | 97 |
98 private: | 98 private: |
99 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, WarpMousePointer); | 99 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, WarpMousePointer); |
100 | 100 |
101 // Creates a root window for |display| and stores it in the |root_windows_| | 101 // Creates a root window for |display| and stores it in the |root_windows_| |
102 // map. | 102 // map. |
103 aura::RootWindow* AddRootWindowForDisplay(const gfx::Display& display); | 103 // TODO(oshima): remove |is_primary| when non extended desktop mode is |
104 // removed. | |
105 aura::RootWindow* AddRootWindowForDisplay(const gfx::Display& display, | |
106 bool is_primary); | |
104 | 107 |
105 void UpdateDisplayBoundsForLayout(); | 108 void UpdateDisplayBoundsForLayout(); |
106 | 109 |
107 std::map<int, aura::RootWindow*> root_windows_; | 110 std::map<int64, aura::RootWindow*> root_windows_; |
Daniel Erat
2012/08/20 15:12:07
nit: add a comment describing what the key value r
Jun Mukai
2012/08/21 02:13:11
Done.
| |
108 | 111 |
109 SecondaryDisplayLayout secondary_display_layout_; | 112 SecondaryDisplayLayout secondary_display_layout_; |
110 | 113 |
111 // The offset of the position of the secondary display. The offset is | 114 // The offset of the position of the secondary display. The offset is |
112 // based on the top/left edge of the primary display. | 115 // based on the top/left edge of the primary display. |
113 int secondary_display_offset_; | 116 int secondary_display_offset_; |
114 | 117 |
115 // If true, the mouse pointer can't move from one display to another. | 118 // If true, the mouse pointer can't move from one display to another. |
116 bool dont_warp_mouse_; | 119 bool dont_warp_mouse_; |
117 | 120 |
118 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 121 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
119 }; | 122 }; |
120 | 123 |
121 } // namespace internal | 124 } // namespace internal |
122 } // namespace ash | 125 } // namespace ash |
123 | 126 |
124 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 127 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
OLD | NEW |