| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // mode, this return a RootWindowController for the primary root window only. | 131 // mode, this return a RootWindowController for the primary root window only. |
| 132 std::vector<RootWindowController*> GetAllRootWindowControllers(); | 132 std::vector<RootWindowController*> GetAllRootWindowControllers(); |
| 133 | 133 |
| 134 // Gets/Sets/Clears the overscan insets for the specified |display_id|. See | 134 // Gets/Sets/Clears the overscan insets for the specified |display_id|. See |
| 135 // display_manager.h for the details. | 135 // display_manager.h for the details. |
| 136 gfx::Insets GetOverscanInsets(int64 display_id) const; | 136 gfx::Insets GetOverscanInsets(int64 display_id) const; |
| 137 void SetOverscanInsets(int64 display_id, const gfx::Insets& insets_in_dip); | 137 void SetOverscanInsets(int64 display_id, const gfx::Insets& insets_in_dip); |
| 138 | 138 |
| 139 // Checks if the mouse pointer is on one of displays, and moves to | 139 // Checks if the mouse pointer is on one of displays, and moves to |
| 140 // the center of the nearest display if it's outside of all displays. | 140 // the center of the nearest display if it's outside of all displays. |
| 141 void EnsurePointerInDisplays(); | 141 void UpdateMouseLocationAfterDisplayChange(); |
| 142 | 142 |
| 143 // Sets the work area's |insets| to the display assigned to |window|. | 143 // Sets the work area's |insets| to the display assigned to |window|. |
| 144 bool UpdateWorkAreaOfDisplayNearestWindow(const aura::Window* window, | 144 bool UpdateWorkAreaOfDisplayNearestWindow(const aura::Window* window, |
| 145 const gfx::Insets& insets); | 145 const gfx::Insets& insets); |
| 146 // gfx::DisplayObserver overrides: | 146 // gfx::DisplayObserver overrides: |
| 147 void OnDisplayAdded(const gfx::Display& display) override; | 147 void OnDisplayAdded(const gfx::Display& display) override; |
| 148 void OnDisplayRemoved(const gfx::Display& display) override; | 148 void OnDisplayRemoved(const gfx::Display& display) override; |
| 149 void OnDisplayMetricsChanged(const gfx::Display& display, | 149 void OnDisplayMetricsChanged(const gfx::Display& display, |
| 150 uint32_t metrics) override; | 150 uint32_t metrics) override; |
| 151 | 151 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 int64 cursor_display_id_for_restore_; | 223 int64 cursor_display_id_for_restore_; |
| 224 | 224 |
| 225 base::WeakPtrFactory<DisplayController> weak_ptr_factory_; | 225 base::WeakPtrFactory<DisplayController> weak_ptr_factory_; |
| 226 | 226 |
| 227 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 227 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
| 228 }; | 228 }; |
| 229 | 229 |
| 230 } // namespace ash | 230 } // namespace ash |
| 231 | 231 |
| 232 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 232 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
| OLD | NEW |