OLD | NEW |
1 /* | 1 /* |
2 This file is part of the WebKit open source project. | 2 This file is part of the WebKit open source project. |
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! | 3 This file has been generated by generate-bindings.pl. 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, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 v8::HandleScope handleScope; | 80 v8::HandleScope handleScope; |
81 | 81 |
82 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_
worldContext); | 82 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_
worldContext); |
83 if (v8Context.IsEmpty()) | 83 if (v8Context.IsEmpty()) |
84 return true; | 84 return true; |
85 | 85 |
86 v8::Context::Scope scope(v8Context); | 86 v8::Context::Scope scope(v8Context); |
87 | 87 |
88 v8::Handle<v8::Value> class1ParamHandle = toV8(class1Param); | 88 v8::Handle<v8::Value> class1ParamHandle = toV8(class1Param); |
89 if (class1ParamHandle.IsEmpty()) { | 89 if (class1ParamHandle.IsEmpty()) { |
90 CRASH(); | 90 if (!isScriptControllerTerminating()) |
| 91 CRASH(); |
91 return true; | 92 return true; |
92 } | 93 } |
93 | 94 |
94 v8::Handle<v8::Value> argv[] = { | 95 v8::Handle<v8::Value> argv[] = { |
95 class1ParamHandle | 96 class1ParamHandle |
96 }; | 97 }; |
97 | 98 |
98 bool callbackReturnValue = false; | 99 bool callbackReturnValue = false; |
99 return !invokeCallback(m_callback, 1, argv, callbackReturnValue, scriptExecu
tionContext()); | 100 return !invokeCallback(m_callback, 1, argv, callbackReturnValue, scriptExecu
tionContext()); |
100 } | 101 } |
101 | 102 |
102 bool V8TestCallback::callbackWithClass2Param(Class2* class2Param, const String&
strArg) | 103 bool V8TestCallback::callbackWithClass2Param(Class2* class2Param, const String&
strArg) |
103 { | 104 { |
104 if (!canInvokeCallback()) | 105 if (!canInvokeCallback()) |
105 return true; | 106 return true; |
106 | 107 |
107 v8::HandleScope handleScope; | 108 v8::HandleScope handleScope; |
108 | 109 |
109 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_
worldContext); | 110 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_
worldContext); |
110 if (v8Context.IsEmpty()) | 111 if (v8Context.IsEmpty()) |
111 return true; | 112 return true; |
112 | 113 |
113 v8::Context::Scope scope(v8Context); | 114 v8::Context::Scope scope(v8Context); |
114 | 115 |
115 v8::Handle<v8::Value> class2ParamHandle = toV8(class2Param); | 116 v8::Handle<v8::Value> class2ParamHandle = toV8(class2Param); |
116 if (class2ParamHandle.IsEmpty()) { | 117 if (class2ParamHandle.IsEmpty()) { |
117 CRASH(); | 118 if (!isScriptControllerTerminating()) |
| 119 CRASH(); |
118 return true; | 120 return true; |
119 } | 121 } |
120 v8::Handle<v8::Value> strArgHandle = v8String(strArg); | 122 v8::Handle<v8::Value> strArgHandle = v8String(strArg); |
121 if (strArgHandle.IsEmpty()) { | 123 if (strArgHandle.IsEmpty()) { |
122 CRASH(); | 124 if (!isScriptControllerTerminating()) |
| 125 CRASH(); |
123 return true; | 126 return true; |
124 } | 127 } |
125 | 128 |
126 v8::Handle<v8::Value> argv[] = { | 129 v8::Handle<v8::Value> argv[] = { |
127 class2ParamHandle, | 130 class2ParamHandle, |
128 strArgHandle | 131 strArgHandle |
129 }; | 132 }; |
130 | 133 |
131 bool callbackReturnValue = false; | 134 bool callbackReturnValue = false; |
132 return !invokeCallback(m_callback, 2, argv, callbackReturnValue, scriptExecu
tionContext()); | 135 return !invokeCallback(m_callback, 2, argv, callbackReturnValue, scriptExecu
tionContext()); |
133 } | 136 } |
134 | 137 |
135 bool V8TestCallback::callbackWithStringList(RefPtr<DOMStringList> listParam) | 138 bool V8TestCallback::callbackWithStringList(RefPtr<DOMStringList> listParam) |
136 { | 139 { |
137 if (!canInvokeCallback()) | 140 if (!canInvokeCallback()) |
138 return true; | 141 return true; |
139 | 142 |
140 v8::HandleScope handleScope; | 143 v8::HandleScope handleScope; |
141 | 144 |
142 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_
worldContext); | 145 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_
worldContext); |
143 if (v8Context.IsEmpty()) | 146 if (v8Context.IsEmpty()) |
144 return true; | 147 return true; |
145 | 148 |
146 v8::Context::Scope scope(v8Context); | 149 v8::Context::Scope scope(v8Context); |
147 | 150 |
148 v8::Handle<v8::Value> listParamHandle = toV8(listParam); | 151 v8::Handle<v8::Value> listParamHandle = toV8(listParam); |
149 if (listParamHandle.IsEmpty()) { | 152 if (listParamHandle.IsEmpty()) { |
150 CRASH(); | 153 if (!isScriptControllerTerminating()) |
| 154 CRASH(); |
151 return true; | 155 return true; |
152 } | 156 } |
153 | 157 |
154 v8::Handle<v8::Value> argv[] = { | 158 v8::Handle<v8::Value> argv[] = { |
155 listParamHandle | 159 listParamHandle |
156 }; | 160 }; |
157 | 161 |
158 bool callbackReturnValue = false; | 162 bool callbackReturnValue = false; |
159 return !invokeCallback(m_callback, 1, argv, callbackReturnValue, scriptExecu
tionContext()); | 163 return !invokeCallback(m_callback, 1, argv, callbackReturnValue, scriptExecu
tionContext()); |
160 } | 164 } |
161 | 165 |
162 } // namespace WebCore | 166 } // namespace WebCore |
163 | 167 |
164 #endif // ENABLE(SQL_DATABASE) | 168 #endif // ENABLE(SQL_DATABASE) |
OLD | NEW |