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

Unified Diff: webkit/plugins/ppapi/ppb_layer_compositor_impl.h

Issue 7206016: Convert most remaining resources to use the API/thunk system. The significant (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/ppb_image_data_impl.cc ('k') | webkit/plugins/ppapi/ppb_layer_compositor_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_layer_compositor_impl.h
===================================================================
--- webkit/plugins/ppapi/ppb_layer_compositor_impl.h (revision 89672)
+++ webkit/plugins/ppapi/ppb_layer_compositor_impl.h (working copy)
@@ -5,7 +5,7 @@
#ifndef WEBKIT_PLUGINS_PPAPI_PPB_LAYER_COMPOSITOR_IMPL_H_
#define WEBKIT_PLUGINS_PPAPI_PPB_LAYER_COMPOSITOR_IMPL_H_
-#include "ppapi/c/dev/ppb_layer_compositor_dev.h"
+#include "ppapi/thunk/ppb_layer_compositor_api.h"
#include "webkit/plugins/ppapi/resource.h"
struct PP_Rect;
@@ -16,23 +16,26 @@
class PluginInstance;
-class PPB_LayerCompositor_Impl : public Resource {
+class PPB_LayerCompositor_Impl
+ : public Resource,
+ public ::ppapi::thunk::PPB_LayerCompositor_API {
public:
explicit PPB_LayerCompositor_Impl(PluginInstance* instance);
virtual ~PPB_LayerCompositor_Impl();
static const PPB_LayerCompositor_Dev* GetInterface();
- // Resource override.
- virtual PPB_LayerCompositor_Impl* AsPPB_LayerCompositor_Impl();
+ // ResourceObjectBase override.
+ virtual PPB_LayerCompositor_API* AsPPB_LayerCompositor_API();
- PP_Bool AddLayer(PP_Resource layer);
- void RemoveLayer(PP_Resource layer);
- void SetZIndex(PP_Resource layer, int32_t index);
- void SetRect(PP_Resource layer, const struct PP_Rect* rect);
- void SetDisplay(PP_Resource layer, PP_Bool is_displayed);
- void MarkAsDirty(PP_Resource layer);
- int32_t SwapBuffers(struct PP_CompletionCallback callback);
+ // PPB_LayerCompositor_API implementation.
+ virtual PP_Bool AddLayer(PP_Resource layer) OVERRIDE;
+ virtual void RemoveLayer(PP_Resource layer) OVERRIDE;
+ virtual void SetZIndex(PP_Resource layer, int32_t index) OVERRIDE;
+ virtual void SetRect(PP_Resource layer, const PP_Rect* rect) OVERRIDE;
+ virtual void SetDisplay(PP_Resource layer, PP_Bool is_displayed) OVERRIDE;
+ virtual void MarkAsDirty(PP_Resource layer) OVERRIDE;
+ virtual int32_t SwapBuffers(PP_CompletionCallback callback) OVERRIDE;
private:
DISALLOW_COPY_AND_ASSIGN(PPB_LayerCompositor_Impl);
« no previous file with comments | « webkit/plugins/ppapi/ppb_image_data_impl.cc ('k') | webkit/plugins/ppapi/ppb_layer_compositor_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698