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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp

Issue 2731593003: bindings: Use fixed-size integer types in the generated code. (Closed)
Patch Set: Explain why 64-bit integers are sometimes not listed Created 3 years, 9 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 // 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. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // This file has been generated from the Jinja2 template in 8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl
10 10
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 v8SetReturnValueInt(info, impl->alwaysExposedAttribute()); 200 v8SetReturnValueInt(info, impl->alwaysExposedAttribute());
201 } 201 }
202 202
203 static void alwaysExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) { 203 static void alwaysExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) {
204 v8::Local<v8::Object> holder = info.Holder(); 204 v8::Local<v8::Object> holder = info.Holder();
205 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); 205 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder);
206 206
207 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface5", "alwaysExposedAttribute"); 207 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface5", "alwaysExposedAttribute");
208 208
209 // Prepare the value to be set. 209 // Prepare the value to be set.
210 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, exception State); 210 int32_t cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excep tionState);
211 if (exceptionState.hadException()) 211 if (exceptionState.hadException())
212 return; 212 return;
213 213
214 impl->setAlwaysExposedAttribute(cppValue); 214 impl->setAlwaysExposedAttribute(cppValue);
215 } 215 }
216 216
217 static void workerExposedAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info) { 217 static void workerExposedAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info) {
218 v8::Local<v8::Object> holder = info.Holder(); 218 v8::Local<v8::Object> holder = info.Holder();
219 219
220 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); 220 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder);
221 221
222 v8SetReturnValueInt(info, impl->workerExposedAttribute()); 222 v8SetReturnValueInt(info, impl->workerExposedAttribute());
223 } 223 }
224 224
225 static void workerExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) { 225 static void workerExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) {
226 v8::Local<v8::Object> holder = info.Holder(); 226 v8::Local<v8::Object> holder = info.Holder();
227 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); 227 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder);
228 228
229 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface5", "workerExposedAttribute"); 229 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface5", "workerExposedAttribute");
230 230
231 // Prepare the value to be set. 231 // Prepare the value to be set.
232 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, exception State); 232 int32_t cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excep tionState);
233 if (exceptionState.hadException()) 233 if (exceptionState.hadException())
234 return; 234 return;
235 235
236 impl->setWorkerExposedAttribute(cppValue); 236 impl->setWorkerExposedAttribute(cppValue);
237 } 237 }
238 238
239 static void windowExposedAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info) { 239 static void windowExposedAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info) {
240 v8::Local<v8::Object> holder = info.Holder(); 240 v8::Local<v8::Object> holder = info.Holder();
241 241
242 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); 242 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder);
243 243
244 v8SetReturnValueInt(info, impl->windowExposedAttribute()); 244 v8SetReturnValueInt(info, impl->windowExposedAttribute());
245 } 245 }
246 246
247 static void windowExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) { 247 static void windowExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) {
248 v8::Local<v8::Object> holder = info.Holder(); 248 v8::Local<v8::Object> holder = info.Holder();
249 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); 249 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder);
250 250
251 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface5", "windowExposedAttribute"); 251 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface5", "windowExposedAttribute");
252 252
253 // Prepare the value to be set. 253 // Prepare the value to be set.
254 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, exception State); 254 int32_t cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excep tionState);
255 if (exceptionState.hadException()) 255 if (exceptionState.hadException())
256 return; 256 return;
257 257
258 impl->setWindowExposedAttribute(cppValue); 258 impl->setWindowExposedAttribute(cppValue);
259 } 259 }
260 260
261 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) { 261 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) {
262 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); 262 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder());
263 263
264 if (UNLIKELY(info.Length() < 1)) { 264 if (UNLIKELY(info.Length() < 1)) {
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMetho dConfiguration = {"windowExposedStaticMethod", V8TestInterface5::windowExposedSt aticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}; 879 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMetho dConfiguration = {"windowExposedStaticMethod", V8TestInterface5::windowExposedSt aticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess};
880 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p rototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodConfi guration); 880 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p rototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodConfi guration);
881 } 881 }
882 if (executionContext && (executionContext->isDocument() || executionContext->i sServiceWorkerGlobalScope())) { 882 if (executionContext && (executionContext->isDocument() || executionContext->i sServiceWorkerGlobalScope())) {
883 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM ethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", V8TestInterfa ce5::windowAndServiceWorkerExposedMethodMethodCallback, nullptr, 0, v8::None, V8 DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigurati on::DoNotCheckAccess}; 883 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM ethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", V8TestInterfa ce5::windowAndServiceWorkerExposedMethodMethodCallback, nullptr, 0, v8::None, V8 DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigurati on::DoNotCheckAccess};
884 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p rototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMethodM ethodConfiguration); 884 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p rototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMethodM ethodConfiguration);
885 } 885 }
886 } 886 }
887 887
888 } // namespace blink 888 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698