| OLD | NEW |
| 1 // Copyright (c) 2011 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 "native_client/src/shared/ppapi_proxy/browser_ppp_mouse_lock.h" | 5 #include "native_client/src/shared/ppapi_proxy/browser_ppp_mouse_lock.h" |
| 6 | 6 |
| 7 #include "native_client/src/include/portability.h" | 7 #include "native_client/src/include/portability.h" |
| 8 #include "native_client/src/shared/ppapi_proxy/browser_globals.h" | 8 #include "native_client/src/shared/ppapi_proxy/browser_globals.h" |
| 9 #include "native_client/src/shared/ppapi_proxy/utility.h" | 9 #include "native_client/src/shared/ppapi_proxy/utility.h" |
| 10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
| 11 #include "srpcgen/ppp_rpc.h" | 11 #include "srpcgen/ppp_rpc.h" |
| 12 | 12 |
| 13 namespace ppapi_proxy { | 13 namespace ppapi_proxy { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 void MouseLockLost(PP_Instance instance) { | 17 void MouseLockLost(PP_Instance instance) { |
| 18 DebugPrintf("PPP_MouseLock::MouseLockLost: instance=%"NACL_PRIu32"\n", | 18 DebugPrintf("PPP_MouseLock::MouseLockLost: instance=%"NACL_PRId32"\n", |
| 19 instance); | 19 instance); |
| 20 | 20 |
| 21 NaClSrpcError srpc_result = | 21 NaClSrpcError srpc_result = |
| 22 PppMouseLockRpcClient::PPP_MouseLock_MouseLockLost( | 22 PppMouseLockRpcClient::PPP_MouseLock_MouseLockLost( |
| 23 GetMainSrpcChannel(instance), | 23 GetMainSrpcChannel(instance), |
| 24 instance); | 24 instance); |
| 25 | 25 |
| 26 DebugPrintf("PPP_MouseLock::MouseLockLost: %s\n", | 26 DebugPrintf("PPP_MouseLock::MouseLockLost: %s\n", |
| 27 NaClSrpcErrorString(srpc_result)); | 27 NaClSrpcErrorString(srpc_result)); |
| 28 } | 28 } |
| 29 | 29 |
| 30 } // namespace | 30 } // namespace |
| 31 | 31 |
| 32 const PPP_MouseLock* BrowserMouseLock::GetInterface() { | 32 const PPP_MouseLock* BrowserMouseLock::GetInterface() { |
| 33 static const PPP_MouseLock mouse_lock_interface = { | 33 static const PPP_MouseLock mouse_lock_interface = { |
| 34 MouseLockLost | 34 MouseLockLost |
| 35 }; | 35 }; |
| 36 return &mouse_lock_interface; | 36 return &mouse_lock_interface; |
| 37 } | 37 } |
| 38 | 38 |
| 39 } // namespace ppapi_proxy | 39 } // namespace ppapi_proxy |
| 40 | |
| OLD | NEW |