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

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

Issue 606653006: bindings: Adds DOMArrayBuffer, etc. as thin wrappers for ArrayBuffer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 2 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 "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 1971 matching lines...) Expand 10 before | Expand all | Expand 10 after
1982 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e); 1982 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e);
1983 } 1983 }
1984 1984
1985 v8::Handle<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Handle< v8::Value> v8Value, v8::Isolate* isolate) 1985 v8::Handle<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Handle< v8::Value> v8Value, v8::Isolate* isolate)
1986 { 1986 {
1987 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 1987 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
1988 } 1988 }
1989 1989
1990 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i solate, v8::Handle<v8::Value> value) 1990 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i solate, v8::Handle<v8::Value> value)
1991 { 1991 {
1992 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle <v8::Object>::Cast(value))->toImpl<TestInterfaceImplementation>() : 0; 1992 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val ue)) : 0;
1993 } 1993 }
1994 1994
1995 void V8TestInterface::installConditionallyEnabledProperties(v8::Handle<v8::Objec t> instanceObject, v8::Isolate* isolate) 1995 void V8TestInterface::installConditionallyEnabledProperties(v8::Handle<v8::Objec t> instanceObject, v8::Isolate* isolate)
1996 { 1996 {
1997 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance Object->GetPrototype()); 1997 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance Object->GetPrototype());
1998 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext()); 1998 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext());
1999 1999
2000 if (context && (context->isWorkerGlobalScope())) { 2000 if (context && (context->isWorkerGlobalScope())) {
2001 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 2001 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
2002 {"workerExposedAttribute", TestInterfaceImplementationV8Internal::worker ExposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: workerExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; 2002 {"workerExposedAttribute", TestInterfaceImplementationV8Internal::worker ExposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: workerExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance};
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
2163 2163
2164 ScriptState::Scope scope(scriptState); 2164 ScriptState::Scope scope(scriptState);
2165 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 2165 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
2166 2166
2167 ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttribut e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState ->isolate()); 2167 ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttribut e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState ->isolate());
2168 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestInterfaceImplementation", "stringAttribute", holder, v8String(s criptState->isolate(), cppValue)); 2168 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestInterfaceImplementation", "stringAttribute", holder, v8String(s criptState->isolate(), cppValue));
2169 } 2169 }
2170 2170
2171 } // namespace blink 2171 } // namespace blink
2172 #endif // ENABLE(CONDITION) 2172 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698