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 "base/basictypes.h" | 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/i18n/char_iterator.h" | 10 #include "base/i18n/char_iterator.h" |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
11 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
12 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
13 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
14 #include "base/strings/utf_string_conversion_utils.h" | 16 #include "base/strings/utf_string_conversion_utils.h" |
15 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 18 #include "build/build_config.h" |
16 #include "content/common/input/web_touch_event_traits.h" | 19 #include "content/common/input/web_touch_event_traits.h" |
17 #include "ppapi/c/pp_input_event.h" | 20 #include "ppapi/c/pp_input_event.h" |
18 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 21 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
19 #include "third_party/WebKit/public/platform/WebGamepads.h" | 22 #include "third_party/WebKit/public/platform/WebGamepads.h" |
20 #include "third_party/WebKit/public/web/WebInputEvent.h" | 23 #include "third_party/WebKit/public/web/WebInputEvent.h" |
21 #include "ui/events/keycodes/dom/keycode_converter.h" | 24 #include "ui/events/keycodes/dom/keycode_converter.h" |
22 | 25 |
23 using ppapi::InputEventData; | 26 using ppapi::InputEventData; |
24 using blink::WebInputEvent; | 27 using blink::WebInputEvent; |
25 using blink::WebKeyboardEvent; | 28 using blink::WebKeyboardEvent; |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 case WebInputEvent::TouchStart: | 739 case WebInputEvent::TouchStart: |
737 return PP_INPUTEVENT_CLASS_TOUCH; | 740 return PP_INPUTEVENT_CLASS_TOUCH; |
738 case WebInputEvent::Undefined: | 741 case WebInputEvent::Undefined: |
739 default: | 742 default: |
740 CHECK(WebInputEvent::isGestureEventType(type)); | 743 CHECK(WebInputEvent::isGestureEventType(type)); |
741 return PP_InputEvent_Class(0); | 744 return PP_InputEvent_Class(0); |
742 } | 745 } |
743 } | 746 } |
744 | 747 |
745 } // namespace content | 748 } // namespace content |
OLD | NEW |