| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 {# Constants #} | 47 {# Constants #} |
| 48 {% from 'constants.cpp' import constant_getter_callback | 48 {% from 'constants.cpp' import constant_getter_callback |
| 49 with context %} | 49 with context %} |
| 50 {% for constant in special_getter_constants %} | 50 {% for constant in special_getter_constants %} |
| 51 {{constant_getter_callback(constant)}} | 51 {{constant_getter_callback(constant)}} |
| 52 {% endfor %} | 52 {% endfor %} |
| 53 {# Attributes #} | 53 {# Attributes #} |
| 54 {% block replaceable_attribute_setter_and_callback %} | 54 {% block replaceable_attribute_setter_and_callback %} |
| 55 {% if has_replaceable_attributes or has_constructor_attributes %} | 55 {% if has_replaceable_attributes or has_constructor_attributes %} |
| 56 template<class CallbackInfo> | 56 template<class CallbackInfo> |
| 57 static void {{cpp_class}}ForceSetAttributeOnThis(v8::Local<v8::String> name, v8:
:Local<v8::Value> v8Value, const CallbackInfo& info) | 57 static void {{cpp_class}}ForceSetAttributeOnThis(v8::Local<v8::Name> name, v8::L
ocal<v8::Value> v8Value, const CallbackInfo& info) |
| 58 { | 58 { |
| 59 {% if is_check_security %} | 59 {% if is_check_security %} |
| 60 {{cpp_class}}* impl = {{v8_class}}::toImpl(info.Holder()); | 60 {{cpp_class}}* impl = {{v8_class}}::toImpl(info.Holder()); |
| 61 v8::String::Utf8Value attributeName(name); | 61 v8::String::Utf8Value attributeName(name); |
| 62 ExceptionState exceptionState(ExceptionState::SetterContext, *attributeName,
"{{interface_name}}", info.Holder(), info.GetIsolate()); | 62 ExceptionState exceptionState(ExceptionState::SetterContext, *attributeName,
"{{interface_name}}", info.Holder(), info.GetIsolate()); |
| 63 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), impl->fram
e(), exceptionState)) { | 63 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), impl->fram
e(), exceptionState)) { |
| 64 exceptionState.throwIfNeeded(); | 64 exceptionState.throwIfNeeded(); |
| 65 return; | 65 return; |
| 66 } | 66 } |
| 67 {% endif %} | 67 {% endif %} |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 {% endfor %} | 477 {% endfor %} |
| 478 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 478 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
| 479 {{attribute_getter_implemented_in_private_script(attribute)}} | 479 {{attribute_getter_implemented_in_private_script(attribute)}} |
| 480 {% if attribute.has_setter %} | 480 {% if attribute.has_setter %} |
| 481 {{attribute_setter_implemented_in_private_script(attribute)}} | 481 {{attribute_setter_implemented_in_private_script(attribute)}} |
| 482 {% endif %} | 482 {% endif %} |
| 483 {% endfor %} | 483 {% endfor %} |
| 484 {% block partial_interface %}{% endblock %} | 484 {% block partial_interface %}{% endblock %} |
| 485 } // namespace blink | 485 } // namespace blink |
| 486 {% endfilter %} | 486 {% endfilter %} |
| OLD | NEW |