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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 // Creates a WindowTreeHost for |display| and stores it in the |root_windows_| | 168 // Creates a WindowTreeHost for |display| and stores it in the |root_windows_| |
169 // map. | 169 // map. |
170 aura::WindowTreeHost* AddWindowTreeHostForDisplay( | 170 aura::WindowTreeHost* AddWindowTreeHostForDisplay( |
171 const gfx::Display& display); | 171 const gfx::Display& display); |
172 | 172 |
173 void OnFadeOutForSwapDisplayFinished(); | 173 void OnFadeOutForSwapDisplayFinished(); |
174 | 174 |
175 void UpdateHostWindowNames(); | 175 void UpdateHostWindowNames(); |
176 | 176 |
| 177 // Updates the TouchCTM for touch device and pushes the new TouchCTM into |
| 178 // device manager. |
| 179 void UpdateTouchCTM(); |
| 180 |
177 class DisplayChangeLimiter { | 181 class DisplayChangeLimiter { |
178 public: | 182 public: |
179 DisplayChangeLimiter(); | 183 DisplayChangeLimiter(); |
180 | 184 |
181 // Sets how long the throttling should last. | 185 // Sets how long the throttling should last. |
182 void SetThrottleTimeout(int64 throttle_ms); | 186 void SetThrottleTimeout(int64 throttle_ms); |
183 | 187 |
184 bool IsThrottled() const; | 188 bool IsThrottled() const; |
185 | 189 |
186 private: | 190 private: |
(...skipping 27 matching lines...) Expand all Loading... |
214 // restore the cursor location when display configuration | 218 // restore the cursor location when display configuration |
215 // changed. | 219 // changed. |
216 gfx::Point cursor_location_in_native_coords_for_restore_; | 220 gfx::Point cursor_location_in_native_coords_for_restore_; |
217 | 221 |
218 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 222 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
219 }; | 223 }; |
220 | 224 |
221 } // namespace ash | 225 } // namespace ash |
222 | 226 |
223 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 227 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
OLD | NEW |