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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 gfx::Insets GetOverscanInsets(int64 display_id) const; | 140 gfx::Insets GetOverscanInsets(int64 display_id) const; |
141 void SetOverscanInsets(int64 display_id, const gfx::Insets& insets_in_dip); | 141 void SetOverscanInsets(int64 display_id, const gfx::Insets& insets_in_dip); |
142 | 142 |
143 // Checks if the mouse pointer is on one of displays, and moves to | 143 // Checks if the mouse pointer is on one of displays, and moves to |
144 // the center of the nearest display if it's outside of all displays. | 144 // the center of the nearest display if it's outside of all displays. |
145 void EnsurePointerInDisplays(); | 145 void EnsurePointerInDisplays(); |
146 | 146 |
147 // Sets the work area's |insets| to the display assigned to |window|. | 147 // Sets the work area's |insets| to the display assigned to |window|. |
148 bool UpdateWorkAreaOfDisplayNearestWindow(const aura::Window* window, | 148 bool UpdateWorkAreaOfDisplayNearestWindow(const aura::Window* window, |
149 const gfx::Insets& insets); | 149 const gfx::Insets& insets); |
150 // aura::DisplayObserver overrides: | 150 // gfx::DisplayObserver overrides: |
151 virtual void OnDisplayBoundsChanged( | |
152 const gfx::Display& display) OVERRIDE; | |
153 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; | 151 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; |
154 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; | 152 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; |
| 153 virtual void OnDisplayMetricsChanged(const gfx::Display& display, |
| 154 uint32_t metrics) OVERRIDE; |
155 | 155 |
156 // aura::WindowTreeHostObserver overrides: | 156 // aura::WindowTreeHostObserver overrides: |
157 virtual void OnHostResized(const aura::WindowTreeHost* host) OVERRIDE; | 157 virtual void OnHostResized(const aura::WindowTreeHost* host) OVERRIDE; |
158 | 158 |
159 // aura::DisplayManager::Delegate overrides: | 159 // aura::DisplayManager::Delegate overrides: |
160 virtual void CreateOrUpdateNonDesktopDisplay(const DisplayInfo& info) | 160 virtual void CreateOrUpdateNonDesktopDisplay(const DisplayInfo& info) |
161 OVERRIDE; | 161 OVERRIDE; |
162 virtual void CloseNonDesktopDisplay() OVERRIDE; | 162 virtual void CloseNonDesktopDisplay() OVERRIDE; |
163 virtual void PreDisplayConfigurationChange(bool clear_focus) OVERRIDE; | 163 virtual void PreDisplayConfigurationChange(bool clear_focus) OVERRIDE; |
164 virtual void PostDisplayConfigurationChange() OVERRIDE; | 164 virtual void PostDisplayConfigurationChange() OVERRIDE; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // restore the cursor location when display configuration | 220 // restore the cursor location when display configuration |
221 // changed. | 221 // changed. |
222 gfx::Point cursor_location_in_native_coords_for_restore_; | 222 gfx::Point cursor_location_in_native_coords_for_restore_; |
223 | 223 |
224 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 224 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
225 }; | 225 }; |
226 | 226 |
227 } // namespace ash | 227 } // namespace ash |
228 | 228 |
229 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 229 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
OLD | NEW |