summaryrefslogtreecommitdiff
path: root/Source/bindings/tests/idls/TestTypedefs.idl
diff options
context:
space:
mode:
authorTorne (Richard Coles) <torne@google.com>2014-03-18 10:21:16 +0000
committerTorne (Richard Coles) <torne@google.com>2014-03-18 10:21:16 +0000
commitd5428f32f5d1719f774f62e19147104ca245a3ab (patch)
treefd77736d241e8efae3036625c1c5fb056d3bd84a /Source/bindings/tests/idls/TestTypedefs.idl
parent0422625e8fbb39f6cb3aa07393a1c05d70b22b4b (diff)
downloadWebKit-d5428f32f5d1719f774f62e19147104ca245a3ab.tar.gz
Merge from Chromium at DEPS revision 257591
This commit was generated by merge_to_master.py. Change-Id: I834f3ca85c1ef7ec2c1061847a3d92aa461da043
Diffstat (limited to 'Source/bindings/tests/idls/TestTypedefs.idl')
-rw-r--r--Source/bindings/tests/idls/TestTypedefs.idl35
1 files changed, 17 insertions, 18 deletions
diff --git a/Source/bindings/tests/idls/TestTypedefs.idl b/Source/bindings/tests/idls/TestTypedefs.idl
index 78d416536..15816966e 100644
--- a/Source/bindings/tests/idls/TestTypedefs.idl
+++ b/Source/bindings/tests/idls/TestTypedefs.idl
@@ -28,35 +28,34 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// This IDL file is for testing the bindings code generator and for tracking
-// changes in its ouput.
-
-typedef float DOUBLE;
-typedef unsigned long long ULONGLONG;
-typedef TestInterfaceEmpty TEST_INTERFACE_EMPTY;
-typedef long[] ARRAY_OF_LONGS;
-typedef DOMString STRING;
-typedef DOMString[] ARRAY_OF_STRINGS;
-typedef TestCallbackInterface TEST_CALLBACK_INTERFACE;
+typedef float Float;
+typedef unsigned long long ULongLong;
+typedef TestInterfaceEmpty TestInterfaceEmptyType;
+typedef long[] ArrayOfLongs;
+typedef DOMString String;
+typedef DOMString[] ArrayOfStrings;
+typedef TestCallbackInterface TestCallbackInterfaceType;
typedef TestSubObjConstructor T;
typedef DOMException E;
+typedef (Foo or Bar) FooOrBar;
[
- Constructor(STRING hello),
+ Constructor(String hello),
] interface TestTypedefs {
- attribute ULONGLONG unsignedLongLongAttr;
+ attribute ULongLong unsignedLongLongAttr;
attribute T TestSubObj;
- [StrictTypeChecking] void func(optional ARRAY_OF_LONGS x);
+ [StrictTypeChecking] void func(optional ArrayOfLongs x);
- void setShadow(DOUBLE width, DOUBLE height, float blur, [StrictTypeChecking] optional STRING color, optional DOUBLE alpha);
- void voidMethodTestCallbackInterfaceArgument(TEST_CALLBACK_INTERFACE testCallbackInterface);
+ void setShadow(Float width, Float height, float blur, [StrictTypeChecking] optional String color, optional Float alpha);
+ void voidMethodTestCallbackInterfaceArgument(TestCallbackInterfaceType testCallbackInterface);
- ULONGLONG methodWithSequenceArg(sequence<TEST_INTERFACE_EMPTY> sequenceArg);
+ ULongLong methodWithSequenceArg(sequence<TestInterfaceEmptyType> sequenceArg);
+ FooOrBar fooOrBarMethod();
- [RaisesException] ARRAY_OF_STRINGS stringArrayFunction(ARRAY_OF_STRINGS values);
- [RaisesException] STRING[] stringArrayFunction2(STRING[] values);
+ [RaisesException] ArrayOfStrings stringArrayFunction(ArrayOfStrings values);
+ [RaisesException] String[] stringArrayFunction2(String[] values);
// Exceptions
[RaisesException] void methodWithException();