OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ |
| 6 #define UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ |
| 7 |
| 8 namespace base { |
| 9 class TimeDelta; |
| 10 } |
| 11 |
| 12 namespace blink { |
| 13 class WebGestureEvent; |
| 14 class WebTouchEvent; |
| 15 } |
| 16 |
| 17 namespace gfx { |
| 18 class PointF; |
| 19 } |
| 20 |
| 21 namespace ui { |
| 22 struct GestureEventData; |
| 23 struct GestureEventDetails; |
| 24 class MotionEvent; |
| 25 |
| 26 blink::WebTouchEvent CreateWebTouchEventFromMotionEvent( |
| 27 const MotionEvent& event, |
| 28 bool may_cause_scrolling); |
| 29 |
| 30 blink::WebGestureEvent CreateWebGestureEvent(const GestureEventDetails& details, |
| 31 base::TimeDelta timestamp, |
| 32 const gfx::PointF& location, |
| 33 const gfx::PointF& raw_location, |
| 34 int flags); |
| 35 |
| 36 // Convenience wrapper for |CreateWebGestureEvent| using the supplied |data|. |
| 37 blink::WebGestureEvent CreateWebGestureEventFromGestureEventData( |
| 38 const GestureEventData& data); |
| 39 |
| 40 int EventFlagsToWebEventModifiers(int flags); |
| 41 |
| 42 } // namespace content |
| 43 |
| 44 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ |
OLD | NEW |