OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
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 aura { | 11 namespace aura { |
12 class KeyEvent; | 12 class KeyEvent; |
13 class MouseEvent; | 13 class MouseEvent; |
| 14 class TouchEvent; |
14 } | 15 } |
15 | 16 |
16 namespace content { | 17 namespace content { |
17 | 18 |
18 WebKit::WebMouseEvent MakeWebMouseEvent(aura::MouseEvent* event); | 19 WebKit::WebMouseEvent MakeWebMouseEvent(aura::MouseEvent* event); |
19 WebKit::WebMouseWheelEvent MakeWebMouseWheelEvent(aura::MouseEvent* event); | 20 WebKit::WebMouseWheelEvent MakeWebMouseWheelEvent(aura::MouseEvent* event); |
20 WebKit::WebKeyboardEvent MakeWebKeyboardEvent(aura::KeyEvent* event); | 21 WebKit::WebKeyboardEvent MakeWebKeyboardEvent(aura::KeyEvent* event); |
21 | 22 |
22 // TODO(beng): WebKit::WebMouseWheelEvent | 23 // Updates the WebTouchEvent based on the TouchEvent. It returns the updated |
| 24 // WebTouchPoint contained in the WebTouchEvent, or NULL if no point was |
| 25 // updated. |
| 26 WebKit::WebTouchPoint* UpdateWebTouchEvent(aura::TouchEvent* event, |
| 27 WebKit::WebTouchEvent* web_event); |
| 28 |
23 | 29 |
24 } | 30 } |
25 | 31 |
26 #endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_ | 32 #endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_ |
OLD | NEW |