| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_PLUGINS_PPAPI_CLASS_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_CLASS_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_CLASS_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_CLASS_H_ |
| 7 | 7 |
| 8 #include "webkit/plugins/ppapi/resource.h" | 8 #include "webkit/plugins/ppapi/resource.h" |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 const PP_ClassFunction method; | 27 const PP_ClassFunction method; |
| 28 const PP_ClassFunction getter; | 28 const PP_ClassFunction getter; |
| 29 const PP_ClassFunction setter; | 29 const PP_ClassFunction setter; |
| 30 const bool writable; | 30 const bool writable; |
| 31 const bool enumerable; | 31 const bool enumerable; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 struct InstanceData : public NPObject { | 34 struct InstanceData : public NPObject { |
| 35 InstanceData(); | 35 InstanceData(); |
| 36 ~InstanceData(); |
| 36 | 37 |
| 37 scoped_refptr<VarObjectClass> object_class; | 38 scoped_refptr<VarObjectClass> object_class; |
| 38 void* native_data; | 39 void* native_data; |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 typedef base::hash_map<std::string, Property> PropertyMap; | 42 typedef base::hash_map<std::string, Property> PropertyMap; |
| 42 | 43 |
| 43 VarObjectClass(PluginInstance* instance, PP_ClassDestructor destruct, | 44 VarObjectClass(PluginInstance* instance, PP_ClassDestructor destruct, |
| 44 PP_ClassFunction invoke, PP_ClassProperty* properties); | 45 PP_ClassFunction invoke, PP_ClassProperty* properties); |
| 45 virtual ~VarObjectClass(); | 46 virtual ~VarObjectClass(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 66 PP_ClassFunction instance_invoke_; | 67 PP_ClassFunction instance_invoke_; |
| 67 | 68 |
| 68 DISALLOW_COPY_AND_ASSIGN(VarObjectClass); | 69 DISALLOW_COPY_AND_ASSIGN(VarObjectClass); |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 } // namespace ppapi | 72 } // namespace ppapi |
| 72 } // namespace webkit | 73 } // namespace webkit |
| 73 | 74 |
| 74 #endif // WEBKIT_PLUGINS_PPAPI_CLASS_H_ | 75 #endif // WEBKIT_PLUGINS_PPAPI_CLASS_H_ |
| 75 | 76 |
| OLD | NEW |