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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/web_input_event_factory_android.h
diff --git a/content/browser/renderer_host/web_input_event_factory_android.h b/content/browser/renderer_host/web_input_event_factory_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..b5ddb33ca039ff8e3d9a4aca6f121fdaa4666b54
--- /dev/null
+++ b/content/browser/renderer_host/web_input_event_factory_android.h
@@ -0,0 +1,64 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_FACTORY_ANDROID_H_
+#define CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_FACTORY_ANDROID_H_
+
+#include "third_party/WebKit/public/web/WebInputEvent.h"
+
+namespace content {
+
+class WebInputEventFactory {
+ public:
+ enum MouseEventType {
+ MouseEventTypeDown = 0,
+ MouseEventTypeUp,
+ MouseEventTypeMove,
+ };
+
+ enum MouseWheelDirectionType {
+ MouseWheelDirectionTypeUp = 0,
+ MouseWheelDirectionTypeDown,
+ MouseWheelDirectionTypeLeft,
+ MouseWheelDirectionTypeRight,
+ };
+
+ static WebKit::WebKeyboardEvent keyboardEvent(WebKit::WebInputEvent::Type type,
+ int modifiers,
+ double time_sec,
+ int keycode,
+ int unicodeCharacter,
+ bool isSystemKey);
+
+ static WebKit::WebMouseEvent mouseEvent(MouseEventType,
+ WebKit::WebMouseEvent::Button,
+ double time_sec,
+ int windowX,
+ int windowY,
+ int modifiers,
+ int clickCount);
+
+ static WebKit::WebMouseWheelEvent mouseWheelEvent(MouseWheelDirectionType,
+ double time_sec,
+ int windowX,
+ int windowY);
+
+ static WebKit::WebGestureEvent gestureEvent(WebKit::WebInputEvent::Type,
+ double time_sec,
+ int x,
+ int y,
+ float deltaX,
+ float deltaY,
+ int modifiers);
+
+ static WebKit::WebGestureEvent gestureEvent(WebKit::WebInputEvent::Type,
+ double time_sec,
+ int x,
+ int y,
+ int modifiers);
+};
+
+} // namespace content
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698