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 #ifndef PPAPI_PROXY_PPP_GRAPHICS_3D_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPP_GRAPHICS_3D_PROXY_H_ |
6 #define PPAPI_PROXY_PPP_GRAPHICS_3D_PROXY_H_ | 6 #define PPAPI_PROXY_PPP_GRAPHICS_3D_PROXY_H_ |
7 | 7 |
8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
9 #include "ppapi/proxy/interface_proxy.h" | 9 #include "ppapi/proxy/interface_proxy.h" |
10 #include "ppapi/shared_impl/host_resource.h" | 10 #include "ppapi/shared_impl/host_resource.h" |
11 | 11 |
12 struct PPP_Graphics3D_Dev; | 12 struct PPP_Graphics3D_Dev; |
13 | 13 |
14 namespace pp { | 14 namespace ppapi { |
15 namespace proxy { | 15 namespace proxy { |
16 | 16 |
17 class PPP_Graphics3D_Proxy : public InterfaceProxy { | 17 class PPP_Graphics3D_Proxy : public InterfaceProxy { |
18 public: | 18 public: |
19 PPP_Graphics3D_Proxy(Dispatcher* dispatcher, const void* target_interface); | 19 PPP_Graphics3D_Proxy(Dispatcher* dispatcher, const void* target_interface); |
20 virtual ~PPP_Graphics3D_Proxy(); | 20 virtual ~PPP_Graphics3D_Proxy(); |
21 | 21 |
22 static const Info* GetInfo(); | 22 static const Info* GetInfo(); |
23 | 23 |
24 const PPP_Graphics3D_Dev* ppp_graphics_3d_target() const { | 24 const PPP_Graphics3D_Dev* ppp_graphics_3d_target() const { |
25 return reinterpret_cast<const PPP_Graphics3D_Dev*>(target_interface()); | 25 return reinterpret_cast<const PPP_Graphics3D_Dev*>(target_interface()); |
26 } | 26 } |
27 | 27 |
28 // InterfaceProxy implementation. | 28 // InterfaceProxy implementation. |
29 virtual bool OnMessageReceived(const IPC::Message& msg); | 29 virtual bool OnMessageReceived(const IPC::Message& msg); |
30 | 30 |
31 private: | 31 private: |
32 // Message handlers. | 32 // Message handlers. |
33 void OnMsgContextLost(PP_Instance instance); | 33 void OnMsgContextLost(PP_Instance instance); |
34 }; | 34 }; |
35 | 35 |
36 } // namespace proxy | 36 } // namespace proxy |
37 } // namespace pp | 37 } // namespace ppapi |
38 | 38 |
39 #endif // PPAPI_PROXY_PPP_GRAPHICS_3D_PROXY_H_ | 39 #endif // PPAPI_PROXY_PPP_GRAPHICS_3D_PROXY_H_ |
OLD | NEW |