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 20 matching lines...) Expand all Loading... |
31 #include <wtf/RefCounted.h> | 31 #include <wtf/RefCounted.h> |
32 #include <wtf/RefPtr.h> | 32 #include <wtf/RefPtr.h> |
33 | 33 |
34 #include <wtf/Assertions.h> | 34 #include <wtf/Assertions.h> |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 V8TestCallback::V8TestCallback(v8::Handle<v8::Object> callback, ScriptExecutionC
ontext* context) | 38 V8TestCallback::V8TestCallback(v8::Handle<v8::Object> callback, ScriptExecutionC
ontext* context) |
39 : ActiveDOMCallback(context) | 39 : ActiveDOMCallback(context) |
40 , m_callback(callback) | 40 , m_callback(callback) |
41 , m_world(context->isDocument() ? DOMWrapperWorld::isolatedWorld(v8::Context
::GetCurrent()) : 0) | 41 , m_world(DOMWrapperWorld::current(context)) |
42 { | 42 { |
43 } | 43 } |
44 | 44 |
45 V8TestCallback::~V8TestCallback() | 45 V8TestCallback::~V8TestCallback() |
46 { | 46 { |
47 } | 47 } |
48 | 48 |
49 // Functions | 49 // Functions |
50 | 50 |
51 bool V8TestCallback::callbackWithNoParam() | 51 bool V8TestCallback::callbackWithNoParam() |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 v8::Handle<v8::Value> argv[] = { | 182 v8::Handle<v8::Value> argv[] = { |
183 boolParamHandle | 183 boolParamHandle |
184 }; | 184 }; |
185 | 185 |
186 bool callbackReturnValue = false; | 186 bool callbackReturnValue = false; |
187 return !invokeCallback(m_callback.get(), 1, argv, callbackReturnValue, scrip
tExecutionContext()); | 187 return !invokeCallback(m_callback.get(), 1, argv, callbackReturnValue, scrip
tExecutionContext()); |
188 } | 188 } |
189 | 189 |
190 } // namespace WebCore | 190 } // namespace WebCore |
191 | 191 |
OLD | NEW |