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

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

Issue 6286070: Remove all uses of the global Dispatcher Get function. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
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_PPB_GRAPHICS_2D_PROXY_H_ 5 #ifndef PPAPI_PPB_GRAPHICS_2D_PROXY_H_
6 #define PPAPI_PPB_GRAPHICS_2D_PROXY_H_ 6 #define PPAPI_PPB_GRAPHICS_2D_PROXY_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_completion_callback.h" 9 #include "ppapi/c/pp_completion_callback.h"
10 #include "ppapi/c/pp_module.h" 10 #include "ppapi/c/pp_module.h"
(...skipping 11 matching lines...) Expand all
22 struct PP_Rect; 22 struct PP_Rect;
23 23
24 namespace pp { 24 namespace pp {
25 namespace proxy { 25 namespace proxy {
26 26
27 class PPB_Graphics2D_Proxy : public InterfaceProxy { 27 class PPB_Graphics2D_Proxy : public InterfaceProxy {
28 public: 28 public:
29 PPB_Graphics2D_Proxy(Dispatcher* dispatcher, const void* target_interface); 29 PPB_Graphics2D_Proxy(Dispatcher* dispatcher, const void* target_interface);
30 virtual ~PPB_Graphics2D_Proxy(); 30 virtual ~PPB_Graphics2D_Proxy();
31 31
32 static const Info* GetInfo();
33
32 const PPB_Graphics2D* ppb_graphics_2d_target() const { 34 const PPB_Graphics2D* ppb_graphics_2d_target() const {
33 return static_cast<const PPB_Graphics2D*>(target_interface()); 35 return static_cast<const PPB_Graphics2D*>(target_interface());
34 } 36 }
35 37
36 // InterfaceProxy implementation. 38 // InterfaceProxy implementation.
37 virtual const void* GetSourceInterface() const;
38 virtual InterfaceID GetInterfaceId() const;
39 virtual bool OnMessageReceived(const IPC::Message& msg); 39 virtual bool OnMessageReceived(const IPC::Message& msg);
40 40
41 private: 41 private:
42 // Plugin->renderer message handlers. 42 // Plugin->renderer message handlers.
43 void OnMsgCreate(PP_Module module, 43 void OnMsgCreate(PP_Module module,
44 const PP_Size& size, 44 const PP_Size& size,
45 PP_Bool is_always_opaque, 45 PP_Bool is_always_opaque,
46 HostResource* result); 46 HostResource* result);
47 void OnMsgPaintImageData(const HostResource& graphics_2d, 47 void OnMsgPaintImageData(const HostResource& graphics_2d,
48 const HostResource& image_data, 48 const HostResource& image_data,
(...skipping 17 matching lines...) Expand all
66 const HostResource& graphics_2d); 66 const HostResource& graphics_2d);
67 67
68 CompletionCallbackFactory<PPB_Graphics2D_Proxy, 68 CompletionCallbackFactory<PPB_Graphics2D_Proxy,
69 ProxyNonThreadSafeRefCount> callback_factory_; 69 ProxyNonThreadSafeRefCount> callback_factory_;
70 }; 70 };
71 71
72 } // namespace proxy 72 } // namespace proxy
73 } // namespace pp 73 } // namespace pp
74 74
75 #endif // PPAPI_PPB_GRAPHICS_2D_PROXY_H_ 75 #endif // PPAPI_PPB_GRAPHICS_2D_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_gles_chromium_texture_mapping_proxy.cc ('k') | ppapi/proxy/ppb_graphics_2d_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698