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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterfaceAccessors.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 #include "V8TestInterfaceAccessors.h" 8 #include "V8TestInterfaceAccessors.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 v8::Local<v8::Signature> defaultSignature; 144 v8::Local<v8::Signature> defaultSignature;
145 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func tionTemplate, "TestInterfaceAccessors", V8TestInterfaceEmpty::domTemplate(isolat e), V8TestInterfaceAccessors::internalFieldCount, 145 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func tionTemplate, "TestInterfaceAccessors", V8TestInterfaceEmpty::domTemplate(isolat e), V8TestInterfaceAccessors::internalFieldCount,
146 V8TestInterfaceAccessorsAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceAcce ssorsAttributes), 146 V8TestInterfaceAccessorsAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceAcce ssorsAttributes),
147 V8TestInterfaceAccessorsAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceAcces sorsAccessors), 147 V8TestInterfaceAccessorsAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceAcces sorsAccessors),
148 0, 0); 148 0, 0);
149 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 149 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate();
150 ALLOW_UNUSED_LOCAL(instanceTemplate); 150 ALLOW_UNUSED_LOCAL(instanceTemplate);
151 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 151 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
152 ALLOW_UNUSED_LOCAL(prototypeTemplate); 152 ALLOW_UNUSED_LOCAL(prototypeTemplate);
153 153
154 prototypeTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(i solate, "TestInterfaceAccessors"));
155
154 // Custom toString template 156 // Custom toString template
155 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 157 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
156 } 158 }
157 159
158 v8::Local<v8::FunctionTemplate> V8TestInterfaceAccessors::domTemplate(v8::Isolat e* isolate) 160 v8::Local<v8::FunctionTemplate> V8TestInterfaceAccessors::domTemplate(v8::Isolat e* isolate)
159 { 161 {
160 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterfaceAccessorsTemplate); 162 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterfaceAccessorsTemplate);
161 } 163 }
162 164
163 bool V8TestInterfaceAccessors::hasInstance(v8::Local<v8::Value> v8Value, v8::Iso late* isolate) 165 bool V8TestInterfaceAccessors::hasInstance(v8::Local<v8::Value> v8Value, v8::Iso late* isolate)
(...skipping 15 matching lines...) Expand all
179 { 181 {
180 scriptWrappable->toImpl<TestInterfaceAccessors>()->ref(); 182 scriptWrappable->toImpl<TestInterfaceAccessors>()->ref();
181 } 183 }
182 184
183 void V8TestInterfaceAccessors::derefObject(ScriptWrappable* scriptWrappable) 185 void V8TestInterfaceAccessors::derefObject(ScriptWrappable* scriptWrappable)
184 { 186 {
185 scriptWrappable->toImpl<TestInterfaceAccessors>()->deref(); 187 scriptWrappable->toImpl<TestInterfaceAccessors>()->deref();
186 } 188 }
187 189
188 } // namespace blink 190 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698