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_var.h" | 8 #include "ppapi/c/pp_var.h" |
9 #include "ppapi/c/ppb_instance.h" | 9 #include "ppapi/c/ppb_instance.h" |
10 #include "ppapi/c/ppb_messaging.h" | 10 #include "ppapi/c/ppb_messaging.h" |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 } | 484 } |
485 } | 485 } |
486 | 486 |
487 void PPB_Instance_Proxy::OnHostMsgClearInputEvents(PP_Instance instance, | 487 void PPB_Instance_Proxy::OnHostMsgClearInputEvents(PP_Instance instance, |
488 uint32_t event_classes) { | 488 uint32_t event_classes) { |
489 EnterInstanceNoLock enter(instance, false); | 489 EnterInstanceNoLock enter(instance, false); |
490 if (enter.succeeded()) | 490 if (enter.succeeded()) |
491 enter.functions()->ClearInputEventRequest(instance, event_classes); | 491 enter.functions()->ClearInputEventRequest(instance, event_classes); |
492 } | 492 } |
493 | 493 |
494 void PPB_Instance_Proxy::OnHostMsgPostMessage(PP_Instance instance, | 494 void PPB_Instance_Proxy::OnHostMsgPostMessage( |
495 SerializedVarReceiveInput message) { | 495 PP_Instance instance, |
| 496 SerializedVarReceiveInput message) { |
496 EnterInstanceNoLock enter(instance, false); | 497 EnterInstanceNoLock enter(instance, false); |
497 if (enter.succeeded()) | 498 if (enter.succeeded()) |
498 enter.functions()->PostMessage(instance, message.Get(dispatcher())); | 499 enter.functions()->PostMessage(instance, message.Get(dispatcher())); |
499 } | 500 } |
500 | 501 |
501 void PPB_Instance_Proxy::OnHostMsgLockMouse(PP_Instance instance) { | 502 void PPB_Instance_Proxy::OnHostMsgLockMouse(PP_Instance instance) { |
502 EnterHostFunctionForceCallback<PPB_Instance_FunctionAPI> enter( | 503 EnterHostFunctionForceCallback<PPB_Instance_FunctionAPI> enter( |
503 instance, callback_factory_, | 504 instance, callback_factory_, |
504 &PPB_Instance_Proxy::MouseLockCompleteInHost, instance); | 505 &PPB_Instance_Proxy::MouseLockCompleteInHost, instance); |
505 if (enter.succeeded()) | 506 if (enter.succeeded()) |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 } | 578 } |
578 | 579 |
579 void PPB_Instance_Proxy::MouseLockCompleteInHost(int32_t result, | 580 void PPB_Instance_Proxy::MouseLockCompleteInHost(int32_t result, |
580 PP_Instance instance) { | 581 PP_Instance instance) { |
581 dispatcher()->Send(new PpapiMsg_PPBInstance_MouseLockComplete( | 582 dispatcher()->Send(new PpapiMsg_PPBInstance_MouseLockComplete( |
582 API_ID_PPB_INSTANCE, instance, result)); | 583 API_ID_PPB_INSTANCE, instance, result)); |
583 } | 584 } |
584 | 585 |
585 } // namespace proxy | 586 } // namespace proxy |
586 } // namespace ppapi | 587 } // namespace ppapi |
OLD | NEW |