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

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 4163 matching lines...) Expand 10 before | Expand all | Expand 10 after
4174 V8PrivateProperty::GetSymbol( 4174 V8PrivateProperty::GetSymbol(
4175 info.GetIsolate(), "KeepAlive#TestObject#saveSameObjectAttribute") 4175 info.GetIsolate(), "KeepAlive#TestObject#saveSameObjectAttribute")
4176 .Set(holder, v8Value); 4176 .Set(holder, v8Value);
4177 4177
4178 V8SetReturnValue(info, v8Value); 4178 V8SetReturnValue(info, v8Value);
4179 4179
4180 // [SaveSameObject] 4180 // [SaveSameObject]
4181 privateSameObject.Set(holder, info.GetReturnValue().Get()); 4181 privateSameObject.Set(holder, info.GetReturnValue().Get());
4182 } 4182 }
4183 4183
4184 static void staticSaveSameObjectAttributeAttributeGetter(const v8::FunctionCallb ackInfo<v8::Value>& info) {
4185 v8::Local<v8::Object> holder = info.Holder();
4186
4187 // [SaveSameObject]
4188 // If you see a compile error that
4189 // V8PrivateProperty::GetSameObjectTestObjectStaticSaveSameObjectAttribute
4190 // is not defined, then you need to register your attribute at
4191 // V8_PRIVATE_PROPERTY_FOR_EACH defined in V8PrivateProperty.h as
4192 // X(SameObject, TestObjectStaticSaveSameObjectAttribute)
4193 auto privateSameObject = V8PrivateProperty::GetSameObjectTestObjectStaticSaveS ameObjectAttribute(info.GetIsolate());
4194 {
4195 v8::Local<v8::Value> v8Value = privateSameObject.GetOrEmpty(holder);
4196 if (!v8Value.IsEmpty()) {
4197 V8SetReturnValue(info, v8Value);
4198 return;
4199 }
4200 }
4201
4202 TestInterfaceImplementation* cppValue(WTF::GetPtr(TestObject::staticSaveSameOb jectAttribute()));
4203
4204 // Keep the wrapper object for the return value alive as long as |this|
4205 // object is alive in order to save creation time of the wrapper object.
4206 if (cppValue && DOMDataStore::SetReturnValue(info.GetReturnValue(), cppValue))
4207 return;
4208 v8::Local<v8::Value> v8Value(ToV8(cppValue, holder, info.GetIsolate()));
4209 V8PrivateProperty::GetSymbol(
4210 info.GetIsolate(), "KeepAlive#TestObject#staticSaveSameObjectAttribute")
4211 .Set(holder, v8Value);
4212
4213 V8SetReturnValue(info, v8Value);
4214
4215 // [SaveSameObject]
4216 privateSameObject.Set(holder, info.GetReturnValue().Get());
4217 }
4218
4184 static void unscopableLongAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info) { 4219 static void unscopableLongAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info) {
4185 v8::Local<v8::Object> holder = info.Holder(); 4220 v8::Local<v8::Object> holder = info.Holder();
4186 4221
4187 TestObject* impl = V8TestObject::toImpl(holder); 4222 TestObject* impl = V8TestObject::toImpl(holder);
4188 4223
4189 V8SetReturnValueInt(info, impl->unscopableLongAttribute()); 4224 V8SetReturnValueInt(info, impl->unscopableLongAttribute());
4190 } 4225 }
4191 4226
4192 static void unscopableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) { 4227 static void unscopableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) {
4193 v8::Isolate* isolate = info.GetIsolate(); 4228 v8::Isolate* isolate = info.GetIsolate();
(...skipping 6825 matching lines...) Expand 10 before | Expand all | Expand 10 after
11019 } 11054 }
11020 11055
11021 void V8TestObject::sameObjectAttributeAttributeGetterCallback(const v8::Function CallbackInfo<v8::Value>& info) { 11056 void V8TestObject::sameObjectAttributeAttributeGetterCallback(const v8::Function CallbackInfo<v8::Value>& info) {
11022 TestObjectV8Internal::sameObjectAttributeAttributeGetter(info); 11057 TestObjectV8Internal::sameObjectAttributeAttributeGetter(info);
11023 } 11058 }
11024 11059
11025 void V8TestObject::saveSameObjectAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) { 11060 void V8TestObject::saveSameObjectAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) {
11026 TestObjectV8Internal::saveSameObjectAttributeAttributeGetter(info); 11061 TestObjectV8Internal::saveSameObjectAttributeAttributeGetter(info);
11027 } 11062 }
11028 11063
11064 void V8TestObject::staticSaveSameObjectAttributeAttributeGetterCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info) {
11065 TestObjectV8Internal::staticSaveSameObjectAttributeAttributeGetter(info);
11066 }
11067
11029 void V8TestObject::unscopableLongAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) { 11068 void V8TestObject::unscopableLongAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) {
11030 TestObjectV8Internal::unscopableLongAttributeAttributeGetter(info); 11069 TestObjectV8Internal::unscopableLongAttributeAttributeGetter(info);
11031 } 11070 }
11032 11071
11033 void V8TestObject::unscopableLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) { 11072 void V8TestObject::unscopableLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) {
11034 v8::Local<v8::Value> v8Value = info[0]; 11073 v8::Local<v8::Value> v8Value = info[0];
11035 11074
11036 TestObjectV8Internal::unscopableLongAttributeAttributeSetter(v8Value, info); 11075 TestObjectV8Internal::unscopableLongAttributeAttributeSetter(v8Value, info);
11037 } 11076 }
11038 11077
(...skipping 1591 matching lines...) Expand 10 before | Expand all | Expand 10 after
12630 12669
12631 { "measuredLongAttribute", V8TestObject::measuredLongAttributeAttributeGet terCallback, V8TestObject::measuredLongAttributeAttributeSetterCallback, nullptr , nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOn Prototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds } 12670 { "measuredLongAttribute", V8TestObject::measuredLongAttributeAttributeGet terCallback, V8TestObject::measuredLongAttributeAttributeSetterCallback, nullptr , nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOn Prototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds }
12632 , 12671 ,
12633 12672
12634 { "sameObjectAttribute", V8TestObject::sameObjectAttributeAttributeGetterC allback, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::ReadO nly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMC onfiguration::kAllWorlds } 12673 { "sameObjectAttribute", V8TestObject::sameObjectAttributeAttributeGetterC allback, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::ReadO nly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMC onfiguration::kAllWorlds }
12635 , 12674 ,
12636 12675
12637 { "saveSameObjectAttribute", V8TestObject::saveSameObjectAttributeAttribut eGetterCallback, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v 8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder , V8DOMConfiguration::kAllWorlds } 12676 { "saveSameObjectAttribute", V8TestObject::saveSameObjectAttributeAttribut eGetterCallback, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v 8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder , V8DOMConfiguration::kAllWorlds }
12638 , 12677 ,
12639 12678
12679 { "staticSaveSameObjectAttribute", V8TestObject::staticSaveSameObjectAttri buteAttributeGetterCallback, nullptr, nullptr, nullptr, static_cast<v8::Property Attribute>(v8::ReadOnly), V8DOMConfiguration::kOnInterface, V8DOMConfiguration:: kCheckHolder, V8DOMConfiguration::kAllWorlds }
12680 ,
12681
12640 { "unscopableLongAttribute", V8TestObject::unscopableLongAttributeAttribut eGetterCallback, V8TestObject::unscopableLongAttributeAttributeSetterCallback, n ullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguratio n::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorld s } 12682 { "unscopableLongAttribute", V8TestObject::unscopableLongAttributeAttribut eGetterCallback, V8TestObject::unscopableLongAttributeAttributeSetterCallback, n ullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguratio n::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorld s }
12641 , 12683 ,
12642 12684
12643 { "testInterfaceAttribute", V8TestObject::testInterfaceAttributeAttributeG etterCallback, V8TestObject::testInterfaceAttributeAttributeSetterCallback, null ptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration:: kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds } 12685 { "testInterfaceAttribute", V8TestObject::testInterfaceAttributeAttributeG etterCallback, V8TestObject::testInterfaceAttributeAttributeSetterCallback, null ptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration:: kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds }
12644 , 12686 ,
12645 12687
12646 { "testInterfaceGarbageCollectedAttribute", V8TestObject::testInterfaceGar bageCollectedAttributeAttributeGetterCallback, V8TestObject::testInterfaceGarbag eCollectedAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::Pr opertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration ::kCheckHolder, V8DOMConfiguration::kAllWorlds } 12688 { "testInterfaceGarbageCollectedAttribute", V8TestObject::testInterfaceGar bageCollectedAttributeAttributeGetterCallback, V8TestObject::testInterfaceGarbag eCollectedAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::Pr opertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration ::kCheckHolder, V8DOMConfiguration::kAllWorlds }
12647 , 12689 ,
12648 12690
12649 { "testInterfaceGarbageCollectedOrNullAttribute", V8TestObject::testInterf aceGarbageCollectedOrNullAttributeAttributeGetterCallback, V8TestObject::testInt erfaceGarbageCollectedOrNullAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds } 12691 { "testInterfaceGarbageCollectedOrNullAttribute", V8TestObject::testInterf aceGarbageCollectedOrNullAttributeAttributeGetterCallback, V8TestObject::testInt erfaceGarbageCollectedOrNullAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kAllWorlds }
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
13059 unscopables->CreateDataProperty(context, V8AtomicString(isolate, "unscopable RuntimeEnabledLongAttribute"), v8::True(isolate)).FromJust(); 13101 unscopables->CreateDataProperty(context, V8AtomicString(isolate, "unscopable RuntimeEnabledLongAttribute"), v8::True(isolate)).FromJust();
13060 } 13102 }
13061 if (RuntimeEnabledFeatures::featureNameEnabled()) { 13103 if (RuntimeEnabledFeatures::featureNameEnabled()) {
13062 unscopables->CreateDataProperty(context, V8AtomicString(isolate, "unscopable RuntimeEnabledVoidMethod"), v8::True(isolate)).FromJust(); 13104 unscopables->CreateDataProperty(context, V8AtomicString(isolate, "unscopable RuntimeEnabledVoidMethod"), v8::True(isolate)).FromJust();
13063 } 13105 }
13064 unscopables->CreateDataProperty(context, V8AtomicString(isolate, "unscopableVo idMethod"), v8::True(isolate)).FromJust(); 13106 unscopables->CreateDataProperty(context, V8AtomicString(isolate, "unscopableVo idMethod"), v8::True(isolate)).FromJust();
13065 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F romJust(); 13107 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F romJust();
13066 } 13108 }
13067 13109
13068 } // namespace blink 13110 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698