| 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 #include "{{header_filename}}" | 8 #include "{{header_filename}}" |
| 9 | 9 |
| 10 {% macro assign_and_return_if_hasinstance(member) %} | 10 {% macro assign_and_return_if_hasinstance(member) %} |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 {% for member in container.members %} | 144 {% for member in container.members %} |
| 145 case {{container.cpp_class}}::{{member.specific_type_enum}}: | 145 case {{container.cpp_class}}::{{member.specific_type_enum}}: |
| 146 return {{member.cpp_value_to_v8_value}}; | 146 return {{member.cpp_value_to_v8_value}}; |
| 147 {% endfor %} | 147 {% endfor %} |
| 148 default: | 148 default: |
| 149 ASSERT_NOT_REACHED(); | 149 ASSERT_NOT_REACHED(); |
| 150 } | 150 } |
| 151 return v8::Handle<v8::Value>(); | 151 return v8::Handle<v8::Value>(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 {{container.cpp_class}} NativeValueTraits<{{container.cpp_class}}>::nativeValue(
const v8::Handle<v8::Value>& value, v8::Isolate* isolate, ExceptionState& except
ionState) |
| 155 { |
| 156 {{container.cpp_class}} impl; |
| 157 V8{{container.cpp_class}}::toImpl(isolate, value, impl, exceptionState); |
| 158 return impl; |
| 159 } |
| 160 |
| 154 {% endfor %} | 161 {% endfor %} |
| 155 } // namespace blink | 162 } // namespace blink |
| OLD | NEW |