| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/dev/ppb_fullscreen_dev.h" | 7 #include "ppapi/c/dev/ppb_fullscreen_dev.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 | 45 |
| 46 PPB_Instance_Proxy::~PPB_Instance_Proxy() { | 46 PPB_Instance_Proxy::~PPB_Instance_Proxy() { |
| 47 } | 47 } |
| 48 | 48 |
| 49 // static | 49 // static |
| 50 const InterfaceProxy::Info* PPB_Instance_Proxy::GetInfo0_4() { | 50 const InterfaceProxy::Info* PPB_Instance_Proxy::GetInfo0_4() { |
| 51 static const Info info = { | 51 static const Info info = { |
| 52 ppapi::thunk::GetPPB_Instance_0_4_Thunk(), | 52 ppapi::thunk::GetPPB_Instance_0_4_Thunk(), |
| 53 PPB_INSTANCE_INTERFACE_0_4, | 53 PPB_INSTANCE_INTERFACE_0_4, |
| 54 INTERFACE_ID_NONE, // 1_0 is the canonical one. | 54 INTERFACE_ID_NONE, // 0_5 is the canonical one. |
| 55 false, | 55 false, |
| 56 &CreateInstanceProxy, | 56 &CreateInstanceProxy, |
| 57 }; | 57 }; |
| 58 return &info; | 58 return &info; |
| 59 } | 59 } |
| 60 | 60 |
| 61 // static | 61 // static |
| 62 const InterfaceProxy::Info* PPB_Instance_Proxy::GetInfo0_5() { | 62 const InterfaceProxy::Info* PPB_Instance_Proxy::GetInfo0_5() { |
| 63 static const Info info = { | 63 static const Info info = { |
| 64 ppapi::thunk::GetPPB_Instance_1_0_Thunk(), | 64 ppapi::thunk::GetPPB_Instance_0_5_Thunk(), |
| 65 PPB_INSTANCE_INTERFACE_0_5, | 65 PPB_INSTANCE_INTERFACE_0_5, |
| 66 INTERFACE_ID_NONE, // 1_0 is the canonical one. | |
| 67 false, | |
| 68 &CreateInstanceProxy, | |
| 69 }; | |
| 70 return &info; | |
| 71 } | |
| 72 | |
| 73 // static | |
| 74 const InterfaceProxy::Info* PPB_Instance_Proxy::GetInfo1_0() { | |
| 75 static const Info info = { | |
| 76 ppapi::thunk::GetPPB_Instance_1_0_Thunk(), | |
| 77 PPB_INSTANCE_INTERFACE_1_0, | |
| 78 INTERFACE_ID_PPB_INSTANCE, | 66 INTERFACE_ID_PPB_INSTANCE, |
| 79 false, | 67 false, |
| 80 &CreateInstanceProxy, | 68 &CreateInstanceProxy, |
| 81 }; | 69 }; |
| 82 return &info; | 70 return &info; |
| 83 } | 71 } |
| 84 | 72 |
| 85 // static | 73 // static |
| 86 const InterfaceProxy::Info* PPB_Instance_Proxy::GetInfoMessaging() { | 74 const InterfaceProxy::Info* PPB_Instance_Proxy::GetInfoMessaging() { |
| 87 static const Info info = { | 75 static const Info info = { |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 | 358 |
| 371 void PPB_Instance_Proxy::OnMsgPostMessage(PP_Instance instance, | 359 void PPB_Instance_Proxy::OnMsgPostMessage(PP_Instance instance, |
| 372 SerializedVarReceiveInput message) { | 360 SerializedVarReceiveInput message) { |
| 373 EnterFunctionNoLock<PPB_Instance_FunctionAPI> enter(instance, false); | 361 EnterFunctionNoLock<PPB_Instance_FunctionAPI> enter(instance, false); |
| 374 if (enter.succeeded()) | 362 if (enter.succeeded()) |
| 375 enter.functions()->PostMessage(instance, message.Get(dispatcher())); | 363 enter.functions()->PostMessage(instance, message.Get(dispatcher())); |
| 376 } | 364 } |
| 377 | 365 |
| 378 } // namespace proxy | 366 } // namespace proxy |
| 379 } // namespace pp | 367 } // namespace pp |
| OLD | NEW |