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

Side by Side Diff: Source/bindings/tests/results/V8TestInterface.cpp

Issue 226073003: Fix StrictTypeChecking on interface type attributes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Adjust AudioBuffersourceNode.buffer. Created 6 years, 8 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 | Annotate | Revision Log
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 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 { 64 {
65 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 65 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
66 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeGetter (info); 66 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeGetter (info);
67 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 67 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
68 } 68 }
69 69
70 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 70 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
71 { 71 {
72 v8::Handle<v8::Object> holder = info.Holder(); 72 v8::Handle<v8::Object> holder = info.Holder();
73 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceA ttribute", "TestInterface", holder, info.GetIsolate()); 73 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceA ttribute", "TestInterface", holder, info.GetIsolate());
74 if (!isUndefinedOrNull(v8Value) && !V8TestInterface::hasInstance(v8Value, in fo.GetIsolate())) { 74 if (!V8TestInterface::hasInstance(v8Value, info.GetIsolate())) {
75 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'."); 75 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'.");
76 exceptionState.throwIfNeeded(); 76 exceptionState.throwIfNeeded();
77 return; 77 return;
78 } 78 }
79 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 79 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder);
80 V8TRYCATCH_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toN ativeWithTypeCheck(info.GetIsolate(), v8Value)); 80 V8TRYCATCH_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toN ativeWithTypeCheck(info.GetIsolate(), v8Value));
81 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); 81 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue));
82 } 82 }
83 83
84 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 84 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 { 266 {
267 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 267 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
268 TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeGette r(info); 268 TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeGette r(info);
269 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 269 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
270 } 270 }
271 271
272 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 272 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
273 { 273 {
274 v8::Handle<v8::Object> holder = info.Holder(); 274 v8::Handle<v8::Object> holder = info.Holder();
275 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsNode Attribute", "TestInterface", holder, info.GetIsolate()); 275 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsNode Attribute", "TestInterface", holder, info.GetIsolate());
276 if (!isUndefinedOrNull(v8Value) && !V8Node::hasInstance(v8Value, info.GetIso late())) { 276 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) {
277 exceptionState.throwTypeError("The provided value is not of type 'Node'. "); 277 exceptionState.throwTypeError("The provided value is not of type 'Node'. ");
278 exceptionState.throwIfNeeded(); 278 exceptionState.throwIfNeeded();
279 return; 279 return;
280 } 280 }
281 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 281 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder);
282 ASSERT(impl); 282 ASSERT(impl);
283 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), v8Value)); 283 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), v8Value));
284 TestImplements::setImplementsNodeAttribute(*impl, WTF::getPtr(cppValue)); 284 TestImplements::setImplementsNodeAttribute(*impl, WTF::getPtr(cppValue));
285 } 285 }
286 286
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 { 335 {
336 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 336 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
337 TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttribute AttributeGetter(info); 337 TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttribute AttributeGetter(info);
338 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 338 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
339 } 339 }
340 340
341 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V alue> v8Value, const v8::PropertyCallbackInfo<void>& info) 341 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V alue> v8Value, const v8::PropertyCallbackInfo<void>& info)
342 { 342 {
343 v8::Handle<v8::Object> holder = info.Holder(); 343 v8::Handle<v8::Object> holder = info.Holder();
344 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsRunt imeEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate()); 344 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsRunt imeEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate());
345 if (!isUndefinedOrNull(v8Value) && !V8Node::hasInstance(v8Value, info.GetIso late())) { 345 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) {
346 exceptionState.throwTypeError("The provided value is not of type 'Node'. "); 346 exceptionState.throwTypeError("The provided value is not of type 'Node'. ");
347 exceptionState.throwIfNeeded(); 347 exceptionState.throwIfNeeded();
348 return; 348 return;
349 } 349 }
350 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 350 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder);
351 ASSERT(impl); 351 ASSERT(impl);
352 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), v8Value)); 352 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), v8Value));
353 TestImplements::setImplementsRuntimeEnabledNodeAttribute(*impl, WTF::getPtr( cppValue)); 353 TestImplements::setImplementsRuntimeEnabledNodeAttribute(*impl, WTF::getPtr( cppValue));
354 } 354 }
355 355
(...skipping 16 matching lines...) Expand all
372 { 372 {
373 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 373 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
374 TestInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttrib uteAttributeGetter(info); 374 TestInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttrib uteAttributeGetter(info);
375 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 375 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
376 } 376 }
377 377
378 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 378 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
379 { 379 {
380 v8::Handle<v8::Object> holder = info.Holder(); 380 v8::Handle<v8::Object> holder = info.Holder();
381 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsPerC ontextEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate()); 381 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsPerC ontextEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate());
382 if (!isUndefinedOrNull(v8Value) && !V8Node::hasInstance(v8Value, info.GetIso late())) { 382 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) {
383 exceptionState.throwTypeError("The provided value is not of type 'Node'. "); 383 exceptionState.throwTypeError("The provided value is not of type 'Node'. ");
384 exceptionState.throwIfNeeded(); 384 exceptionState.throwIfNeeded();
385 return; 385 return;
386 } 386 }
387 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 387 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder);
388 ASSERT(impl); 388 ASSERT(impl);
389 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), v8Value)); 389 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), v8Value));
390 TestImplements::setImplementsPerContextEnabledNodeAttribute(*impl, WTF::getP tr(cppValue)); 390 TestImplements::setImplementsPerContextEnabledNodeAttribute(*impl, WTF::getP tr(cppValue));
391 } 391 }
392 392
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 } 1381 }
1382 1382
1383 template<> 1383 template<>
1384 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate) 1384 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate)
1385 { 1385 {
1386 return toV8(impl, creationContext, isolate); 1386 return toV8(impl, creationContext, isolate);
1387 } 1387 }
1388 1388
1389 } // namespace WebCore 1389 } // namespace WebCore
1390 #endif // ENABLE(CONDITION) 1390 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698