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_GTK_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_GTK_H_
8 #include "content/common/content_export.h"
9 #include "third_party/WebKit/public/web/WebInputEvent.h"
10 #include "ui/events/keycodes/keyboard_codes.h"
12 typedef struct _GdkEventButton GdkEventButton;
13 typedef struct _GdkEventMotion GdkEventMotion;
14 typedef struct _GdkEventCrossing GdkEventCrossing;
15 typedef struct _GdkEventScroll GdkEventScroll;
16 typedef struct _GdkEventKey GdkEventKey;
20 class CONTENT_EXPORT WebKeyboardEventBuilder {
22 static WebKit::WebKeyboardEvent Build(const GdkEventKey* event);
23 static WebKit::WebKeyboardEvent Build(wchar_t character,
28 class CONTENT_EXPORT WebMouseEventBuilder {
30 static WebKit::WebMouseEvent Build(const GdkEventButton* event);
31 static WebKit::WebMouseEvent Build(const GdkEventMotion* event);
32 static WebKit::WebMouseEvent Build(const GdkEventCrossing* event);
35 class CONTENT_EXPORT WebMouseWheelEventBuilder {
37 static float ScrollbarPixelsPerTick();
38 static WebKit::WebMouseWheelEvent Build(
39 const GdkEventScroll* event);
42 } // namespace content
44 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_GTK_H