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

Side by Side Diff: Source/bindings/tests/idls/core/TestObject.idl

Issue 810563007: IDL: Add missing type-check for callback function arguments (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 void voidMethodUnsignedLongLongArg(unsigned long long unsignedLongLongArg); 304 void voidMethodUnsignedLongLongArg(unsigned long long unsignedLongLongArg);
305 void voidMethodUnsignedShortArg(unsigned short unsignedShortArg); 305 void voidMethodUnsignedShortArg(unsigned short unsignedShortArg);
306 // Interface types 306 // Interface types
307 TestInterfaceEmpty testInterfaceEmptyMethod(); 307 TestInterfaceEmpty testInterfaceEmptyMethod();
308 void voidMethodTestInterfaceEmptyArg(TestInterfaceEmpty testInterfaceEmptyAr g); 308 void voidMethodTestInterfaceEmptyArg(TestInterfaceEmpty testInterfaceEmptyAr g);
309 void voidMethodLongArgTestInterfaceEmptyArg(long longArg, TestInterfaceEmpty testInterfaceEmptyArg); 309 void voidMethodLongArgTestInterfaceEmptyArg(long longArg, TestInterfaceEmpty testInterfaceEmptyArg);
310 // Callback function type 310 // Callback function type
311 VoidCallbackFunction voidCallbackFunctionMethod(); 311 VoidCallbackFunction voidCallbackFunctionMethod();
312 AnyCallbackFunctionOptionalAnyArg anyCallbackFunctionOptionalAnyArgMethod(); 312 AnyCallbackFunctionOptionalAnyArg anyCallbackFunctionOptionalAnyArgMethod();
313 void voidMethodVoidCallbackFunctionArg(VoidCallbackFunction voidCallbackFunc tionArg); 313 void voidMethodVoidCallbackFunctionArg(VoidCallbackFunction voidCallbackFunc tionArg);
314 void voidMethodOptionalVoidCallbackFunctionArg(optional VoidCallbackFunction voidCallbackFunctionArg);
315 void voidMethodNullableVoidCallbackFunctionArg(VoidCallbackFunction? voidCal lbackFunctionArg);
314 void voidMethodAnyCallbackFunctionOptionalAnyArg(AnyCallbackFunctionOptional AnyArg anyCallbackFunctionOptionalAnyArgArg); 316 void voidMethodAnyCallbackFunctionOptionalAnyArg(AnyCallbackFunctionOptional AnyArg anyCallbackFunctionOptionalAnyArgArg);
315 // Custom type conversions 317 // Custom type conversions
316 any anyMethod(); 318 any anyMethod();
317 void voidMethodEventTargetArg(EventTarget eventTargetArg); 319 void voidMethodEventTargetArg(EventTarget eventTargetArg);
318 void voidMethodAnyArg(any anyArg); 320 void voidMethodAnyArg(any anyArg);
319 // DOM node types 321 // DOM node types
320 void voidMethodAttrArg(Attr attrArg); 322 void voidMethodAttrArg(Attr attrArg);
321 void voidMethodDocumentArg(Document documentArg); 323 void voidMethodDocumentArg(Document documentArg);
322 void voidMethodDocumentTypeArg(DocumentType documentTypeArg); 324 void voidMethodDocumentTypeArg(DocumentType documentTypeArg);
323 void voidMethodElementArg(Element elementArg); 325 void voidMethodElementArg(Element elementArg);
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 [ImplementedInPrivateScript] attribute DOMString stringAttribute; 576 [ImplementedInPrivateScript] attribute DOMString stringAttribute;
575 [ImplementedInPrivateScript] attribute Node nodeAttribute; 577 [ImplementedInPrivateScript] attribute Node nodeAttribute;
576 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2); 578 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2);
577 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly; 579 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly;
578 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2); 580 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2);
579 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly; 581 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly;
580 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript; 582 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript;
581 583
582 maplike<long, DOMString>; 584 maplike<long, DOMString>;
583 }; 585 };
OLDNEW
« no previous file with comments | « Source/bindings/templates/methods.cpp ('k') | Source/bindings/tests/results/core/V8TestInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698