| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEB_INPUT_EVENT_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_ |
| 7 | 7 |
| 8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 10 | 10 |
| 11 namespace ui { | 11 namespace ui { |
| 12 class GestureEventImpl; | 12 class GestureEvent; |
| 13 class KeyEvent; | 13 class KeyEvent; |
| 14 class MouseEvent; | 14 class MouseEvent; |
| 15 class ScrollEvent; | 15 class ScrollEvent; |
| 16 class TouchEvent; | 16 class TouchEvent; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 | 20 |
| 21 CONTENT_EXPORT WebKit::WebMouseEvent MakeWebMouseEvent( | 21 CONTENT_EXPORT WebKit::WebMouseEvent MakeWebMouseEvent( |
| 22 ui::MouseEvent* event); | 22 ui::MouseEvent* event); |
| 23 CONTENT_EXPORT WebKit::WebMouseWheelEvent MakeWebMouseWheelEvent( | 23 CONTENT_EXPORT WebKit::WebMouseWheelEvent MakeWebMouseWheelEvent( |
| 24 ui::MouseEvent* event); | 24 ui::MouseEvent* event); |
| 25 CONTENT_EXPORT WebKit::WebMouseWheelEvent MakeWebMouseWheelEvent( | 25 CONTENT_EXPORT WebKit::WebMouseWheelEvent MakeWebMouseWheelEvent( |
| 26 ui::ScrollEvent* event); | 26 ui::ScrollEvent* event); |
| 27 CONTENT_EXPORT WebKit::WebKeyboardEvent MakeWebKeyboardEvent( | 27 CONTENT_EXPORT WebKit::WebKeyboardEvent MakeWebKeyboardEvent( |
| 28 ui::KeyEvent* event); | 28 ui::KeyEvent* event); |
| 29 CONTENT_EXPORT WebKit::WebGestureEvent MakeWebGestureEvent( | 29 CONTENT_EXPORT WebKit::WebGestureEvent MakeWebGestureEvent( |
| 30 ui::GestureEventImpl* event); | 30 ui::GestureEvent* event); |
| 31 CONTENT_EXPORT WebKit::WebGestureEvent MakeWebGestureEvent( | 31 CONTENT_EXPORT WebKit::WebGestureEvent MakeWebGestureEvent( |
| 32 ui::ScrollEvent* event); | 32 ui::ScrollEvent* event); |
| 33 CONTENT_EXPORT WebKit::WebGestureEvent MakeWebGestureEventFlingCancel(); | 33 CONTENT_EXPORT WebKit::WebGestureEvent MakeWebGestureEventFlingCancel(); |
| 34 | 34 |
| 35 // Updates the WebTouchEvent based on the TouchEvent. It returns the updated | 35 // Updates the WebTouchEvent based on the TouchEvent. It returns the updated |
| 36 // WebTouchPoint contained in the WebTouchEvent, or NULL if no point was | 36 // WebTouchPoint contained in the WebTouchEvent, or NULL if no point was |
| 37 // updated. | 37 // updated. |
| 38 WebKit::WebTouchPoint* UpdateWebTouchEvent(ui::TouchEvent* event, | 38 WebKit::WebTouchPoint* UpdateWebTouchEvent(ui::TouchEvent* event, |
| 39 WebKit::WebTouchEvent* web_event); | 39 WebKit::WebTouchEvent* web_event); |
| 40 | 40 |
| 41 } | 41 } |
| 42 | 42 |
| 43 #endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_ | 43 #endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_ |
| OLD | NEW |