| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! | 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! |
| 6 | 6 |
| 7 #ifndef {{v8_class}}_h | 7 #ifndef {{v8_class}}_h |
| 8 #define {{v8_class}}_h | 8 #define {{v8_class}}_h |
| 9 | 9 |
| 10 {% filter conditional(conditional_string) %} | 10 {% filter conditional(conditional_string) %} |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 {% for attribute in attributes if attribute.is_implemented_in_private_sc
ript %} | 36 {% for attribute in attributes if attribute.is_implemented_in_private_sc
ript %} |
| 37 static bool {{attribute.name}}AttributeGetter(LocalFrame* frame, {{cpp_c
lass}}* holderImpl, {{attribute.cpp_type}}* result); | 37 static bool {{attribute.name}}AttributeGetter(LocalFrame* frame, {{cpp_c
lass}}* holderImpl, {{attribute.cpp_type}}* result); |
| 38 {% if not attribute.is_read_only %} | 38 {% if not attribute.is_read_only %} |
| 39 static bool {{attribute.name}}AttributeSetter(LocalFrame* frame, {{cpp_c
lass}}* holderImpl, {{attribute.argument_cpp_type}} cppValue); | 39 static bool {{attribute.name}}AttributeSetter(LocalFrame* frame, {{cpp_c
lass}}* holderImpl, {{attribute.argument_cpp_type}} cppValue); |
| 40 {% endif %} | 40 {% endif %} |
| 41 {% endfor %} | 41 {% endfor %} |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 {% endif %} | 44 {% endif %} |
| 45 static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*); | 45 static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*); |
| 46 {% if is_array_buffer_or_view %} |
| 47 static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object); |
| 48 {% else %} |
| 46 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va
lue>, v8::Isolate*); | 49 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va
lue>, v8::Isolate*); |
| 47 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); | 50 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); |
| 48 static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object) | 51 static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object) |
| 49 { | 52 { |
| 50 return blink::toScriptWrappableBase(object)->toImpl<{{cpp_class}}>(); | 53 return blink::toScriptWrappableBase(object)->toImpl<{{cpp_class}}>(); |
| 51 } | 54 } |
| 55 {% endif %} |
| 52 static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value
>); | 56 static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value
>); |
| 53 static const WrapperTypeInfo wrapperTypeInfo; | 57 static const WrapperTypeInfo wrapperTypeInfo; |
| 54 static void refObject(ScriptWrappableBase* internalPointer); | 58 static void refObject(ScriptWrappableBase* internalPointer); |
| 55 static void derefObject(ScriptWrappableBase* internalPointer); | 59 static void derefObject(ScriptWrappableBase* internalPointer); |
| 56 static void trace(Visitor* visitor, ScriptWrappableBase* internalPointer) | 60 static void trace(Visitor* visitor, ScriptWrappableBase* internalPointer) |
| 57 { | 61 { |
| 58 {% if gc_type == 'GarbageCollectedObject' %} | 62 {% if gc_type == 'GarbageCollectedObject' %} |
| 59 visitor->trace(internalPointer->toImpl<{{cpp_class}}>()); | 63 visitor->trace(internalPointer->toImpl<{{cpp_class}}>()); |
| 60 {% elif gc_type == 'WillBeGarbageCollectedObject' %} | 64 {% elif gc_type == 'WillBeGarbageCollectedObject' %} |
| 61 #if ENABLE(OILPAN) | 65 #if ENABLE(OILPAN) |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 } | 282 } |
| 279 | 283 |
| 280 {% if has_event_constructor %} | 284 {% if has_event_constructor %} |
| 281 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); | 285 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); |
| 282 | 286 |
| 283 {% endif %} | 287 {% endif %} |
| 284 } // namespace blink | 288 } // namespace blink |
| 285 {% endfilter %} | 289 {% endfilter %} |
| 286 | 290 |
| 287 #endif // {{v8_class}}_h | 291 #endif // {{v8_class}}_h |
| OLD | NEW |