| 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 #include "config.h" | 7 #include "config.h" |
| 8 {% filter conditional(conditional_string) %} | 8 {% filter conditional(conditional_string) %} |
| 9 #include "{{v8_class_or_partial}}.h" | 9 #include "{{v8_class_or_partial}}.h" |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 {{attribute_setter_callback(attribute, world_suffix)}} | 71 {{attribute_setter_callback(attribute, world_suffix)}} |
| 72 {% endif %} | 72 {% endif %} |
| 73 {% endfor %} | 73 {% endfor %} |
| 74 {% endif %} | 74 {% endif %} |
| 75 {% endfor %} | 75 {% endfor %} |
| 76 {##############################################################################} | 76 {##############################################################################} |
| 77 {% block constructor_getter %} | 77 {% block constructor_getter %} |
| 78 {% if has_constructor_attributes %} | 78 {% if has_constructor_attributes %} |
| 79 static void {{cpp_class}}ConstructorGetter(v8::Local<v8::String>, const v8::Prop
ertyCallbackInfo<v8::Value>& info) | 79 static void {{cpp_class}}ConstructorGetter(v8::Local<v8::String>, const v8::Prop
ertyCallbackInfo<v8::Value>& info) |
| 80 { | 80 { |
| 81 v8::Handle<v8::Value> data = info.Data(); | 81 v8::Local<v8::Value> data = info.Data(); |
| 82 ASSERT(data->IsExternal()); | 82 ASSERT(data->IsExternal()); |
| 83 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); | 83 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); |
| 84 if (!perContextData) | 84 if (!perContextData) |
| 85 return; | 85 return; |
| 86 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); | 86 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); |
| 87 } | 87 } |
| 88 | 88 |
| 89 {% endif %} | 89 {% endif %} |
| 90 {% endblock %} | 90 {% endblock %} |
| 91 {##############################################################################} | 91 {##############################################################################} |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 {% endfor %} | 467 {% endfor %} |
| 468 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 468 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
| 469 {{attribute_getter_implemented_in_private_script(attribute)}} | 469 {{attribute_getter_implemented_in_private_script(attribute)}} |
| 470 {% if not attribute.is_read_only or attribute.put_forwards %} | 470 {% if not attribute.is_read_only or attribute.put_forwards %} |
| 471 {{attribute_setter_implemented_in_private_script(attribute)}} | 471 {{attribute_setter_implemented_in_private_script(attribute)}} |
| 472 {% endif %} | 472 {% endif %} |
| 473 {% endfor %} | 473 {% endfor %} |
| 474 {% block partial_interface %}{% endblock %} | 474 {% block partial_interface %}{% endblock %} |
| 475 } // namespace blink | 475 } // namespace blink |
| 476 {% endfilter %} | 476 {% endfilter %} |
| OLD | NEW |