| 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) %} |
| 11 {% for filename in header_includes %} | 11 {% for filename in header_includes %} |
| 12 #include "{{filename}}" | 12 #include "{{filename}}" |
| 13 {% endfor %} | 13 {% endfor %} |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 {% if has_event_constructor %} | 17 {% if has_event_constructor %} |
| 18 class Dictionary; | 18 class PropertyBag; |
| 19 {% endif %} | 19 {% endif %} |
| 20 {% if named_constructor %} | 20 {% if named_constructor %} |
| 21 class {{v8_class}}Constructor { | 21 class {{v8_class}}Constructor { |
| 22 public: | 22 public: |
| 23 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); | 23 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); |
| 24 static const WrapperTypeInfo wrapperTypeInfo; | 24 static const WrapperTypeInfo wrapperTypeInfo; |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 {% endif %} | 27 {% endif %} |
| 28 class {{v8_class}} { | 28 class {{v8_class}} { |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 v8SetReturnValueForMainWorld(callbackInfo, impl.get()); | 279 v8SetReturnValueForMainWorld(callbackInfo, impl.get()); |
| 280 } | 280 } |
| 281 | 281 |
| 282 template<class CallbackInfo, class Wrappable> | 282 template<class CallbackInfo, class Wrappable> |
| 283 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, {{pass_cpp_ty
pe}} impl, Wrappable* wrappable) | 283 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, {{pass_cpp_ty
pe}} impl, Wrappable* wrappable) |
| 284 { | 284 { |
| 285 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 285 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 286 } | 286 } |
| 287 | 287 |
| 288 {% if has_event_constructor %} | 288 {% if has_event_constructor %} |
| 289 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); | 289 bool initialize{{cpp_class}}({{cpp_class}}Init&, const PropertyBag&, ExceptionSt
ate&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); |
| 290 | 290 |
| 291 {% endif %} | 291 {% endif %} |
| 292 template <> |
| 293 struct PropertyBagTraits<{{cpp_class}}> { |
| 294 typedef {{v8_class}} type; |
| 295 }; |
| 296 |
| 292 } // namespace blink | 297 } // namespace blink |
| 293 {% endfilter %} | 298 {% endfilter %} |
| 294 #endif // {{v8_class}}_h | 299 #endif // {{v8_class}}_h |
| OLD | NEW |