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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 virtual void OnDisplayBoundsChanged( | 84 virtual void OnDisplayBoundsChanged( |
85 const gfx::Display& display) OVERRIDE; | 85 const gfx::Display& display) OVERRIDE; |
86 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; | 86 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; |
87 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; | 87 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; |
88 | 88 |
89 // Is extended desktop enabled? | 89 // Is extended desktop enabled? |
90 static bool IsExtendedDesktopEnabled(); | 90 static bool IsExtendedDesktopEnabled(); |
91 | 91 |
92 private: | 92 private: |
93 // Creates a root window for |display| and stores it in the |root_windows_| | 93 // Creates a root window for |display| and stores it in the |root_windows_| |
94 // map. | 94 // map. |
oshima
2012/08/10 03:09:51
// TODO(oshima): remove |is_primary| when non exte
Jun Mukai
2012/08/10 09:39:52
Done.
| |
95 aura::RootWindow* AddRootWindowForDisplay(const gfx::Display& display); | 95 aura::RootWindow* AddRootWindowForDisplay(const gfx::Display& display, |
96 bool is_primary); | |
96 | 97 |
97 void UpdateDisplayBoundsForLayout(); | 98 void UpdateDisplayBoundsForLayout(); |
98 | 99 |
99 std::map<int, aura::RootWindow*> root_windows_; | 100 std::map<int64, aura::RootWindow*> root_windows_; |
100 | 101 |
101 SecondaryDisplayLayout secondary_display_layout_; | 102 SecondaryDisplayLayout secondary_display_layout_; |
102 | 103 |
103 // If true, the mouse pointer can't move from one display to another. | 104 // If true, the mouse pointer can't move from one display to another. |
104 bool dont_warp_mouse_; | 105 bool dont_warp_mouse_; |
105 | 106 |
106 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 107 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
107 }; | 108 }; |
108 | 109 |
109 } // namespace internal | 110 } // namespace internal |
110 } // namespace ash | 111 } // namespace ash |
111 | 112 |
112 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 113 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
OLD | NEW |