| 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/platform/WebGestureEvent.h" | 12 #include "third_party/WebKit/public/platform/WebGestureEvent.h" |
| 13 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 13 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 14 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h" | 14 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h" |
| 15 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h" | 15 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h" |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 | 18 |
| 19 class WebMouseEventBuilder { | 19 class WebMouseEventBuilder { |
| 20 public: | 20 public: |
| 21 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type, | 21 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type, |
| 22 double time_sec, | 22 double time_sec, |
| 23 int window_x, | 23 int window_x, |
| 24 int window_y, | 24 int window_y, |
| 25 int modifiers, | 25 int modifiers, |
| 26 int click_count, | 26 int click_count, |
| 27 int pointer_id, | 27 int pointer_id, |
| 28 float pressure, | 28 float pressure, |
| 29 float orientation_rad, | 29 float orientation_rad, |
| 30 float tilt_rad, | 30 float tilt_x, |
| 31 float tilt_y, |
| 31 int action_button, | 32 int action_button, |
| 32 int tool_type); | 33 int tool_type); |
| 33 }; | 34 }; |
| 34 | 35 |
| 35 class WebMouseWheelEventBuilder { | 36 class WebMouseWheelEventBuilder { |
| 36 public: | 37 public: |
| 37 static blink::WebMouseWheelEvent Build(float ticks_x, | 38 static blink::WebMouseWheelEvent Build(float ticks_x, |
| 38 float ticks_y, | 39 float ticks_y, |
| 39 float tick_multiplier, | 40 float tick_multiplier, |
| 40 double time_sec, | 41 double time_sec, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 60 public: | 61 public: |
| 61 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, | 62 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, |
| 62 double time_sec, | 63 double time_sec, |
| 63 int x, | 64 int x, |
| 64 int y); | 65 int y); |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 } // namespace content | 68 } // namespace content |
| 68 | 69 |
| 69 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_
H_ | 70 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_
H_ |
| OLD | NEW |