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

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

Issue 7149026: Implement flash menu and net connector resources using the API/thunk model. (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/plugin_module.cc ('k') | webkit/plugins/ppapi/ppb_flash_menu_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_flash_menu_impl.h
===================================================================
--- webkit/plugins/ppapi/ppb_flash_menu_impl.h (revision 89119)
+++ webkit/plugins/ppapi/ppb_flash_menu_impl.h (working copy)
@@ -11,6 +11,7 @@
#include "base/memory/ref_counted.h"
#include "ppapi/c/pp_point.h"
#include "ppapi/c/private/ppb_flash_menu.h"
+#include "ppapi/thunk/ppb_flash_menu_api.h"
#include "webkit/plugins/ppapi/callbacks.h"
#include "webkit/plugins/ppapi/resource.h"
@@ -19,17 +20,19 @@
namespace webkit {
namespace ppapi {
-class PPB_Flash_Menu_Impl : public Resource {
+class PPB_Flash_Menu_Impl : public Resource,
+ public ::ppapi::thunk::PPB_Flash_Menu_API {
public:
explicit PPB_Flash_Menu_Impl(PluginInstance* instance);
virtual ~PPB_Flash_Menu_Impl();
- static const PPB_Flash_Menu* GetInterface();
+ static PP_Resource Create(PP_Instance instance,
+ const PP_Flash_Menu* menu_data);
bool Init(const PP_Flash_Menu* menu_data);
- // Resource override.
- virtual PPB_Flash_Menu_Impl* AsPPB_Flash_Menu_Impl();
+ // ResourceObjectBase.
+ virtual ::ppapi::thunk::PPB_Flash_Menu_API* AsPPB_Flash_Menu_API() OVERRIDE;
// PPB_Flash_Menu implementation.
int32_t Show(const PP_Point* location,
« no previous file with comments | « webkit/plugins/ppapi/plugin_module.cc ('k') | webkit/plugins/ppapi/ppb_flash_menu_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698