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

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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 if (UNLIKELY(info.Length() < 1)) { 295 if (UNLIKELY(info.Length() < 1)) {
296 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or("TestTypedefs", 1, info.Length(), info.GetIsolate()), info.GetIsolate()); 296 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or("TestTypedefs", 1, info.Length(), info.GetIsolate()), info.GetIsolate());
297 return; 297 return;
298 } 298 }
299 V8StringResource<> stringArg; 299 V8StringResource<> stringArg;
300 { 300 {
301 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 301 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
302 } 302 }
303 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg); 303 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg);
304 v8::Handle<v8::Object> wrapper = info.Holder(); 304 v8::Handle<v8::Object> wrapper = info.Holder();
305 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl.release(), &V8 TestTypedefs::wrapperTypeInfo, wrapper, info.GetIsolate()); 305 impl.get()->associateWithWrapper(&V8TestTypedefs::wrapperTypeInfo, wrapper, info.GetIsolate());
306 v8SetReturnValue(info, wrapper); 306 v8SetReturnValue(info, wrapper);
307 } 307 }
308 308
309 } // namespace TestTypedefsV8Internal 309 } // namespace TestTypedefsV8Internal
310 310
311 static const V8DOMConfiguration::AttributeConfiguration V8TestTypedefsAttributes [] = { 311 static const V8DOMConfiguration::AttributeConfiguration V8TestTypedefsAttributes [] = {
312 {"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}, 312 {"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},
313 {"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}, 313 {"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},
314 }; 314 };
315 315
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 return 0; 396 return 0;
397 } 397 }
398 398
399 template<> 399 template<>
400 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate) 400 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate)
401 { 401 {
402 return toV8(impl, creationContext, isolate); 402 return toV8(impl, creationContext, isolate);
403 } 403 }
404 404
405 } // namespace blink 405 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698