OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 21 matching lines...) Expand all Loading... |
32 #define WebInputEventConversion_h | 32 #define WebInputEventConversion_h |
33 | 33 |
34 #include "platform/PlatformGestureEvent.h" | 34 #include "platform/PlatformGestureEvent.h" |
35 #include "platform/PlatformMouseEvent.h" | 35 #include "platform/PlatformMouseEvent.h" |
36 #include "platform/PlatformTouchEvent.h" | 36 #include "platform/PlatformTouchEvent.h" |
37 #include "platform/PlatformWheelEvent.h" | 37 #include "platform/PlatformWheelEvent.h" |
38 #include "public/platform/WebGestureEvent.h" | 38 #include "public/platform/WebGestureEvent.h" |
39 #include "public/platform/WebInputEvent.h" | 39 #include "public/platform/WebInputEvent.h" |
40 #include "web/WebExport.h" | 40 #include "web/WebExport.h" |
41 #include "wtf/Compiler.h" | 41 #include "wtf/Compiler.h" |
| 42 #include <vector> |
42 | 43 |
43 namespace blink { | 44 namespace blink { |
44 | 45 |
45 class GestureEvent; | 46 class GestureEvent; |
46 class KeyboardEvent; | 47 class KeyboardEvent; |
47 class MouseEvent; | 48 class MouseEvent; |
48 class LayoutItem; | 49 class LayoutItem; |
49 class TouchEvent; | 50 class TouchEvent; |
50 class WebMouseEvent; | 51 class WebMouseEvent; |
51 class WebMouseWheelEvent; | 52 class WebMouseWheelEvent; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 }; | 130 }; |
130 | 131 |
131 // Converts GestureEvent to a corresponding WebGestureEvent. | 132 // Converts GestureEvent to a corresponding WebGestureEvent. |
132 // NOTE: If event mapping fails, the type will be set to Undefined. | 133 // NOTE: If event mapping fails, the type will be set to Undefined. |
133 class WEB_EXPORT WebGestureEventBuilder | 134 class WEB_EXPORT WebGestureEventBuilder |
134 : NON_EXPORTED_BASE(public WebGestureEvent) { | 135 : NON_EXPORTED_BASE(public WebGestureEvent) { |
135 public: | 136 public: |
136 WebGestureEventBuilder(const LayoutItem, const GestureEvent&); | 137 WebGestureEventBuilder(const LayoutItem, const GestureEvent&); |
137 }; | 138 }; |
138 | 139 |
| 140 Vector<PlatformMouseEvent> WEB_EXPORT |
| 141 createPlatformMouseEventVector(Widget*, |
| 142 const std::vector<const WebInputEvent*>&); |
| 143 Vector<PlatformTouchEvent> WEB_EXPORT |
| 144 createPlatformTouchEventVector(Widget*, |
| 145 const std::vector<const WebInputEvent*>&); |
| 146 |
139 } // namespace blink | 147 } // namespace blink |
140 | 148 |
141 #endif | 149 #endif |
OLD | NEW |