| 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/web/WebInputEvent.h" | 10 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 namespace ui { | 27 namespace ui { |
| 28 struct GestureEventData; | 28 struct GestureEventData; |
| 29 struct GestureEventDetails; | 29 struct GestureEventDetails; |
| 30 class MotionEvent; | 30 class MotionEvent; |
| 31 | 31 |
| 32 blink::WebTouchEvent CreateWebTouchEventFromMotionEvent( | 32 blink::WebTouchEvent CreateWebTouchEventFromMotionEvent( |
| 33 const MotionEvent& event, | 33 const MotionEvent& event, |
| 34 bool may_cause_scrolling); | 34 bool may_cause_scrolling); |
| 35 | 35 |
| 36 blink::WebGestureEvent CreateWebGestureEvent(const GestureEventDetails& details, | 36 blink::WebGestureEvent CreateWebGestureEvent(const GestureEventDetails& details, |
| 37 base::TimeDelta timestamp, | 37 base::TimeTicks timestamp, |
| 38 const gfx::PointF& location, | 38 const gfx::PointF& location, |
| 39 const gfx::PointF& raw_location, | 39 const gfx::PointF& raw_location, |
| 40 int flags); | 40 int flags); |
| 41 | 41 |
| 42 // Convenience wrapper for |CreateWebGestureEvent| using the supplied |data|. | 42 // Convenience wrapper for |CreateWebGestureEvent| using the supplied |data|. |
| 43 blink::WebGestureEvent CreateWebGestureEventFromGestureEventData( | 43 blink::WebGestureEvent CreateWebGestureEventFromGestureEventData( |
| 44 const GestureEventData& data); | 44 const GestureEventData& data); |
| 45 | 45 |
| 46 int EventFlagsToWebEventModifiers(int flags); | 46 int EventFlagsToWebEventModifiers(int flags); |
| 47 | 47 |
| 48 std::unique_ptr<blink::WebInputEvent> ScaleWebInputEvent( | 48 std::unique_ptr<blink::WebInputEvent> ScaleWebInputEvent( |
| 49 const blink::WebInputEvent& event, | 49 const blink::WebInputEvent& event, |
| 50 float scale); | 50 float scale); |
| 51 | 51 |
| 52 blink::WebPointerProperties::PointerType ToWebPointerType( | 52 blink::WebPointerProperties::PointerType ToWebPointerType( |
| 53 MotionEvent::ToolType tool_type); | 53 MotionEvent::ToolType tool_type); |
| 54 | 54 |
| 55 } // namespace ui | 55 } // namespace ui |
| 56 | 56 |
| 57 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ | 57 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ |
| OLD | NEW |