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