Index: content/browser/renderer_host/web_input_event_factory_android.h |
diff --git a/content/browser/renderer_host/web_input_event_factory_android.h b/content/browser/renderer_host/web_input_event_factory_android.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b5ddb33ca039ff8e3d9a4aca6f121fdaa4666b54 |
--- /dev/null |
+++ b/content/browser/renderer_host/web_input_event_factory_android.h |
@@ -0,0 +1,64 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_FACTORY_ANDROID_H_ |
+#define CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_FACTORY_ANDROID_H_ |
+ |
+#include "third_party/WebKit/public/web/WebInputEvent.h" |
+ |
+namespace content { |
+ |
+class WebInputEventFactory { |
+ public: |
+ enum MouseEventType { |
+ MouseEventTypeDown = 0, |
+ MouseEventTypeUp, |
+ MouseEventTypeMove, |
+ }; |
+ |
+ enum MouseWheelDirectionType { |
+ MouseWheelDirectionTypeUp = 0, |
+ MouseWheelDirectionTypeDown, |
+ MouseWheelDirectionTypeLeft, |
+ MouseWheelDirectionTypeRight, |
+ }; |
+ |
+ static WebKit::WebKeyboardEvent keyboardEvent(WebKit::WebInputEvent::Type type, |
+ int modifiers, |
+ double time_sec, |
+ int keycode, |
+ int unicodeCharacter, |
+ bool isSystemKey); |
+ |
+ static WebKit::WebMouseEvent mouseEvent(MouseEventType, |
+ WebKit::WebMouseEvent::Button, |
+ double time_sec, |
+ int windowX, |
+ int windowY, |
+ int modifiers, |
+ int clickCount); |
+ |
+ static WebKit::WebMouseWheelEvent mouseWheelEvent(MouseWheelDirectionType, |
+ double time_sec, |
+ int windowX, |
+ int windowY); |
+ |
+ static WebKit::WebGestureEvent gestureEvent(WebKit::WebInputEvent::Type, |
+ double time_sec, |
+ int x, |
+ int y, |
+ float deltaX, |
+ float deltaY, |
+ int modifiers); |
+ |
+ static WebKit::WebGestureEvent gestureEvent(WebKit::WebInputEvent::Type, |
+ double time_sec, |
+ int x, |
+ int y, |
+ int modifiers); |
+}; |
+ |
+} // namespace content |
+ |
+#endif |