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

Unified Diff: webkit/glue/plugins/pepper_class.h

Issue 5828003: Move the Pepper implementation from webkit/glue/plugins/pepper_* to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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/glue/plugins/pepper_char_set.cc ('k') | webkit/glue/plugins/pepper_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_class.h
===================================================================
--- webkit/glue/plugins/pepper_class.h (revision 69381)
+++ webkit/glue/plugins/pepper_class.h (working copy)
@@ -1,66 +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_GLUE_PLUGINS_PEPPER_CLASS_H_
-#define WEBKIT_GLUE_PLUGINS_PEPPER_CLASS_H_
-
-#include "webkit/glue/plugins/pepper_resource.h"
-
-#include <string>
-
-#include "base/hash_tables.h"
-#include "ppapi/c/ppb_class.h"
-
-namespace pepper {
-
-class PluginModule;
-
-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;
-
- typedef base::hash_map<std::string, Property> PropertyMap;
-
- // Returns the PPB_Var interface for the plugin to use.
- static const PPB_Class* GetInterface();
-
- VarObjectClass(PluginModule* module, PP_ClassDestructor destruct,
- PP_ClassFunction invoke, PP_ClassProperty* properties);
- virtual ~VarObjectClass();
-
- // Resource override.
- virtual VarObjectClass* AsVarObjectClass();
-
- 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 pepper
-
-#endif // WEBKIT_GLUE_PLUGINS_PEPPER_CLASS_H_
-
« no previous file with comments | « webkit/glue/plugins/pepper_char_set.cc ('k') | webkit/glue/plugins/pepper_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698