Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / content / browser / renderer_host / input / web_input_event_builders_android.h
index 1059572..be9d2a1 100644 (file)
@@ -5,6 +5,8 @@
 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_H_
 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_H_
 
+#include <jni.h>
+
 #include "third_party/WebKit/public/web/WebInputEvent.h"
 
 namespace content {
@@ -12,12 +14,12 @@ namespace content {
 class WebMouseEventBuilder {
  public:
   static blink::WebMouseEvent Build(blink::WebInputEvent::Type type,
-                                     blink::WebMouseEvent::Button button,
-                                     double time_sec,
-                                     int window_x,
-                                     int window_y,
-                                     int modifiers,
-                                     int click_count);
+                                    blink::WebMouseEvent::Button button,
+                                    double time_sec,
+                                    int window_x,
+                                    int window_y,
+                                    int modifiers,
+                                    int click_count);
 };
 
 class WebMouseWheelEventBuilder {
@@ -30,27 +32,32 @@ class WebMouseWheelEventBuilder {
   };
 
   static blink::WebMouseWheelEvent Build(Direction direction,
-                                          double time_sec,
-                                          int window_x,
-                                          int window_y);
+                                         double time_sec,
+                                         int window_x,
+                                         int window_y);
 };
 
 class WebKeyboardEventBuilder {
  public:
   static blink::WebKeyboardEvent Build(blink::WebInputEvent::Type type,
-                                        int modifiers,
-                                        double time_sec,
-                                        int keycode,
-                                        int unicode_character,
-                                        bool is_system_key);
+                                       int modifiers,
+                                       double time_sec,
+                                       int keycode,
+                                       int unicode_character,
+                                       bool is_system_key);
 };
 
 class WebGestureEventBuilder {
  public:
   static blink::WebGestureEvent Build(blink::WebInputEvent::Type type,
-                                       double time_sec,
-                                       int x,
-                                       int y);
+                                      double time_sec,
+                                      int x,
+                                      int y);
+};
+
+class WebTouchEventBuilder {
+ public:
+  static blink::WebTouchEvent Build(jobject motion_event, float dpi_scale);
 };
 
 }  // namespace content