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

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

Issue 39393004: IDL compiler: rename WrapperTypeInfo info => wrapperTypeInfo (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
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 13 matching lines...) Expand all
24 #include "bindings/tests/idls/TestNamedConstructor.h" 24 #include "bindings/tests/idls/TestNamedConstructor.h"
25 #include "bindings/v8/V8Binding.h" 25 #include "bindings/v8/V8Binding.h"
26 #include "bindings/v8/V8DOMWrapper.h" 26 #include "bindings/v8/V8DOMWrapper.h"
27 #include "bindings/v8/WrapperTypeInfo.h" 27 #include "bindings/v8/WrapperTypeInfo.h"
28 28
29 namespace WebCore { 29 namespace WebCore {
30 30
31 class V8TestNamedConstructorConstructor { 31 class V8TestNamedConstructorConstructor {
32 public: 32 public:
33 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType); 33 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType);
34 static WrapperTypeInfo info; 34 static WrapperTypeInfo wrapperTypeInfo;
35 }; 35 };
36 36
37 class V8TestNamedConstructor { 37 class V8TestNamedConstructor {
38 public: 38 public:
39 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp e); 39 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp e);
40 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); 40 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*);
41 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType); 41 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType);
42 static TestNamedConstructor* toNative(v8::Handle<v8::Object> object) 42 static TestNamedConstructor* toNative(v8::Handle<v8::Object> object)
43 { 43 {
44 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex)); 44 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex));
45 } 45 }
46 static void derefObject(void*); 46 static void derefObject(void*);
47 static WrapperTypeInfo info; 47 static WrapperTypeInfo wrapperTypeInfo;
48 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); 48 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>);
49 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ; 49 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ;
50 static inline void* toInternalPointer(TestNamedConstructor* impl) 50 static inline void* toInternalPointer(TestNamedConstructor* impl)
51 { 51 {
52 return impl; 52 return impl;
53 } 53 }
54 54
55 static inline TestNamedConstructor* fromInternalPointer(void* object) 55 static inline TestNamedConstructor* fromInternalPointer(void* object)
56 { 56 {
57 return static_cast<TestNamedConstructor*>(object); 57 return static_cast<TestNamedConstructor*>(object);
58 } 58 }
59 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestN amedConstructor*, v8::Isolate*) { } 59 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestN amedConstructor*, v8::Isolate*) { }
60 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec t>, v8::Isolate*) { } 60 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec t>, v8::Isolate*) { }
61 61
62 private: 62 private:
63 friend v8::Handle<v8::Object> wrap(TestNamedConstructor*, v8::Handle<v8::Obj ect> creationContext, v8::Isolate*); 63 friend v8::Handle<v8::Object> wrap(TestNamedConstructor*, v8::Handle<v8::Obj ect> creationContext, v8::Isolate*);
64 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestNamedConstructor> , v8::Handle<v8::Object> creationContext, v8::Isolate*); 64 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestNamedConstructor> , v8::Handle<v8::Object> creationContext, v8::Isolate*);
65 }; 65 };
66 66
67 template<> 67 template<>
68 class WrapperTypeTraits<TestNamedConstructor > { 68 class WrapperTypeTraits<TestNamedConstructor > {
69 public: 69 public:
70 static WrapperTypeInfo* info() { return &V8TestNamedConstructor::info; } 70 static WrapperTypeInfo* wrapperTypeInfo() { return &V8TestNamedConstructor:: wrapperTypeInfo; }
71 }; 71 };
72 72
73 inline v8::Handle<v8::Object> wrap(TestNamedConstructor* impl, v8::Handle<v8::Ob ject> creationContext, v8::Isolate* isolate) 73 inline v8::Handle<v8::Object> wrap(TestNamedConstructor* impl, v8::Handle<v8::Ob ject> creationContext, v8::Isolate* isolate)
74 { 74 {
75 ASSERT(impl); 75 ASSERT(impl);
76 ASSERT(!DOMDataStore::containsWrapper<V8TestNamedConstructor>(impl, isolate) ); 76 ASSERT(!DOMDataStore::containsWrapper<V8TestNamedConstructor>(impl, isolate) );
77 return V8TestNamedConstructor::createWrapper(impl, creationContext, isolate) ; 77 return V8TestNamedConstructor::createWrapper(impl, creationContext, isolate) ;
78 } 78 }
79 79
80 inline v8::Handle<v8::Value> toV8(TestNamedConstructor* impl, v8::Handle<v8::Obj ect> creationContext, v8::Isolate* isolate) 80 inline v8::Handle<v8::Value> toV8(TestNamedConstructor* impl, v8::Handle<v8::Obj ect> creationContext, v8::Isolate* isolate)
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 template<class CallbackInfo, class Wrappable> 147 template<class CallbackInfo, class Wrappable>
148 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stNamedConstructor > impl, Wrappable* wrappable) 148 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stNamedConstructor > impl, Wrappable* wrappable)
149 { 149 {
150 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 150 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
151 } 151 }
152 152
153 } 153 }
154 154
155 #endif // V8TestNamedConstructor_h 155 #endif // V8TestNamedConstructor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698