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 <map> | 7 #include <map> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/i18n/char_iterator.h" | 10 #include "base/i18n/char_iterator.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "base/strings/utf_string_conversion_utils.h" | 15 #include "base/strings/utf_string_conversion_utils.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "content/common/input/web_touch_event_traits.h" | 17 #include "content/common/input/web_touch_event_traits.h" |
18 #include "content/renderer/pepper/common.h" | |
19 #include "content/renderer/pepper/usb_key_code_conversion.h" | 18 #include "content/renderer/pepper/usb_key_code_conversion.h" |
20 #include "ppapi/c/pp_input_event.h" | 19 #include "ppapi/c/pp_input_event.h" |
21 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 20 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
22 #include "ppapi/shared_impl/time_conversion.h" | 21 #include "ppapi/shared_impl/time_conversion.h" |
23 #include "third_party/WebKit/public/platform/WebGamepads.h" | 22 #include "third_party/WebKit/public/platform/WebGamepads.h" |
24 #include "third_party/WebKit/public/platform/WebString.h" | 23 #include "third_party/WebKit/public/platform/WebString.h" |
25 #include "third_party/WebKit/public/web/WebInputEvent.h" | 24 #include "third_party/WebKit/public/web/WebInputEvent.h" |
26 | 25 |
27 using ppapi::EventTimeToPPTimeTicks; | 26 using ppapi::EventTimeToPPTimeTicks; |
28 using ppapi::InputEventData; | 27 using ppapi::InputEventData; |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 case WebInputEvent::TouchStart: | 730 case WebInputEvent::TouchStart: |
732 return PP_INPUTEVENT_CLASS_TOUCH; | 731 return PP_INPUTEVENT_CLASS_TOUCH; |
733 case WebInputEvent::Undefined: | 732 case WebInputEvent::Undefined: |
734 default: | 733 default: |
735 NOTREACHED(); | 734 NOTREACHED(); |
736 return PP_InputEvent_Class(0); | 735 return PP_InputEvent_Class(0); |
737 } | 736 } |
738 } | 737 } |
739 | 738 |
740 } // namespace content | 739 } // namespace content |
OLD | NEW |