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

Side by Side Diff: Source/bindings/tests/results/V8TestCustomAccessors.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 V8TestCustomAccessors { 31 class V8TestCustomAccessors {
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 TestCustomAccessors* toNative(v8::Handle<v8::Object> object) 36 static TestCustomAccessors* 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 void indexedPropertyGetterCustom(uint32_t, const v8::PropertyCallback Info<v8::Value>&); 42 static void indexedPropertyGetterCustom(uint32_t, const v8::PropertyCallback Info<v8::Value>&);
43 static void indexedPropertySetterCustom(uint32_t, v8::Local<v8::Value>, cons t v8::PropertyCallbackInfo<v8::Value>&); 43 static void indexedPropertySetterCustom(uint32_t, v8::Local<v8::Value>, cons t v8::PropertyCallbackInfo<v8::Value>&);
44 static void indexedPropertyDeleterCustom(uint32_t, const v8::PropertyCallbac kInfo<v8::Boolean>&); 44 static void indexedPropertyDeleterCustom(uint32_t, const v8::PropertyCallbac kInfo<v8::Boolean>&);
45 static void namedPropertyGetterCustom(v8::Local<v8::String>, const v8::Prope rtyCallbackInfo<v8::Value>&); 45 static void namedPropertyGetterCustom(v8::Local<v8::String>, const v8::Prope rtyCallbackInfo<v8::Value>&);
46 static void namedPropertySetterCustom(v8::Local<v8::String>, v8::Local<v8::V alue>, const v8::PropertyCallbackInfo<v8::Value>&); 46 static void namedPropertySetterCustom(v8::Local<v8::String>, v8::Local<v8::V alue>, const v8::PropertyCallbackInfo<v8::Value>&);
47 static void namedPropertyDeleterCustom(v8::Local<v8::String>, const v8::Prop ertyCallbackInfo<v8::Boolean>&); 47 static void namedPropertyDeleterCustom(v8::Local<v8::String>, const v8::Prop ertyCallbackInfo<v8::Boolean>&);
48 static void namedPropertyEnumeratorCustom(const v8::PropertyCallbackInfo<v8: :Array>&); 48 static void namedPropertyEnumeratorCustom(const v8::PropertyCallbackInfo<v8: :Array>&);
49 static void namedPropertyQueryCustom(v8::Local<v8::String>, const v8::Proper tyCallbackInfo<v8::Integer>&); 49 static void namedPropertyQueryCustom(v8::Local<v8::String>, const v8::Proper tyCallbackInfo<v8::Integer>&);
50 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ; 50 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ;
51 static inline void* toInternalPointer(TestCustomAccessors* impl) 51 static inline void* toInternalPointer(TestCustomAccessors* impl)
52 { 52 {
53 return impl; 53 return impl;
54 } 54 }
55 55
56 static inline TestCustomAccessors* fromInternalPointer(void* object) 56 static inline TestCustomAccessors* fromInternalPointer(void* object)
57 { 57 {
58 return static_cast<TestCustomAccessors*>(object); 58 return static_cast<TestCustomAccessors*>(object);
59 } 59 }
60 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestC ustomAccessors*, v8::Isolate*) { } 60 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestC ustomAccessors*, v8::Isolate*) { }
61 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec t>, v8::Isolate*) { } 61 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec t>, v8::Isolate*) { }
62 62
63 private: 63 private:
64 friend v8::Handle<v8::Object> wrap(TestCustomAccessors*, v8::Handle<v8::Obje ct> creationContext, v8::Isolate*); 64 friend v8::Handle<v8::Object> wrap(TestCustomAccessors*, v8::Handle<v8::Obje ct> creationContext, v8::Isolate*);
65 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestCustomAccessors>, v8::Handle<v8::Object> creationContext, v8::Isolate*); 65 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestCustomAccessors>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
66 }; 66 };
67 67
68 template<> 68 template<>
69 class WrapperTypeTraits<TestCustomAccessors > { 69 class WrapperTypeTraits<TestCustomAccessors > {
70 public: 70 public:
71 static WrapperTypeInfo* wrapperTypeInfo() { return &V8TestCustomAccessors::w rapperTypeInfo; } 71 static const WrapperTypeInfo* wrapperTypeInfo() { return &V8TestCustomAccess ors::wrapperTypeInfo; }
72 }; 72 };
73 73
74 inline v8::Handle<v8::Object> wrap(TestCustomAccessors* impl, v8::Handle<v8::Obj ect> creationContext, v8::Isolate* isolate) 74 inline v8::Handle<v8::Object> wrap(TestCustomAccessors* impl, v8::Handle<v8::Obj ect> creationContext, v8::Isolate* isolate)
75 { 75 {
76 ASSERT(impl); 76 ASSERT(impl);
77 ASSERT(!DOMDataStore::containsWrapper<V8TestCustomAccessors>(impl, isolate)) ; 77 ASSERT(!DOMDataStore::containsWrapper<V8TestCustomAccessors>(impl, isolate)) ;
78 return V8TestCustomAccessors::createWrapper(impl, creationContext, isolate); 78 return V8TestCustomAccessors::createWrapper(impl, creationContext, isolate);
79 } 79 }
80 80
81 inline v8::Handle<v8::Value> toV8(TestCustomAccessors* impl, v8::Handle<v8::Obje ct> creationContext, v8::Isolate* isolate) 81 inline v8::Handle<v8::Value> toV8(TestCustomAccessors* impl, v8::Handle<v8::Obje ct> creationContext, v8::Isolate* isolate)
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 template<class CallbackInfo, class Wrappable> 148 template<class CallbackInfo, class Wrappable>
149 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stCustomAccessors > impl, Wrappable* wrappable) 149 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stCustomAccessors > impl, Wrappable* wrappable)
150 { 150 {
151 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 151 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
152 } 152 }
153 153
154 } 154 }
155 155
156 #endif // V8TestCustomAccessors_h 156 #endif // V8TestCustomAccessors_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestConstants.cpp ('k') | Source/bindings/tests/results/V8TestCustomAccessors.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698