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

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

Issue 217053007: Revert of Make DOMWrapperWorld::current() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert 213543004 too Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/tests/idls/TestTypedefs.idl
diff --git a/Source/bindings/tests/idls/TestTypedefs.idl b/Source/bindings/tests/idls/TestTypedefs.idl
index e88ccc2ed2894d8df6867c1de770c1cb62ae5cf1..15816966e63422c0bcc7135bdc1cb6cf0bdf525d 100644
--- a/Source/bindings/tests/idls/TestTypedefs.idl
+++ b/Source/bindings/tests/idls/TestTypedefs.idl
@@ -28,10 +28,6 @@
* 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;
@@ -40,22 +36,31 @@ typedef DOMString String;
typedef DOMString[] ArrayOfStrings;
typedef TestCallbackInterface TestCallbackInterfaceType;
typedef TestSubObjConstructor T;
+typedef DOMException E;
typedef (Foo or Bar) FooOrBar;
[
- Constructor(String stringArg),
+ Constructor(String hello),
] interface TestTypedefs {
- attribute ULongLong uLongLongAttribute;
- attribute T tAttribute;
+ attribute ULongLong unsignedLongLongAttr;
+
+ attribute T TestSubObj;
- void voidMethodArrayOfLongsArg(optional ArrayOfLongs arrayOfLongsArg);
+ [StrictTypeChecking] void func(optional ArrayOfLongs x);
- void voidMethodFloatArgStringArg(Float floatArg, String stringArg);
- void voidMethodTestCallbackInterfaceTypeArg(TestCallbackInterfaceType testCallbackInterfaceTypeArg);
+ void setShadow(Float width, Float height, float blur, [StrictTypeChecking] optional String color, optional Float alpha);
+ void voidMethodTestCallbackInterfaceArgument(TestCallbackInterfaceType testCallbackInterface);
- ULongLong uLongLongMethodTestInterfaceEmptyTypeSequenceArg(sequence<TestInterfaceEmptyType> testInterfaceEmptyTypeSequenceArg);
+ ULongLong methodWithSequenceArg(sequence<TestInterfaceEmptyType> sequenceArg);
FooOrBar fooOrBarMethod();
- ArrayOfStrings arrayOfStringsMethodArrayOfStringsArg(ArrayOfStrings arrayOfStringsArg);
- String[] stringArrayMethodStringArrayArg(String[] stringArrayArg);
+ [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;
};

Powered by Google App Engine
This is Rietveld 408576698