OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 UI_EVENTS_GESTURE_DETECTION_UI_MOTION_EVENT_H_ | 5 #ifndef UI_EVENTS_GESTURE_DETECTION_UI_MOTION_EVENT_H_ |
6 #define UI_EVENTS_GESTURE_DETECTION_UI_MOTION_EVENT_H_ | 6 #define UI_EVENTS_GESTURE_DETECTION_UI_MOTION_EVENT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
| 11 #include <memory> |
11 | 12 |
12 #include "base/macros.h" | 13 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "ui/events/event.h" | 15 #include "ui/events/event.h" |
16 #include "ui/events/events_export.h" | 16 #include "ui/events/events_export.h" |
17 #include "ui/events/gesture_detection/motion_event_generic.h" | 17 #include "ui/events/gesture_detection/motion_event_generic.h" |
18 | 18 |
19 namespace ui { | 19 namespace ui { |
20 | 20 |
21 // Implementation of MotionEvent which takes a stream of ui::TouchEvents. | 21 // Implementation of MotionEvent which takes a stream of ui::TouchEvents. |
22 class EVENTS_EXPORT MotionEventAura : public MotionEventGeneric { | 22 class EVENTS_EXPORT MotionEventAura : public MotionEventGeneric { |
23 public: | 23 public: |
(...skipping 18 matching lines...) Expand all Loading... |
42 void UpdateTouch(const TouchEvent& touch); | 42 void UpdateTouch(const TouchEvent& touch); |
43 void UpdateCachedAction(const TouchEvent& touch); | 43 void UpdateCachedAction(const TouchEvent& touch); |
44 int GetIndexFromId(int id) const; | 44 int GetIndexFromId(int id) const; |
45 | 45 |
46 DISALLOW_COPY_AND_ASSIGN(MotionEventAura); | 46 DISALLOW_COPY_AND_ASSIGN(MotionEventAura); |
47 }; | 47 }; |
48 | 48 |
49 } // namespace ui | 49 } // namespace ui |
50 | 50 |
51 #endif // UI_EVENTS_GESTURE_DETECTION_UI_MOTION_EVENT_H_ | 51 #endif // UI_EVENTS_GESTURE_DETECTION_UI_MOTION_EVENT_H_ |
OLD | NEW |