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

Side by Side Diff: Source/bindings/tests/results/modules/V8TestInterface5.cpp

Issue 1017733003: [DO NOT LAND] Set @@toStringTag for DOM object prototypes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test expectations Created 5 years, 6 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 "V8TestInterface5.h" 9 #include "V8TestInterface5.h"
10 10
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 "windowExposedStaticMethod", TestInterface5ImplementationV8Internal: :windowExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAll Scripts, 984 "windowExposedStaticMethod", TestInterface5ImplementationV8Internal: :windowExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAll Scripts,
985 }; 985 };
986 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v 8::Signature>(), v8::None, windowExposedStaticMethodMethodConfiguration); 986 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v 8::Signature>(), v8::None, windowExposedStaticMethodMethodConfiguration);
987 } 987 }
988 const V8DOMConfiguration::MethodConfiguration toStringMethodConfiguration = { 988 const V8DOMConfiguration::MethodConfiguration toStringMethodConfiguration = {
989 "toString", TestInterface5ImplementationV8Internal::toStringMethodCallba ck, 0, 0, V8DOMConfiguration::ExposedToAllScripts, 989 "toString", TestInterface5ImplementationV8Internal::toStringMethodCallba ck, 0, 0, V8DOMConfiguration::ExposedToAllScripts,
990 }; 990 };
991 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringM ethodConfiguration); 991 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringM ethodConfiguration);
992 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin gAttribute"), TestInterface5ImplementationV8Internal::staticStringAttributeAttri buteGetterCallback, TestInterface5ImplementationV8Internal::staticStringAttribut eAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::Propert yAttribute>(v8::None), v8::Local<v8::AccessorSignature>(), static_cast<v8::Acces sControl>(v8::DEFAULT)); 992 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin gAttribute"), TestInterface5ImplementationV8Internal::staticStringAttributeAttri buteGetterCallback, TestInterface5ImplementationV8Internal::staticStringAttribut eAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::Propert yAttribute>(v8::None), v8::Local<v8::AccessorSignature>(), static_cast<v8::Acces sControl>(v8::DEFAULT));
993 993
994 prototypeTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(i solate, "TestInterface5"));
995
994 // Custom toString template 996 // Custom toString template
995 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 997 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
996 } 998 }
997 999
998 v8::Local<v8::FunctionTemplate> V8TestInterface5::domTemplate(v8::Isolate* isola te) 1000 v8::Local<v8::FunctionTemplate> V8TestInterface5::domTemplate(v8::Isolate* isola te)
999 { 1001 {
1000 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterface5Template); 1002 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterface5Template);
1001 } 1003 }
1002 1004
1003 bool V8TestInterface5::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* is olate) 1005 bool V8TestInterface5::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* is olate)
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); 1064 scriptWrappable->toImpl<TestInterface5Implementation>()->ref();
1063 } 1065 }
1064 1066
1065 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) 1067 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable)
1066 { 1068 {
1067 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); 1069 scriptWrappable->toImpl<TestInterface5Implementation>()->deref();
1068 } 1070 }
1069 1071
1070 } // namespace blink 1072 } // namespace blink
1071 #endif // ENABLE(CONDITION) 1073 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698