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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. 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 22 matching lines...) Expand all
33 33
34 void webCoreInitializeScriptWrappableForInterface(blink::TestTypedefs* object) 34 void webCoreInitializeScriptWrappableForInterface(blink::TestTypedefs* object)
35 { 35 {
36 blink::initializeScriptWrappableForInterface(object); 36 blink::initializeScriptWrappableForInterface(object);
37 } 37 }
38 38
39 namespace blink { 39 namespace blink {
40 40
41 const WrapperTypeInfo V8TestTypedefs::wrapperTypeInfo = { gin::kEmbedderBlink, V 8TestTypedefs::domTemplate, V8TestTypedefs::refObject, V8TestTypedefs::derefObje ct, V8TestTypedefs::createPersistentHandle, 0, 0, 0, V8TestTypedefs::installCond itionallyEnabledMethods, V8TestTypedefs::installConditionallyEnabledProperties, 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject }; 41 const WrapperTypeInfo V8TestTypedefs::wrapperTypeInfo = { gin::kEmbedderBlink, V 8TestTypedefs::domTemplate, V8TestTypedefs::refObject, V8TestTypedefs::derefObje ct, V8TestTypedefs::createPersistentHandle, 0, 0, 0, V8TestTypedefs::installCond itionallyEnabledMethods, V8TestTypedefs::installConditionallyEnabledProperties, 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject };
42 42
43 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestTypedefs .h.
44 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
45 // bindings/core/v8/ScriptWrappable.h.
46 const WrapperTypeInfo& TestTypedefs::s_wrapperTypeInfo = V8TestTypedefs::wrapper TypeInfo;
47
43 namespace TestTypedefsV8Internal { 48 namespace TestTypedefsV8Internal {
44 49
45 template <typename T> void V8_USE(T) { } 50 template <typename T> void V8_USE(T) { }
46 51
47 static void uLongLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 52 static void uLongLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info)
48 { 53 {
49 v8::Handle<v8::Object> holder = info.Holder(); 54 v8::Handle<v8::Object> holder = info.Holder();
50 TestTypedefs* impl = V8TestTypedefs::toNative(holder); 55 TestTypedefs* impl = V8TestTypedefs::toNative(holder);
51 v8SetReturnValue(info, static_cast<double>(impl->uLongLongAttribute())); 56 v8SetReturnValue(info, static_cast<double>(impl->uLongLongAttribute()));
52 } 57 }
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 return 0; 421 return 0;
417 } 422 }
418 423
419 template<> 424 template<>
420 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate) 425 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate)
421 { 426 {
422 return toV8(impl, creationContext, isolate); 427 return toV8(impl, creationContext, isolate);
423 } 428 }
424 429
425 } // namespace blink 430 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestTypedefs.h ('k') | Source/build/scripts/templates/InternalRuntimeFlags.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698