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

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

Issue 256263002: Remove [PerWorldBindings] IDL attribute from non wrapper type attributes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Do not change LogActivity attributes Created 6 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 | 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 TestInterfaceImplementation::setStaticStringAttribute(cppValue); 106 TestInterfaceImplementation::setStaticStringAttribute(cppValue);
107 } 107 }
108 108
109 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 109 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
110 { 110 {
111 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 111 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
112 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeSetter( v8Value, info); 112 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeSetter( v8Value, info);
113 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 113 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
114 } 114 }
115 115
116 static void perWorldBindingsStringAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
117 {
118 v8::Handle<v8::Object> holder = info.Holder();
119 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder);
120 v8SetReturnValueString(info, impl->perWorldBindingsStringAttribute(), info.G etIsolate());
121 }
122
123 static void perWorldBindingsStringAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
124 {
125 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
126 TestInterfaceImplementationV8Internal::perWorldBindingsStringAttributeAttrib uteGetter(info);
127 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
128 }
129
130 static void perWorldBindingsStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
131 {
132 v8::Handle<v8::Object> holder = info.Holder();
133 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder);
134 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
135 impl->setPerWorldBindingsStringAttribute(cppValue);
136 }
137
138 static void perWorldBindingsStringAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
139 {
140 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
141 TestInterfaceImplementationV8Internal::perWorldBindingsStringAttributeAttrib uteSetter(v8Value, info);
142 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
143 }
144
145 static void perWorldBindingsStringAttributeAttributeGetterForMainWorld(const v8: :PropertyCallbackInfo<v8::Value>& info)
146 {
147 v8::Handle<v8::Object> holder = info.Holder();
148 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder);
149 v8SetReturnValueString(info, impl->perWorldBindingsStringAttribute(), info.G etIsolate());
150 }
151
152 static void perWorldBindingsStringAttributeAttributeGetterCallbackForMainWorld(v 8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
153 {
154 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
155 TestInterfaceImplementationV8Internal::perWorldBindingsStringAttributeAttrib uteGetterForMainWorld(info);
156 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
157 }
158
159 static void perWorldBindingsStringAttributeAttributeSetterForMainWorld(v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
160 {
161 v8::Handle<v8::Object> holder = info.Holder();
162 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder);
163 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
164 impl->setPerWorldBindingsStringAttribute(cppValue);
165 }
166
167 static void perWorldBindingsStringAttributeAttributeSetterCallbackForMainWorld(v 8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackIn fo<void>& info)
168 {
169 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
170 TestInterfaceImplementationV8Internal::perWorldBindingsStringAttributeAttrib uteSetterForMainWorld(v8Value, info);
171 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
172 }
173
174 static void implementsStaticReadOnlyLongAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info) 116 static void implementsStaticReadOnlyLongAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info)
175 { 117 {
176 v8SetReturnValueInt(info, TestInterfaceImplementation::implementsStaticReadO nlyLongAttribute()); 118 v8SetReturnValueInt(info, TestInterfaceImplementation::implementsStaticReadO nlyLongAttribute());
177 } 119 }
178 120
179 static void implementsStaticReadOnlyLongAttributeAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 121 static void implementsStaticReadOnlyLongAttributeAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
180 { 122 {
181 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 123 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
182 TestInterfaceImplementationV8Internal::implementsStaticReadOnlyLongAttribute AttributeGetter(info); 124 TestInterfaceImplementationV8Internal::implementsStaticReadOnlyLongAttribute AttributeGetter(info);
183 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 125 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 if (!DOMDataStore::containsWrapper<V8TestInterface>(referencedName, isol ate)) 1119 if (!DOMDataStore::containsWrapper<V8TestInterface>(referencedName, isol ate))
1178 wrap(referencedName, creationContext, isolate); 1120 wrap(referencedName, creationContext, isolate);
1179 DOMDataStore::setWrapperReference<V8TestInterface>(wrapper, referencedNa me, isolate); 1121 DOMDataStore::setWrapperReference<V8TestInterface>(wrapper, referencedNa me, isolate);
1180 } 1122 }
1181 setObjectGroup(object, wrapper, isolate); 1123 setObjectGroup(object, wrapper, isolate);
1182 } 1124 }
1183 1125
1184 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute s[] = { 1126 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute s[] = {
1185 {"testInterfaceAttribute", TestInterfaceImplementationV8Internal::testInterf aceAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::test InterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContro l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 1127 {"testInterfaceAttribute", TestInterfaceImplementationV8Internal::testInterf aceAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::test InterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContro l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
1186 {"testImplementedAsConstructorAttribute", TestInterfaceImplementationV8Inter nal::TestInterfaceImplementationConstructorGetter, TestInterfaceImplementationV8 Internal::TestInterfaceImplementationReplaceableAttributeSetterCallback, 0, 0, c onst_cast<WrapperTypeInfo*>(&V8TestImplementedAs::wrapperTypeInfo), static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum ), 0 /* on instance */}, 1128 {"testImplementedAsConstructorAttribute", TestInterfaceImplementationV8Inter nal::TestInterfaceImplementationConstructorGetter, TestInterfaceImplementationV8 Internal::TestInterfaceImplementationReplaceableAttributeSetterCallback, 0, 0, c onst_cast<WrapperTypeInfo*>(&V8TestImplementedAs::wrapperTypeInfo), static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum ), 0 /* on instance */},
1187 {"perWorldBindingsStringAttribute", TestInterfaceImplementationV8Internal::p erWorldBindingsStringAttributeAttributeGetterCallback, TestInterfaceImplementati onV8Internal::perWorldBindingsStringAttributeAttributeSetterCallback, TestInterf aceImplementationV8Internal::perWorldBindingsStringAttributeAttributeGetterCallb ackForMainWorld, TestInterfaceImplementationV8Internal::perWorldBindingsStringAt tributeAttributeSetterCallbackForMainWorld, 0, static_cast<v8::AccessControl>(v8 ::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
1188 {"implementsReadonlyStringAttribute", TestInterfaceImplementationV8Internal: :implementsReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */}, 1129 {"implementsReadonlyStringAttribute", TestInterfaceImplementationV8Internal: :implementsReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */},
1189 {"implementsStringAttribute", TestInterfaceImplementationV8Internal::impleme ntsStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal ::implementsStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acc essControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 1130 {"implementsStringAttribute", TestInterfaceImplementationV8Internal::impleme ntsStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal ::implementsStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acc essControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
1190 {"implementsNodeAttribute", TestInterfaceImplementationV8Internal::implement sNodeAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im plementsNodeAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instan ce */}, 1131 {"implementsNodeAttribute", TestInterfaceImplementationV8Internal::implement sNodeAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im plementsNodeAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instan ce */},
1191 {"implementsEventHandlerAttribute", TestInterfaceImplementationV8Internal::i mplementsEventHandlerAttributeAttributeGetterCallback, TestInterfaceImplementati onV8Internal::implementsEventHandlerAttributeAttributeSetterCallback, 0, 0, 0, s tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v 8::None), 0 /* on instance */}, 1132 {"implementsEventHandlerAttribute", TestInterfaceImplementationV8Internal::i mplementsEventHandlerAttributeAttributeGetterCallback, TestInterfaceImplementati onV8Internal::implementsEventHandlerAttributeAttributeSetterCallback, 0, 0, 0, s tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v 8::None), 0 /* on instance */},
1192 {"implements3StringAttribute", TestInterfaceImplementationV8Internal::implem ents3StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern al::implements3StringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8:: AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 1133 {"implements3StringAttribute", TestInterfaceImplementationV8Internal::implem ents3StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern al::implements3StringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8:: AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
1193 }; 1134 };
1194 1135
1195 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { 1136 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = {
1196 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, 1137 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1},
1197 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld, 0}, 1138 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld, 0},
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 } 1313 }
1373 1314
1374 template<> 1315 template<>
1375 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate) 1316 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate)
1376 { 1317 {
1377 return toV8(impl, creationContext, isolate); 1318 return toV8(impl, creationContext, isolate);
1378 } 1319 }
1379 1320
1380 } // namespace WebCore 1321 } // namespace WebCore
1381 #endif // ENABLE(CONDITION) 1322 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698