Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! | |
| 6 | |
| 7 #ifndef {{v8_class}}_h | |
| 8 #define {{v8_class}}_h | |
| 9 | |
| 10 {% filter conditional(conditional_string) %} | |
| 11 {% for filename in header_includes %} | |
| 12 #include "{{filename}}" | |
| 13 {% endfor %} | |
| 14 | |
| 15 namespace WebCore { | |
|
haraken
2014/07/21 16:11:59
A "WebCore" namespace is gone. You need to replace
bashi
2014/07/22 02:33:58
Done.
| |
| 16 | |
| 17 class {{v8_class}} { | |
| 18 public: | |
| 19 static {{cpp_class}}* toNativeWithTypeCheck(v8::Isolate*, v8::Handle<v8::Val ue>); | |
| 20 }; | |
| 21 | |
| 22 v8::Handle<v8::Value> toV8({{cpp_class}}*, v8::Handle<v8::Object> creationContex t, v8::Isolate*); | |
| 23 | |
| 24 template<class CallbackInfo> | |
| 25 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, {{cpp_class}}* im pl) | |
| 26 { | |
| 27 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); | |
| 28 } | |
| 29 | |
| 30 } // namespace WebCore | |
| 31 | |
| 32 {% endfilter %} | |
| 33 #endif // {{v8_class}}_h | |
| OLD | NEW |