| 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 "third_party/WebKit/public/web/WebInputEvent.h" | 10 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 11 | 11 |
| 12 namespace ui { | 12 namespace ui { |
| 13 class MotionEventAndroid; | 13 class MotionEventAndroid; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 class WebMouseEventBuilder { | 18 class WebMouseEventBuilder { |
| 19 public: | 19 public: |
| 20 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type, | 20 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type, |
| 21 blink::WebMouseEvent::Button button, | 21 blink::WebMouseEvent::Button button, |
| 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 blink::WebPointerProperties::PointerType poi
nter_type); |
| 27 }; | 28 }; |
| 28 | 29 |
| 29 class WebMouseWheelEventBuilder { | 30 class WebMouseWheelEventBuilder { |
| 30 public: | 31 public: |
| 31 static blink::WebMouseWheelEvent Build(float ticks_x, | 32 static blink::WebMouseWheelEvent Build(float ticks_x, |
| 32 float ticks_y, | 33 float ticks_y, |
| 33 float tick_multiplier, | 34 float tick_multiplier, |
| 34 double time_sec, | 35 double time_sec, |
| 35 int window_x, | 36 int window_x, |
| 36 int window_y); | 37 int window_y); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 51 public: | 52 public: |
| 52 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, | 53 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, |
| 53 double time_sec, | 54 double time_sec, |
| 54 int x, | 55 int x, |
| 55 int y); | 56 int y); |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 } // namespace content | 59 } // namespace content |
| 59 | 60 |
| 60 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_
H_ | 61 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_
H_ |
| OLD | NEW |