Chromium Code Reviews| Index: content/browser/renderer_host/input/web_input_event_util.h |
| diff --git a/content/browser/renderer_host/input/web_input_event_util.h b/content/browser/renderer_host/input/web_input_event_util.h |
| index f0680f24b53cc4958571a2e264f6ab2f8191f156..ea22a7a166ad262ff029658a8631cf844915079c 100644 |
| --- a/content/browser/renderer_host/input/web_input_event_util.h |
| +++ b/content/browser/renderer_host/input/web_input_event_util.h |
| @@ -6,10 +6,11 @@ |
| #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ |
| #include "content/common/content_export.h" |
| +#include "third_party/WebKit/public/web/WebInputEvent.h" |
| #include "ui/events/keycodes/keyboard_codes.h" |
| -namespace blink { |
| -class WebKeyboardEvent; |
| +namespace ui{ |
| +struct GestureEventData; |
| } |
| namespace content { |
| @@ -20,6 +21,13 @@ CONTENT_EXPORT void UpdateWindowsKeyCodeAndKeyIdentifier( |
| blink::WebKeyboardEvent* event, |
| ui::KeyboardCode windows_key_code); |
| -} |
| +// Converts a ui::GestureEventData payload to a WebGestureEvent, using the |
| +// |scale| multiplier on all relevant gesture components. Note that on Android, |
| +// this will be the inverse of the DPI scale (scaling from pixels to DIPs). |
| +CONTENT_EXPORT blink::WebGestureEvent CreateWebGestureEventFromGestureEventData( |
|
tdresser
2014/03/03 19:44:32
Should this go in content/browser/renderer_host/ui
jdduke (slow)
2014/03/03 22:33:17
I believe that has an events target dependency, an
|
| + const ui::GestureEventData& data, |
| + float scale); |
| + |
| +} // namespace content |
| #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ |