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 "V8TestCallbackInterface.h" | 7 #include "V8TestCallbackInterface.h" |
8 | 8 |
9 #include "bindings/core/v8/ScriptController.h" | 9 #include "bindings/core/v8/ScriptController.h" |
10 #include "bindings/core/v8/V8Binding.h" | 10 #include "bindings/core/v8/V8Binding.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 if (boolArgHandle.IsEmpty()) { | 77 if (boolArgHandle.IsEmpty()) { |
78 if (!isScriptControllerTerminating()) | 78 if (!isScriptControllerTerminating()) |
79 CRASH(); | 79 CRASH(); |
80 return; | 80 return; |
81 } | 81 } |
82 v8::Local<v8::Value> argv[] = { boolArgHandle }; | 82 v8::Local<v8::Value> argv[] = { boolArgHandle }; |
83 | 83 |
84 ScriptController::callFunction(m_scriptState->getExecutionContext(), m_callb
ack.newLocal(m_scriptState->isolate()), v8::Undefined(m_scriptState->isolate()),
1, argv, m_scriptState->isolate()); | 84 ScriptController::callFunction(m_scriptState->getExecutionContext(), m_callb
ack.newLocal(m_scriptState->isolate()), v8::Undefined(m_scriptState->isolate()),
1, argv, m_scriptState->isolate()); |
85 } | 85 } |
86 | 86 |
87 void V8TestCallbackInterface::voidMethodSequenceArg(const Vector<RefPtr<TestInte
rfaceEmpty>>& sequenceArg) | 87 void V8TestCallbackInterface::voidMethodSequenceArg(const HeapVector<Member<Test
InterfaceEmpty>>& sequenceArg) |
88 { | 88 { |
89 if (!canInvokeCallback()) | 89 if (!canInvokeCallback()) |
90 return; | 90 return; |
91 | 91 |
92 if (!m_scriptState->contextIsValid()) | 92 if (!m_scriptState->contextIsValid()) |
93 return; | 93 return; |
94 | 94 |
95 ScriptState::Scope scope(m_scriptState.get()); | 95 ScriptState::Scope scope(m_scriptState.get()); |
96 v8::Local<v8::Value> sequenceArgHandle = toV8(sequenceArg, m_scriptState->co
ntext()->Global(), m_scriptState->isolate()); | 96 v8::Local<v8::Value> sequenceArgHandle = toV8(sequenceArg, m_scriptState->co
ntext()->Global(), m_scriptState->isolate()); |
97 if (sequenceArgHandle.IsEmpty()) { | 97 if (sequenceArgHandle.IsEmpty()) { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 if (!isScriptControllerTerminating()) | 190 if (!isScriptControllerTerminating()) |
191 CRASH(); | 191 CRASH(); |
192 return; | 192 return; |
193 } | 193 } |
194 v8::Local<v8::Value> argv[] = { stringArgHandle }; | 194 v8::Local<v8::Value> argv[] = { stringArgHandle }; |
195 | 195 |
196 ScriptController::callFunction(m_scriptState->getExecutionContext(), m_callb
ack.newLocal(m_scriptState->isolate()), thisHandle, 1, argv, m_scriptState->isol
ate()); | 196 ScriptController::callFunction(m_scriptState->getExecutionContext(), m_callb
ack.newLocal(m_scriptState->isolate()), thisHandle, 1, argv, m_scriptState->isol
ate()); |
197 } | 197 } |
198 | 198 |
199 } // namespace blink | 199 } // namespace blink |
OLD | NEW |