Use multiline attribute to check for IA2_STATE_MULTILINE.
[chromium-blink-merge.git] / content / browser / renderer_host / input / web_input_event_builders_android.h
blob49b0a65baaa74a71a39a88d5877f22a2a80a94f9
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.
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_
8 #include <jni.h>
10 #include "third_party/WebKit/public/web/WebInputEvent.h"
12 namespace content {
14 class MotionEventAndroid;
16 class WebMouseEventBuilder {
17 public:
18 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type,
19 blink::WebMouseEvent::Button button,
20 double time_sec,
21 int window_x,
22 int window_y,
23 int modifiers,
24 int click_count);
27 class WebMouseWheelEventBuilder {
28 public:
29 enum Direction {
30 DIRECTION_UP,
31 DIRECTION_DOWN,
32 DIRECTION_LEFT,
33 DIRECTION_RIGHT,
36 static blink::WebMouseWheelEvent Build(Direction direction,
37 double time_sec,
38 int window_x,
39 int window_y);
42 class WebKeyboardEventBuilder {
43 public:
44 static blink::WebKeyboardEvent Build(blink::WebInputEvent::Type type,
45 int modifiers,
46 double time_sec,
47 int keycode,
48 int unicode_character,
49 bool is_system_key);
52 class WebGestureEventBuilder {
53 public:
54 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type,
55 double time_sec,
56 int x,
57 int y);
60 } // namespace content
62 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_H_