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

Unified Diff: lib/dom/idl/dart/dart.idl

Issue 10521002: Use WebKit IDL syntax for declaring optional parameters in dart.idl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « no previous file | lib/dom/scripts/databasebuilder.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/idl/dart/dart.idl
diff --git a/lib/dom/idl/dart/dart.idl b/lib/dom/idl/dart/dart.idl
index 089643559e0f3bc16c480006d0fffbdfca8aa144..5e2fc228c954c03b9f7f7b2f860ae002064c481b 100644
--- a/lib/dom/idl/dart/dart.idl
+++ b/lib/dom/idl/dart/dart.idl
@@ -88,7 +88,7 @@ module html {
[Supplemental]
interface HTMLOptionsCollection {
- [Suppressed] void add(in optional HTMLOptionElement element, in optional long before);
+ [Suppressed] void add([Optional] in HTMLOptionElement element, [Optional] in long before);
};
[Supplemental]
@@ -98,10 +98,10 @@ module html {
[Supplemental]
interface WebGLContextEvent {
- [Suppressed] void initEvent(in optional DOMString eventTypeArg,
- in optional boolean canBubbleArg,
- in optional boolean cancelableArg,
- in optional DOMString statusMessageArg);
+ [Suppressed] void initEvent([Optional] in DOMString eventTypeArg,
+ [Optional] in boolean canBubbleArg,
+ [Optional] in boolean cancelableArg,
+ [Optional] in DOMString statusMessageArg);
};
};
@@ -154,42 +154,42 @@ module canvas {
[Supplemental]
interface Float32Array {
[Suppressed] void set();
- [DartName=setElements, Custom] void set(in any array, in optional unsigned long offset);
+ [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned long offset);
};
[Supplemental]
interface Float64Array {
[Suppressed] void set();
- [DartName=setElements, Custom] void set(in any array, in optional unsigned long offset);
+ [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned long offset);
};
[Supplemental]
interface Int16Array {
[Suppressed] void set();
- [DartName=setElements, Custom] void set(in any array, in optional unsigned long offset);
+ [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned long offset);
};
[Supplemental]
interface Int32Array {
[Suppressed] void set();
- [DartName=setElements, Custom] void set(in any array, in optional unsigned long offset);
+ [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned long offset);
};
[Supplemental]
interface Int8Array {
[Suppressed] void set();
- [DartName=setElements, Custom] void set(in any array, in optional unsigned long offset);
+ [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned long offset);
};
[Supplemental]
interface Uint16Array {
[Suppressed] void set();
- [DartName=setElements, Custom] void set(in any array, in optional unsigned long offset);
+ [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned long offset);
};
[Supplemental]
interface Uint32Array {
[Suppressed] void set();
- [DartName=setElements, Custom] void set(in any array, in optional unsigned long offset);
+ [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned long offset);
};
[Supplemental]
interface Uint8Array {
[Suppressed] void set();
- [DartName=setElements, Custom] void set(in any array, in optional unsigned long offset);
+ [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned long offset);
};
[Supplemental]
@@ -198,7 +198,7 @@ module canvas {
[Suppressed] const long BYTES_PER_ELEMENT = 1;
[Suppressed] void set();
- [DartName=setElements, Custom] void set(in any array, in optional unsigned long offset);
+ [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned long offset);
};
};
@@ -206,7 +206,7 @@ module storage {
// TODO(vsm): Define new names for these (see b/4436830).
[Supplemental]
interface IDBCursor {
- [DartName=continueFunction] void continue(in optional IDBKey key);
+ [DartName=continueFunction] void continue([Optional] in IDBKey key);
};
[Supplemental]
interface IDBIndex {
« no previous file with comments | « no previous file | lib/dom/scripts/databasebuilder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698