| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 namespace ui { | 24 namespace ui { |
| 25 struct GestureEventData; | 25 struct GestureEventData; |
| 26 struct GestureEventDetails; | 26 struct GestureEventDetails; |
| 27 class MotionEvent; | 27 class MotionEvent; |
| 28 | 28 |
| 29 blink::WebTouchEvent CreateWebTouchEventFromMotionEvent( | 29 blink::WebTouchEvent CreateWebTouchEventFromMotionEvent( |
| 30 const MotionEvent& event, | 30 const MotionEvent& event, |
| 31 bool may_cause_scrolling); | 31 bool may_cause_scrolling); |
| 32 | 32 |
| 33 bool IsTouchSequenceStart(const MotionEvent& event); |
| 34 |
| 33 blink::WebGestureEvent CreateWebGestureEvent(const GestureEventDetails& details, | 35 blink::WebGestureEvent CreateWebGestureEvent(const GestureEventDetails& details, |
| 34 base::TimeDelta timestamp, | 36 base::TimeDelta timestamp, |
| 35 const gfx::PointF& location, | 37 const gfx::PointF& location, |
| 36 const gfx::PointF& raw_location, | 38 const gfx::PointF& raw_location, |
| 37 int flags); | 39 int flags); |
| 38 | 40 |
| 39 // Convenience wrapper for |CreateWebGestureEvent| using the supplied |data|. | 41 // Convenience wrapper for |CreateWebGestureEvent| using the supplied |data|. |
| 40 blink::WebGestureEvent CreateWebGestureEventFromGestureEventData( | 42 blink::WebGestureEvent CreateWebGestureEventFromGestureEventData( |
| 41 const GestureEventData& data); | 43 const GestureEventData& data); |
| 42 | 44 |
| 43 int EventFlagsToWebEventModifiers(int flags); | 45 int EventFlagsToWebEventModifiers(int flags); |
| 44 | 46 |
| 45 scoped_ptr<blink::WebInputEvent> ScaleWebInputEvent( | 47 scoped_ptr<blink::WebInputEvent> ScaleWebInputEvent( |
| 46 const blink::WebInputEvent& event, | 48 const blink::WebInputEvent& event, |
| 47 float scale); | 49 float scale); |
| 48 | 50 |
| 49 } // namespace ui | 51 } // namespace ui |
| 50 | 52 |
| 51 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ | 53 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ |
| OLD | NEW |