| 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" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 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 |
| 32 void V8TestCallbackInterface::trace(Visitor* visitor) | 32 DEFINE_TRACE(V8TestCallbackInterface) |
| 33 { | 33 { |
| 34 TestCallbackInterface::trace(visitor); | 34 TestCallbackInterface::trace(visitor); |
| 35 ActiveDOMCallback::trace(visitor); | 35 ActiveDOMCallback::trace(visitor); |
| 36 } | 36 } |
| 37 | 37 |
| 38 void V8TestCallbackInterface::voidMethod() | 38 void V8TestCallbackInterface::voidMethod() |
| 39 { | 39 { |
| 40 if (!canInvokeCallback()) | 40 if (!canInvokeCallback()) |
| 41 return; | 41 return; |
| 42 | 42 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 if (!isScriptControllerTerminating()) | 232 if (!isScriptControllerTerminating()) |
| 233 CRASH(); | 233 CRASH(); |
| 234 return; | 234 return; |
| 235 } | 235 } |
| 236 v8::Local<v8::Value> argv[] = { arrayArgHandle }; | 236 v8::Local<v8::Value> argv[] = { arrayArgHandle }; |
| 237 | 237 |
| 238 ScriptController::callFunction(m_scriptState->executionContext(), m_callback
.newLocal(m_scriptState->isolate()), m_scriptState->context()->Global(), 1, argv
, m_scriptState->isolate()); | 238 ScriptController::callFunction(m_scriptState->executionContext(), m_callback
.newLocal(m_scriptState->isolate()), m_scriptState->context()->Global(), 1, argv
, m_scriptState->isolate()); |
| 239 } | 239 } |
| 240 | 240 |
| 241 } // namespace blink | 241 } // namespace blink |
| OLD | NEW |