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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; | 88 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; |
89 | 89 |
90 // Is extended desktop enabled? | 90 // Is extended desktop enabled? |
91 static bool IsExtendedDesktopEnabled(); | 91 static bool IsExtendedDesktopEnabled(); |
92 | 92 |
93 private: | 93 private: |
94 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, WarpMousePointer); | 94 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, WarpMousePointer); |
95 | 95 |
96 // Creates a root window for |display| and stores it in the |root_windows_| | 96 // Creates a root window for |display| and stores it in the |root_windows_| |
97 // map. | 97 // map. |
98 aura::RootWindow* AddRootWindowForDisplay(const gfx::Display& display); | 98 // TODO(oshima): remove |is_primary| when non extended desktop mode is |
| 99 // removed. |
| 100 aura::RootWindow* AddRootWindowForDisplay(const gfx::Display& display, |
| 101 bool is_primary); |
99 | 102 |
100 void UpdateDisplayBoundsForLayout(); | 103 void UpdateDisplayBoundsForLayout(); |
101 | 104 |
102 std::map<int, aura::RootWindow*> root_windows_; | 105 std::map<int64, aura::RootWindow*> root_windows_; |
103 | 106 |
104 SecondaryDisplayLayout secondary_display_layout_; | 107 SecondaryDisplayLayout secondary_display_layout_; |
105 | 108 |
106 // If true, the mouse pointer can't move from one display to another. | 109 // If true, the mouse pointer can't move from one display to another. |
107 bool dont_warp_mouse_; | 110 bool dont_warp_mouse_; |
108 | 111 |
109 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 112 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
110 }; | 113 }; |
111 | 114 |
112 } // namespace internal | 115 } // namespace internal |
113 } // namespace ash | 116 } // namespace ash |
114 | 117 |
115 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 118 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
OLD | NEW |