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

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

Issue 2306023002: binding: Makes WindowProperties.constructor throw a TypeError. (Closed)
Patch Set: Updated a layout test. Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedGlobal.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "V8TestIntegerIndexedPrimaryGlobal.h" 7 #include "V8TestIntegerIndexedPrimaryGlobal.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/V8DOMConfiguration.h" 10 #include "bindings/core/v8/V8DOMConfiguration.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 v8::Local<v8::FunctionTemplate> V8TestIntegerIndexedPrimaryGlobal::domTemplate(v 8::Isolate* isolate, const DOMWrapperWorld& world) 180 v8::Local<v8::FunctionTemplate> V8TestIntegerIndexedPrimaryGlobal::domTemplate(v 8::Isolate* isolate, const DOMWrapperWorld& world)
181 { 181 {
182 return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<Wrapp erTypeInfo*>(&wrapperTypeInfo), installV8TestIntegerIndexedPrimaryGlobalTemplate ); 182 return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<Wrapp erTypeInfo*>(&wrapperTypeInfo), installV8TestIntegerIndexedPrimaryGlobalTemplate );
183 } 183 }
184 184
185 v8::Local<v8::FunctionTemplate> V8TestIntegerIndexedPrimaryGlobal::domTemplateFo rNamedPropertiesObject(v8::Isolate* isolate, const DOMWrapperWorld& world) 185 v8::Local<v8::FunctionTemplate> V8TestIntegerIndexedPrimaryGlobal::domTemplateFo rNamedPropertiesObject(v8::Isolate* isolate, const DOMWrapperWorld& world)
186 { 186 {
187 v8::Local<v8::FunctionTemplate> parentTemplate = V8None::domTemplate(isolate , world); 187 v8::Local<v8::FunctionTemplate> parentTemplate = V8None::domTemplate(isolate , world);
188 188
189 v8::Local<v8::FunctionTemplate> namedPropertiesObjectFunctionTemplate = v8:: FunctionTemplate::New(isolate); 189 v8::Local<v8::FunctionTemplate> namedPropertiesObjectFunctionTemplate = v8:: FunctionTemplate::New(isolate, V8ObjectConstructor::isValidConstructorMode);
190 namedPropertiesObjectFunctionTemplate->SetClassName(v8AtomicString(isolate, "TestIntegerIndexedPrimaryGlobalProperties")); 190 namedPropertiesObjectFunctionTemplate->SetClassName(v8AtomicString(isolate, "TestIntegerIndexedPrimaryGlobalProperties"));
191 namedPropertiesObjectFunctionTemplate->Inherit(parentTemplate); 191 namedPropertiesObjectFunctionTemplate->Inherit(parentTemplate);
192 192
193 v8::Local<v8::ObjectTemplate> namedPropertiesObjectTemplate = namedPropertie sObjectFunctionTemplate->PrototypeTemplate(); 193 v8::Local<v8::ObjectTemplate> namedPropertiesObjectTemplate = namedPropertie sObjectFunctionTemplate->PrototypeTemplate();
194 namedPropertiesObjectTemplate->SetInternalFieldCount(V8TestIntegerIndexedPri maryGlobal::internalFieldCount); 194 namedPropertiesObjectTemplate->SetInternalFieldCount(V8TestIntegerIndexedPri maryGlobal::internalFieldCount);
195 V8DOMConfiguration::setClassString(isolate, namedPropertiesObjectTemplate, " TestIntegerIndexedPrimaryGlobalProperties"); 195 V8DOMConfiguration::setClassString(isolate, namedPropertiesObjectTemplate, " TestIntegerIndexedPrimaryGlobalProperties");
196 v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(TestInteger IndexedPrimaryGlobalV8Internal::namedPropertyGetterCallback, TestIntegerIndexedP rimaryGlobalV8Internal::namedPropertySetterCallback, TestIntegerIndexedPrimaryGl obalV8Internal::namedPropertyQueryCallback, TestIntegerIndexedPrimaryGlobalV8Int ernal::namedPropertyDeleterCallback, TestIntegerIndexedPrimaryGlobalV8Internal:: namedPropertyEnumeratorCallback, v8::Local<v8::Value>(), static_cast<v8::Propert yHandlerFlags>(int(v8::PropertyHandlerFlags::kOnlyInterceptStrings) | int(v8::Pr opertyHandlerFlags::kNonMasking))); 196 v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(TestInteger IndexedPrimaryGlobalV8Internal::namedPropertyGetterCallback, TestIntegerIndexedP rimaryGlobalV8Internal::namedPropertySetterCallback, TestIntegerIndexedPrimaryGl obalV8Internal::namedPropertyQueryCallback, TestIntegerIndexedPrimaryGlobalV8Int ernal::namedPropertyDeleterCallback, TestIntegerIndexedPrimaryGlobalV8Internal:: namedPropertyEnumeratorCallback, v8::Local<v8::Value>(), static_cast<v8::Propert yHandlerFlags>(int(v8::PropertyHandlerFlags::kOnlyInterceptStrings) | int(v8::Pr opertyHandlerFlags::kNonMasking)));
197 namedPropertiesObjectTemplate->SetHandler(namedPropertyHandlerConfig); 197 namedPropertiesObjectTemplate->SetHandler(namedPropertyHandlerConfig);
198 198
199 return namedPropertiesObjectFunctionTemplate; 199 return namedPropertiesObjectFunctionTemplate;
200 } 200 }
201 201
202 bool V8TestIntegerIndexedPrimaryGlobal::hasInstance(v8::Local<v8::Value> v8Value , v8::Isolate* isolate) 202 bool V8TestIntegerIndexedPrimaryGlobal::hasInstance(v8::Local<v8::Value> v8Value , v8::Isolate* isolate)
203 { 203 {
204 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e); 204 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e);
205 } 205 }
206 206
207 v8::Local<v8::Object> V8TestIntegerIndexedPrimaryGlobal::findInstanceInPrototype Chain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) 207 v8::Local<v8::Object> V8TestIntegerIndexedPrimaryGlobal::findInstanceInPrototype Chain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate)
208 { 208 {
209 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 209 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
210 } 210 }
211 211
212 TestIntegerIndexedPrimaryGlobal* V8TestIntegerIndexedPrimaryGlobal::toImplWithTy peCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) 212 TestIntegerIndexedPrimaryGlobal* V8TestIntegerIndexedPrimaryGlobal::toImplWithTy peCheck(v8::Isolate* isolate, v8::Local<v8::Value> value)
213 { 213 {
214 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : nullptr; 214 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : nullptr;
215 } 215 }
216 216
217 } // namespace blink 217 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedGlobal.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698