IndexedDBFactory now ForceCloses databases.
[chromium-blink-merge.git] / content / browser / renderer_host / input / web_input_event_builders_android.h
blob10595725335dde2708602228ab89e5180ccb03f0
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 "third_party/WebKit/public/web/WebInputEvent.h"
10 namespace content {
12 class WebMouseEventBuilder {
13 public:
14 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type,
15 blink::WebMouseEvent::Button button,
16 double time_sec,
17 int window_x,
18 int window_y,
19 int modifiers,
20 int click_count);
23 class WebMouseWheelEventBuilder {
24 public:
25 enum Direction {
26 DIRECTION_UP,
27 DIRECTION_DOWN,
28 DIRECTION_LEFT,
29 DIRECTION_RIGHT,
32 static blink::WebMouseWheelEvent Build(Direction direction,
33 double time_sec,
34 int window_x,
35 int window_y);
38 class WebKeyboardEventBuilder {
39 public:
40 static blink::WebKeyboardEvent Build(blink::WebInputEvent::Type type,
41 int modifiers,
42 double time_sec,
43 int keycode,
44 int unicode_character,
45 bool is_system_key);
48 class WebGestureEventBuilder {
49 public:
50 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type,
51 double time_sec,
52 int x,
53 int y);
56 } // namespace content
58 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_H_