OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/glue/plugins/pepper_event_conversion.h" | 5 #include "webkit/glue/plugins/pepper_event_conversion.h" |
6 | 6 |
7 #include "base/i18n/char_iterator.h" | 7 #include "base/i18n/char_iterator.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "base/utf_string_conversion_utils.h" | 12 #include "base/utf_string_conversion_utils.h" |
13 #include "third_party/ppapi/c/pp_input_event.h" | 13 #include "ppapi/c/pp_input_event.h" |
14 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" |
15 | 15 |
16 using WebKit::WebInputEvent; | 16 using WebKit::WebInputEvent; |
17 using WebKit::WebKeyboardEvent; | 17 using WebKit::WebKeyboardEvent; |
18 using WebKit::WebMouseEvent; | 18 using WebKit::WebMouseEvent; |
19 using WebKit::WebMouseWheelEvent; | 19 using WebKit::WebMouseWheelEvent; |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 PP_InputEvent_Type ConvertEventTypes(WebInputEvent::Type wetype) { | 23 PP_InputEvent_Type ConvertEventTypes(WebInputEvent::Type wetype) { |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 break; | 290 break; |
291 case PP_INPUTEVENT_TYPE_CHAR: | 291 case PP_INPUTEVENT_TYPE_CHAR: |
292 web_input_event.reset(BuildCharEvent(event)); | 292 web_input_event.reset(BuildCharEvent(event)); |
293 break; | 293 break; |
294 } | 294 } |
295 | 295 |
296 return web_input_event.release(); | 296 return web_input_event.release(); |
297 } | 297 } |
298 | 298 |
299 } // namespace pepper | 299 } // namespace pepper |
OLD | NEW |