OLD | NEW |
---|---|
1 /* | 1 /* |
Nils Barth (inactive)
2013/07/24 11:41:20
BTW, this diff is against:
tests/results/V8TestCal
| |
2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
4 | 4 |
5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
9 | 9 |
10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 Library General Public License for more details. | 13 Library General Public License for more details. |
14 | 14 |
15 You should have received a copy of the GNU Library General Public License | 15 You should have received a copy of the GNU Library General Public License |
16 along with this library; see the file COPYING.LIB. If not, write to | 16 along with this library; see the file COPYING.LIB. If not, write to |
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 Boston, MA 02111-1307, USA. | 18 Boston, MA 02111-1307, USA. |
19 */ | 19 */ |
20 | 20 |
21 #ifndef V8TestCallback_h | 21 #ifndef {{v8_class_name}}_h |
22 #define V8TestCallback_h | 22 #define {{v8_class_name}}_h |
23 | 23 |
24 #include "bindings/bindings/tests/idls/TestCallback.h" | 24 {% if conditional_string %} |
25 #include "bindings/v8/ActiveDOMCallback.h" | 25 #if {{conditional_string}} |
26 #include "bindings/v8/DOMWrapperWorld.h" | 26 {% endif %} |
27 #include "bindings/v8/ScopedPersistent.h" | 27 {% for filename in includes -%} |
28 #include "{{filename}}" | |
29 {% endfor %} | |
28 | 30 |
29 namespace WebCore { | 31 namespace WebCore { |
30 | 32 |
31 class ScriptExecutionContext; | 33 class ScriptExecutionContext; |
32 | 34 |
33 | 35 |
34 class V8TestCallback : public TestCallback, public ActiveDOMCallback { | 36 class {{v8_class_name}} : public {{interface_name}}, public ActiveDOMCallback { |
35 public: | 37 public: |
36 static PassRefPtr<V8TestCallback> create(v8::Handle<v8::Value> value, Script ExecutionContext* context) | 38 static PassRefPtr<{{v8_class_name}}> create(v8::Handle<v8::Value> value, Scr iptExecutionContext* context) |
37 { | 39 { |
38 ASSERT(value->IsObject()); | 40 ASSERT(value->IsObject()); |
39 ASSERT(context); | 41 ASSERT(context); |
40 return adoptRef(new V8TestCallback(v8::Handle<v8::Object>::Cast(value), context)); | 42 return adoptRef(new {{v8_class_name}}(v8::Handle<v8::Object>::Cast(value ), context)); |
41 } | 43 } |
42 | 44 |
43 virtual ~V8TestCallback(); | 45 virtual ~{{v8_class_name}}(); |
44 | 46 |
45 // Functions | 47 // Functions |
46 virtual bool callbackWithNoParam(); | 48 {% for definition in class_public_definitions -%} |
47 virtual bool callbackWithTestObjectParam(TestObj* class1Param); | 49 {{definition | indent(4, true)}} |
48 virtual bool callbackWithTestObjectParam(TestObj* class2Param, const String& strArg); | 50 {% endfor %} |
49 virtual int customCallback(TestObj* testObjParam, TestObj* testObjParam); | |
50 virtual bool callbackWithStringList(RefPtr<DOMStringList> listParam); | |
51 virtual bool callbackWithBoolean(bool boolParam); | |
52 virtual bool callbackWithSequence(Vector<RefPtr<TestObj> > sequenceParam); | |
53 virtual bool callbackWithThisArg(ScriptValue thisValue, int param); | |
54 | 51 |
55 virtual ScriptExecutionContext* scriptExecutionContext() const { return Cont extLifecycleObserver::scriptExecutionContext(); } | 52 virtual ScriptExecutionContext* scriptExecutionContext() const { return Cont extLifecycleObserver::scriptExecutionContext(); } |
56 | 53 |
57 private: | 54 private: |
58 V8TestCallback(v8::Handle<v8::Object>, ScriptExecutionContext*); | 55 {{v8_class_name}}(v8::Handle<v8::Object>, ScriptExecutionContext*); |
59 | 56 |
60 ScopedPersistent<v8::Object> m_callback; | 57 ScopedPersistent<v8::Object> m_callback; |
61 RefPtr<DOMWrapperWorld> m_world; | 58 RefPtr<DOMWrapperWorld> m_world; |
62 }; | 59 }; |
63 | 60 |
64 } | 61 } |
65 | 62 |
66 #endif // V8TestCallback_h | 63 {% if conditional_string %} |
64 #endif // {{conditional_string}} | |
67 | 65 |
66 {% endif %} | |
67 #endif // {{v8_class_name}}_h | |
68 | |
69 | |
OLD | NEW |