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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp

Issue 2116533003: [Origin Trials] Allow static attributes to be defined on origin trials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix it harder Created 4 years, 5 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 "V8TestInterfacePartial.h" 7 #include "V8TestInterfacePartial.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/PrivateScriptRunner.h" 10 #include "bindings/core/v8/PrivateScriptRunner.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 return; 51 return;
52 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue); 52 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue);
53 } 53 }
54 54
55 static void partial4LongAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 55 static void partial4LongAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
56 { 56 {
57 v8::Local<v8::Value> v8Value = info[0]; 57 v8::Local<v8::Value> v8Value = info[0];
58 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttribute Setter(v8Value, info); 58 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttribute Setter(v8Value, info);
59 } 59 }
60 60
61 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info)
62 {
63 v8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute ());
64 }
65
66 static void partial4StaticLongAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
67 {
68 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAtt ributeGetter(info);
69 }
70
71 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info)
72 {
73 v8::Local<v8::Object> holder = info.Holder();
74 ExceptionState exceptionState(ExceptionState::SetterContext, "partial4Static LongAttribute", "TestInterface", holder, info.GetIsolate());
75 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
76 if (exceptionState.throwIfNeeded())
77 return;
78 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue);
79 }
80
81 static void partial4StaticLongAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
82 {
83 v8::Local<v8::Value> v8Value = info[0];
84 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAtt ributeSetter(v8Value, info);
85 }
86
61 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8:: Value>& info) 87 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8:: Value>& info)
62 { 88 {
63 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 89 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
64 V8StringResource<> value; 90 V8StringResource<> value;
65 { 91 {
66 value = info[0]; 92 value = info[0];
67 if (!value.prepare()) 93 if (!value.prepare())
68 return; 94 return;
69 } 95 }
70 TestInterfacePartial3Implementation::voidMethodPartialOverload(*impl, value) ; 96 TestInterfacePartial3Implementation::voidMethodPartialOverload(*impl, value) ;
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip tState, v8::Local<v8::Object> instance) 385 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip tState, v8::Local<v8::Object> instance)
360 { 386 {
361 v8::Local<v8::Object> prototype = instance->GetPrototype()->ToObject(scriptS tate->isolate()); 387 v8::Local<v8::Object> prototype = instance->GetPrototype()->ToObject(scriptS tate->isolate());
362 388
363 V8PerIsolateData* perIsolateData = V8PerIsolateData::from(scriptState->isola te()); 389 V8PerIsolateData* perIsolateData = V8PerIsolateData::from(scriptState->isola te());
364 v8::Local<v8::FunctionTemplate> interfaceTemplate = perIsolateData->findInte rfaceTemplate(scriptState->world(), &V8TestInterface::wrapperTypeInfo); 390 v8::Local<v8::FunctionTemplate> interfaceTemplate = perIsolateData->findInte rfaceTemplate(scriptState->world(), &V8TestInterface::wrapperTypeInfo);
365 v8::Local<v8::Signature> signature = v8::Signature::New(scriptState->isolate (), interfaceTemplate); 391 v8::Local<v8::Signature> signature = v8::Signature::New(scriptState->isolate (), interfaceTemplate);
366 ALLOW_UNUSED_LOCAL(signature); 392 ALLOW_UNUSED_LOCAL(signature);
367 V8PerContextData* perContextData = V8PerContextData::from(scriptState->conte xt()); 393 V8PerContextData* perContextData = V8PerContextData::from(scriptState->conte xt());
368 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Te stInterface::wrapperTypeInfo); 394 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Te stInterface::wrapperTypeInfo);
395 ALLOW_UNUSED_LOCAL(interface);
369 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttribut eConfiguration = \ 396 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttribut eConfiguration = \
370 {"partial4LongAttribute", TestInterfaceImplementationPartialV8Internal:: partial4LongAttributeAttributeGetterCallback, TestInterfaceImplementationPartial V8Internal::partial4LongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 397 {"partial4LongAttribute", TestInterfaceImplementationPartialV8Internal:: partial4LongAttributeAttributeGetterCallback, TestInterfaceImplementationPartial V8Internal::partial4LongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
371 V8DOMConfiguration::installAccessor(scriptState->isolate(), scriptState->wor ld(), instance, prototype, v8::Local<v8::Function>(), signature, accessorpartial 4LongAttributeConfiguration); 398 V8DOMConfiguration::installAccessor(scriptState->isolate(), scriptState->wor ld(), instance, prototype, interface, signature, accessorpartial4LongAttributeCo nfiguration);
399 const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticLongAt tributeConfiguration = \
400 {"partial4StaticLongAttribute", TestInterfaceImplementationPartialV8Inte rnal::partial4StaticLongAttributeAttributeGetterCallback, TestInterfaceImplement ationPartialV8Internal::partial4StaticLongAttributeAttributeSetterCallback, 0, 0 , 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati on::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Ch eckHolder};
401 V8DOMConfiguration::installAccessor(scriptState->isolate(), scriptState->wor ld(), instance, prototype, interface, signature, accessorpartial4StaticLongAttri buteConfiguration);
372 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShor tConfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantT ypeUnsignedShort}; 402 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShor tConfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantT ypeUnsignedShort};
373 V8DOMConfiguration::installConstant(scriptState->isolate(), interface, proto type, constantPartial4UnsignedShortConfiguration); 403 V8DOMConfiguration::installConstant(scriptState->isolate(), interface, proto type, constantPartial4UnsignedShortConfiguration);
374 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfig uration = {"partial4VoidMethod", TestInterfaceImplementationPartialV8Internal::p artial4VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnPrototype}; 404 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfig uration = {"partial4VoidMethod", TestInterfaceImplementationPartialV8Internal::p artial4VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnPrototype};
375 V8DOMConfiguration::installMethod(scriptState->isolate(), scriptState->world (), instance, prototype, interface, signature, methodPartial4VoidmethodConfigura tion); 405 V8DOMConfiguration::installMethod(scriptState->isolate(), scriptState->world (), instance, prototype, interface, signature, methodPartial4VoidmethodConfigura tion);
376 } 406 }
377 void V8TestInterfacePartial::preparePrototypeAndInterfaceObject(v8::Local<v8::Co ntext> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObj ect, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> in terfaceTemplate) 407 void V8TestInterfacePartial::preparePrototypeAndInterfaceObject(v8::Local<v8::Co ntext> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObj ect, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> in terfaceTemplate)
378 { 408 {
379 V8TestInterface::preparePrototypeAndInterfaceObject(context, world, prototyp eObject, interfaceObject, interfaceTemplate); 409 V8TestInterface::preparePrototypeAndInterfaceObject(context, world, prototyp eObject, interfaceObject, interfaceTemplate);
380 v8::Isolate* isolate = context->GetIsolate(); 410 v8::Isolate* isolate = context->GetIsolate();
381 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); 411 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate));
(...skipping 14 matching lines...) Expand all
396 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject); 426 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject);
397 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface( &TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 427 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface( &TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
398 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver loadMethod); 428 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver loadMethod);
399 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe thod); 429 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe thod);
400 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti alOverloadMethod); 430 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti alOverloadMethod);
401 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 431 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn terfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
402 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(& TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 432 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(& TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
403 } 433 }
404 434
405 } // namespace blink 435 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698