| 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" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 int window_x, | 33 int window_x, |
| 34 int window_y); | 34 int window_y); |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 class WebKeyboardEventBuilder { | 37 class WebKeyboardEventBuilder { |
| 38 public: | 38 public: |
| 39 static blink::WebKeyboardEvent Build(blink::WebInputEvent::Type type, | 39 static blink::WebKeyboardEvent Build(blink::WebInputEvent::Type type, |
| 40 int modifiers, | 40 int modifiers, |
| 41 double time_sec, | 41 double time_sec, |
| 42 int keycode, | 42 int keycode, |
| 43 int scancode, |
| 43 int unicode_character, | 44 int unicode_character, |
| 44 bool is_system_key); | 45 bool is_system_key); |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 class WebGestureEventBuilder { | 48 class WebGestureEventBuilder { |
| 48 public: | 49 public: |
| 49 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, | 50 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, |
| 50 double time_sec, | 51 double time_sec, |
| 51 int x, | 52 int x, |
| 52 int y); | 53 int y); |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace content | 56 } // namespace content |
| 56 | 57 |
| 57 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_
H_ | 58 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_
H_ |
| OLD | NEW |