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

Side by Side Diff: Source/bindings/tests/results/core/V8TestObject.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 "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 12999 matching lines...) Expand 10 before | Expand all | Expand 10 after
13010 "partiallyRuntimeEnabledOverloadedVoidMethod", TestObjectV8Internal::par tiallyRuntimeEnabledOverloadedVoidMethodMethodCallback, 0, TestObjectV8Internal: :partiallyRuntimeEnabledOverloadedVoidMethodMethodLength(), V8DOMConfiguration:: ExposedToAllScripts, 13010 "partiallyRuntimeEnabledOverloadedVoidMethod", TestObjectV8Internal::par tiallyRuntimeEnabledOverloadedVoidMethodMethodCallback, 0, TestObjectV8Internal: :partiallyRuntimeEnabledOverloadedVoidMethodMethodLength(), V8DOMConfiguration:: ExposedToAllScripts,
13011 }; 13011 };
13012 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, v8::None, partiallyRuntimeEnabledOverloadedVoidMethodMethodConfiguration); 13012 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, v8::None, partiallyRuntimeEnabledOverloadedVoidMethodMethodConfiguration);
13013 const V8DOMConfiguration::MethodConfiguration unforgeableVoidMethodMethodCon figuration = { 13013 const V8DOMConfiguration::MethodConfiguration unforgeableVoidMethodMethodCon figuration = {
13014 "unforgeableVoidMethod", TestObjectV8Internal::unforgeableVoidMethodMeth odCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, 13014 "unforgeableVoidMethod", TestObjectV8Internal::unforgeableVoidMethodMeth odCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts,
13015 }; 13015 };
13016 V8DOMConfiguration::installMethod(isolate, instanceTemplate, defaultSignatur e, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly), unforgeabl eVoidMethodMethodConfiguration); 13016 V8DOMConfiguration::installMethod(isolate, instanceTemplate, defaultSignatur e, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly), unforgeabl eVoidMethodMethodConfiguration);
13017 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin gAttribute"), TestObjectV8Internal::staticStringAttributeAttributeGetterCallback , TestObjectV8Internal::staticStringAttributeAttributeSetterCallback, v8::Extern al::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8: :AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 13017 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin gAttribute"), TestObjectV8Internal::staticStringAttributeAttributeGetterCallback , TestObjectV8Internal::staticStringAttributeAttributeSetterCallback, v8::Extern al::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8: :AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
13018 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticLongA ttribute"), TestObjectV8Internal::staticLongAttributeAttributeGetterCallback, Te stObjectV8Internal::staticLongAttributeAttributeSetterCallback, v8::External::Ne w(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::Acces sorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 13018 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticLongA ttribute"), TestObjectV8Internal::staticLongAttributeAttributeGetterCallback, Te stObjectV8Internal::staticLongAttributeAttributeSetterCallback, v8::External::Ne w(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::Acces sorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
13019 13019
13020 prototypeTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(i solate, "TestObject"));
13021
13020 // Custom toString template 13022 // Custom toString template
13021 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 13023 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
13022 } 13024 }
13023 13025
13024 v8::Local<v8::FunctionTemplate> V8TestObject::domTemplate(v8::Isolate* isolate) 13026 v8::Local<v8::FunctionTemplate> V8TestObject::domTemplate(v8::Isolate* isolate)
13025 { 13027 {
13026 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestObjectTemplate); 13028 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestObjectTemplate);
13027 } 13029 }
13028 13030
13029 bool V8TestObject::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* isolat e) 13031 bool V8TestObject::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* isolat e)
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
13590 ScriptState::Scope scope(scriptState); 13592 ScriptState::Scope scope(scriptState);
13591 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 13593 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
13592 if (holder.IsEmpty()) 13594 if (holder.IsEmpty())
13593 return false; 13595 return false;
13594 13596
13595 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 13597 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
13596 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 13598 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
13597 } 13599 }
13598 13600
13599 } // namespace blink 13601 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698