| OLD | NEW | 
|---|
| 1 {# http://www.chromium.org/blink/coding-style#TOC-License #} | 1 {# http://www.chromium.org/blink/coding-style#TOC-License #} | 
| 2 /* | 2 /* | 
| 3  * Copyright (C) 2013 Google Inc. All rights reserved. | 3  * Copyright (C) 2013 Google Inc. All rights reserved. | 
| 4  * | 4  * | 
| 5  * Redistribution and use in source and binary forms, with or without | 5  * Redistribution and use in source and binary forms, with or without | 
| 6  * modification, are permitted provided that the following conditions are | 6  * modification, are permitted provided that the following conditions are | 
| 7  * met: | 7  * met: | 
| 8  * | 8  * | 
| 9  *     * Redistributions of source code must retain the above copyright | 9  *     * Redistributions of source code must retain the above copyright | 
| 10  * notice, this list of conditions and the following disclaimer. | 10  * notice, this list of conditions and the following disclaimer. | 
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 78         return impl; | 78         return impl; | 
| 79     } | 79     } | 
| 80 | 80 | 
| 81     static inline {{cpp_class_name}}* fromInternalPointer(void* object) | 81     static inline {{cpp_class_name}}* fromInternalPointer(void* object) | 
| 82     { | 82     { | 
| 83         return static_cast<{{cpp_class_name}}*>(object); | 83         return static_cast<{{cpp_class_name}}*>(object); | 
| 84     } | 84     } | 
| 85     static void installPerContextEnabledProperties(v8::Handle<v8::Object>, {{cpp
     _class_name}}*, v8::Isolate*){% if has_per_context_enabled_attributes %}; | 85     static void installPerContextEnabledProperties(v8::Handle<v8::Object>, {{cpp
     _class_name}}*, v8::Isolate*){% if has_per_context_enabled_attributes %}; | 
| 86     {% else %} { } | 86     {% else %} { } | 
| 87     {% endif %} | 87     {% endif %} | 
| 88     static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec
     t>, v8::Isolate*) { } | 88     static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec
     t>, v8::Isolate*){% if has_per_context_enabled_attributes %}; | 
|  | 89     {% else %} { } | 
|  | 90     {% endif %} | 
| 89 | 91 | 
| 90 private: | 92 private: | 
| 91     friend v8::Handle<v8::Object> wrap({{cpp_class_name}}*, v8::Handle<v8::Objec
     t> creationContext, v8::Isolate*); | 93     friend v8::Handle<v8::Object> wrap({{cpp_class_name}}*, v8::Handle<v8::Objec
     t> creationContext, v8::Isolate*); | 
| 92     static v8::Handle<v8::Object> createWrapper(PassRefPtr<{{cpp_class_name}}>, 
     v8::Handle<v8::Object> creationContext, v8::Isolate*); | 94     static v8::Handle<v8::Object> createWrapper(PassRefPtr<{{cpp_class_name}}>, 
     v8::Handle<v8::Object> creationContext, v8::Isolate*); | 
| 93 }; | 95 }; | 
| 94 | 96 | 
| 95 template<> | 97 template<> | 
| 96 class WrapperTypeTraits<{{cpp_class_name}} > { | 98 class WrapperTypeTraits<{{cpp_class_name}} > { | 
| 97 public: | 99 public: | 
| 98     static const WrapperTypeInfo* wrapperTypeInfo() { return &{{v8_class_name}}:
     :wrapperTypeInfo; } | 100     static const WrapperTypeInfo* wrapperTypeInfo() { return &{{v8_class_name}}:
     :wrapperTypeInfo; } | 
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 178     v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 180     v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 
| 179 } | 181 } | 
| 180 | 182 | 
| 181 } | 183 } | 
| 182 {% if conditional_string %} | 184 {% if conditional_string %} | 
| 183 | 185 | 
| 184 #endif // {{conditional_string}} | 186 #endif // {{conditional_string}} | 
| 185 {% endif %} | 187 {% endif %} | 
| 186 | 188 | 
| 187 #endif // {{v8_class_name}}_h | 189 #endif // {{v8_class_name}}_h | 
| OLD | NEW | 
|---|