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

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

Issue 6673098: Remove PPB_Var interface's scripting functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing convert. Created 9 years, 9 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/var.cc ('k') | webkit/plugins/ppapi/var_object_class.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/var_object_class.h
diff --git a/webkit/plugins/ppapi/var_object_class.h b/webkit/plugins/ppapi/var_object_class.h
deleted file mode 100644
index 7e5ee41333299180eabceb9e7ebe6468128e3e52..0000000000000000000000000000000000000000
--- a/webkit/plugins/ppapi/var_object_class.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef WEBKIT_PLUGINS_PPAPI_CLASS_H_
-#define WEBKIT_PLUGINS_PPAPI_CLASS_H_
-
-#include "webkit/plugins/ppapi/resource.h"
-
-#include <string>
-
-#include "base/hash_tables.h"
-#include "base/ref_counted.h"
-#include "ppapi/c/ppb_class.h"
-#include "third_party/npapi/bindings/npruntime.h"
-
-namespace webkit {
-namespace ppapi {
-
-class PluginInstance;
-
-class VarObjectClass : public Resource {
- public:
- struct Property {
- explicit Property(const PP_ClassProperty& prop);
-
- const PP_ClassFunction method;
- const PP_ClassFunction getter;
- const PP_ClassFunction setter;
- const bool writable;
- const bool enumerable;
- };
-
- struct InstanceData : public NPObject {
- InstanceData();
- ~InstanceData();
-
- scoped_refptr<VarObjectClass> object_class;
- void* native_data;
- };
-
- typedef base::hash_map<std::string, Property> PropertyMap;
-
- VarObjectClass(PluginInstance* instance, PP_ClassDestructor destruct,
- PP_ClassFunction invoke, PP_ClassProperty* properties);
- virtual ~VarObjectClass();
-
- // Resource override.
- virtual VarObjectClass* AsVarObjectClass();
-
- // Returns the PPB_Var interface for the plugin to use.
- static const PPB_Class* GetInterface();
-
- const PropertyMap &properties() const { return properties_; }
-
- PP_ClassDestructor instance_native_destructor() {
- return instance_native_destructor_;
- }
-
- PP_ClassFunction instance_invoke() {
- return instance_invoke_;
- }
-
- private:
- PropertyMap properties_;
- PP_ClassDestructor instance_native_destructor_;
- PP_ClassFunction instance_invoke_;
-
- DISALLOW_COPY_AND_ASSIGN(VarObjectClass);
-};
-
-} // namespace ppapi
-} // namespace webkit
-
-#endif // WEBKIT_PLUGINS_PPAPI_CLASS_H_
-
« no previous file with comments | « webkit/plugins/ppapi/var.cc ('k') | webkit/plugins/ppapi/var_object_class.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698