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 ui { | 14 namespace ui { |
15 class MotionEventAndroid; | 15 class MotionEventAndroid; |
16 } | 16 } |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 class WebMouseEventBuilder { | 20 class WebMouseEventBuilder { |
21 public: | 21 public: |
22 static blink::WebMouseEvent Build( | 22 static blink::WebMouseEvent Build( |
23 blink::WebInputEvent::Type type, | 23 blink::WebInputEvent::Type type, |
24 blink::WebMouseEvent::Button button, | |
25 double time_sec, | 24 double time_sec, |
26 int window_x, | 25 int window_x, |
27 int window_y, | 26 int window_y, |
28 int modifiers, | 27 int modifiers, |
29 int click_count, | 28 int click_count, |
30 blink::WebPointerProperties::PointerType pointer_type); | 29 int pointer_id, |
| 30 float pressure, |
| 31 float orientation_rad, |
| 32 float tilt_rad, |
| 33 int old_button_state, |
| 34 int new_button_state, |
| 35 int tool_type); |
31 }; | 36 }; |
32 | 37 |
33 class WebMouseWheelEventBuilder { | 38 class WebMouseWheelEventBuilder { |
34 public: | 39 public: |
35 static blink::WebMouseWheelEvent Build(float ticks_x, | 40 static blink::WebMouseWheelEvent Build(float ticks_x, |
36 float ticks_y, | 41 float ticks_y, |
37 float tick_multiplier, | 42 float tick_multiplier, |
38 double time_sec, | 43 double time_sec, |
39 int window_x, | 44 int window_x, |
40 int window_y); | 45 int window_y); |
(...skipping 17 matching lines...) Expand all Loading... |
58 public: | 63 public: |
59 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, | 64 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, |
60 double time_sec, | 65 double time_sec, |
61 int x, | 66 int x, |
62 int y); | 67 int y); |
63 }; | 68 }; |
64 | 69 |
65 } // namespace content | 70 } // namespace content |
66 | 71 |
67 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_
H_ | 72 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_
H_ |
OLD | NEW |