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 #include "webkit/plugins/ppapi/event_conversion.h" | 5 #include "webkit/plugins/ppapi/event_conversion.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/i18n/char_iterator.h" | 8 #include "base/i18n/char_iterator.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "base/utf_string_conversion_utils.h" | 14 #include "base/utf_string_conversion_utils.h" |
15 #include "ppapi/c/pp_input_event.h" | 15 #include "ppapi/c/pp_input_event.h" |
16 #include "ppapi/shared_impl/input_event_impl.h" | 16 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
17 #include "ppapi/shared_impl/time_conversion.h" | 17 #include "ppapi/shared_impl/time_conversion.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
20 #include "webkit/plugins/ppapi/common.h" | 20 #include "webkit/plugins/ppapi/common.h" |
21 | 21 |
22 using ppapi::EventTimeToPPTimeTicks; | 22 using ppapi::EventTimeToPPTimeTicks; |
23 using ppapi::InputEventData; | 23 using ppapi::InputEventData; |
24 using ppapi::PPTimeTicksToEventTime; | 24 using ppapi::PPTimeTicksToEventTime; |
25 using WebKit::WebInputEvent; | 25 using WebKit::WebInputEvent; |
26 using WebKit::WebKeyboardEvent; | 26 using WebKit::WebKeyboardEvent; |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 return PP_INPUTEVENT_CLASS_KEYBOARD; | 515 return PP_INPUTEVENT_CLASS_KEYBOARD; |
516 case WebInputEvent::Undefined: | 516 case WebInputEvent::Undefined: |
517 default: | 517 default: |
518 NOTREACHED(); | 518 NOTREACHED(); |
519 return PP_InputEvent_Class(0); | 519 return PP_InputEvent_Class(0); |
520 } | 520 } |
521 } | 521 } |
522 | 522 |
523 } // namespace ppapi | 523 } // namespace ppapi |
524 } // namespace webkit | 524 } // namespace webkit |
OLD | NEW |