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

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

Issue 16708002: Simplify Custom Element constructors to be functions, not wrappers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix callback functions as parameters Created 7 years, 6 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/TestObject.idl
diff --git a/Source/bindings/tests/idls/TestObject.idl b/Source/bindings/tests/idls/TestObject.idl
index 549f640829b41b11b8e2a1ccd5a6880885ada3a1..2ea1028d9e566f91705fa9a7e98e5d2fff3f75c4 100644
--- a/Source/bindings/tests/idls/TestObject.idl
+++ b/Source/bindings/tests/idls/TestObject.idl
@@ -32,6 +32,8 @@
enum TestEnumType { "", "EnumValue1", "EnumValue2", "EnumValue3" };
+callback TestCallbackFunction = void (TestEnumType formal1, TestObject formal2);
+
[
Constructor(TestCallback testCallback),
ImplementedAs=TestObj
@@ -178,6 +180,11 @@ enum TestEnumType { "", "EnumValue1", "EnumValue2", "EnumValue3" };
readonly attribute any cachedAttribute2;
attribute any anyAttribute;
+ any anyReturnValue();
+
+ attribute TestCallbackFunction callbackFunctionAttribute;
+ TestCallbackFunction callbackFunctionReturnValue();
+ void callbackFunctionArgument(TestCallbackFunction f);
// Overloads
void overloadedMethod(TestObject? objArg, [StrictTypeChecking] DOMString strArg);

Powered by Google App Engine
This is Rietveld 408576698