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

Side by Side Diff: Source/bindings/tests/results/core/V8TestNode.cpp

Issue 1017733003: [DO NOT LAND] Set @@toStringTag for DOM object prototypes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More test rebaselines Created 5 years, 9 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 "V8TestNode.h" 8 #include "V8TestNode.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 0, 0, 204 0, 0,
205 V8TestNodeAccessors, WTF_ARRAY_LENGTH(V8TestNodeAccessors), 205 V8TestNodeAccessors, WTF_ARRAY_LENGTH(V8TestNodeAccessors),
206 0, 0); 206 0, 0);
207 functionTemplate->SetCallHandler(V8TestNode::constructorCallback); 207 functionTemplate->SetCallHandler(V8TestNode::constructorCallback);
208 functionTemplate->SetLength(0); 208 functionTemplate->SetLength(0);
209 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 209 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate();
210 ALLOW_UNUSED_LOCAL(instanceTemplate); 210 ALLOW_UNUSED_LOCAL(instanceTemplate);
211 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 211 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
212 ALLOW_UNUSED_LOCAL(prototypeTemplate); 212 ALLOW_UNUSED_LOCAL(prototypeTemplate);
213 213
214 instanceTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(is olate, "TestNode"));
215
216 prototypeTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(i solate, "TestNodePrototype"));
217
214 // Custom toString template 218 // Custom toString template
215 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 219 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
216 } 220 }
217 221
218 v8::Local<v8::FunctionTemplate> V8TestNode::domTemplate(v8::Isolate* isolate) 222 v8::Local<v8::FunctionTemplate> V8TestNode::domTemplate(v8::Isolate* isolate)
219 { 223 {
220 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestNodeTemplate); 224 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestNodeTemplate);
221 } 225 }
222 226
223 bool V8TestNode::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) 227 bool V8TestNode::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* isolate)
(...skipping 19 matching lines...) Expand all
243 } 247 }
244 248
245 void V8TestNode::derefObject(ScriptWrappable* scriptWrappable) 249 void V8TestNode::derefObject(ScriptWrappable* scriptWrappable)
246 { 250 {
247 #if !ENABLE(OILPAN) 251 #if !ENABLE(OILPAN)
248 scriptWrappable->toImpl<TestNode>()->deref(); 252 scriptWrappable->toImpl<TestNode>()->deref();
249 #endif 253 #endif
250 } 254 }
251 255
252 } // namespace blink 256 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698