Chromium Code Reviews

Unified Diff: Source/bindings/tests/idls/TestInterface.idl

Issue 259773008: Add support for type checking of floating point arguments as [TypeChecking=Unrestricted] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: std::isfinite Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: Source/bindings/tests/idls/TestInterface.idl
diff --git a/Source/bindings/tests/idls/TestInterface.idl b/Source/bindings/tests/idls/TestInterface.idl
index 17716c80bb44a0e8d732750c33bbbbb669bc7845..ad963f2119b258de900f69fb918255a9e0c926a9 100644
--- a/Source/bindings/tests/idls/TestInterface.idl
+++ b/Source/bindings/tests/idls/TestInterface.idl
@@ -39,7 +39,7 @@
ImplementedAs=TestInterfaceImplementation,
RuntimeEnabled=FeatureName,
SetWrapperReferenceTo(TestInterface referencedName),
- TypeChecking=Interface|Nullable,
+ TypeChecking=Interface|Nullable|Unrestricted,
] interface TestInterface : TestInterfaceEmpty {
// members needed to test [ImplementedAs], as this affect attribute
// configuration and method configuration, and [TypeChecking]
@@ -49,9 +49,15 @@
attribute TestInterface testInterfaceAttribute; // Self-referential interface type with [ImplementedAs]
attribute TestImplementedAsConstructor testImplementedAsConstructorAttribute;
+ attribute double doubleAttribute;
+ attribute float floatAttribute;
+ attribute unrestricted double unrestrictedDoubleAttribute;
+ attribute unrestricted float unrestrictedFloatAttribute;
static attribute DOMString staticStringAttribute;
void voidMethodTestInterfaceEmptyArg(TestInterfaceEmpty testInterfaceEmptyArg);
+ void voidMethodDoubleArgFloatArg(double doubleArg, float floatArg);
+ void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg(unrestricted double unrestrictedDoubleArg, unrestricted float unrestrictedFloatArg);
[PerWorldBindings] attribute DOMString perWorldBindingsStringAttribute;
[PerWorldBindings] void voidMethod();

Powered by Google App Engine