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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp

Issue 2863443002: Implement and ship PushManager.supportedContentEncodings (Closed)
Patch Set: Implement and ship PushManager.supportedContentEncodings Created 3 years, 7 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. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // This file has been generated from the Jinja2 template in 8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl
10 10
(...skipping 3887 matching lines...) Expand 10 before | Expand all | Expand 10 after
3898 V8PrivateProperty::GetSymbol( 3898 V8PrivateProperty::GetSymbol(
3899 info.GetIsolate(), "KeepAlive#TestObject#saveSameObjectAttribute") 3899 info.GetIsolate(), "KeepAlive#TestObject#saveSameObjectAttribute")
3900 .Set(holder, v8Value); 3900 .Set(holder, v8Value);
3901 3901
3902 V8SetReturnValue(info, v8Value); 3902 V8SetReturnValue(info, v8Value);
3903 3903
3904 // [SaveSameObject] 3904 // [SaveSameObject]
3905 privateSameObject.Set(holder, info.GetReturnValue().Get()); 3905 privateSameObject.Set(holder, info.GetReturnValue().Get());
3906 } 3906 }
3907 3907
3908 static void staticSaveSameObjectAttributeAttributeGetter(const v8::FunctionCallb ackInfo<v8::Value>& info) {
3909 v8::Local<v8::Object> holder = info.Holder();
3910
3911 // [SaveSameObject]
3912 // If you see a compile error that
3913 // V8PrivateProperty::GetSameObjectTestObjectStaticSaveSameObjectAttribute
3914 // is not defined, then you need to register your attribute at
3915 // V8_PRIVATE_PROPERTY_FOR_EACH defined in V8PrivateProperty.h as
3916 // X(SameObject, TestObjectStaticSaveSameObjectAttribute)
3917 auto privateSameObject = V8PrivateProperty::GetSameObjectTestObjectStaticSaveS ameObjectAttribute(info.GetIsolate());
3918 {
3919 v8::Local<v8::Value> v8Value = privateSameObject.GetOrEmpty(holder);
3920 if (!v8Value.IsEmpty()) {
3921 V8SetReturnValue(info, v8Value);
3922 return;
3923 }
3924 }
3925
3926 TestInterfaceImplementation* cppValue(WTF::GetPtr(TestObject::staticSaveSameOb jectAttribute()));
3927
3928 // Keep the wrapper object for the return value alive as long as |this|
3929 // object is alive in order to save creation time of the wrapper object.
3930 if (cppValue && DOMDataStore::SetReturnValue(info.GetReturnValue(), cppValue))
3931 return;
3932 v8::Local<v8::Value> v8Value(ToV8(cppValue, holder, info.GetIsolate()));
3933 V8PrivateProperty::GetSymbol(
3934 info.GetIsolate(), "KeepAlive#TestObject#staticSaveSameObjectAttribute")
3935 .Set(holder, v8Value);
3936
3937 V8SetReturnValue(info, v8Value);
3938
3939 // [SaveSameObject]
3940 privateSameObject.Set(holder, info.GetReturnValue().Get());
3941 }
3942
3908 static void unscopableLongAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info) { 3943 static void unscopableLongAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info) {
3909 v8::Local<v8::Object> holder = info.Holder(); 3944 v8::Local<v8::Object> holder = info.Holder();
3910 3945
3911 TestObject* impl = V8TestObject::toImpl(holder); 3946 TestObject* impl = V8TestObject::toImpl(holder);
3912 3947
3913 V8SetReturnValueInt(info, impl->unscopableLongAttribute()); 3948 V8SetReturnValueInt(info, impl->unscopableLongAttribute());
3914 } 3949 }
3915 3950
3916 static void unscopableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) { 3951 static void unscopableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) {
3917 v8::Isolate* isolate = info.GetIsolate(); 3952 v8::Isolate* isolate = info.GetIsolate();
(...skipping 6814 matching lines...) Expand 10 before | Expand all | Expand 10 after
10732 } 10767 }
10733 10768
10734 void V8TestObject::sameObjectAttributeAttributeGetterCallback(const v8::Function CallbackInfo<v8::Value>& info) { 10769 void V8TestObject::sameObjectAttributeAttributeGetterCallback(const v8::Function CallbackInfo<v8::Value>& info) {
10735 TestObjectV8Internal::sameObjectAttributeAttributeGetter(info); 10770 TestObjectV8Internal::sameObjectAttributeAttributeGetter(info);
10736 } 10771 }
10737 10772
10738 void V8TestObject::saveSameObjectAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) { 10773 void V8TestObject::saveSameObjectAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) {
10739 TestObjectV8Internal::saveSameObjectAttributeAttributeGetter(info); 10774 TestObjectV8Internal::saveSameObjectAttributeAttributeGetter(info);
10740 } 10775 }
10741 10776
10777 void V8TestObject::staticSaveSameObjectAttributeAttributeGetterCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info) {
10778 TestObjectV8Internal::staticSaveSameObjectAttributeAttributeGetter(info);
10779 }
10780
10742 void V8TestObject::unscopableLongAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) { 10781 void V8TestObject::unscopableLongAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) {
10743 TestObjectV8Internal::unscopableLongAttributeAttributeGetter(info); 10782 TestObjectV8Internal::unscopableLongAttributeAttributeGetter(info);
10744 } 10783 }
10745 10784
10746 void V8TestObject::unscopableLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) { 10785 void V8TestObject::unscopableLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) {
10747 v8::Local<v8::Value> v8Value = info[0]; 10786 v8::Local<v8::Value> v8Value = info[0];
10748 10787
10749 TestObjectV8Internal::unscopableLongAttributeAttributeSetter(v8Value, info); 10788 TestObjectV8Internal::unscopableLongAttributeAttributeSetter(v8Value, info);
10750 } 10789 }
10751 10790
(...skipping 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after
12055 {"treatNullAsNullStringStringAttribute", V8TestObject::treatNullAsNullString StringAttributeAttributeGetterCallback, V8TestObject::treatNullAsNullStringStrin gAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAtt ribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckH older, V8DOMConfiguration::kAllWorlds}, 12094 {"treatNullAsNullStringStringAttribute", V8TestObject::treatNullAsNullString StringAttributeAttributeGetterCallback, V8TestObject::treatNullAsNullStringStrin gAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAtt ribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckH older, V8DOMConfiguration::kAllWorlds},
12056 {"legacyInterfaceTypeCheckingFloatAttribute", V8TestObject::legacyInterfaceT ypeCheckingFloatAttributeAttributeGetterCallback, V8TestObject::legacyInterfaceT ypeCheckingFloatAttributeAttributeSetterCallback, nullptr, nullptr, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfigu ration::kCheckHolder, V8DOMConfiguration::kAllWorlds}, 12095 {"legacyInterfaceTypeCheckingFloatAttribute", V8TestObject::legacyInterfaceT ypeCheckingFloatAttributeAttributeGetterCallback, V8TestObject::legacyInterfaceT ypeCheckingFloatAttributeAttributeSetterCallback, nullptr, nullptr, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfigu ration::kCheckHolder, V8DOMConfiguration::kAllWorlds},
12057 {"legacyInterfaceTypeCheckingTestInterfaceAttribute", V8TestObject::legacyIn terfaceTypeCheckingTestInterfaceAttributeAttributeGetterCallback, V8TestObject:: legacyInterfaceTypeCheckingTestInterfaceAttributeAttributeSetterCallback, nullpt r, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kO nPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds}, 12096 {"legacyInterfaceTypeCheckingTestInterfaceAttribute", V8TestObject::legacyIn terfaceTypeCheckingTestInterfaceAttributeAttributeGetterCallback, V8TestObject:: legacyInterfaceTypeCheckingTestInterfaceAttributeAttributeSetterCallback, nullpt r, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kO nPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds},
12058 {"legacyInterfaceTypeCheckingTestInterfaceOrNullAttribute", V8TestObject::le gacyInterfaceTypeCheckingTestInterfaceOrNullAttributeAttributeGetterCallback, V8 TestObject::legacyInterfaceTypeCheckingTestInterfaceOrNullAttributeAttributeSett erCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DO MConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfigurati on::kAllWorlds}, 12097 {"legacyInterfaceTypeCheckingTestInterfaceOrNullAttribute", V8TestObject::le gacyInterfaceTypeCheckingTestInterfaceOrNullAttributeAttributeGetterCallback, V8 TestObject::legacyInterfaceTypeCheckingTestInterfaceOrNullAttributeAttributeSett erCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DO MConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfigurati on::kAllWorlds},
12059 {"urlStringAttribute", V8TestObject::urlStringAttributeAttributeGetterCallba ck, V8TestObject::urlStringAttributeAttributeSetterCallback, nullptr, nullptr, s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V 8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds}, 12098 {"urlStringAttribute", V8TestObject::urlStringAttributeAttributeGetterCallba ck, V8TestObject::urlStringAttributeAttributeSetterCallback, nullptr, nullptr, s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V 8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds},
12060 {"urlStringAttribute", V8TestObject::urlStringAttributeAttributeGetterCallba ck, V8TestObject::urlStringAttributeAttributeSetterCallback, nullptr, nullptr, s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V 8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds}, 12099 {"urlStringAttribute", V8TestObject::urlStringAttributeAttributeGetterCallba ck, V8TestObject::urlStringAttributeAttributeSetterCallback, nullptr, nullptr, s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V 8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds},
12061 {"unforgeableLongAttribute", V8TestObject::unforgeableLongAttributeAttribute GetterCallback, V8TestObject::unforgeableLongAttributeAttributeSetterCallback, n ullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfig uration::kOnInstance, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAll Worlds}, 12100 {"unforgeableLongAttribute", V8TestObject::unforgeableLongAttributeAttribute GetterCallback, V8TestObject::unforgeableLongAttributeAttributeSetterCallback, n ullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfig uration::kOnInstance, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAll Worlds},
12062 {"measuredLongAttribute", V8TestObject::measuredLongAttributeAttributeGetter Callback, V8TestObject::measuredLongAttributeAttributeSetterCallback, nullptr, n ullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPro totype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds}, 12101 {"measuredLongAttribute", V8TestObject::measuredLongAttributeAttributeGetter Callback, V8TestObject::measuredLongAttributeAttributeSetterCallback, nullptr, n ullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPro totype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds},
12063 {"sameObjectAttribute", V8TestObject::sameObjectAttributeAttributeGetterCall back, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::ReadOnly ), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConf iguration::kAllWorlds}, 12102 {"sameObjectAttribute", V8TestObject::sameObjectAttributeAttributeGetterCall back, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::ReadOnly ), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConf iguration::kAllWorlds},
12064 {"saveSameObjectAttribute", V8TestObject::saveSameObjectAttributeAttributeGe tterCallback, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8:: ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V 8DOMConfiguration::kAllWorlds}, 12103 {"saveSameObjectAttribute", V8TestObject::saveSameObjectAttributeAttributeGe tterCallback, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8:: ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V 8DOMConfiguration::kAllWorlds},
12104 {"staticSaveSameObjectAttribute", V8TestObject::staticSaveSameObjectAttribut eAttributeGetterCallback, nullptr, nullptr, nullptr, static_cast<v8::PropertyAtt ribute>(v8::ReadOnly), V8DOMConfiguration::kOnInterface, V8DOMConfiguration::kCh eckHolder, V8DOMConfiguration::kAllWorlds},
12065 {"unscopableLongAttribute", V8TestObject::unscopableLongAttributeAttributeGe tterCallback, V8TestObject::unscopableLongAttributeAttributeSetterCallback, null ptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration:: kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds}, 12105 {"unscopableLongAttribute", V8TestObject::unscopableLongAttributeAttributeGe tterCallback, V8TestObject::unscopableLongAttributeAttributeSetterCallback, null ptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration:: kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds},
12066 {"testInterfaceAttribute", V8TestObject::testInterfaceAttributeAttributeGett erCallback, V8TestObject::testInterfaceAttributeAttributeSetterCallback, nullptr , nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOn Prototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds}, 12106 {"testInterfaceAttribute", V8TestObject::testInterfaceAttributeAttributeGett erCallback, V8TestObject::testInterfaceAttributeAttributeSetterCallback, nullptr , nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOn Prototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds},
12067 {"testInterfaceGarbageCollectedAttribute", V8TestObject::testInterfaceGarbag eCollectedAttributeAttributeGetterCallback, V8TestObject::testInterfaceGarbageCo llectedAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::Prope rtyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::k CheckHolder, V8DOMConfiguration::kAllWorlds}, 12107 {"testInterfaceGarbageCollectedAttribute", V8TestObject::testInterfaceGarbag eCollectedAttributeAttributeGetterCallback, V8TestObject::testInterfaceGarbageCo llectedAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::Prope rtyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::k CheckHolder, V8DOMConfiguration::kAllWorlds},
12068 {"testInterfaceGarbageCollectedOrNullAttribute", V8TestObject::testInterface GarbageCollectedOrNullAttributeAttributeGetterCallback, V8TestObject::testInterf aceGarbageCollectedOrNullAttributeAttributeSetterCallback, nullptr, nullptr, sta tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8D OMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds}, 12108 {"testInterfaceGarbageCollectedOrNullAttribute", V8TestObject::testInterface GarbageCollectedOrNullAttributeAttributeGetterCallback, V8TestObject::testInterf aceGarbageCollectedOrNullAttributeAttributeSetterCallback, nullptr, nullptr, sta tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8D OMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds},
12069 {"size", V8TestObject::sizeAttributeGetterCallback, nullptr, nullptr, nullpt r, static_cast<v8::PropertyAttribute>(v8::DontEnum | v8::ReadOnly), V8DOMConfigu ration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAll Worlds}, 12109 {"size", V8TestObject::sizeAttributeGetterCallback, nullptr, nullptr, nullpt r, static_cast<v8::PropertyAttribute>(v8::DontEnum | v8::ReadOnly), V8DOMConfigu ration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAll Worlds},
12070 }; 12110 };
12071 12111
12072 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { 12112 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = {
12073 {"unscopableVoidMethod", V8TestObject::unscopableVoidMethodMethodCallback, 0 , v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWorlds}, 12113 {"unscopableVoidMethod", V8TestObject::unscopableVoidMethodMethodCallback, 0 , v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWorlds},
12074 {"voidMethod", V8TestObject::voidMethodMethodCallback, 0, v8::None, V8DOMCon figuration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration:: kDoNotCheckAccess, V8DOMConfiguration::kAllWorlds}, 12114 {"voidMethod", V8TestObject::voidMethodMethodCallback, 0, v8::None, V8DOMCon figuration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration:: kDoNotCheckAccess, V8DOMConfiguration::kAllWorlds},
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
12475 unscopables->CreateDataProperty(context, V8AtomicString(isolate, "unscopable RuntimeEnabledLongAttribute"), v8::True(isolate)).FromJust(); 12515 unscopables->CreateDataProperty(context, V8AtomicString(isolate, "unscopable RuntimeEnabledLongAttribute"), v8::True(isolate)).FromJust();
12476 } 12516 }
12477 if (RuntimeEnabledFeatures::featureNameEnabled()) { 12517 if (RuntimeEnabledFeatures::featureNameEnabled()) {
12478 unscopables->CreateDataProperty(context, V8AtomicString(isolate, "unscopable RuntimeEnabledVoidMethod"), v8::True(isolate)).FromJust(); 12518 unscopables->CreateDataProperty(context, V8AtomicString(isolate, "unscopable RuntimeEnabledVoidMethod"), v8::True(isolate)).FromJust();
12479 } 12519 }
12480 unscopables->CreateDataProperty(context, V8AtomicString(isolate, "unscopableVo idMethod"), v8::True(isolate)).FromJust(); 12520 unscopables->CreateDataProperty(context, V8AtomicString(isolate, "unscopableVo idMethod"), v8::True(isolate)).FromJust();
12481 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F romJust(); 12521 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F romJust();
12482 } 12522 }
12483 12523
12484 } // namespace blink 12524 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698