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

Side by Side Diff: Source/bindings/tests/results/V8TestTypedefs.cpp

Issue 542113003: bindings: Introduces ScriptWrappable::associateWithWrapper in addition to wrap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 "V8TestTypedefs.h" 8 #include "V8TestTypedefs.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 if (UNLIKELY(info.Length() < 1)) { 281 if (UNLIKELY(info.Length() < 1)) {
282 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or("TestTypedefs", 1, info.Length(), info.GetIsolate()), info.GetIsolate()); 282 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or("TestTypedefs", 1, info.Length(), info.GetIsolate()), info.GetIsolate());
283 return; 283 return;
284 } 284 }
285 V8StringResource<> stringArg; 285 V8StringResource<> stringArg;
286 { 286 {
287 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 287 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
288 } 288 }
289 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg); 289 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg);
290 v8::Handle<v8::Object> wrapper = info.Holder(); 290 v8::Handle<v8::Object> wrapper = info.Holder();
291 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl.release(), &V8 TestTypedefs::wrapperTypeInfo, wrapper, info.GetIsolate()); 291 impl->associateWithWrapper(&V8TestTypedefs::wrapperTypeInfo, wrapper, info.G etIsolate());
292 v8SetReturnValue(info, wrapper); 292 v8SetReturnValue(info, wrapper);
293 } 293 }
294 294
295 } // namespace TestTypedefsV8Internal 295 } // namespace TestTypedefsV8Internal
296 296
297 static const V8DOMConfiguration::AttributeConfiguration V8TestTypedefsAttributes [] = { 297 static const V8DOMConfiguration::AttributeConfiguration V8TestTypedefsAttributes [] = {
298 {"uLongLongAttribute", TestTypedefsV8Internal::uLongLongAttributeAttributeGe tterCallback, TestTypedefsV8Internal::uLongLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration ::OnInstance}, 298 {"uLongLongAttribute", TestTypedefsV8Internal::uLongLongAttributeAttributeGe tterCallback, TestTypedefsV8Internal::uLongLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration ::OnInstance},
299 {"tAttribute", TestTypedefsV8Internal::TestTypedefsConstructorGetter, TestTy pedefsV8Internal::TestTypedefsForceSetAttributeOnThisCallback, 0, 0, const_cast< WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 299 {"tAttribute", TestTypedefsV8Internal::TestTypedefsConstructorGetter, TestTy pedefsV8Internal::TestTypedefsForceSetAttributeOnThisCallback, 0, 0, const_cast< WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
300 }; 300 };
301 301
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 return 0; 382 return 0;
383 } 383 }
384 384
385 template<> 385 template<>
386 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate) 386 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate)
387 { 387 {
388 return toV8(impl, creationContext, isolate); 388 return toV8(impl, creationContext, isolate);
389 } 389 }
390 390
391 } // namespace blink 391 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698