| 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_BUILDERS_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "third_party/WebKit/public/web/WebInputEvent.h" | 12 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 class WebMouseEventBuilder { | 16 class WebMouseEventBuilder { |
| 17 public: | 17 public: |
| 18 static blink::WebMouseEvent Build( | 18 static blink::WebMouseEvent Build( |
| 19 blink::WebInputEvent::Type type, | 19 blink::WebInputEvent::Type type, |
| 20 blink::WebMouseEvent::Button button, | |
| 21 double time_sec, | 20 double time_sec, |
| 22 int window_x, | 21 int window_x, |
| 23 int window_y, | 22 int window_y, |
| 24 int modifiers, | 23 int modifiers, |
| 25 int click_count, | 24 int click_count, |
| 26 blink::WebPointerProperties::PointerType pointer_type); | 25 int pointer_id, |
| 26 float pressure, |
| 27 float orientation_rad, |
| 28 float tilt_rad, |
| 29 int changed_button, |
| 30 int tool_type); |
| 27 }; | 31 }; |
| 28 | 32 |
| 29 class WebMouseWheelEventBuilder { | 33 class WebMouseWheelEventBuilder { |
| 30 public: | 34 public: |
| 31 static blink::WebMouseWheelEvent Build(float ticks_x, | 35 static blink::WebMouseWheelEvent Build(float ticks_x, |
| 32 float ticks_y, | 36 float ticks_y, |
| 33 float tick_multiplier, | 37 float tick_multiplier, |
| 34 double time_sec, | 38 double time_sec, |
| 35 int window_x, | 39 int window_x, |
| 36 int window_y); | 40 int window_y); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 54 public: | 58 public: |
| 55 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, | 59 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, |
| 56 double time_sec, | 60 double time_sec, |
| 57 int x, | 61 int x, |
| 58 int y); | 62 int y); |
| 59 }; | 63 }; |
| 60 | 64 |
| 61 } // namespace content | 65 } // namespace content |
| 62 | 66 |
| 63 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_
H_ | 67 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_
H_ |
| OLD | NEW |