OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_GTK_H_ | 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_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_GTK_H_ |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "third_party/WebKit/public/web/WebInputEvent.h" | 9 #include "third_party/WebKit/public/web/WebInputEvent.h" |
10 #include "ui/events/keycodes/keyboard_codes.h" | 10 #include "ui/events/keycodes/keyboard_codes.h" |
11 | 11 |
12 typedef struct _GdkEventButton GdkEventButton; | 12 typedef struct _GdkEventButton GdkEventButton; |
13 typedef struct _GdkEventMotion GdkEventMotion; | 13 typedef struct _GdkEventMotion GdkEventMotion; |
14 typedef struct _GdkEventCrossing GdkEventCrossing; | 14 typedef struct _GdkEventCrossing GdkEventCrossing; |
15 typedef struct _GdkEventScroll GdkEventScroll; | 15 typedef struct _GdkEventScroll GdkEventScroll; |
16 typedef struct _GdkEventKey GdkEventKey; | 16 typedef struct _GdkEventKey GdkEventKey; |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 class CONTENT_EXPORT WebKeyboardEventBuilder { | 20 class CONTENT_EXPORT WebKeyboardEventBuilder { |
21 public: | 21 public: |
22 static WebKit::WebKeyboardEvent Build(const GdkEventKey* event); | 22 static blink::WebKeyboardEvent Build(const GdkEventKey* event); |
23 static WebKit::WebKeyboardEvent Build(wchar_t character, | 23 static blink::WebKeyboardEvent Build(wchar_t character, |
24 int state, | 24 int state, |
25 double time_secs); | 25 double time_secs); |
26 }; | 26 }; |
27 | 27 |
28 class CONTENT_EXPORT WebMouseEventBuilder { | 28 class CONTENT_EXPORT WebMouseEventBuilder { |
29 public: | 29 public: |
30 static WebKit::WebMouseEvent Build(const GdkEventButton* event); | 30 static blink::WebMouseEvent Build(const GdkEventButton* event); |
31 static WebKit::WebMouseEvent Build(const GdkEventMotion* event); | 31 static blink::WebMouseEvent Build(const GdkEventMotion* event); |
32 static WebKit::WebMouseEvent Build(const GdkEventCrossing* event); | 32 static blink::WebMouseEvent Build(const GdkEventCrossing* event); |
33 }; | 33 }; |
34 | 34 |
35 class CONTENT_EXPORT WebMouseWheelEventBuilder { | 35 class CONTENT_EXPORT WebMouseWheelEventBuilder { |
36 public: | 36 public: |
37 static float ScrollbarPixelsPerTick(); | 37 static float ScrollbarPixelsPerTick(); |
38 static WebKit::WebMouseWheelEvent Build( | 38 static blink::WebMouseWheelEvent Build( |
39 const GdkEventScroll* event); | 39 const GdkEventScroll* event); |
40 }; | 40 }; |
41 | 41 |
42 } // namespace content | 42 } // namespace content |
43 | 43 |
44 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_GTK_H | 44 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_GTK_H |
OLD | NEW |