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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp

Issue 537403002: bindings: Renames from/toInternalPointer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestInterfaceEventConstructor.h" 8 #include "V8TestInterfaceEventConstructor.h"
9 9
10 #include "bindings/core/v8/Dictionary.h" 10 #include "bindings/core/v8/Dictionary.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // bindings/core/v8/ScriptWrappable.h. 48 // bindings/core/v8/ScriptWrappable.h.
49 const WrapperTypeInfo& TestInterfaceEventConstructor::s_wrapperTypeInfo = V8Test InterfaceEventConstructor::wrapperTypeInfo; 49 const WrapperTypeInfo& TestInterfaceEventConstructor::s_wrapperTypeInfo = V8Test InterfaceEventConstructor::wrapperTypeInfo;
50 50
51 namespace TestInterfaceEventConstructorV8Internal { 51 namespace TestInterfaceEventConstructorV8Internal {
52 52
53 template <typename T> void V8_USE(T) { } 53 template <typename T> void V8_USE(T) { }
54 54
55 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 55 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
56 { 56 {
57 v8::Handle<v8::Object> holder = info.Holder(); 57 v8::Handle<v8::Object> holder = info.Holder();
58 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder); 58 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp l(holder);
59 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat e()); 59 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat e());
60 } 60 }
61 61
62 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 62 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
63 { 63 {
64 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 64 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
65 TestInterfaceEventConstructorV8Internal::readonlyStringAttributeAttributeGet ter(info); 65 TestInterfaceEventConstructorV8Internal::readonlyStringAttributeAttributeGet ter(info);
66 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 66 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
67 } 67 }
68 68
69 static void initializedByEventConstructorReadonlyStringAttributeAttributeGetter( const v8::PropertyCallbackInfo<v8::Value>& info) 69 static void initializedByEventConstructorReadonlyStringAttributeAttributeGetter( const v8::PropertyCallbackInfo<v8::Value>& info)
70 { 70 {
71 v8::Handle<v8::Object> holder = info.Holder(); 71 v8::Handle<v8::Object> holder = info.Holder();
72 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder); 72 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp l(holder);
73 v8SetReturnValueString(info, impl->initializedByEventConstructorReadonlyStri ngAttribute(), info.GetIsolate()); 73 v8SetReturnValueString(info, impl->initializedByEventConstructorReadonlyStri ngAttribute(), info.GetIsolate());
74 } 74 }
75 75
76 static void initializedByEventConstructorReadonlyStringAttributeAttributeGetterC allback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 76 static void initializedByEventConstructorReadonlyStringAttributeAttributeGetterC allback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
77 { 77 {
78 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 78 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
79 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyStringAttributeAttributeGetter(info); 79 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyStringAttributeAttributeGetter(info);
80 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 80 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
81 } 81 }
82 82
83 static void initializedByEventConstructorReadonlyAnyAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info) 83 static void initializedByEventConstructorReadonlyAnyAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info)
84 { 84 {
85 v8::Handle<v8::Object> holder = info.Holder(); 85 v8::Handle<v8::Object> holder = info.Holder();
86 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder); 86 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp l(holder);
87 v8SetReturnValue(info, impl->initializedByEventConstructorReadonlyAnyAttribu te().v8Value()); 87 v8SetReturnValue(info, impl->initializedByEventConstructorReadonlyAnyAttribu te().v8Value());
88 } 88 }
89 89
90 static void initializedByEventConstructorReadonlyAnyAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 90 static void initializedByEventConstructorReadonlyAnyAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
91 { 91 {
92 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 92 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
93 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyAnyAttributeAttributeGetter(info); 93 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyAnyAttributeAttributeGetter(info);
94 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 94 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
95 } 95 }
96 96
97 static void initializedByEventConstructorReadonlyBooleanAttributeAttributeGetter (const v8::PropertyCallbackInfo<v8::Value>& info) 97 static void initializedByEventConstructorReadonlyBooleanAttributeAttributeGetter (const v8::PropertyCallbackInfo<v8::Value>& info)
98 { 98 {
99 v8::Handle<v8::Object> holder = info.Holder(); 99 v8::Handle<v8::Object> holder = info.Holder();
100 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder); 100 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp l(holder);
101 v8SetReturnValueBool(info, impl->initializedByEventConstructorReadonlyBoolea nAttribute()); 101 v8SetReturnValueBool(info, impl->initializedByEventConstructorReadonlyBoolea nAttribute());
102 } 102 }
103 103
104 static void initializedByEventConstructorReadonlyBooleanAttributeAttributeGetter Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 104 static void initializedByEventConstructorReadonlyBooleanAttributeAttributeGetter Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
105 { 105 {
106 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 106 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
107 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyBooleanAttributeAttributeGetter(info); 107 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyBooleanAttributeAttributeGetter(info);
108 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 108 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
109 } 109 }
110 110
111 static void initializedByEventConstructorReadonlyLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 111 static void initializedByEventConstructorReadonlyLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
112 { 112 {
113 v8::Handle<v8::Object> holder = info.Holder(); 113 v8::Handle<v8::Object> holder = info.Holder();
114 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder); 114 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp l(holder);
115 v8SetReturnValueInt(info, impl->initializedByEventConstructorReadonlyLongAtt ribute()); 115 v8SetReturnValueInt(info, impl->initializedByEventConstructorReadonlyLongAtt ribute());
116 } 116 }
117 117
118 static void initializedByEventConstructorReadonlyLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 118 static void initializedByEventConstructorReadonlyLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
119 { 119 {
120 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 120 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
121 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyLongAttributeAttributeGetter(info); 121 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyLongAttributeAttributeGetter(info);
122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
123 } 123 }
124 124
125 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet ter(const v8::PropertyCallbackInfo<v8::Value>& info) 125 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet ter(const v8::PropertyCallbackInfo<v8::Value>& info)
126 { 126 {
127 v8::Handle<v8::Object> holder = info.Holder(); 127 v8::Handle<v8::Object> holder = info.Holder();
128 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder); 128 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp l(holder);
129 RefPtr<Uint8Array> cppValue(impl->initializedByEventConstructorReadonlyUint8 ArrayAttribute()); 129 RefPtr<Uint8Array> cppValue(impl->initializedByEventConstructorReadonlyUint8 ArrayAttribute());
130 if (cppValue && DOMDataStore::setReturnValueFromWrapper<V8Uint8Array>(info.G etReturnValue(), cppValue.get())) 130 if (cppValue && DOMDataStore::setReturnValueFromWrapper<V8Uint8Array>(info.G etReturnValue(), cppValue.get()))
131 return; 131 return;
132 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate ()); 132 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate ());
133 if (!wrapper.IsEmpty()) { 133 if (!wrapper.IsEmpty()) {
134 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "initializedByEventConstructorReadonlyUint8ArrayAttribute"), wrapper); 134 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "initializedByEventConstructorReadonlyUint8ArrayAttribute"), wrapper);
135 v8SetReturnValue(info, wrapper); 135 v8SetReturnValue(info, wrapper);
136 } 136 }
137 } 137 }
138 138
139 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet terCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& in fo) 139 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet terCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& in fo)
140 { 140 {
141 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 141 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
142 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyUint8ArrayAttributeAttributeGetter(info); 142 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyUint8ArrayAttributeAttributeGetter(info);
143 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 143 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
144 } 144 }
145 145
146 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr ibuteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 146 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr ibuteGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
147 { 147 {
148 v8::Handle<v8::Object> holder = info.Holder(); 148 v8::Handle<v8::Object> holder = info.Holder();
149 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder); 149 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp l(holder);
150 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado nlyTestInterfaceEmptyAttribute()); 150 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado nlyTestInterfaceEmptyAttribute());
151 if (cppValue && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty >(info.GetReturnValue(), cppValue.get())) 151 if (cppValue && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty >(info.GetReturnValue(), cppValue.get()))
152 return; 152 return;
153 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate ()); 153 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate ());
154 if (!wrapper.IsEmpty()) { 154 if (!wrapper.IsEmpty()) {
155 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "initializedByEventConstructorReadonlyTestInterfaceEmptyAttri bute"), wrapper); 155 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "initializedByEventConstructorReadonlyTestInterfaceEmptyAttri bute"), wrapper);
156 v8SetReturnValue(info, wrapper); 156 v8SetReturnValue(info, wrapper);
157 } 157 }
158 } 158 }
159 159
160 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr ibuteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Va lue>& info) 160 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr ibuteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Va lue>& info)
161 { 161 {
162 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 162 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
163 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyTestInterfaceEmptyAttributeAttributeGetter(info); 163 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyTestInterfaceEmptyAttributeAttributeGetter(info);
164 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 164 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
165 } 165 }
166 166
167 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut eAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 167 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut eAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
168 { 168 {
169 v8::Handle<v8::Object> holder = info.Holder(); 169 v8::Handle<v8::Object> holder = info.Holder();
170 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder); 170 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp l(holder);
171 v8SetReturnValue(info, v8Array(impl->initializedByEventConstructorReadonlyTe stInterfaceEmptyArrayAttribute(), info.Holder(), info.GetIsolate())); 171 v8SetReturnValue(info, v8Array(impl->initializedByEventConstructorReadonlyTe stInterfaceEmptyArrayAttribute(), info.Holder(), info.GetIsolate()));
172 } 172 }
173 173
174 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut eAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v 8::Value>& info) 174 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut eAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v 8::Value>& info)
175 { 175 {
176 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 176 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
177 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyTestInterfaceEmptyArrayAttributeAttributeGetter(info); 177 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyTestInterfaceEmptyArrayAttributeAttributeGetter(info);
178 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 178 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
179 } 179 }
180 180
181 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 181 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
182 { 182 {
183 v8::Handle<v8::Object> holder = info.Holder(); 183 v8::Handle<v8::Object> holder = info.Holder();
184 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder); 184 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp l(holder);
185 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado nlyNullableTestInterfaceEmptyAttribute()); 185 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado nlyNullableTestInterfaceEmptyAttribute());
186 if (cppValue && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty >(info.GetReturnValue(), cppValue.get())) 186 if (cppValue && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty >(info.GetReturnValue(), cppValue.get()))
187 return; 187 return;
188 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate ()); 188 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate ());
189 if (!wrapper.IsEmpty()) { 189 if (!wrapper.IsEmpty()) {
190 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInterfaceEm ptyAttribute"), wrapper); 190 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInterfaceEm ptyAttribute"), wrapper);
191 v8SetReturnValue(info, wrapper); 191 v8SetReturnValue(info, wrapper);
192 } 192 }
193 } 193 }
194 194
195 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri buteAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf o<v8::Value>& info) 195 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri buteAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf o<v8::Value>& info)
196 { 196 {
197 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 197 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
198 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyNullableTestInterfaceEmptyAttributeAttributeGetter(info); 198 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyNullableTestInterfaceEmptyAttributeAttributeGetter(info);
199 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 199 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
200 } 200 }
201 201
202 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib uteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 202 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib uteGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
203 { 203 {
204 v8::Handle<v8::Object> holder = info.Holder(); 204 v8::Handle<v8::Object> holder = info.Holder();
205 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder); 205 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp l(holder);
206 v8SetReturnValueString(info, impl->deprecatedInitializedByEventConstructorRe adonlyStringAttribute(), info.GetIsolate()); 206 v8SetReturnValueString(info, impl->deprecatedInitializedByEventConstructorRe adonlyStringAttribute(), info.GetIsolate());
207 } 207 }
208 208
209 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib uteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info) 209 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib uteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info)
210 { 210 {
211 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 211 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
212 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::initializedByEventConstructorReadonlyStringAttribute); 212 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::initializedByEventConstructorReadonlyStringAttribute);
213 TestInterfaceEventConstructorV8Internal::deprecatedInitializedByEventConstru ctorReadonlyStringAttributeAttributeGetter(info); 213 TestInterfaceEventConstructorV8Internal::deprecatedInitializedByEventConstru ctorReadonlyStringAttributeAttributeGetter(info);
214 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 214 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
215 } 215 }
216 216
217 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt ributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 217 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt ributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
218 { 218 {
219 v8::Handle<v8::Object> holder = info.Holder(); 219 v8::Handle<v8::Object> holder = info.Holder();
220 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder); 220 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp l(holder);
221 v8SetReturnValueString(info, impl->implementedAsName(), info.GetIsolate()); 221 v8SetReturnValueString(info, impl->implementedAsName(), info.GetIsolate());
222 } 222 }
223 223
224 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt ributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::V alue>& info) 224 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt ributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::V alue>& info)
225 { 225 {
226 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 226 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
227 TestInterfaceEventConstructorV8Internal::implementedAsInitializedByEventCons tructorReadonlyStringAttributeAttributeGetter(info); 227 TestInterfaceEventConstructorV8Internal::implementedAsInitializedByEventCons tructorReadonlyStringAttributeAttributeGetter(info);
228 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 228 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
229 } 229 }
230 230
231 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt tributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 231 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt tributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
232 { 232 {
233 v8::Handle<v8::Object> holder = info.Holder(); 233 v8::Handle<v8::Object> holder = info.Holder();
234 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder); 234 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp l(holder);
235 v8SetReturnValueString(info, impl->deprecatedImplementedAsName(), info.GetIs olate()); 235 v8SetReturnValueString(info, impl->deprecatedImplementedAsName(), info.GetIs olate());
236 } 236 }
237 237
238 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt tributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallback Info<v8::Value>& info) 238 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt tributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallback Info<v8::Value>& info)
239 { 239 {
240 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 240 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
241 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::initializedByEventConstructorReadonlyStringAttribute); 241 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::initializedByEventConstructorReadonlyStringAttribute);
242 TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB yEventConstructorReadonlyStringAttributeAttributeGetter(info); 242 TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB yEventConstructorReadonlyStringAttributeAttributeGetter(info);
243 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 243 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
244 } 244 }
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 bool V8TestInterfaceEventConstructor::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) 375 bool V8TestInterfaceEventConstructor::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate)
376 { 376 {
377 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e); 377 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e);
378 } 378 }
379 379
380 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::findInstanceInPrototypeC hain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) 380 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::findInstanceInPrototypeC hain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate)
381 { 381 {
382 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 382 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
383 } 383 }
384 384
385 TestInterfaceEventConstructor* V8TestInterfaceEventConstructor::toNativeWithType Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) 385 TestInterfaceEventConstructor* V8TestInterfaceEventConstructor::toImplWithTypeCh eck(v8::Isolate* isolate, v8::Handle<v8::Value> value)
386 { 386 {
387 return hasInstance(value, isolate) ? fromInternalPointer(blink::toInternalPo inter(v8::Handle<v8::Object>::Cast(value))) : 0; 387 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle <v8::Object>::Cast(value))->toImpl<TestInterfaceEventConstructor>() : 0;
388 } 388 }
389 389
390 390
391 void V8TestInterfaceEventConstructor::refObject(ScriptWrappableBase* internalPoi nter) 391 void V8TestInterfaceEventConstructor::refObject(ScriptWrappableBase* internalPoi nter)
392 { 392 {
393 #if !ENABLE(OILPAN) 393 #if !ENABLE(OILPAN)
394 fromInternalPointer(internalPointer)->ref(); 394 internalPointer->toImpl<TestInterfaceEventConstructor>()->ref();
395 #endif 395 #endif
396 } 396 }
397 397
398 void V8TestInterfaceEventConstructor::derefObject(ScriptWrappableBase* internalP ointer) 398 void V8TestInterfaceEventConstructor::derefObject(ScriptWrappableBase* internalP ointer)
399 { 399 {
400 #if !ENABLE(OILPAN) 400 #if !ENABLE(OILPAN)
401 fromInternalPointer(internalPointer)->deref(); 401 internalPointer->toImpl<TestInterfaceEventConstructor>()->deref();
402 #endif 402 #endif
403 } 403 }
404 404
405 WrapperPersistentNode* V8TestInterfaceEventConstructor::createPersistentHandle(S criptWrappableBase* internalPointer) 405 WrapperPersistentNode* V8TestInterfaceEventConstructor::createPersistentHandle(S criptWrappableBase* internalPointer)
406 { 406 {
407 #if ENABLE(OILPAN) 407 #if ENABLE(OILPAN)
408 return new WrapperPersistent<TestInterfaceEventConstructor>(fromInternalPoin ter(internalPointer)); 408 return new WrapperPersistent<TestInterfaceEventConstructor>(internalPointer- >toImpl<TestInterfaceEventConstructor>());
409 #else 409 #else
410 ASSERT_NOT_REACHED(); 410 ASSERT_NOT_REACHED();
411 return 0; 411 return 0;
412 #endif 412 #endif
413 } 413 }
414 414
415 template<> 415 template<>
416 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) 416 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate)
417 { 417 {
418 return toV8(impl, creationContext, isolate); 418 return toV8(impl, creationContext, isolate);
419 } 419 }
420 420
421 } // namespace blink 421 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698