| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
| 9 #include "ppapi/c/pp_resource.h" | 9 #include "ppapi/c/pp_resource.h" |
| 10 #include "ppapi/c/pp_var.h" | 10 #include "ppapi/c/pp_var.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 PPB_Instance_Proxy(Dispatcher* dispatcher, const void* target_interface); | 24 PPB_Instance_Proxy(Dispatcher* dispatcher, const void* target_interface); |
| 25 virtual ~PPB_Instance_Proxy(); | 25 virtual ~PPB_Instance_Proxy(); |
| 26 | 26 |
| 27 const PPB_Instance* ppb_instance_target() const { | 27 const PPB_Instance* ppb_instance_target() const { |
| 28 return reinterpret_cast<const PPB_Instance*>(target_interface()); | 28 return reinterpret_cast<const PPB_Instance*>(target_interface()); |
| 29 } | 29 } |
| 30 | 30 |
| 31 // InterfaceProxy implementation. | 31 // InterfaceProxy implementation. |
| 32 virtual const void* GetSourceInterface() const; | 32 virtual const void* GetSourceInterface() const; |
| 33 virtual InterfaceID GetInterfaceId() const; | 33 virtual InterfaceID GetInterfaceId() const; |
| 34 virtual void OnMessageReceived(const IPC::Message& msg); | 34 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 // Message handlers. | 37 // Message handlers. |
| 38 void OnMsgGetWindowObject(PP_Instance instance, | 38 void OnMsgGetWindowObject(PP_Instance instance, |
| 39 SerializedVarReturnValue result); | 39 SerializedVarReturnValue result); |
| 40 void OnMsgGetOwnerElementObject(PP_Instance instance, | 40 void OnMsgGetOwnerElementObject(PP_Instance instance, |
| 41 SerializedVarReturnValue result); | 41 SerializedVarReturnValue result); |
| 42 void OnMsgBindGraphics(PP_Instance instance, | 42 void OnMsgBindGraphics(PP_Instance instance, |
| 43 PP_Resource device, | 43 PP_Resource device, |
| 44 PP_Bool* result); | 44 PP_Bool* result); |
| 45 void OnMsgIsFullFrame(PP_Instance instance, PP_Bool* result); | 45 void OnMsgIsFullFrame(PP_Instance instance, PP_Bool* result); |
| 46 void OnMsgExecuteScript(PP_Instance instance, | 46 void OnMsgExecuteScript(PP_Instance instance, |
| 47 SerializedVarReceiveInput script, | 47 SerializedVarReceiveInput script, |
| 48 SerializedVarOutParam out_exception, | 48 SerializedVarOutParam out_exception, |
| 49 SerializedVarReturnValue result); | 49 SerializedVarReturnValue result); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace proxy | 52 } // namespace proxy |
| 53 } // namespace pp | 53 } // namespace pp |
| 54 | 54 |
| 55 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 55 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
| OLD | NEW |