| 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_v8object %} |
| 46 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va
lue>, v8::Isolate*); | 47 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va
lue>, v8::Isolate*); |
| 47 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); | 48 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); |
| 49 {% endif %} |
| 50 {% if is_array_type %} |
| 51 static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object); |
| 52 {% else %} |
| 48 static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object) | 53 static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object) |
| 49 { | 54 { |
| 50 return blink::toScriptWrappableBase(object)->toImpl<{{cpp_class}}>(); | 55 return blink::toScriptWrappableBase(object)->toImpl<{{cpp_class}}>(); |
| 51 } | 56 } |
| 57 {% endif %} |
| 52 static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value
>); | 58 static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value
>); |
| 53 static const WrapperTypeInfo wrapperTypeInfo; | 59 static const WrapperTypeInfo wrapperTypeInfo; |
| 54 static void refObject(ScriptWrappableBase* internalPointer); | 60 static void refObject(ScriptWrappableBase* internalPointer); |
| 55 static void derefObject(ScriptWrappableBase* internalPointer); | 61 static void derefObject(ScriptWrappableBase* internalPointer); |
| 56 static WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* in
ternalPointer); | 62 static WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* in
ternalPointer); |
| 57 {% if has_visit_dom_wrapper %} | 63 {% if has_visit_dom_wrapper %} |
| 58 static void visitDOMWrapper(ScriptWrappableBase* internalPointer, const v8::
Persistent<v8::Object>&, v8::Isolate*); | 64 static void visitDOMWrapper(ScriptWrappableBase* internalPointer, const v8::
Persistent<v8::Object>&, v8::Isolate*); |
| 59 {% endif %} | 65 {% endif %} |
| 60 {% if is_active_dom_object %} | 66 {% if is_active_dom_object %} |
| 61 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); | 67 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 } | 287 } |
| 282 | 288 |
| 283 {% if has_event_constructor %} | 289 {% if has_event_constructor %} |
| 284 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); | 290 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); |
| 285 | 291 |
| 286 {% endif %} | 292 {% endif %} |
| 287 } // namespace blink | 293 } // namespace blink |
| 288 {% endfilter %} | 294 {% endfilter %} |
| 289 | 295 |
| 290 #endif // {{v8_class}}_h | 296 #endif // {{v8_class}}_h |
| OLD | NEW |