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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 const gfx::Point& location_in_root); | 77 const gfx::Point& location_in_root); |
78 | 78 |
79 // aura::DisplayObserver overrides: | 79 // aura::DisplayObserver overrides: |
80 virtual void OnDisplayBoundsChanged( | 80 virtual void OnDisplayBoundsChanged( |
81 const gfx::Display& display) OVERRIDE; | 81 const gfx::Display& display) OVERRIDE; |
82 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; | 82 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; |
83 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; | 83 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; |
84 | 84 |
85 // Is extended desktop enabled? | 85 // Is extended desktop enabled? |
86 static bool IsExtendedDesktopEnabled(); | 86 static bool IsExtendedDesktopEnabled(); |
87 // Change the extended desktop mode. Used for testing. | |
88 static void SetExtendedDesktopEnabled(bool enabled); | |
89 | 87 |
90 private: | 88 private: |
91 // Creates a root window for |display| and stores it in the |root_windows_| | 89 // Creates a root window for |display| and stores it in the |root_windows_| |
92 // map. | 90 // map. |
93 aura::RootWindow* AddRootWindowForDisplay(const gfx::Display& display); | 91 aura::RootWindow* AddRootWindowForDisplay(const gfx::Display& display); |
94 | 92 |
95 void UpdateDisplayBoundsForLayout(); | 93 void UpdateDisplayBoundsForLayout(); |
96 | 94 |
97 std::map<int, aura::RootWindow*> root_windows_; | 95 std::map<int, aura::RootWindow*> root_windows_; |
98 | 96 |
99 SecondaryDisplayLayout secondary_display_layout_; | 97 SecondaryDisplayLayout secondary_display_layout_; |
100 | 98 |
101 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 99 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
102 }; | 100 }; |
103 | 101 |
104 } // namespace internal | 102 } // namespace internal |
105 } // namespace ash | 103 } // namespace ash |
106 | 104 |
107 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 105 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
OLD | NEW |