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

Unified Diff: content/browser/renderer_host/input/web_input_event_builders_gtk.h

Issue 23815005: Import GTK WebInputEvent factory to content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge defs of scrollbarPixelsPerTick Created 7 years, 3 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
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/renderer_host/input/web_input_event_builders_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/web_input_event_builders_gtk.h
diff --git a/content/browser/renderer_host/input/web_input_event_builders_gtk.h b/content/browser/renderer_host/input/web_input_event_builders_gtk.h
new file mode 100644
index 0000000000000000000000000000000000000000..8ab8dbf5000430020d1afb8971db725cc2b3a8c4
--- /dev/null
+++ b/content/browser/renderer_host/input/web_input_event_builders_gtk.h
@@ -0,0 +1,44 @@
+// 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_INPUT_WEB_INPUT_EVENT_BUILDERS_GTK_H_
+#define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_GTK_H_
+
+#include "content/common/content_export.h"
+#include "third_party/WebKit/public/web/WebInputEvent.h"
+#include "ui/base/keycodes/keyboard_codes.h"
+
+typedef struct _GdkEventButton GdkEventButton;
+typedef struct _GdkEventMotion GdkEventMotion;
+typedef struct _GdkEventCrossing GdkEventCrossing;
+typedef struct _GdkEventScroll GdkEventScroll;
+typedef struct _GdkEventKey GdkEventKey;
+
+namespace content {
+
+class CONTENT_EXPORT WebKeyboardEventBuilder {
+ public:
+ static WebKit::WebKeyboardEvent Build(const GdkEventKey* event);
+ static WebKit::WebKeyboardEvent Build(wchar_t character,
+ int state,
+ double time_secs);
+};
+
+class CONTENT_EXPORT WebMouseEventBuilder {
+ public:
+ static WebKit::WebMouseEvent Build(const GdkEventButton* event);
+ static WebKit::WebMouseEvent Build(const GdkEventMotion* event);
+ static WebKit::WebMouseEvent Build(const GdkEventCrossing* event);
+};
+
+class CONTENT_EXPORT WebMouseWheelEventBuilder {
+ public:
+ static float ScrollbarPixelsPerTick();
+ static WebKit::WebMouseWheelEvent Build(
+ const GdkEventScroll* event);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_GTK_H
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/renderer_host/input/web_input_event_builders_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698