| 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 { |
| 13 class MotionEventAndroid; |
| 14 } |
| 15 |
| 12 namespace content { | 16 namespace content { |
| 13 | 17 |
| 14 class MotionEventAndroid; | |
| 15 | |
| 16 class WebMouseEventBuilder { | 18 class WebMouseEventBuilder { |
| 17 public: | 19 public: |
| 18 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type, | 20 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type, |
| 19 blink::WebMouseEvent::Button button, | 21 blink::WebMouseEvent::Button button, |
| 20 double time_sec, | 22 double time_sec, |
| 21 int window_x, | 23 int window_x, |
| 22 int window_y, | 24 int window_y, |
| 23 int modifiers, | 25 int modifiers, |
| 24 int click_count); | 26 int click_count); |
| 25 }; | 27 }; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 49 public: | 51 public: |
| 50 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, | 52 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, |
| 51 double time_sec, | 53 double time_sec, |
| 52 int x, | 54 int x, |
| 53 int y); | 55 int y); |
| 54 }; | 56 }; |
| 55 | 57 |
| 56 } // namespace content | 58 } // namespace content |
| 57 | 59 |
| 58 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_
H_ | 60 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_
H_ |
| OLD | NEW |