| 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" |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 web_input_event.reset(BuildMouseWheelEvent(event)); | 295 web_input_event.reset(BuildMouseWheelEvent(event)); |
| 296 break; | 296 break; |
| 297 case PP_INPUTEVENT_TYPE_RAWKEYDOWN: | 297 case PP_INPUTEVENT_TYPE_RAWKEYDOWN: |
| 298 case PP_INPUTEVENT_TYPE_KEYDOWN: | 298 case PP_INPUTEVENT_TYPE_KEYDOWN: |
| 299 case PP_INPUTEVENT_TYPE_KEYUP: | 299 case PP_INPUTEVENT_TYPE_KEYUP: |
| 300 web_input_event.reset(BuildKeyEvent(event)); | 300 web_input_event.reset(BuildKeyEvent(event)); |
| 301 break; | 301 break; |
| 302 case PP_INPUTEVENT_TYPE_CHAR: | 302 case PP_INPUTEVENT_TYPE_CHAR: |
| 303 web_input_event.reset(BuildCharEvent(event)); | 303 web_input_event.reset(BuildCharEvent(event)); |
| 304 break; | 304 break; |
| 305 case PP_INPUTEVENT_TYPE_COMPOSITION_START: | 305 case PP_INPUTEVENT_TYPE_IME_COMPOSITION_START: |
| 306 case PP_INPUTEVENT_TYPE_COMPOSITION_UPDATE: | 306 case PP_INPUTEVENT_TYPE_IME_COMPOSITION_UPDATE: |
| 307 case PP_INPUTEVENT_TYPE_COMPOSITION_END: | 307 case PP_INPUTEVENT_TYPE_IME_COMPOSITION_END: |
| 308 case PP_INPUTEVENT_TYPE_IME_TEXT: | 308 case PP_INPUTEVENT_TYPE_IME_TEXT: |
| 309 // TODO(kinaba) implement in WebKit an event structure to handle | 309 // TODO(kinaba) implement in WebKit an event structure to handle |
| 310 // composition events. | 310 // composition events. |
| 311 NOTREACHED(); | 311 NOTREACHED(); |
| 312 break; | 312 break; |
| 313 } | 313 } |
| 314 | 314 |
| 315 return web_input_event.release(); | 315 return web_input_event.release(); |
| 316 } | 316 } |
| 317 | 317 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 333 return PP_INPUTEVENT_CLASS_KEYBOARD; | 333 return PP_INPUTEVENT_CLASS_KEYBOARD; |
| 334 case WebInputEvent::Undefined: | 334 case WebInputEvent::Undefined: |
| 335 default: | 335 default: |
| 336 NOTREACHED(); | 336 NOTREACHED(); |
| 337 return PP_InputEvent_Class(0); | 337 return PP_InputEvent_Class(0); |
| 338 } | 338 } |
| 339 } | 339 } |
| 340 | 340 |
| 341 } // namespace ppapi | 341 } // namespace ppapi |
| 342 } // namespace webkit | 342 } // namespace webkit |
| OLD | NEW |