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

Side by Side Diff: Source/bindings/tests/results/core/V8TestSpecialOperations.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 "V8TestSpecialOperations.h" 8 #include "V8TestSpecialOperations.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 167 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate();
168 ALLOW_UNUSED_LOCAL(instanceTemplate); 168 ALLOW_UNUSED_LOCAL(instanceTemplate);
169 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 169 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
170 ALLOW_UNUSED_LOCAL(prototypeTemplate); 170 ALLOW_UNUSED_LOCAL(prototypeTemplate);
171 { 171 {
172 v8::NamedPropertyHandlerConfiguration config(TestSpecialOperationsV8Inte rnal::namedPropertyGetterCallback, TestSpecialOperationsV8Internal::namedPropert ySetterCallback, TestSpecialOperationsV8Internal::namedPropertyQueryCallback, 0, TestSpecialOperationsV8Internal::namedPropertyEnumeratorCallback); 172 v8::NamedPropertyHandlerConfiguration config(TestSpecialOperationsV8Inte rnal::namedPropertyGetterCallback, TestSpecialOperationsV8Internal::namedPropert ySetterCallback, TestSpecialOperationsV8Internal::namedPropertyQueryCallback, 0, TestSpecialOperationsV8Internal::namedPropertyEnumeratorCallback);
173 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings)) ; 173 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings)) ;
174 functionTemplate->InstanceTemplate()->SetHandler(config); 174 functionTemplate->InstanceTemplate()->SetHandler(config);
175 } 175 }
176 176
177 prototypeTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(i solate, "TestSpecialOperations"));
178
177 // Custom toString template 179 // Custom toString template
178 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 180 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
179 } 181 }
180 182
181 v8::Local<v8::FunctionTemplate> V8TestSpecialOperations::domTemplate(v8::Isolate * isolate) 183 v8::Local<v8::FunctionTemplate> V8TestSpecialOperations::domTemplate(v8::Isolate * isolate)
182 { 184 {
183 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestSpecialOperationsTemplate); 185 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestSpecialOperationsTemplate);
184 } 186 }
185 187
186 bool V8TestSpecialOperations::hasInstance(v8::Local<v8::Value> v8Value, v8::Isol ate* isolate) 188 bool V8TestSpecialOperations::hasInstance(v8::Local<v8::Value> v8Value, v8::Isol ate* isolate)
(...skipping 15 matching lines...) Expand all
202 { 204 {
203 scriptWrappable->toImpl<TestSpecialOperations>()->ref(); 205 scriptWrappable->toImpl<TestSpecialOperations>()->ref();
204 } 206 }
205 207
206 void V8TestSpecialOperations::derefObject(ScriptWrappable* scriptWrappable) 208 void V8TestSpecialOperations::derefObject(ScriptWrappable* scriptWrappable)
207 { 209 {
208 scriptWrappable->toImpl<TestSpecialOperations>()->deref(); 210 scriptWrappable->toImpl<TestSpecialOperations>()->deref();
209 } 211 }
210 212
211 } // namespace blink 213 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698