| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_NULL_MOUSE_WARP_CONTROLLER_H | 5 #ifndef ASH_DISPLAY_NULL_MOUSE_WARP_CONTROLLER_H |
| 6 #define ASH_DISPLAY_NULL_MOUSE_WARP_CONTROLLER_H | 6 #define ASH_DISPLAY_NULL_MOUSE_WARP_CONTROLLER_H |
| 7 | 7 |
| 8 #include "ash/display/mouse_warp_controller.h" | 8 #include "ash/display/mouse_warp_controller.h" |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 11 |
| 10 namespace ash { | 12 namespace ash { |
| 11 | 13 |
| 12 // A MouseWarpController when there is one desktop display | 14 // A MouseWarpController when there is one desktop display |
| 13 // (in single display or mirror mode). | 15 // (in single display or mirror mode). |
| 14 class NullMouseWarpController : public MouseWarpController { | 16 class NullMouseWarpController : public MouseWarpController { |
| 15 public: | 17 public: |
| 16 NullMouseWarpController() {} | 18 NullMouseWarpController() {} |
| 17 | 19 |
| 18 // MouseWarpController: | 20 // MouseWarpController: |
| 19 bool WarpMouseCursor(ui::MouseEvent* event) override; | 21 bool WarpMouseCursor(ui::MouseEvent* event) override; |
| 20 void SetEnabled(bool enable) override; | 22 void SetEnabled(bool enable) override; |
| 21 | 23 |
| 22 private: | 24 private: |
| 23 DISALLOW_COPY_AND_ASSIGN(NullMouseWarpController); | 25 DISALLOW_COPY_AND_ASSIGN(NullMouseWarpController); |
| 24 }; | 26 }; |
| 25 | 27 |
| 26 } // namespace ash | 28 } // namespace ash |
| 27 | 29 |
| 28 #endif // ASH_DISPLAY_MOUSE_WARP_CONTROLLER_H | 30 #endif // ASH_DISPLAY_MOUSE_WARP_CONTROLLER_H |
| OLD | NEW |