| 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..224d93b56cb67943b2a718aa97bbfd44291c4c27 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 {
|
| +class MotionEvent;
|
| }
|
|
|
| namespace content {
|
| @@ -20,6 +21,11 @@ CONTENT_EXPORT void UpdateWindowsKeyCodeAndKeyIdentifier(
|
| blink::WebKeyboardEvent* event,
|
| ui::KeyboardCode windows_key_code);
|
|
|
| +// Creates a WebTouchEvent from |event|, scaling all size components from
|
| +// |event| by |scale|.
|
| +CONTENT_EXPORT blink::WebTouchEvent
|
| +CreateWebTouchEventFromMotionEvent(const ui::MotionEvent& event, float scale);
|
| +
|
| }
|
|
|
| #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_
|
|
|