| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The Native Client Authors. All rights reserved. | 2 * Copyright 2010 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
| 4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GRAPHICS_2D_H_ | 7 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GRAPHICS_2D_H_ |
| 8 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GRAPHICS_2D_H_ | 8 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GRAPHICS_2D_H_ |
| 9 | 9 |
| 10 #include "native_client/src/include/nacl_macros.h" | 10 #include "native_client/src/include/nacl_macros.h" |
| 11 #include "native_client/src/shared/ppapi_proxy/plugin_resource.h" |
| 11 #include "ppapi/c/ppb_graphics_2d.h" | 12 #include "ppapi/c/ppb_graphics_2d.h" |
| 12 | 13 |
| 13 namespace ppapi_proxy { | 14 namespace ppapi_proxy { |
| 14 | 15 |
| 15 // Implements the plugin (i.e., .nexe) side of the PPB_Graphics2D interface. | 16 // Implements the plugin (i.e., .nexe) side of the PPB_Graphics2D interface. |
| 16 class PluginGraphics2D { | 17 class PluginGraphics2D : public PluginResource { |
| 17 public: | 18 public: |
| 18 static const PPB_Graphics2D* GetInterface(); | 19 static const PPB_Graphics2D* GetInterface(); |
| 19 | 20 |
| 20 private: | 21 private: |
| 22 IMPLEMENT_RESOURCE(PluginGraphics2D); |
| 21 NACL_DISALLOW_COPY_AND_ASSIGN(PluginGraphics2D); | 23 NACL_DISALLOW_COPY_AND_ASSIGN(PluginGraphics2D); |
| 22 }; | 24 }; |
| 23 | 25 |
| 24 } // namespace ppapi_proxy | 26 } // namespace ppapi_proxy |
| 25 | 27 |
| 26 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GRAPHICS_2D_H_ | 28 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GRAPHICS_2D_H_ |
| OLD | NEW |