| 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/public/web/WebInputEvent.h" | 9 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 10 | 10 |
| 11 namespace ui { | 11 namespace ui { |
| 12 class GestureEvent; | 12 class GestureEvent; |
| 13 class KeyEvent; | 13 class KeyEvent; |
| 14 class MouseEvent; | 14 class MouseEvent; |
| 15 class MouseWheelEvent; | 15 class MouseWheelEvent; |
| 16 class ScrollEvent; | 16 class ScrollEvent; |
| 17 class TouchEvent; | 17 class TouchEvent; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 | 21 |
| 22 // Used for scrolling. This matches Firefox behavior. | 22 // Used for scrolling. This matches Firefox behavior. |
| 23 const int kPixelsPerTick = 53; | 23 const int kPixelsPerTick = 53; |
| 24 | 24 |
| 25 #if defined(USE_X11) || defined(USE_OZONE) | 25 #if defined(USE_X11) || defined(USE_OZONE) |
| 26 CONTENT_EXPORT WebKit::WebUChar GetControlCharacter( | 26 CONTENT_EXPORT blink::WebUChar GetControlCharacter( |
| 27 int windows_key_code, bool shift); | 27 int windows_key_code, bool shift); |
| 28 #endif | 28 #endif |
| 29 CONTENT_EXPORT WebKit::WebMouseEvent MakeWebMouseEvent( | 29 CONTENT_EXPORT blink::WebMouseEvent MakeWebMouseEvent( |
| 30 ui::MouseEvent* event); | 30 ui::MouseEvent* event); |
| 31 CONTENT_EXPORT WebKit::WebMouseWheelEvent MakeWebMouseWheelEvent( | 31 CONTENT_EXPORT blink::WebMouseWheelEvent MakeWebMouseWheelEvent( |
| 32 ui::MouseWheelEvent* event); | 32 ui::MouseWheelEvent* event); |
| 33 CONTENT_EXPORT WebKit::WebMouseWheelEvent MakeWebMouseWheelEvent( | 33 CONTENT_EXPORT blink::WebMouseWheelEvent MakeWebMouseWheelEvent( |
| 34 ui::ScrollEvent* event); | 34 ui::ScrollEvent* event); |
| 35 CONTENT_EXPORT WebKit::WebKeyboardEvent MakeWebKeyboardEvent( | 35 CONTENT_EXPORT blink::WebKeyboardEvent MakeWebKeyboardEvent( |
| 36 ui::KeyEvent* event); | 36 ui::KeyEvent* event); |
| 37 CONTENT_EXPORT WebKit::WebGestureEvent MakeWebGestureEvent( | 37 CONTENT_EXPORT blink::WebGestureEvent MakeWebGestureEvent( |
| 38 ui::GestureEvent* event); | 38 ui::GestureEvent* event); |
| 39 CONTENT_EXPORT WebKit::WebGestureEvent MakeWebGestureEvent( | 39 CONTENT_EXPORT blink::WebGestureEvent MakeWebGestureEvent( |
| 40 ui::ScrollEvent* event); | 40 ui::ScrollEvent* event); |
| 41 CONTENT_EXPORT WebKit::WebGestureEvent MakeWebGestureEventFlingCancel(); | 41 CONTENT_EXPORT blink::WebGestureEvent MakeWebGestureEventFlingCancel(); |
| 42 | 42 |
| 43 } // namespace content | 43 } // namespace content |
| 44 | 44 |
| 45 #endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_ | 45 #endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_ |
| OLD | NEW |