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/proxy/ppb_instance_proxy.h" | 5 #include "ppapi/proxy/ppb_instance_proxy.h" |
6 | 6 |
7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
8 #include "ppapi/c/pp_time.h" | 8 #include "ppapi/c/pp_time.h" |
9 #include "ppapi/c/pp_var.h" | 9 #include "ppapi/c/pp_var.h" |
10 #include "ppapi/c/ppb_audio_config.h" | 10 #include "ppapi/c/ppb_audio_config.h" |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 void PPB_Instance_Proxy::OnHostMsgGetOwnerElementObject( | 526 void PPB_Instance_Proxy::OnHostMsgGetOwnerElementObject( |
527 PP_Instance instance, | 527 PP_Instance instance, |
528 SerializedVarReturnValue result) { | 528 SerializedVarReturnValue result) { |
529 EnterInstanceNoLock enter(instance); | 529 EnterInstanceNoLock enter(instance); |
530 if (enter.succeeded()) { | 530 if (enter.succeeded()) { |
531 result.Return(dispatcher(), | 531 result.Return(dispatcher(), |
532 enter.functions()->GetOwnerElementObject(instance)); | 532 enter.functions()->GetOwnerElementObject(instance)); |
533 } | 533 } |
534 } | 534 } |
535 | 535 |
| 536 void PPB_Instance_Proxy::NeedKey(PP_Instance instance, |
| 537 PP_Var key_system, |
| 538 PP_Var session_id, |
| 539 PP_Resource init_data) { |
| 540 } |
| 541 |
| 542 void PPB_Instance_Proxy::KeyAdded(PP_Instance instance, |
| 543 PP_Var key_system, |
| 544 PP_Var session_id) { |
| 545 } |
| 546 |
| 547 void PPB_Instance_Proxy::KeyMessage(PP_Instance instance, |
| 548 PP_Var key_system, |
| 549 PP_Var session_id, |
| 550 PP_Resource message, |
| 551 PP_Var default_url) { |
| 552 } |
| 553 |
| 554 void PPB_Instance_Proxy::KeyError(PP_Instance instance, |
| 555 PP_Var key_system, |
| 556 PP_Var session_id, |
| 557 uint16_t media_error, |
| 558 uint16_t system_error) { |
| 559 } |
| 560 |
| 561 void PPB_Instance_Proxy::DeliverBlock(PP_Instance instance, |
| 562 PP_Resource decrypted_block, |
| 563 PP_CompletionCallback callback) { |
| 564 } |
| 565 |
| 566 void PPB_Instance_Proxy::DeliverFrame(PP_Instance instance, |
| 567 PP_Resource decrypted_frame, |
| 568 PP_CompletionCallback callback) { |
| 569 } |
| 570 |
| 571 void PPB_Instance_Proxy::DeliverSamples(PP_Instance instance, |
| 572 PP_Resource decrypted_samples, |
| 573 PP_CompletionCallback callback) { |
| 574 } |
| 575 |
| 576 |
536 void PPB_Instance_Proxy::OnHostMsgBindGraphics(PP_Instance instance, | 577 void PPB_Instance_Proxy::OnHostMsgBindGraphics(PP_Instance instance, |
537 const HostResource& device, | 578 const HostResource& device, |
538 PP_Bool* result) { | 579 PP_Bool* result) { |
539 EnterInstanceNoLock enter(instance); | 580 EnterInstanceNoLock enter(instance); |
540 if (enter.succeeded()) { | 581 if (enter.succeeded()) { |
541 *result = enter.functions()->BindGraphics(instance, | 582 *result = enter.functions()->BindGraphics(instance, |
542 device.host_resource()); | 583 device.host_resource()); |
543 } | 584 } |
544 } | 585 } |
545 | 586 |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 } | 843 } |
803 | 844 |
804 void PPB_Instance_Proxy::MouseLockCompleteInHost(int32_t result, | 845 void PPB_Instance_Proxy::MouseLockCompleteInHost(int32_t result, |
805 PP_Instance instance) { | 846 PP_Instance instance) { |
806 dispatcher()->Send(new PpapiMsg_PPBInstance_MouseLockComplete( | 847 dispatcher()->Send(new PpapiMsg_PPBInstance_MouseLockComplete( |
807 API_ID_PPB_INSTANCE, instance, result)); | 848 API_ID_PPB_INSTANCE, instance, result)); |
808 } | 849 } |
809 | 850 |
810 } // namespace proxy | 851 } // namespace proxy |
811 } // namespace ppapi | 852 } // namespace ppapi |
OLD | NEW |