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_WEB_INPUT_EVENT_FACTORY_GTK_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_FACTORY_GTK_H_ |
| 7 |
| 8 typedef struct _GdkEventButton GdkEventButton; |
| 9 typedef struct _GdkEventMotion GdkEventMotion; |
| 10 typedef struct _GdkEventCrossing GdkEventCrossing; |
| 11 typedef struct _GdkEventScroll GdkEventScroll; |
| 12 typedef struct _GdkEventKey GdkEventKey; |
| 13 |
| 14 namespace WebKit { |
| 15 class WebKeyboardEvent; |
| 16 class WebMouseEvent; |
| 17 class WebMouseWheelEvent; |
| 18 } |
| 19 |
| 20 namespace content { |
| 21 |
| 22 class WebInputEventFactory { |
| 23 public: |
| 24 static WebKit::WebKeyboardEvent keyboardEvent(const GdkEventKey* event); |
| 25 static WebKit::WebKeyboardEvent keyboardEvent(wchar_t character, |
| 26 int state, |
| 27 double time_secs); |
| 28 static WebKit::WebMouseEvent mouseEvent(const GdkEventButton* event); |
| 29 static WebKit::WebMouseEvent mouseEvent(const GdkEventMotion* event); |
| 30 static WebKit::WebMouseEvent mouseEvent(const GdkEventCrossing* event); |
| 31 static WebKit::WebMouseWheelEvent mouseWheelEvent( |
| 32 const GdkEventScroll* event); |
| 33 }; |
| 34 |
| 35 } // namespace WebKit |
| 36 |
| 37 #endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_FACTORY_GTK_H_ |
OLD | NEW |