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

Unified Diff: o3d/gpu_plugin/np_utils/dynamic_np_object.h

Issue 196032: Replaced BaseNPObject with DefaultNPObject because...... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
Index: o3d/gpu_plugin/np_utils/dynamic_np_object.h
===================================================================
--- o3d/gpu_plugin/np_utils/dynamic_np_object.h (revision 25244)
+++ o3d/gpu_plugin/np_utils/dynamic_np_object.h (working copy)
@@ -7,7 +7,7 @@
#include <map>
-#include "o3d/gpu_plugin/np_utils/base_np_object.h"
+#include "o3d/gpu_plugin/np_utils/default_np_object.h"
#include "o3d/gpu_plugin/np_utils/np_utils.h"
namespace o3d {
@@ -15,16 +15,16 @@
// NPObjects of this type have a dictionary of property name / variant pairs
// that can be changed at runtime through NPAPI.
-class DynamicNPObject : public BaseNPObject {
+class DynamicNPObject : public DefaultNPObject<NPObject> {
public:
explicit DynamicNPObject(NPP npp);
- virtual void Invalidate();
- virtual bool HasProperty(NPIdentifier name);
- virtual bool GetProperty(NPIdentifier name, NPVariant* result);
- virtual bool SetProperty(NPIdentifier name, const NPVariant* value);
- virtual bool RemoveProperty(NPIdentifier name);
- virtual bool Enumerate(NPIdentifier** names, uint32_t* count);
+ void Invalidate();
+ bool HasProperty(NPIdentifier name);
+ bool GetProperty(NPIdentifier name, NPVariant* result);
+ bool SetProperty(NPIdentifier name, const NPVariant* value);
+ bool RemoveProperty(NPIdentifier name);
+ bool Enumerate(NPIdentifier** names, uint32_t* count);
private:
typedef std::map<NPIdentifier, SmartNPVariant> PropertyMap;
« no previous file with comments | « o3d/gpu_plugin/np_utils/dispatched_np_object_unittest.cc ('k') | o3d/gpu_plugin/np_utils/dynamic_np_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698