| 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 "third_party/WebKit/public/web/WebInputEvent.h" | 8 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 | 11 |
| 12 class WebMouseEventBuilder { | 12 class WebMouseEventBuilder { |
| 13 public: | 13 public: |
| 14 static WebKit::WebMouseEvent Build(WebKit::WebInputEvent::Type type, | 14 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type, |
| 15 WebKit::WebMouseEvent::Button button, | 15 blink::WebMouseEvent::Button button, |
| 16 double time_sec, | 16 double time_sec, |
| 17 int window_x, | 17 int window_x, |
| 18 int window_y, | 18 int window_y, |
| 19 int modifiers, | 19 int modifiers, |
| 20 int click_count); | 20 int click_count); |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 class WebMouseWheelEventBuilder { | 23 class WebMouseWheelEventBuilder { |
| 24 public: | 24 public: |
| 25 enum Direction { | 25 enum Direction { |
| 26 DIRECTION_UP, | 26 DIRECTION_UP, |
| 27 DIRECTION_DOWN, | 27 DIRECTION_DOWN, |
| 28 DIRECTION_LEFT, | 28 DIRECTION_LEFT, |
| 29 DIRECTION_RIGHT, | 29 DIRECTION_RIGHT, |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 static WebKit::WebMouseWheelEvent Build(Direction direction, | 32 static blink::WebMouseWheelEvent Build(Direction direction, |
| 33 double time_sec, | 33 double time_sec, |
| 34 int window_x, | 34 int window_x, |
| 35 int window_y); | 35 int window_y); |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 class WebKeyboardEventBuilder { | 38 class WebKeyboardEventBuilder { |
| 39 public: | 39 public: |
| 40 static WebKit::WebKeyboardEvent Build(WebKit::WebInputEvent::Type type, | 40 static blink::WebKeyboardEvent Build(blink::WebInputEvent::Type type, |
| 41 int modifiers, | 41 int modifiers, |
| 42 double time_sec, | 42 double time_sec, |
| 43 int keycode, | 43 int keycode, |
| 44 int unicode_character, | 44 int unicode_character, |
| 45 bool is_system_key); | 45 bool is_system_key); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 class WebGestureEventBuilder { | 48 class WebGestureEventBuilder { |
| 49 public: | 49 public: |
| 50 static WebKit::WebGestureEvent Build(WebKit::WebInputEvent::Type type, | 50 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, |
| 51 double time_sec, | 51 double time_sec, |
| 52 int x, | 52 int x, |
| 53 int y); | 53 int y); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace content | 56 } // namespace content |
| 57 | 57 |
| 58 #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 |