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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceEmpty.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 20 matching lines...) Expand all
31 class V8TestInterfaceEmpty { 31 class V8TestInterfaceEmpty {
32 public: 32 public:
33 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp e); 33 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp e);
34 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); 34 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*);
35 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType); 35 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType);
36 static TestInterfaceEmpty* toNative(v8::Handle<v8::Object> object) 36 static TestInterfaceEmpty* toNative(v8::Handle<v8::Object> object)
37 { 37 {
38 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex)); 38 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex));
39 } 39 }
40 static void derefObject(void*); 40 static void derefObject(void*);
41 static WrapperTypeInfo wrapperTypeInfo; 41 static const WrapperTypeInfo wrapperTypeInfo;
42 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ; 42 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ;
43 static inline void* toInternalPointer(TestInterfaceEmpty* impl) 43 static inline void* toInternalPointer(TestInterfaceEmpty* impl)
44 { 44 {
45 return impl; 45 return impl;
46 } 46 }
47 47
48 static inline TestInterfaceEmpty* fromInternalPointer(void* object) 48 static inline TestInterfaceEmpty* fromInternalPointer(void* object)
49 { 49 {
50 return static_cast<TestInterfaceEmpty*>(object); 50 return static_cast<TestInterfaceEmpty*>(object);
51 } 51 }
52 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceEmpty*, v8::Isolate*) { } 52 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceEmpty*, v8::Isolate*) { }
53 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec t>, v8::Isolate*) { } 53 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec t>, v8::Isolate*) { }
54 54
55 private: 55 private:
56 friend v8::Handle<v8::Object> wrap(TestInterfaceEmpty*, v8::Handle<v8::Objec t> creationContext, v8::Isolate*); 56 friend v8::Handle<v8::Object> wrap(TestInterfaceEmpty*, v8::Handle<v8::Objec t> creationContext, v8::Isolate*);
57 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterfaceEmpty>, v8::Handle<v8::Object> creationContext, v8::Isolate*); 57 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterfaceEmpty>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
58 }; 58 };
59 59
60 template<> 60 template<>
61 class WrapperTypeTraits<TestInterfaceEmpty > { 61 class WrapperTypeTraits<TestInterfaceEmpty > {
62 public: 62 public:
63 static WrapperTypeInfo* wrapperTypeInfo() { return &V8TestInterfaceEmpty::wr apperTypeInfo; } 63 static const WrapperTypeInfo* wrapperTypeInfo() { return &V8TestInterfaceEmp ty::wrapperTypeInfo; }
64 }; 64 };
65 65
66 inline v8::Handle<v8::Object> wrap(TestInterfaceEmpty* impl, v8::Handle<v8::Obje ct> creationContext, v8::Isolate* isolate) 66 inline v8::Handle<v8::Object> wrap(TestInterfaceEmpty* impl, v8::Handle<v8::Obje ct> creationContext, v8::Isolate* isolate)
67 { 67 {
68 ASSERT(impl); 68 ASSERT(impl);
69 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEmpty>(impl, isolate)); 69 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEmpty>(impl, isolate));
70 return V8TestInterfaceEmpty::createWrapper(impl, creationContext, isolate); 70 return V8TestInterfaceEmpty::createWrapper(impl, creationContext, isolate);
71 } 71 }
72 72
73 inline v8::Handle<v8::Value> toV8(TestInterfaceEmpty* impl, v8::Handle<v8::Objec t> creationContext, v8::Isolate* isolate) 73 inline v8::Handle<v8::Value> toV8(TestInterfaceEmpty* impl, v8::Handle<v8::Objec t> creationContext, v8::Isolate* isolate)
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 template<class CallbackInfo, class Wrappable> 140 template<class CallbackInfo, class Wrappable>
141 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterfaceEmpty > impl, Wrappable* wrappable) 141 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterfaceEmpty > impl, Wrappable* wrappable)
142 { 142 {
143 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 143 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
144 } 144 }
145 145
146 } 146 }
147 147
148 #endif // V8TestInterfaceEmpty_h 148 #endif // V8TestInterfaceEmpty_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.cpp ('k') | Source/bindings/tests/results/V8TestInterfaceEmpty.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698