Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: content/browser/renderer_host/web_input_event_factory_android.h

Issue 19776016: Add files. Does not compile yet! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gtk links, may not work correctly Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 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_WEB_INPUT_EVENT_FACTORY_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_FACTORY_ANDROID_H_
7
8 #include "third_party/WebKit/public/web/WebInputEvent.h"
9
10 namespace content {
11
12 class WebInputEventFactory {
13 public:
14 enum MouseEventType {
15 MouseEventTypeDown = 0,
16 MouseEventTypeUp,
17 MouseEventTypeMove,
18 };
19
20 enum MouseWheelDirectionType {
21 MouseWheelDirectionTypeUp = 0,
22 MouseWheelDirectionTypeDown,
23 MouseWheelDirectionTypeLeft,
24 MouseWheelDirectionTypeRight,
25 };
26
27 static WebKit::WebKeyboardEvent keyboardEvent(WebKit::WebInputEvent::Type type ,
28 int modifiers,
29 double time_sec,
30 int keycode,
31 int unicodeCharacter,
32 bool isSystemKey);
33
34 static WebKit::WebMouseEvent mouseEvent(MouseEventType,
35 WebKit::WebMouseEvent::Button,
36 double time_sec,
37 int windowX,
38 int windowY,
39 int modifiers,
40 int clickCount);
41
42 static WebKit::WebMouseWheelEvent mouseWheelEvent(MouseWheelDirectionType,
43 double time_sec,
44 int windowX,
45 int windowY);
46
47 static WebKit::WebGestureEvent gestureEvent(WebKit::WebInputEvent::Type,
48 double time_sec,
49 int x,
50 int y,
51 float deltaX,
52 float deltaY,
53 int modifiers);
54
55 static WebKit::WebGestureEvent gestureEvent(WebKit::WebInputEvent::Type,
56 double time_sec,
57 int x,
58 int y,
59 int modifiers);
60 };
61
62 } // namespace content
63
64 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698