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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 void CloseChildWindows(); | 118 void CloseChildWindows(); |
119 | 119 |
120 // Returns all root windows. In non extended desktop mode, this | 120 // Returns all root windows. In non extended desktop mode, this |
121 // returns the primary root window only. | 121 // returns the primary root window only. |
122 std::vector<aura::RootWindow*> GetAllRootWindows(); | 122 std::vector<aura::RootWindow*> GetAllRootWindows(); |
123 | 123 |
124 // Returns all oot window controllers. In non extended desktop | 124 // Returns all oot window controllers. In non extended desktop |
125 // mode, this return a RootWindowController for the primary root window only. | 125 // mode, this return a RootWindowController for the primary root window only. |
126 std::vector<internal::RootWindowController*> GetAllRootWindowControllers(); | 126 std::vector<internal::RootWindowController*> GetAllRootWindowControllers(); |
127 | 127 |
| 128 // Returns the current overscan insets for the specified |display_id|. See |
| 129 // multi_display_manager.h for the details. |
| 130 gfx::Insets GetOverscanInsets(int64 display_id) const; |
| 131 |
128 const DisplayLayout& default_display_layout() const { | 132 const DisplayLayout& default_display_layout() const { |
129 return default_display_layout_; | 133 return default_display_layout_; |
130 } | 134 } |
131 void SetDefaultDisplayLayout(const DisplayLayout& layout); | 135 void SetDefaultDisplayLayout(const DisplayLayout& layout); |
132 | 136 |
133 // Sets/gets the display layout for the specified display or display | 137 // Sets/gets the display layout for the specified display or display |
134 // name. Getter returns the default value in case it doesn't have | 138 // name. Getter returns the default value in case it doesn't have |
135 // its own layout yet. | 139 // its own layout yet. |
136 void SetLayoutForDisplayName(const std::string& name, | 140 void SetLayoutForDisplayName(const std::string& name, |
137 const DisplayLayout& layout); | 141 const DisplayLayout& layout); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 int64 desired_primary_display_id_; | 173 int64 desired_primary_display_id_; |
170 | 174 |
171 ObserverList<Observer> observers_; | 175 ObserverList<Observer> observers_; |
172 | 176 |
173 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 177 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
174 }; | 178 }; |
175 | 179 |
176 } // namespace ash | 180 } // namespace ash |
177 | 181 |
178 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 182 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
OLD | NEW |