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_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 #include "V8TestCallbackInterface.h" | 8 #include "V8TestCallbackInterface.h" |
9 | 9 |
10 #include "bindings/core/v8/ScriptController.h" | 10 #include "bindings/core/v8/ScriptController.h" |
11 #include "bindings/core/v8/V8Binding.h" | 11 #include "bindings/core/v8/V8Binding.h" |
12 #include "bindings/core/v8/V8TestInterfaceEmpty.h" | 12 #include "bindings/core/v8/V8TestInterfaceEmpty.h" |
13 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h" | 13 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h" |
14 #include "core/dom/ExecutionContext.h" | 14 #include "core/dom/ExecutionContext.h" |
15 #include "wtf/Assertions.h" | 15 #include "wtf/Assertions.h" |
16 #include "wtf/GetPtr.h" | 16 #include "wtf/GetPtr.h" |
17 #include "wtf/RefPtr.h" | 17 #include "wtf/RefPtr.h" |
18 | 18 |
19 namespace blink { | 19 namespace blink { |
20 | 20 |
21 V8TestCallbackInterface::V8TestCallbackInterface(v8::Handle<v8::Function> callba
ck, ScriptState* scriptState) | 21 V8TestCallbackInterface::V8TestCallbackInterface(v8::Local<v8::Function> callbac
k, ScriptState* scriptState) |
22 : ActiveDOMCallback(scriptState->executionContext()) | 22 : ActiveDOMCallback(scriptState->executionContext()) |
23 , m_scriptState(scriptState) | 23 , m_scriptState(scriptState) |
24 { | 24 { |
25 m_callback.set(scriptState->isolate(), callback); | 25 m_callback.set(scriptState->isolate(), callback); |
26 } | 26 } |
27 | 27 |
28 V8TestCallbackInterface::~V8TestCallbackInterface() | 28 V8TestCallbackInterface::~V8TestCallbackInterface() |
29 { | 29 { |
30 } | 30 } |
31 | 31 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 if (!isScriptControllerTerminating()) | 226 if (!isScriptControllerTerminating()) |
227 CRASH(); | 227 CRASH(); |
228 return; | 228 return; |
229 } | 229 } |
230 v8::Handle<v8::Value> argv[] = { arrayArgHandle }; | 230 v8::Handle<v8::Value> argv[] = { arrayArgHandle }; |
231 | 231 |
232 ScriptController::callFunction(m_scriptState->executionContext(), m_callback
.newLocal(m_scriptState->isolate()), m_scriptState->context()->Global(), 1, argv
, m_scriptState->isolate()); | 232 ScriptController::callFunction(m_scriptState->executionContext(), m_callback
.newLocal(m_scriptState->isolate()), m_scriptState->context()->Global(), 1, argv
, m_scriptState->isolate()); |
233 } | 233 } |
234 | 234 |
235 } // namespace blink | 235 } // namespace blink |
OLD | NEW |