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/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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 : InterfaceProxy(dispatcher), | 45 : InterfaceProxy(dispatcher), |
46 callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { | 46 callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { |
47 } | 47 } |
48 | 48 |
49 PPB_Instance_Proxy::~PPB_Instance_Proxy() { | 49 PPB_Instance_Proxy::~PPB_Instance_Proxy() { |
50 } | 50 } |
51 | 51 |
52 // static | 52 // static |
53 const InterfaceProxy::Info* PPB_Instance_Proxy::GetInfoPrivate() { | 53 const InterfaceProxy::Info* PPB_Instance_Proxy::GetInfoPrivate() { |
54 static const Info info = { | 54 static const Info info = { |
55 ppapi::thunk::GetPPB_Instance_Private_Thunk(), | 55 ppapi::thunk::GetPPB_Instance_Private_0_1_Thunk(), |
56 PPB_INSTANCE_PRIVATE_INTERFACE, | 56 PPB_INSTANCE_PRIVATE_INTERFACE_0_1, |
57 API_ID_NONE, // 1_0 is the canonical one. | 57 API_ID_NONE, // 1_0 is the canonical one. |
58 false, | 58 false, |
59 &CreateInstanceProxy, | 59 &CreateInstanceProxy, |
60 }; | 60 }; |
61 return &info; | 61 return &info; |
62 } | 62 } |
63 | 63 |
64 bool PPB_Instance_Proxy::OnMessageReceived(const IPC::Message& msg) { | 64 bool PPB_Instance_Proxy::OnMessageReceived(const IPC::Message& msg) { |
65 // Prevent the dispatcher from going away during a call to ExecuteScript. | 65 // Prevent the dispatcher from going away during a call to ExecuteScript. |
66 // This must happen OUTSIDE of ExecuteScript since the SerializedVars use | 66 // This must happen OUTSIDE of ExecuteScript since the SerializedVars use |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 } | 612 } |
613 | 613 |
614 void PPB_Instance_Proxy::MouseLockCompleteInHost(int32_t result, | 614 void PPB_Instance_Proxy::MouseLockCompleteInHost(int32_t result, |
615 PP_Instance instance) { | 615 PP_Instance instance) { |
616 dispatcher()->Send(new PpapiMsg_PPBInstance_MouseLockComplete( | 616 dispatcher()->Send(new PpapiMsg_PPBInstance_MouseLockComplete( |
617 API_ID_PPB_INSTANCE, instance, result)); | 617 API_ID_PPB_INSTANCE, instance, result)); |
618 } | 618 } |
619 | 619 |
620 } // namespace proxy | 620 } // namespace proxy |
621 } // namespace ppapi | 621 } // namespace ppapi |
OLD | NEW |