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

Unified Diff: content/browser/renderer_host/web_input_event_factory_gtk.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_gtk.h
diff --git a/content/browser/renderer_host/web_input_event_factory_gtk.h b/content/browser/renderer_host/web_input_event_factory_gtk.h
new file mode 100644
index 0000000000000000000000000000000000000000..ec2bcbbc2a11088e0f5c3b6de683f977169b7ec4
--- /dev/null
+++ b/content/browser/renderer_host/web_input_event_factory_gtk.h
@@ -0,0 +1,37 @@
+// 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_GTK_H_
+#define CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_FACTORY_GTK_H_
+
+typedef struct _GdkEventButton GdkEventButton;
+typedef struct _GdkEventMotion GdkEventMotion;
+typedef struct _GdkEventCrossing GdkEventCrossing;
+typedef struct _GdkEventScroll GdkEventScroll;
+typedef struct _GdkEventKey GdkEventKey;
+
+namespace WebKit {
+class WebKeyboardEvent;
+class WebMouseEvent;
+class WebMouseWheelEvent;
+}
+
+namespace content {
+
+class WebInputEventFactory {
+ public:
+ static WebKit::WebKeyboardEvent keyboardEvent(const GdkEventKey* event);
+ static WebKit::WebKeyboardEvent keyboardEvent(wchar_t character,
+ int state,
+ double time_secs);
+ static WebKit::WebMouseEvent mouseEvent(const GdkEventButton* event);
+ static WebKit::WebMouseEvent mouseEvent(const GdkEventMotion* event);
+ static WebKit::WebMouseEvent mouseEvent(const GdkEventCrossing* event);
+ static WebKit::WebMouseWheelEvent mouseWheelEvent(
+ const GdkEventScroll* event);
+};
+
+} // namespace WebKit
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_FACTORY_GTK_H_

Powered by Google App Engine
This is Rietveld 408576698