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, // 0_5 is the canonical one. | 54 INTERFACE_ID_NONE, // 1_0 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_0_5_Thunk(), | 64 ppapi::thunk::GetPPB_Instance_1_0_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, |
66 INTERFACE_ID_PPB_INSTANCE, | 78 INTERFACE_ID_PPB_INSTANCE, |
67 false, | 79 false, |
68 &CreateInstanceProxy, | 80 &CreateInstanceProxy, |
69 }; | 81 }; |
70 return &info; | 82 return &info; |
71 } | 83 } |
72 | 84 |
73 // static | 85 // static |
74 const InterfaceProxy::Info* PPB_Instance_Proxy::GetInfoMessaging() { | 86 const InterfaceProxy::Info* PPB_Instance_Proxy::GetInfoMessaging() { |
75 static const Info info = { | 87 static const Info info = { |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 | 370 |
359 void PPB_Instance_Proxy::OnMsgPostMessage(PP_Instance instance, | 371 void PPB_Instance_Proxy::OnMsgPostMessage(PP_Instance instance, |
360 SerializedVarReceiveInput message) { | 372 SerializedVarReceiveInput message) { |
361 EnterFunctionNoLock<PPB_Instance_FunctionAPI> enter(instance, false); | 373 EnterFunctionNoLock<PPB_Instance_FunctionAPI> enter(instance, false); |
362 if (enter.succeeded()) | 374 if (enter.succeeded()) |
363 enter.functions()->PostMessage(instance, message.Get(dispatcher())); | 375 enter.functions()->PostMessage(instance, message.Get(dispatcher())); |
364 } | 376 } |
365 | 377 |
366 } // namespace proxy | 378 } // namespace proxy |
367 } // namespace pp | 379 } // namespace pp |
OLD | NEW |