| 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 "sky/engine/config.h" |
| 8 #include "{{v8_class}}.h" | 8 #include "{{v8_class}}.h" |
| 9 | 9 |
| 10 {% for filename in cpp_includes if filename != '%s.h' % v8_class %} | 10 {% for filename in cpp_includes if filename != '%s.h' % v8_class %} |
| 11 #include "{{filename}}" | 11 #include "{{filename}}" |
| 12 {% endfor %} | 12 {% endfor %} |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 {{cpp_class}}* {{v8_class}}::toNative(v8::Isolate* isolate, v8::Handle<v8::Value
> v8Value) | 16 {{cpp_class}}* {{v8_class}}::toNative(v8::Isolate* isolate, v8::Handle<v8::Value
> v8Value) |
| 17 { | 17 { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 35 v8Object->Set(v8String(isolate, "{{member.name}}"), {{member.cpp_value_t
o_v8_value}}); | 35 v8Object->Set(v8String(isolate, "{{member.name}}"), {{member.cpp_value_t
o_v8_value}}); |
| 36 {% if member.v8_default_value %} | 36 {% if member.v8_default_value %} |
| 37 else | 37 else |
| 38 v8Object->Set(v8String(isolate, "{{member.name}}"), {{member.v8_default_
value}}); | 38 v8Object->Set(v8String(isolate, "{{member.name}}"), {{member.v8_default_
value}}); |
| 39 {% endif %} | 39 {% endif %} |
| 40 {% endfor %} | 40 {% endfor %} |
| 41 return v8Object; | 41 return v8Object; |
| 42 } | 42 } |
| 43 | 43 |
| 44 } // namespace blink | 44 } // namespace blink |
| OLD | NEW |