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

Side by Side Diff: Source/bindings/tests/results/V8Float64Array.h

Issue 40433002: Make wrapperTypeInfo static member const in bindings classes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 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
OLDNEW
1 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 21 matching lines...) Expand all
32 class V8Float64Array { 32 class V8Float64Array {
33 public: 33 public:
34 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp e); 34 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp e);
35 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); 35 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*);
36 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType); 36 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType);
37 static Float64Array* toNative(v8::Handle<v8::Object> object) 37 static Float64Array* toNative(v8::Handle<v8::Object> object)
38 { 38 {
39 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex)); 39 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex));
40 } 40 }
41 static void derefObject(void*); 41 static void derefObject(void*);
42 static WrapperTypeInfo wrapperTypeInfo; 42 static const WrapperTypeInfo wrapperTypeInfo;
43 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); 43 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
44 static void indexedPropertyGetterCustom(uint32_t, const v8::PropertyCallback Info<v8::Value>&); 44 static void indexedPropertyGetterCustom(uint32_t, const v8::PropertyCallback Info<v8::Value>&);
45 static void indexedPropertySetterCustom(uint32_t, v8::Local<v8::Value>, cons t v8::PropertyCallbackInfo<v8::Value>&); 45 static void indexedPropertySetterCustom(uint32_t, v8::Local<v8::Value>, cons t v8::PropertyCallbackInfo<v8::Value>&);
46 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ; 46 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ;
47 static inline void* toInternalPointer(Float64Array* impl) 47 static inline void* toInternalPointer(Float64Array* impl)
48 { 48 {
49 return V8ArrayBufferView::toInternalPointer(impl); 49 return V8ArrayBufferView::toInternalPointer(impl);
50 } 50 }
51 51
52 static inline Float64Array* fromInternalPointer(void* object) 52 static inline Float64Array* fromInternalPointer(void* object)
53 { 53 {
54 return static_cast<Float64Array*>(V8ArrayBufferView::fromInternalPointer (object)); 54 return static_cast<Float64Array*>(V8ArrayBufferView::fromInternalPointer (object));
55 } 55 }
56 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, Float 64Array*, v8::Isolate*) { } 56 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, Float 64Array*, v8::Isolate*) { }
57 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec t>, v8::Isolate*) { } 57 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec t>, v8::Isolate*) { }
58 58
59 private: 59 private:
60 friend v8::Handle<v8::Object> wrap(Float64Array*, v8::Handle<v8::Object> cre ationContext, v8::Isolate*); 60 friend v8::Handle<v8::Object> wrap(Float64Array*, v8::Handle<v8::Object> cre ationContext, v8::Isolate*);
61 static v8::Handle<v8::Object> createWrapper(PassRefPtr<Float64Array>, v8::Ha ndle<v8::Object> creationContext, v8::Isolate*); 61 static v8::Handle<v8::Object> createWrapper(PassRefPtr<Float64Array>, v8::Ha ndle<v8::Object> creationContext, v8::Isolate*);
62 }; 62 };
63 63
64 template<> 64 template<>
65 class WrapperTypeTraits<Float64Array > { 65 class WrapperTypeTraits<Float64Array > {
66 public: 66 public:
67 static WrapperTypeInfo* wrapperTypeInfo() { return &V8Float64Array::wrapperT ypeInfo; } 67 static const WrapperTypeInfo* wrapperTypeInfo() { return &V8Float64Array::wr apperTypeInfo; }
68 }; 68 };
69 69
70 v8::Handle<v8::Object> wrap(Float64Array* impl, v8::Handle<v8::Object> creationC ontext, v8::Isolate*); 70 v8::Handle<v8::Object> wrap(Float64Array* impl, v8::Handle<v8::Object> creationC ontext, v8::Isolate*);
71 71
72 inline v8::Handle<v8::Value> toV8(Float64Array* impl, v8::Handle<v8::Object> cre ationContext, v8::Isolate* isolate) 72 inline v8::Handle<v8::Value> toV8(Float64Array* impl, v8::Handle<v8::Object> cre ationContext, v8::Isolate* isolate)
73 { 73 {
74 if (UNLIKELY(!impl)) 74 if (UNLIKELY(!impl))
75 return v8NullWithCheck(isolate); 75 return v8NullWithCheck(isolate);
76 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8Float64Array>(imp l, isolate); 76 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8Float64Array>(imp l, isolate);
77 if (!wrapper.IsEmpty()) 77 if (!wrapper.IsEmpty())
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 template<class CallbackInfo, class Wrappable> 139 template<class CallbackInfo, class Wrappable>
140 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Fl oat64Array > impl, Wrappable* wrappable) 140 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Fl oat64Array > impl, Wrappable* wrappable)
141 { 141 {
142 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 142 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
143 } 143 }
144 144
145 } 145 }
146 146
147 #endif // V8Float64Array_h 147 #endif // V8Float64Array_h
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface_base.cpp ('k') | Source/bindings/tests/results/V8Float64Array.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698