| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The Native Client Authors. All rights reserved. | 2 * Copyright 2010 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
| 4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_instance.h" | 7 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_instance.h" |
| 8 | 8 |
| 9 #include <stdio.h> | 9 #include <stdio.h> |
| 10 #include "native_client/src/include/nacl_macros.h" | 10 #include "native_client/src/include/nacl_macros.h" |
| 11 #include "native_client/src/include/nacl_scoped_ptr.h" | 11 #include "native_client/src/include/nacl_scoped_ptr.h" |
| 12 #include "native_client/src/include/portability.h" | 12 #include "native_client/src/include/portability.h" |
| 13 #include "native_client/src/shared/ppapi_proxy/object_serialize.h" | 13 #include "native_client/src/shared/ppapi_proxy/object_serialize.h" |
| 14 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" | 14 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" |
| 15 #include "native_client/src/shared/ppapi_proxy/utility.h" | 15 #include "native_client/src/shared/ppapi_proxy/utility.h" |
| 16 #include "native_client/src/shared/srpc/nacl_srpc.h" | 16 #include "native_client/src/shared/srpc/nacl_srpc.h" |
| 17 #include "ppapi/c/ppb_instance.h" | 17 #include "ppapi/c/ppb_instance.h" |
| 18 #include "srpcgen/ppb_rpc.h" | 18 #include "srpcgen/ppb_rpc.h" |
| 19 | 19 |
| 20 namespace ppapi_proxy { | 20 namespace ppapi_proxy { |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 PP_Var GetWindowObject(PP_Instance instance) { | 24 PP_Var GetWindowObject(PP_Instance instance) { |
| 25 DebugPrintf("PPB_Instance::GetWindowObject: instance=%" | 25 DebugPrintf("PPB_Instance::GetWindowObject: instance=%" |
| 26 NACL_PRIx64"\n", instance); | 26 NACL_PRIx64"\n", instance); |
| 27 NACL_UNTESTED(); | |
| 28 NaClSrpcChannel* channel = GetMainSrpcChannel(); | 27 NaClSrpcChannel* channel = GetMainSrpcChannel(); |
| 29 | 28 |
| 30 PP_Var window = PP_MakeUndefined(); | 29 PP_Var window = PP_MakeUndefined(); |
| 31 nacl_abi_size_t window_size = kMaxVarSize; | 30 nacl_abi_size_t window_size = kMaxVarSize; |
| 32 nacl::scoped_array<char> window_bytes(new char[kMaxVarSize]); | 31 nacl::scoped_array<char> window_bytes(new char[kMaxVarSize]); |
| 33 | 32 |
| 34 NaClSrpcError srpc_result = | 33 NaClSrpcError srpc_result = |
| 35 PpbInstanceRpcClient::PPB_Instance_GetWindowObject( | 34 PpbInstanceRpcClient::PPB_Instance_GetWindowObject( |
| 36 channel, | 35 channel, |
| 37 static_cast<int64_t>(instance), | 36 static_cast<int64_t>(instance), |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 GetWindowObject, | 144 GetWindowObject, |
| 146 GetOwnerElementObject, | 145 GetOwnerElementObject, |
| 147 BindGraphics, | 146 BindGraphics, |
| 148 IsFullFrame, | 147 IsFullFrame, |
| 149 ExecuteScript | 148 ExecuteScript |
| 150 }; | 149 }; |
| 151 return &instance_interface; | 150 return &instance_interface; |
| 152 } | 151 } |
| 153 | 152 |
| 154 } // namespace ppapi_proxy | 153 } // namespace ppapi_proxy |
| OLD | NEW |