Chromium Code Reviews| 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 {% for filename in header_includes %} | 10 {% for filename in header_includes %} |
| 11 #include "{{filename}}" | 11 #include "{{filename}}" |
| 12 {% endfor %} | 12 {% endfor %} |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class ExceptionState; | 16 class ExceptionState; |
| 17 | 17 |
| 18 class {{v8_class}} { | 18 class {{v8_class}} { |
| 19 public: | 19 public: |
| 20 static void toImpl(v8::Isolate*, v8::Handle<v8::Value>, {{cpp_class}}&, Exce ptionState&); | 20 static void toImpl(v8::Isolate*, v8::Handle<v8::Value>, {{cpp_class}}&, Exce ptionState&); |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 v8::Handle<v8::Value> toV8({{cpp_class}}&, v8::Handle<v8::Object>, v8::Isolate*) ; | 23 v8::Handle<v8::Value> toV8({{cpp_class}}&, v8::Handle<v8::Object>, v8::Isolate*) ; |
| 24 void toV8{{cpp_class}}({{cpp_class}}&, v8::Handle<v8::Object> dest, v8::Handle<v 8::Object> creationContext, v8::Isolate*); | |
|
haraken
2014/11/19 09:11:26
dest => dictionary ?
bashi
2014/11/19 11:04:43
Done.
| |
| 24 | 25 |
| 25 template<class CallbackInfo> | 26 template<class CallbackInfo> |
| 26 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, {{cpp_class}}& im pl) | 27 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, {{cpp_class}}& im pl) |
| 27 { | 28 { |
| 28 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); | 29 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); |
| 29 } | 30 } |
| 30 | 31 |
| 31 } // namespace blink | 32 } // namespace blink |
| 32 | 33 |
| 33 #endif // {{v8_class}}_h | 34 #endif // {{v8_class}}_h |
| OLD | NEW |