| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_AUTOCLICK_COMMON_AUTOCLICK_CONTROLLER_COMMON_H | 5 #ifndef ASH_AUTOCLICK_COMMON_AUTOCLICK_CONTROLLER_COMMON_H |
| 6 #define ASH_AUTOCLICK_COMMON_AUTOCLICK_CONTROLLER_COMMON_H | 6 #define ASH_AUTOCLICK_COMMON_AUTOCLICK_CONTROLLER_COMMON_H |
| 7 | 7 |
| 8 #include "ash/autoclick/common/autoclick_ring_handler.h" | 8 #include "ash/autoclick/common/autoclick_ring_handler.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| 11 #include "ui/gfx/geometry/point.h" | 11 #include "ui/gfx/geometry/point.h" |
| 12 | 12 |
| 13 namespace views { | 13 namespace views { |
| 14 class Widget; | 14 class Widget; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace ui { | 17 namespace ui { |
| 18 class MouseEvent; | 18 class MouseEvent; |
| 19 class KeyEvent; | 19 class KeyEvent; |
| 20 class TouchEvent; | |
| 21 class GestureEvent; | |
| 22 class ScrollEvent; | |
| 23 } | 20 } |
| 24 | 21 |
| 25 namespace ash { | 22 namespace ash { |
| 26 class AutoclickControllerCommonDelegate; | 23 class AutoclickControllerCommonDelegate; |
| 27 | 24 |
| 28 // Autoclick is one of the accessibility features. If enabled, two circles will | 25 // Autoclick is one of the accessibility features. If enabled, two circles will |
| 29 // animate at the mouse event location and an automatic click event will happen | 26 // animate at the mouse event location and an automatic click event will happen |
| 30 // after a certain amout of time at that location. | 27 // after a certain amout of time at that location. |
| 31 // AutoclickControllerCommon is the common code for both ash and mus to handle | 28 // AutoclickControllerCommon is the common code for both ash and mus to handle |
| 32 // events and to manage autoclick time delay and timer. | 29 // events and to manage autoclick time delay and timer. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 58 // the distance the mouse has moved. | 55 // the distance the mouse has moved. |
| 59 gfx::Point anchor_location_; | 56 gfx::Point anchor_location_; |
| 60 std::unique_ptr<AutoclickRingHandler> autoclick_ring_handler_; | 57 std::unique_ptr<AutoclickRingHandler> autoclick_ring_handler_; |
| 61 | 58 |
| 62 DISALLOW_COPY_AND_ASSIGN(AutoclickControllerCommon); | 59 DISALLOW_COPY_AND_ASSIGN(AutoclickControllerCommon); |
| 63 }; | 60 }; |
| 64 | 61 |
| 65 } // namespace ash | 62 } // namespace ash |
| 66 | 63 |
| 67 #endif // ASH_AUTOCLICK_COMMON_AUTOCLICK_CONTROLLER_COMMON_H | 64 #endif // ASH_AUTOCLICK_COMMON_AUTOCLICK_CONTROLLER_COMMON_H |
| OLD | NEW |