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 "ppapi/c/pp_errors.h" | 5 #include "ppapi/c/pp_errors.h" |
6 #include "ppapi/thunk/enter.h" | 6 #include "ppapi/thunk/enter.h" |
7 #include "ppapi/thunk/ppb_input_event_api.h" | 7 #include "ppapi/thunk/ppb_input_event_api.h" |
8 #include "ppapi/thunk/ppb_instance_api.h" | 8 #include "ppapi/thunk/ppb_instance_api.h" |
9 #include "ppapi/thunk/resource_creation_api.h" | 9 #include "ppapi/thunk/resource_creation_api.h" |
10 #include "ppapi/thunk/thunk.h" | 10 #include "ppapi/thunk/thunk.h" |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 const PPB_IMEInputEvent_Dev_0_2 g_ppb_ime_input_event_0_2_thunk = { | 404 const PPB_IMEInputEvent_Dev_0_2 g_ppb_ime_input_event_0_2_thunk = { |
405 &CreateIMEInputEvent, | 405 &CreateIMEInputEvent, |
406 &IsIMEInputEvent, | 406 &IsIMEInputEvent, |
407 &GetIMEText, | 407 &GetIMEText, |
408 &GetIMESegmentNumber, | 408 &GetIMESegmentNumber, |
409 &GetIMESegmentOffset, | 409 &GetIMESegmentOffset, |
410 &GetIMETargetSegment, | 410 &GetIMETargetSegment, |
411 &GetIMESelection | 411 &GetIMESelection |
412 }; | 412 }; |
413 | 413 |
| 414 const PPB_IMEInputEvent_1_0 g_ppb_ime_input_event_1_0_thunk = { |
| 415 &CreateIMEInputEvent, |
| 416 &IsIMEInputEvent, |
| 417 &GetIMEText, |
| 418 &GetIMESegmentNumber, |
| 419 &GetIMESegmentOffset, |
| 420 &GetIMETargetSegment, |
| 421 &GetIMESelection |
| 422 }; |
| 423 |
414 // Touch ----------------------------------------------------------------------- | 424 // Touch ----------------------------------------------------------------------- |
415 | 425 |
416 PP_Resource CreateTouchInputEvent(PP_Instance instance, | 426 PP_Resource CreateTouchInputEvent(PP_Instance instance, |
417 PP_InputEvent_Type type, | 427 PP_InputEvent_Type type, |
418 PP_TimeTicks time_stamp, | 428 PP_TimeTicks time_stamp, |
419 uint32_t modifiers) { | 429 uint32_t modifiers) { |
420 VLOG(4) << "PPB_TouchInputEvent::Create()"; | 430 VLOG(4) << "PPB_TouchInputEvent::Create()"; |
421 EnterResourceCreation enter(instance); | 431 EnterResourceCreation enter(instance); |
422 if (enter.failed()) | 432 if (enter.failed()) |
423 return 0; | 433 return 0; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 } | 521 } |
512 | 522 |
513 const PPB_IMEInputEvent_Dev_0_1* GetPPB_IMEInputEvent_Dev_0_1_Thunk() { | 523 const PPB_IMEInputEvent_Dev_0_1* GetPPB_IMEInputEvent_Dev_0_1_Thunk() { |
514 return &g_ppb_ime_input_event_0_1_thunk; | 524 return &g_ppb_ime_input_event_0_1_thunk; |
515 } | 525 } |
516 | 526 |
517 const PPB_IMEInputEvent_Dev_0_2* GetPPB_IMEInputEvent_Dev_0_2_Thunk() { | 527 const PPB_IMEInputEvent_Dev_0_2* GetPPB_IMEInputEvent_Dev_0_2_Thunk() { |
518 return &g_ppb_ime_input_event_0_2_thunk; | 528 return &g_ppb_ime_input_event_0_2_thunk; |
519 } | 529 } |
520 | 530 |
| 531 const PPB_IMEInputEvent_1_0* GetPPB_IMEInputEvent_1_0_Thunk() { |
| 532 return &g_ppb_ime_input_event_1_0_thunk; |
| 533 } |
| 534 |
521 const PPB_TouchInputEvent_1_0* GetPPB_TouchInputEvent_1_0_Thunk() { | 535 const PPB_TouchInputEvent_1_0* GetPPB_TouchInputEvent_1_0_Thunk() { |
522 return &g_ppb_touch_input_event_thunk; | 536 return &g_ppb_touch_input_event_thunk; |
523 } | 537 } |
524 | 538 |
525 } // namespace thunk | 539 } // namespace thunk |
526 } // namespace ppapi | 540 } // namespace ppapi |
OLD | NEW |