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