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