| 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/WebInputEvent.h" | 10 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class PointF; | 24 class PointF; |
| 25 class Vector2d; | 25 class Vector2d; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace ui { | 28 namespace ui { |
| 29 enum class DomCode; | 29 enum class DomCode; |
| 30 struct GestureEventData; | 30 struct GestureEventData; |
| 31 struct GestureEventDetails; | 31 struct GestureEventDetails; |
| 32 class MotionEvent; | 32 class MotionEvent; |
| 33 | 33 |
| 34 bool CanCoalesce(const blink::WebInputEvent& event_to_coalesce, |
| 35 const blink::WebInputEvent& event); |
| 36 |
| 37 void Coalesce(const blink::WebInputEvent& event_to_coalesce, |
| 38 blink::WebInputEvent* event); |
| 39 |
| 34 blink::WebTouchEvent CreateWebTouchEventFromMotionEvent( | 40 blink::WebTouchEvent CreateWebTouchEventFromMotionEvent( |
| 35 const MotionEvent& event, | 41 const MotionEvent& event, |
| 36 bool may_cause_scrolling); | 42 bool may_cause_scrolling); |
| 37 | 43 |
| 38 blink::WebGestureEvent CreateWebGestureEvent(const GestureEventDetails& details, | 44 blink::WebGestureEvent CreateWebGestureEvent(const GestureEventDetails& details, |
| 39 base::TimeTicks timestamp, | 45 base::TimeTicks timestamp, |
| 40 const gfx::PointF& location, | 46 const gfx::PointF& location, |
| 41 const gfx::PointF& raw_location, | 47 const gfx::PointF& raw_location, |
| 42 int flags, | 48 int flags, |
| 43 uint32_t unique_touch_event_id); | 49 uint32_t unique_touch_event_id); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 63 float scale); | 69 float scale); |
| 64 | 70 |
| 65 blink::WebPointerProperties::PointerType ToWebPointerType( | 71 blink::WebPointerProperties::PointerType ToWebPointerType( |
| 66 MotionEvent::ToolType tool_type); | 72 MotionEvent::ToolType tool_type); |
| 67 | 73 |
| 68 int WebEventModifiersToEventFlags(int modifiers); | 74 int WebEventModifiersToEventFlags(int modifiers); |
| 69 | 75 |
| 70 blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers( | 76 blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers( |
| 71 ui::DomCode code); | 77 ui::DomCode code); |
| 72 | 78 |
| 79 bool IsGestureScollOrPinch(blink::WebInputEvent::Type); |
| 80 |
| 81 bool IsContinuousGestureEvent(blink::WebInputEvent::Type); |
| 82 |
| 73 } // namespace ui | 83 } // namespace ui |
| 74 | 84 |
| 75 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ | 85 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ |
| OLD | NEW |