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

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: Rebased 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
« no previous file with comments | « Source/bindings/scripts/IDLParser.pm ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/idls/TestObject.idl
diff --git a/Source/bindings/tests/idls/TestObject.idl b/Source/bindings/tests/idls/TestObject.idl
index 9260497b585c6d04df6b044ad0075230106e239d..1b332249a3cb94a57ff2d2f4b3590ce391a0db00 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
@@ -185,6 +187,10 @@ enum TestEnumType { "", "EnumValue1", "EnumValue2", "EnumValue3" };
attribute any anyAttribute;
+ attribute TestCallbackFunction callbackFunctionAttribute;
+ TestCallbackFunction callbackFunctionReturnValue();
+ void callbackFunctionArgument(TestCallbackFunction function);
+
// Overloads
void overloadedMethod(TestObject? objArg, [StrictTypeChecking] DOMString strArg);
void overloadedMethod(TestObject? objArg, optional long longArg);
« no previous file with comments | « Source/bindings/scripts/IDLParser.pm ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698