Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: Source/bindings/tests/results/core/V8TestCallbackInterface.cpp

Issue 921813002: Fix template angle bracket syntax in bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 if (boolArgHandle.IsEmpty()) { 79 if (boolArgHandle.IsEmpty()) {
80 if (!isScriptControllerTerminating()) 80 if (!isScriptControllerTerminating())
81 CRASH(); 81 CRASH();
82 return; 82 return;
83 } 83 }
84 v8::Local<v8::Value> argv[] = { boolArgHandle }; 84 v8::Local<v8::Value> argv[] = { boolArgHandle };
85 85
86 ScriptController::callFunction(m_scriptState->executionContext(), m_callback .newLocal(m_scriptState->isolate()), m_scriptState->context()->Global(), 1, argv , m_scriptState->isolate()); 86 ScriptController::callFunction(m_scriptState->executionContext(), m_callback .newLocal(m_scriptState->isolate()), m_scriptState->context()->Global(), 1, argv , m_scriptState->isolate());
87 } 87 }
88 88
89 void V8TestCallbackInterface::voidMethodSequenceArg(const Vector<RefPtr<TestInte rfaceEmpty> >& sequenceArg) 89 void V8TestCallbackInterface::voidMethodSequenceArg(const Vector<RefPtr<TestInte rfaceEmpty>>& sequenceArg)
90 { 90 {
91 if (!canInvokeCallback()) 91 if (!canInvokeCallback())
92 return; 92 return;
93 93
94 if (!m_scriptState->contextIsValid()) 94 if (!m_scriptState->contextIsValid())
95 return; 95 return;
96 96
97 ScriptState::Scope scope(m_scriptState.get()); 97 ScriptState::Scope scope(m_scriptState.get());
98 v8::Local<v8::Value> sequenceArgHandle = toV8(sequenceArg, m_scriptState->co ntext()->Global(), m_scriptState->isolate()); 98 v8::Local<v8::Value> sequenceArgHandle = toV8(sequenceArg, m_scriptState->co ntext()->Global(), m_scriptState->isolate());
99 if (sequenceArgHandle.IsEmpty()) { 99 if (sequenceArgHandle.IsEmpty()) {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 if (stringArgHandle.IsEmpty()) { 191 if (stringArgHandle.IsEmpty()) {
192 if (!isScriptControllerTerminating()) 192 if (!isScriptControllerTerminating())
193 CRASH(); 193 CRASH();
194 return; 194 return;
195 } 195 }
196 v8::Local<v8::Value> argv[] = { stringArgHandle }; 196 v8::Local<v8::Value> argv[] = { stringArgHandle };
197 197
198 ScriptController::callFunction(m_scriptState->executionContext(), m_callback .newLocal(m_scriptState->isolate()), thisHandle, 1, argv, m_scriptState->isolate ()); 198 ScriptController::callFunction(m_scriptState->executionContext(), m_callback .newLocal(m_scriptState->isolate()), thisHandle, 1, argv, m_scriptState->isolate ());
199 } 199 }
200 200
201 void V8TestCallbackInterface::voidMethodWillBeGarbageCollectedSequenceArg(const WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> >& sequ enceArg) 201 void V8TestCallbackInterface::voidMethodWillBeGarbageCollectedSequenceArg(const WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>>& seque nceArg)
202 { 202 {
203 if (!canInvokeCallback()) 203 if (!canInvokeCallback())
204 return; 204 return;
205 205
206 if (!m_scriptState->contextIsValid()) 206 if (!m_scriptState->contextIsValid())
207 return; 207 return;
208 208
209 ScriptState::Scope scope(m_scriptState.get()); 209 ScriptState::Scope scope(m_scriptState.get());
210 v8::Local<v8::Value> sequenceArgHandle = toV8(sequenceArg, m_scriptState->co ntext()->Global(), m_scriptState->isolate()); 210 v8::Local<v8::Value> sequenceArgHandle = toV8(sequenceArg, m_scriptState->co ntext()->Global(), m_scriptState->isolate());
211 if (sequenceArgHandle.IsEmpty()) { 211 if (sequenceArgHandle.IsEmpty()) {
212 if (!isScriptControllerTerminating()) 212 if (!isScriptControllerTerminating())
213 CRASH(); 213 CRASH();
214 return; 214 return;
215 } 215 }
216 v8::Local<v8::Value> argv[] = { sequenceArgHandle }; 216 v8::Local<v8::Value> argv[] = { sequenceArgHandle };
217 217
218 ScriptController::callFunction(m_scriptState->executionContext(), m_callback .newLocal(m_scriptState->isolate()), m_scriptState->context()->Global(), 1, argv , m_scriptState->isolate()); 218 ScriptController::callFunction(m_scriptState->executionContext(), m_callback .newLocal(m_scriptState->isolate()), m_scriptState->context()->Global(), 1, argv , m_scriptState->isolate());
219 } 219 }
220 220
221 void V8TestCallbackInterface::voidMethodWillBeGarbageCollectedArrayArg(const Wil lBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> >& arrayAr g) 221 void V8TestCallbackInterface::voidMethodWillBeGarbageCollectedArrayArg(const Wil lBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>>& arrayArg )
222 { 222 {
223 if (!canInvokeCallback()) 223 if (!canInvokeCallback())
224 return; 224 return;
225 225
226 if (!m_scriptState->contextIsValid()) 226 if (!m_scriptState->contextIsValid())
227 return; 227 return;
228 228
229 ScriptState::Scope scope(m_scriptState.get()); 229 ScriptState::Scope scope(m_scriptState.get());
230 v8::Local<v8::Value> arrayArgHandle = toV8(arrayArg, m_scriptState->context( )->Global(), m_scriptState->isolate()); 230 v8::Local<v8::Value> arrayArgHandle = toV8(arrayArg, m_scriptState->context( )->Global(), m_scriptState->isolate());
231 if (arrayArgHandle.IsEmpty()) { 231 if (arrayArgHandle.IsEmpty()) {
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698