OLD | NEW |
(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_INPUT_WEB_INPUT_EVENT_BUILDERS_GTK_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_GTK_H_ |
| 7 |
| 8 #include "content/common/content_export.h" |
| 9 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 10 |
| 11 typedef struct _GdkEventButton GdkEventButton; |
| 12 typedef struct _GdkEventMotion GdkEventMotion; |
| 13 typedef struct _GdkEventCrossing GdkEventCrossing; |
| 14 typedef struct _GdkEventScroll GdkEventScroll; |
| 15 typedef struct _GdkEventKey GdkEventKey; |
| 16 |
| 17 namespace WebKit { |
| 18 class WebKeyboardEvent; |
| 19 class WebMouseEvent; |
| 20 class WebMouseWheelEvent; |
| 21 } |
| 22 |
| 23 namespace content { |
| 24 |
| 25 class CONTENT_EXPORT WebKeyboardEventBuilder { |
| 26 public: |
| 27 static WebKit::WebKeyboardEvent Build(const GdkEventKey* event); |
| 28 static WebKit::WebKeyboardEvent Build(wchar_t character, |
| 29 int state, |
| 30 double time_secs); |
| 31 }; |
| 32 |
| 33 class CONTENT_EXPORT WebMouseEventBuilder { |
| 34 public: |
| 35 static WebKit::WebMouseEvent Build(const GdkEventButton* event); |
| 36 static WebKit::WebMouseEvent Build(const GdkEventMotion* event); |
| 37 static WebKit::WebMouseEvent Build(const GdkEventCrossing* event); |
| 38 }; |
| 39 |
| 40 class CONTENT_EXPORT WebMouseWheelEventBuilder { |
| 41 public: |
| 42 static WebKit::WebMouseWheelEvent Build( |
| 43 const GdkEventScroll* event); |
| 44 }; |
| 45 |
| 46 } // namespace content |
| 47 |
| 48 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_GTK_H_ |
OLD | NEW |