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 #include "content/renderer/pepper/event_conversion.h" | 5 #include "content/renderer/pepper/event_conversion.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string.h> | 9 #include <string.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "base/i18n/char_iterator.h" | 13 #include "base/i18n/char_iterator.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
18 #include "base/strings/utf_string_conversion_utils.h" | 18 #include "base/strings/utf_string_conversion_utils.h" |
19 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
20 #include "build/build_config.h" | 20 #include "build/build_config.h" |
21 #include "content/common/input/web_touch_event_traits.h" | 21 #include "content/common/input/web_touch_event_traits.h" |
22 #include "ppapi/c/pp_input_event.h" | 22 #include "ppapi/c/pp_input_event.h" |
23 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 23 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
24 #include "third_party/WebKit/public/platform/WebGamepads.h" | 24 #include "third_party/WebKit/public/platform/WebGamepads.h" |
25 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 25 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 26 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h" |
26 #include "ui/events/keycodes/dom/keycode_converter.h" | 27 #include "ui/events/keycodes/dom/keycode_converter.h" |
27 | 28 |
28 using ppapi::InputEventData; | 29 using ppapi::InputEventData; |
29 using blink::WebInputEvent; | 30 using blink::WebInputEvent; |
30 using blink::WebKeyboardEvent; | 31 using blink::WebKeyboardEvent; |
31 using blink::WebMouseEvent; | 32 using blink::WebMouseEvent; |
32 using blink::WebMouseWheelEvent; | 33 using blink::WebMouseWheelEvent; |
33 using blink::WebTouchEvent; | 34 using blink::WebTouchEvent; |
34 using blink::WebTouchPoint; | 35 using blink::WebTouchPoint; |
35 using blink::WebUChar; | 36 using blink::WebUChar; |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 return PP_INPUTEVENT_CLASS_TOUCH; | 769 return PP_INPUTEVENT_CLASS_TOUCH; |
769 case WebInputEvent::TouchScrollStarted: | 770 case WebInputEvent::TouchScrollStarted: |
770 return PP_InputEvent_Class(0); | 771 return PP_InputEvent_Class(0); |
771 default: | 772 default: |
772 CHECK(WebInputEvent::isGestureEventType(event.type)); | 773 CHECK(WebInputEvent::isGestureEventType(event.type)); |
773 return PP_InputEvent_Class(0); | 774 return PP_InputEvent_Class(0); |
774 } | 775 } |
775 } | 776 } |
776 | 777 |
777 } // namespace content | 778 } // namespace content |
OLD | NEW |