| 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 UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ | 5 #ifndef UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ |
| 6 #define UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ | 6 #define UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "third_party/WebKit/public/platform/WebGestureEvent.h" | 10 #include "third_party/WebKit/public/platform/WebGestureEvent.h" |
| 11 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 11 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 12 #include "third_party/WebKit/public/platform/WebTouchEvent.h" |
| 12 #include "ui/events/gesture_detection/motion_event.h" | 13 #include "ui/events/gesture_detection/motion_event.h" |
| 13 | 14 |
| 14 namespace blink { | |
| 15 class WebTouchEvent; | |
| 16 } | |
| 17 | |
| 18 namespace gfx { | 15 namespace gfx { |
| 19 class PointF; | 16 class PointF; |
| 20 class Vector2d; | 17 class Vector2d; |
| 21 } | 18 } |
| 22 | 19 |
| 23 namespace ui { | 20 namespace ui { |
| 24 enum class DomCode; | 21 enum class DomCode; |
| 25 struct GestureEventData; | 22 struct GestureEventData; |
| 26 struct GestureEventDetails; | 23 struct GestureEventDetails; |
| 27 class MotionEvent; | 24 class MotionEvent; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 92 |
| 96 inline const blink::WebGestureEvent& ToWebGestureEvent( | 93 inline const blink::WebGestureEvent& ToWebGestureEvent( |
| 97 const blink::WebInputEvent& event) { | 94 const blink::WebInputEvent& event) { |
| 98 DCHECK(IsGestureScollOrPinch(event.type())); | 95 DCHECK(IsGestureScollOrPinch(event.type())); |
| 99 return static_cast<const blink::WebGestureEvent&>(event); | 96 return static_cast<const blink::WebGestureEvent&>(event); |
| 100 } | 97 } |
| 101 | 98 |
| 102 } // namespace ui | 99 } // namespace ui |
| 103 | 100 |
| 104 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ | 101 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ |
| OLD | NEW |