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

Side by Side Diff: Source/bindings/tests/results/V8TestSerializedScriptValueInterface.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 21 matching lines...) Expand all
32 class V8TestSerializedScriptValueInterface { 32 class V8TestSerializedScriptValueInterface {
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 TestSerializedScriptValueInterface* toNative(v8::Handle<v8::Object> o bject) 37 static TestSerializedScriptValueInterface* toNative(v8::Handle<v8::Object> o bject)
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 info; 42 static WrapperTypeInfo wrapperTypeInfo;
43 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ; 43 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ;
44 static inline void* toInternalPointer(TestSerializedScriptValueInterface* im pl) 44 static inline void* toInternalPointer(TestSerializedScriptValueInterface* im pl)
45 { 45 {
46 return impl; 46 return impl;
47 } 47 }
48 48
49 static inline TestSerializedScriptValueInterface* fromInternalPointer(void* object) 49 static inline TestSerializedScriptValueInterface* fromInternalPointer(void* object)
50 { 50 {
51 return static_cast<TestSerializedScriptValueInterface*>(object); 51 return static_cast<TestSerializedScriptValueInterface*>(object);
52 } 52 }
53 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestS erializedScriptValueInterface*, v8::Isolate*) { } 53 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestS erializedScriptValueInterface*, v8::Isolate*) { }
54 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec t>, v8::Isolate*) { } 54 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec t>, v8::Isolate*) { }
55 55
56 private: 56 private:
57 friend v8::Handle<v8::Object> wrap(TestSerializedScriptValueInterface*, v8:: Handle<v8::Object> creationContext, v8::Isolate*); 57 friend v8::Handle<v8::Object> wrap(TestSerializedScriptValueInterface*, v8:: Handle<v8::Object> creationContext, v8::Isolate*);
58 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestSerializedScriptV alueInterface>, v8::Handle<v8::Object> creationContext, v8::Isolate*); 58 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestSerializedScriptV alueInterface>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
59 }; 59 };
60 60
61 template<> 61 template<>
62 class WrapperTypeTraits<TestSerializedScriptValueInterface > { 62 class WrapperTypeTraits<TestSerializedScriptValueInterface > {
63 public: 63 public:
64 static WrapperTypeInfo* info() { return &V8TestSerializedScriptValueInterfac e::info; } 64 static WrapperTypeInfo* wrapperTypeInfo() { return &V8TestSerializedScriptVa lueInterface::wrapperTypeInfo; }
65 }; 65 };
66 66
67 inline v8::Handle<v8::Object> wrap(TestSerializedScriptValueInterface* impl, v8: :Handle<v8::Object> creationContext, v8::Isolate* isolate) 67 inline v8::Handle<v8::Object> wrap(TestSerializedScriptValueInterface* impl, v8: :Handle<v8::Object> creationContext, v8::Isolate* isolate)
68 { 68 {
69 ASSERT(impl); 69 ASSERT(impl);
70 ASSERT(!DOMDataStore::containsWrapper<V8TestSerializedScriptValueInterface>( impl, isolate)); 70 ASSERT(!DOMDataStore::containsWrapper<V8TestSerializedScriptValueInterface>( impl, isolate));
71 return V8TestSerializedScriptValueInterface::createWrapper(impl, creationCon text, isolate); 71 return V8TestSerializedScriptValueInterface::createWrapper(impl, creationCon text, isolate);
72 } 72 }
73 73
74 inline v8::Handle<v8::Value> toV8(TestSerializedScriptValueInterface* impl, v8:: Handle<v8::Object> creationContext, v8::Isolate* isolate) 74 inline v8::Handle<v8::Value> toV8(TestSerializedScriptValueInterface* impl, v8:: Handle<v8::Object> creationContext, v8::Isolate* isolate)
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stSerializedScriptValueInterface > impl, Wrappable* wrappable) 142 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stSerializedScriptValueInterface > impl, Wrappable* wrappable)
143 { 143 {
144 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 144 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
145 } 145 }
146 146
147 } 147 }
148 148
149 #endif // ENABLE(Condition1) || ENABLE(Condition2) 149 #endif // ENABLE(Condition1) || ENABLE(Condition2)
150 150
151 #endif // V8TestSerializedScriptValueInterface_h 151 #endif // V8TestSerializedScriptValueInterface_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698