OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "third_party/WebKit/public/web/WebInputEvent.h" | 9 #include "third_party/WebKit/public/web/WebInputEvent.h" |
10 #include "ui/events/keycodes/keyboard_codes.h" | 10 #include "ui/events/keycodes/keyboard_codes.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 // Creates a WebTouchEvent from |event|, scaling all size components from | 25 // Creates a WebTouchEvent from |event|, scaling all size components from |
26 // |event| by |scale|. | 26 // |event| by |scale|. |
27 CONTENT_EXPORT blink::WebTouchEvent CreateWebTouchEventFromMotionEvent( | 27 CONTENT_EXPORT blink::WebTouchEvent CreateWebTouchEventFromMotionEvent( |
28 const ui::MotionEvent& event); | 28 const ui::MotionEvent& event); |
29 | 29 |
30 // Creates a WebGestureEvent from |event|, scaling all size components from | 30 // Creates a WebGestureEvent from |event|, scaling all size components from |
31 // |event| by |scale|. | 31 // |event| by |scale|. |
32 CONTENT_EXPORT blink::WebGestureEvent CreateWebGestureEventFromGestureEventData( | 32 CONTENT_EXPORT blink::WebGestureEvent CreateWebGestureEventFromGestureEventData( |
33 const ui::GestureEventData& data); | 33 const ui::GestureEventData& data); |
34 | 34 |
| 35 int EventFlagsToWebEventModifiers(int flags); |
| 36 |
| 37 int WebEventModifiersToEventFlags(int modifiers); |
| 38 |
35 } // namespace content | 39 } // namespace content |
36 | 40 |
37 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ | 41 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ |
OLD | NEW |