Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / bindings / tests / idls / TestTypedefs.idl
index 1581696..e88ccc2 100644 (file)
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+// This IDL file is for testing the front end, not code generator,
+// as typedefs are resolved during IR construction (after parsing,
+// before code generation), and thus the code generator never sees them.
+
 typedef float                      Float;
 typedef unsigned long long         ULongLong;
 typedef TestInterfaceEmpty         TestInterfaceEmptyType;
@@ -36,31 +40,22 @@ 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 stringArg),
 ] interface TestTypedefs {
-    attribute ULongLong unsignedLongLongAttr;
-
-    attribute T TestSubObj;
+    attribute ULongLong uLongLongAttribute;
+    attribute T tAttribute;
 
-    [StrictTypeChecking] void func(optional ArrayOfLongs x);
+    void voidMethodArrayOfLongsArg(optional ArrayOfLongs arrayOfLongsArg);
 
-    void setShadow(Float width, Float height, float blur, [StrictTypeChecking] optional String color, optional Float alpha);
-    void voidMethodTestCallbackInterfaceArgument(TestCallbackInterfaceType testCallbackInterface);
+    void voidMethodFloatArgStringArg(Float floatArg, String stringArg);
+    void voidMethodTestCallbackInterfaceTypeArg(TestCallbackInterfaceType testCallbackInterfaceTypeArg);
 
-    ULongLong methodWithSequenceArg(sequence<TestInterfaceEmptyType> sequenceArg);
+    ULongLong uLongLongMethodTestInterfaceEmptyTypeSequenceArg(sequence<TestInterfaceEmptyType> testInterfaceEmptyTypeSequenceArg);
     FooOrBar fooOrBarMethod();
 
-    [RaisesException] ArrayOfStrings stringArrayFunction(ArrayOfStrings values);
-    [RaisesException] String[] stringArrayFunction2(String[] values);
-
-    // Exceptions
-    [RaisesException] void methodWithException();
-    [RaisesException=Getter] attribute long attrWithGetterException;
-    [RaisesException=Setter] attribute long attrWithSetterException;
-    [RaisesException=Getter] attribute DOMString stringAttrWithGetterException;
-    [RaisesException=Setter] attribute DOMString stringAttrWithSetterException;
+    ArrayOfStrings arrayOfStringsMethodArrayOfStringsArg(ArrayOfStrings arrayOfStringsArg);
+    String[] stringArrayMethodStringArrayArg(String[] stringArrayArg);
 };