Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: ppapi/proxy/ppp_graphics_3d_proxy.h

Issue 9689076: Add missing ppp_graphics_3d.idl (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/ppp_graphics_3d.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/c/ppp_graphics_3d.h"
9 #include "ppapi/proxy/interface_proxy.h" 10 #include "ppapi/proxy/interface_proxy.h"
10 #include "ppapi/shared_impl/host_resource.h" 11 #include "ppapi/shared_impl/host_resource.h"
11 12
12 struct PPP_Graphics3D;
13
14 namespace ppapi { 13 namespace ppapi {
15 namespace proxy { 14 namespace proxy {
16 15
17 class PPP_Graphics3D_Proxy : public InterfaceProxy { 16 class PPP_Graphics3D_Proxy : public InterfaceProxy {
18 public: 17 public:
19 PPP_Graphics3D_Proxy(Dispatcher* dispatcher); 18 PPP_Graphics3D_Proxy(Dispatcher* dispatcher);
20 virtual ~PPP_Graphics3D_Proxy(); 19 virtual ~PPP_Graphics3D_Proxy();
21 20
22 static const Info* GetInfo(); 21 static const Info* GetInfo();
23 22
24 // InterfaceProxy implementation. 23 // InterfaceProxy implementation.
25 virtual bool OnMessageReceived(const IPC::Message& msg); 24 virtual bool OnMessageReceived(const IPC::Message& msg);
26 25
27 private: 26 private:
28 // Message handlers. 27 // Message handlers.
29 void OnMsgContextLost(PP_Instance instance); 28 void OnMsgContextLost(PP_Instance instance);
30 29
31 // When this proxy is in the plugin side, this value caches the interface 30 // When this proxy is in the plugin side, this value caches the interface
32 // pointer so we don't have to retrieve it from the dispatcher each time. 31 // pointer so we don't have to retrieve it from the dispatcher each time.
33 // In the host, this value is always NULL. 32 // In the host, this value is always NULL.
34 const PPP_Graphics3D* ppp_graphics_3d_impl_; 33 const PPP_Graphics3D* ppp_graphics_3d_impl_;
35 34
36 DISALLOW_COPY_AND_ASSIGN(PPP_Graphics3D_Proxy); 35 DISALLOW_COPY_AND_ASSIGN(PPP_Graphics3D_Proxy);
37 }; 36 };
38 37
39 } // namespace proxy 38 } // namespace proxy
40 } // namespace ppapi 39 } // namespace ppapi
41 40
42 #endif // PPAPI_PROXY_PPP_GRAPHICS_3D_PROXY_H_ 41 #endif // PPAPI_PROXY_PPP_GRAPHICS_3D_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/c/ppp_graphics_3d.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698