| OLD | NEW |
| 1 | 1 |
| 2 // Copyright 2014 The Chromium Authors. All rights reserved. | 2 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #ifndef UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_ | 6 #ifndef UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_ |
| 7 #define UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_ | 7 #define UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_ |
| 8 | 8 |
| 9 #include <jni.h> | 9 #include <jni.h> |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| 11 #include <stdint.h> | 11 #include <stdint.h> |
| 12 | 12 |
| 13 #include <memory> |
| 14 |
| 13 #include "base/android/scoped_java_ref.h" | 15 #include "base/android/scoped_java_ref.h" |
| 14 #include "base/macros.h" | 16 #include "base/macros.h" |
| 15 #include "base/memory/scoped_ptr.h" | |
| 16 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 17 #include "ui/events/events_export.h" | 18 #include "ui/events/events_export.h" |
| 18 #include "ui/events/gesture_detection/motion_event.h" | 19 #include "ui/events/gesture_detection/motion_event.h" |
| 19 #include "ui/gfx/geometry/point_f.h" | 20 #include "ui/gfx/geometry/point_f.h" |
| 20 | 21 |
| 21 namespace ui { | 22 namespace ui { |
| 22 | 23 |
| 23 // Implementation of ui::MotionEvent wrapping a native Android MotionEvent. | 24 // Implementation of ui::MotionEvent wrapping a native Android MotionEvent. |
| 24 // All *input* coordinates are in device pixels (as with Android MotionEvent), | 25 // All *input* coordinates are in device pixels (as with Android MotionEvent), |
| 25 // while all *output* coordinates are in DIPs (as with WebTouchEvent). | 26 // while all *output* coordinates are in DIPs (as with WebTouchEvent). |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 133 |
| 133 // A unique identifier for the Android motion event. | 134 // A unique identifier for the Android motion event. |
| 134 const uint32_t unique_event_id_; | 135 const uint32_t unique_event_id_; |
| 135 | 136 |
| 136 DISALLOW_COPY_AND_ASSIGN(MotionEventAndroid); | 137 DISALLOW_COPY_AND_ASSIGN(MotionEventAndroid); |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 } // namespace content | 140 } // namespace content |
| 140 | 141 |
| 141 #endif // UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_ | 142 #endif // UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_ |
| OLD | NEW |