mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
New named optional arguments syntax
BUG=5218494 Review URL: https://chromereviews.googleplex.com/3516022 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@79 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
3501cc95ce
commit
12b69ca3ba
|
@ -10,9 +10,9 @@ interface AbstractWorker extends EventTarget {
|
|||
|
||||
void set onerror(EventListener value);
|
||||
|
||||
void addEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void addEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
|
||||
bool dispatchEvent(Event evt);
|
||||
|
||||
void removeEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void removeEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
}
|
||||
|
|
|
@ -8,5 +8,5 @@ interface BeforeLoadEvent extends Event {
|
|||
|
||||
String get url();
|
||||
|
||||
void initBeforeLoadEvent(String type = null, bool canBubble = null, bool cancelable = null, String url = null);
|
||||
void initBeforeLoadEvent([String type, bool canBubble, bool cancelable, String url]);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ interface CSSMediaRule extends CSSRule {
|
|||
|
||||
MediaList get media();
|
||||
|
||||
void deleteRule(int index = null);
|
||||
void deleteRule([int index]);
|
||||
|
||||
int insertRule(String rule = null, int index = null);
|
||||
int insertRule([String rule, int index]);
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ interface CSSPrimitiveValue extends CSSValue {
|
|||
|
||||
Counter getCounterValue();
|
||||
|
||||
num getFloatValue(int unitType = null);
|
||||
num getFloatValue([int unitType]);
|
||||
|
||||
RGBColor getRGBColorValue();
|
||||
|
||||
|
@ -70,7 +70,7 @@ interface CSSPrimitiveValue extends CSSValue {
|
|||
|
||||
String getStringValue();
|
||||
|
||||
void setFloatValue(int unitType = null, num floatValue = null);
|
||||
void setFloatValue([int unitType, num floatValue]);
|
||||
|
||||
void setStringValue(int stringType = null, String stringValue = null);
|
||||
void setStringValue([int stringType, String stringValue]);
|
||||
}
|
||||
|
|
|
@ -8,5 +8,5 @@ interface CSSRuleList {
|
|||
|
||||
int get length();
|
||||
|
||||
CSSRule item(int index = null);
|
||||
CSSRule item([int index]);
|
||||
}
|
||||
|
|
|
@ -14,19 +14,19 @@ interface CSSStyleDeclaration {
|
|||
|
||||
CSSRule get parentRule();
|
||||
|
||||
CSSValue getPropertyCSSValue(String propertyName = null);
|
||||
CSSValue getPropertyCSSValue([String propertyName]);
|
||||
|
||||
String getPropertyPriority(String propertyName = null);
|
||||
String getPropertyPriority([String propertyName]);
|
||||
|
||||
String getPropertyShorthand(String propertyName = null);
|
||||
String getPropertyShorthand([String propertyName]);
|
||||
|
||||
String getPropertyValue(String propertyName = null);
|
||||
String getPropertyValue([String propertyName]);
|
||||
|
||||
bool isPropertyImplicit(String propertyName = null);
|
||||
bool isPropertyImplicit([String propertyName]);
|
||||
|
||||
String item(int index = null);
|
||||
String item([int index]);
|
||||
|
||||
String removeProperty(String propertyName = null);
|
||||
String removeProperty([String propertyName]);
|
||||
|
||||
void setProperty(String propertyName = null, String value = null, String priority = null);
|
||||
void setProperty([String propertyName, String value, String priority]);
|
||||
}
|
||||
|
|
|
@ -12,11 +12,11 @@ interface CSSStyleSheet extends StyleSheet {
|
|||
|
||||
CSSRuleList get rules();
|
||||
|
||||
int addRule(String selector = null, String style = null, int index = null);
|
||||
int addRule([String selector, String style, int index]);
|
||||
|
||||
void deleteRule(int index = null);
|
||||
void deleteRule([int index]);
|
||||
|
||||
int insertRule(String rule = null, int index = null);
|
||||
int insertRule([String rule, int index]);
|
||||
|
||||
void removeRule(int index = null);
|
||||
void removeRule([int index]);
|
||||
}
|
||||
|
|
|
@ -8,5 +8,5 @@ interface CSSValueList extends CSSValue {
|
|||
|
||||
int get length();
|
||||
|
||||
CSSValue item(int index = null);
|
||||
CSSValue item([int index]);
|
||||
}
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
|
||||
interface CanvasGradient {
|
||||
|
||||
void addColorStop(num offset = null, String color = null);
|
||||
void addColorStop([num offset, String color]);
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ interface CanvasRenderingContext2D extends CanvasRenderingContext {
|
|||
|
||||
void closePath();
|
||||
|
||||
ImageData createImageData(var imagedata_OR_sw, num sh = null);
|
||||
ImageData createImageData(var imagedata_OR_sw, [num sh]);
|
||||
|
||||
CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1);
|
||||
|
||||
|
@ -82,15 +82,15 @@ interface CanvasRenderingContext2D extends CanvasRenderingContext {
|
|||
|
||||
CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, num r1);
|
||||
|
||||
void drawImage(var canvas_OR_image, num sx_OR_x, num sy_OR_y, num sw_OR_width = null, num height_OR_sh = null, num dx = null, num dy = null, num dw = null, num dh = null);
|
||||
void drawImage(var canvas_OR_image, num sx_OR_x, num sy_OR_y, [num sw_OR_width, num height_OR_sh, num dx, num dy, num dw, num dh]);
|
||||
|
||||
void drawImageFromRect(HTMLImageElement image, num sx = null, num sy = null, num sw = null, num sh = null, num dx = null, num dy = null, num dw = null, num dh = null, String compositeOperation = null);
|
||||
void drawImageFromRect(HTMLImageElement image, [num sx, num sy, num sw, num sh, num dx, num dy, num dw, num dh, String compositeOperation]);
|
||||
|
||||
void fill();
|
||||
|
||||
void fillRect(num x, num y, num width, num height);
|
||||
|
||||
void fillText(String text, num x, num y, num maxWidth = null);
|
||||
void fillText(String text, num x, num y, [num maxWidth]);
|
||||
|
||||
ImageData getImageData(num sx, num sy, num sw, num sh);
|
||||
|
||||
|
@ -102,7 +102,7 @@ interface CanvasRenderingContext2D extends CanvasRenderingContext {
|
|||
|
||||
void moveTo(num x, num y);
|
||||
|
||||
void putImageData(ImageData imagedata, num dx, num dy, num dirtyX = null, num dirtyY = null, num dirtyWidth = null, num dirtyHeight = null);
|
||||
void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight]);
|
||||
|
||||
void quadraticCurveTo(num cpx, num cpy, num x, num y);
|
||||
|
||||
|
@ -120,7 +120,7 @@ interface CanvasRenderingContext2D extends CanvasRenderingContext {
|
|||
|
||||
void setCompositeOperation(String compositeOperation);
|
||||
|
||||
void setFillColor(var c_OR_color_OR_grayLevel_OR_r, num alpha_OR_g_OR_m = null, num b_OR_y = null, num a_OR_k = null, num a = null);
|
||||
void setFillColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m, num b_OR_y, num a_OR_k, num a]);
|
||||
|
||||
void setFillStyle(var color_OR_gradient_OR_pattern);
|
||||
|
||||
|
@ -132,9 +132,9 @@ interface CanvasRenderingContext2D extends CanvasRenderingContext {
|
|||
|
||||
void setMiterLimit(num limit);
|
||||
|
||||
void setShadow(num width, num height, num blur, var c_OR_color_OR_grayLevel_OR_r = null, num alpha_OR_g_OR_m = null, num b_OR_y = null, num a_OR_k = null, num a = null);
|
||||
void setShadow(num width, num height, num blur, [var c_OR_color_OR_grayLevel_OR_r, num alpha_OR_g_OR_m, num b_OR_y, num a_OR_k, num a]);
|
||||
|
||||
void setStrokeColor(var c_OR_color_OR_grayLevel_OR_r, num alpha_OR_g_OR_m = null, num b_OR_y = null, num a_OR_k = null, num a = null);
|
||||
void setStrokeColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m, num b_OR_y, num a_OR_k, num a]);
|
||||
|
||||
void setStrokeStyle(var color_OR_gradient_OR_pattern);
|
||||
|
||||
|
@ -142,9 +142,9 @@ interface CanvasRenderingContext2D extends CanvasRenderingContext {
|
|||
|
||||
void stroke();
|
||||
|
||||
void strokeRect(num x, num y, num width, num height, num lineWidth = null);
|
||||
void strokeRect(num x, num y, num width, num height, [num lineWidth]);
|
||||
|
||||
void strokeText(String text, num x, num y, num maxWidth = null);
|
||||
void strokeText(String text, num x, num y, [num maxWidth]);
|
||||
|
||||
void transform(num m11, num m12, num m21, num m22, num dx, num dy);
|
||||
|
||||
|
|
|
@ -12,13 +12,13 @@ interface CharacterData extends Node {
|
|||
|
||||
int get length();
|
||||
|
||||
void appendData(String data = null);
|
||||
void appendData([String data]);
|
||||
|
||||
void deleteData(int offset = null, int length = null);
|
||||
void deleteData([int offset, int length]);
|
||||
|
||||
void insertData(int offset = null, String data = null);
|
||||
void insertData([int offset, String data]);
|
||||
|
||||
void replaceData(int offset = null, int length = null, String data = null);
|
||||
void replaceData([int offset, int length, String data]);
|
||||
|
||||
String substringData(int offset = null, int length = null);
|
||||
String substringData([int offset, int length]);
|
||||
}
|
||||
|
|
|
@ -8,5 +8,5 @@ interface ClientRectList {
|
|||
|
||||
int get length();
|
||||
|
||||
ClientRect item(int index = null);
|
||||
ClientRect item([int index]);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ interface Clipboard {
|
|||
|
||||
DataTransferItems get items();
|
||||
|
||||
void clearData(String type = null);
|
||||
void clearData([String type]);
|
||||
|
||||
void getData(String type);
|
||||
|
||||
|
|
|
@ -12,5 +12,5 @@ interface CloseEvent extends Event {
|
|||
|
||||
bool get wasClean();
|
||||
|
||||
void initCloseEvent(String typeArg = null, bool canBubbleArg = null, bool cancelableArg = null, bool wasCleanArg = null, int codeArg = null, String reasonArg = null);
|
||||
void initCloseEvent([String typeArg, bool canBubbleArg, bool cancelableArg, bool wasCleanArg, int codeArg, String reasonArg]);
|
||||
}
|
||||
|
|
|
@ -8,5 +8,5 @@ interface CompositionEvent extends UIEvent {
|
|||
|
||||
String get data();
|
||||
|
||||
void initCompositionEvent(String typeArg = null, bool canBubbleArg = null, bool cancelableArg = null, DOMWindow viewArg = null, String dataArg = null);
|
||||
void initCompositionEvent([String typeArg, bool canBubbleArg, bool cancelableArg, DOMWindow viewArg, String dataArg]);
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ interface Console {
|
|||
|
||||
void markTimeline();
|
||||
|
||||
void time(String title = null);
|
||||
void time([String title]);
|
||||
|
||||
void timeEnd(String title);
|
||||
|
||||
|
|
|
@ -8,5 +8,5 @@ interface CustomEvent extends Event {
|
|||
|
||||
Object get detail();
|
||||
|
||||
void initCustomEvent(String typeArg = null, bool canBubbleArg = null, bool cancelableArg = null, Object detailArg = null);
|
||||
void initCustomEvent([String typeArg, bool canBubbleArg, bool cancelableArg, Object detailArg]);
|
||||
}
|
||||
|
|
|
@ -40,11 +40,11 @@ interface ApplicationCache extends EventTarget {
|
|||
|
||||
int get status();
|
||||
|
||||
void addEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void addEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
|
||||
bool dispatchEvent(Event evt);
|
||||
|
||||
void removeEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void removeEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
|
||||
void swapCache();
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
interface FormData {
|
||||
|
||||
void append(String name = null, String value = null);
|
||||
void append([String name, String value]);
|
||||
}
|
||||
|
||||
interface DOMFormData extends FormData {
|
||||
|
|
|
@ -6,13 +6,13 @@
|
|||
|
||||
interface DOMImplementation {
|
||||
|
||||
CSSStyleSheet createCSSStyleSheet(String title = null, String media = null);
|
||||
CSSStyleSheet createCSSStyleSheet([String title, String media]);
|
||||
|
||||
Document createDocument(String namespaceURI = null, String qualifiedName = null, DocumentType doctype = null);
|
||||
Document createDocument([String namespaceURI, String qualifiedName, DocumentType doctype]);
|
||||
|
||||
DocumentType createDocumentType(String qualifiedName = null, String publicId = null, String systemId = null);
|
||||
DocumentType createDocumentType([String qualifiedName, String publicId, String systemId]);
|
||||
|
||||
HTMLDocument createHTMLDocument(String title = null);
|
||||
HTMLDocument createHTMLDocument([String title]);
|
||||
|
||||
bool hasFeature(String feature = null, String version = null);
|
||||
bool hasFeature([String feature, String version]);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ interface DOMMimeTypeArray {
|
|||
|
||||
int get length();
|
||||
|
||||
DOMMimeType item(int index = null);
|
||||
DOMMimeType item([int index]);
|
||||
|
||||
DOMMimeType namedItem(String name = null);
|
||||
DOMMimeType namedItem([String name]);
|
||||
}
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
|
||||
interface DOMParser {
|
||||
|
||||
Document parseFromString(String str = null, String contentType = null);
|
||||
Document parseFromString([String str, String contentType]);
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ interface DOMPlugin {
|
|||
|
||||
String get name();
|
||||
|
||||
DOMMimeType item(int index = null);
|
||||
DOMMimeType item([int index]);
|
||||
|
||||
DOMMimeType namedItem(String name = null);
|
||||
DOMMimeType namedItem([String name]);
|
||||
}
|
||||
|
|
|
@ -8,9 +8,9 @@ interface DOMPluginArray {
|
|||
|
||||
int get length();
|
||||
|
||||
DOMPlugin item(int index = null);
|
||||
DOMPlugin item([int index]);
|
||||
|
||||
DOMPlugin namedItem(String name = null);
|
||||
DOMPlugin namedItem([String name]);
|
||||
|
||||
void refresh(bool reload = null);
|
||||
void refresh([bool reload]);
|
||||
}
|
||||
|
|
|
@ -28,33 +28,33 @@ interface Selection {
|
|||
|
||||
String get type();
|
||||
|
||||
void addRange(Range range = null);
|
||||
void addRange([Range range]);
|
||||
|
||||
void collapse(Node node = null, int index = null);
|
||||
void collapse([Node node, int index]);
|
||||
|
||||
void collapseToEnd();
|
||||
|
||||
void collapseToStart();
|
||||
|
||||
bool containsNode(Node node = null, bool allowPartial = null);
|
||||
bool containsNode([Node node, bool allowPartial]);
|
||||
|
||||
void deleteFromDocument();
|
||||
|
||||
void empty();
|
||||
|
||||
void extend(Node node = null, int offset = null);
|
||||
void extend([Node node, int offset]);
|
||||
|
||||
Range getRangeAt(int index = null);
|
||||
Range getRangeAt([int index]);
|
||||
|
||||
void modify(String alter = null, String direction = null, String granularity = null);
|
||||
void modify([String alter, String direction, String granularity]);
|
||||
|
||||
void removeAllRanges();
|
||||
|
||||
void selectAllChildren(Node node = null);
|
||||
void selectAllChildren([Node node]);
|
||||
|
||||
void setBaseAndExtent(Node baseNode = null, int baseOffset = null, Node extentNode = null, int extentOffset = null);
|
||||
void setBaseAndExtent([Node baseNode, int baseOffset, Node extentNode, int extentOffset]);
|
||||
|
||||
void setPosition(Node node = null, int offset = null);
|
||||
void setPosition([Node node, int offset]);
|
||||
}
|
||||
|
||||
interface DOMSelection extends Selection {
|
||||
|
|
|
@ -462,29 +462,29 @@ interface Window extends EventTarget {
|
|||
|
||||
DOMWindow get window();
|
||||
|
||||
void addEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void addEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
|
||||
void alert(String message = null);
|
||||
void alert([String message]);
|
||||
|
||||
String atob(String string = null);
|
||||
String atob([String string]);
|
||||
|
||||
void blur();
|
||||
|
||||
String btoa(String string = null);
|
||||
String btoa([String string]);
|
||||
|
||||
void captureEvents();
|
||||
|
||||
void clearInterval(int handle = null);
|
||||
void clearInterval([int handle]);
|
||||
|
||||
void clearTimeout(int handle = null);
|
||||
void clearTimeout([int handle]);
|
||||
|
||||
void close();
|
||||
|
||||
bool confirm(String message = null);
|
||||
bool confirm([String message]);
|
||||
|
||||
FileReader createFileReader();
|
||||
|
||||
WebKitCSSMatrix createWebKitCSSMatrix(String cssValue = null);
|
||||
WebKitCSSMatrix createWebKitCSSMatrix([String cssValue]);
|
||||
|
||||
WebKitPoint createWebKitPoint(num x, num y);
|
||||
|
||||
|
@ -492,11 +492,11 @@ interface Window extends EventTarget {
|
|||
|
||||
bool dispatchEvent(Event evt);
|
||||
|
||||
bool find(String string = null, bool caseSensitive = null, bool backwards = null, bool wrap = null, bool wholeWord = null, bool searchInFrames = null, bool showDialog = null);
|
||||
bool find([String string, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog]);
|
||||
|
||||
void focus();
|
||||
|
||||
CSSStyleDeclaration getComputedStyle(Element element = null, String pseudoElement = null);
|
||||
CSSStyleDeclaration getComputedStyle([Element element, String pseudoElement]);
|
||||
|
||||
DOMSelection getSelection();
|
||||
|
||||
|
@ -506,17 +506,17 @@ interface Window extends EventTarget {
|
|||
|
||||
void moveTo(num x, num y);
|
||||
|
||||
DOMWindow open(String url, String name, String options = null);
|
||||
DOMWindow open(String url, String name, [String options]);
|
||||
|
||||
void postMessage(String message, var messagePort_OR_targetOrigin, String targetOrigin = null);
|
||||
void postMessage(String message, var messagePort_OR_targetOrigin, [String targetOrigin]);
|
||||
|
||||
void print();
|
||||
|
||||
String prompt(String message = null, String defaultValue = null);
|
||||
String prompt([String message, String defaultValue]);
|
||||
|
||||
void releaseEvents();
|
||||
|
||||
void removeEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void removeEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
|
||||
void resizeBy(num x, num y);
|
||||
|
||||
|
@ -530,19 +530,19 @@ interface Window extends EventTarget {
|
|||
|
||||
int setInterval(TimeoutHandler handler, int timeout);
|
||||
|
||||
int setTimeout(TimeoutHandler handler = null, int timeout = null);
|
||||
int setTimeout([TimeoutHandler handler, int timeout]);
|
||||
|
||||
Object showModalDialog(String url, Object dialogArgs = null, String featureArgs = null);
|
||||
Object showModalDialog(String url, [Object dialogArgs, String featureArgs]);
|
||||
|
||||
void stop();
|
||||
|
||||
void webkitCancelRequestAnimationFrame(int id);
|
||||
|
||||
WebKitPoint webkitConvertPointFromNodeToPage(Node node = null, WebKitPoint p = null);
|
||||
WebKitPoint webkitConvertPointFromNodeToPage([Node node, WebKitPoint p]);
|
||||
|
||||
WebKitPoint webkitConvertPointFromPageToNode(Node node = null, WebKitPoint p = null);
|
||||
WebKitPoint webkitConvertPointFromPageToNode([Node node, WebKitPoint p]);
|
||||
|
||||
int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, Element element = null);
|
||||
int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, [Element element]);
|
||||
}
|
||||
|
||||
interface DOMWindow extends Window {
|
||||
|
|
|
@ -12,5 +12,5 @@ interface DataTransferItem {
|
|||
|
||||
Blob getAsFile();
|
||||
|
||||
void getAsString(StringCallback callback = null);
|
||||
void getAsString([StringCallback callback]);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ interface DataTransferItems {
|
|||
|
||||
int get length();
|
||||
|
||||
void add(String data = null, String type = null);
|
||||
void add([String data, String type]);
|
||||
|
||||
void clear();
|
||||
|
||||
|
|
|
@ -6,35 +6,35 @@
|
|||
|
||||
interface DataView extends ArrayBufferView {
|
||||
|
||||
num getFloat32(int byteOffset, bool littleEndian = null);
|
||||
num getFloat32(int byteOffset, [bool littleEndian]);
|
||||
|
||||
num getFloat64(int byteOffset, bool littleEndian = null);
|
||||
num getFloat64(int byteOffset, [bool littleEndian]);
|
||||
|
||||
int getInt16(int byteOffset, bool littleEndian = null);
|
||||
int getInt16(int byteOffset, [bool littleEndian]);
|
||||
|
||||
int getInt32(int byteOffset, bool littleEndian = null);
|
||||
int getInt32(int byteOffset, [bool littleEndian]);
|
||||
|
||||
Object getInt8();
|
||||
|
||||
int getUint16(int byteOffset, bool littleEndian = null);
|
||||
int getUint16(int byteOffset, [bool littleEndian]);
|
||||
|
||||
int getUint32(int byteOffset, bool littleEndian = null);
|
||||
int getUint32(int byteOffset, [bool littleEndian]);
|
||||
|
||||
Object getUint8();
|
||||
|
||||
void setFloat32(int byteOffset, num value, bool littleEndian = null);
|
||||
void setFloat32(int byteOffset, num value, [bool littleEndian]);
|
||||
|
||||
void setFloat64(int byteOffset, num value, bool littleEndian = null);
|
||||
void setFloat64(int byteOffset, num value, [bool littleEndian]);
|
||||
|
||||
void setInt16(int byteOffset, int value, bool littleEndian = null);
|
||||
void setInt16(int byteOffset, int value, [bool littleEndian]);
|
||||
|
||||
void setInt32(int byteOffset, int value, bool littleEndian = null);
|
||||
void setInt32(int byteOffset, int value, [bool littleEndian]);
|
||||
|
||||
void setInt8();
|
||||
|
||||
void setUint16(int byteOffset, int value, bool littleEndian = null);
|
||||
void setUint16(int byteOffset, int value, [bool littleEndian]);
|
||||
|
||||
void setUint32(int byteOffset, int value, bool littleEndian = null);
|
||||
void setUint32(int byteOffset, int value, [bool littleEndian]);
|
||||
|
||||
void setUint8();
|
||||
}
|
||||
|
|
|
@ -8,9 +8,9 @@ interface Database {
|
|||
|
||||
String get version();
|
||||
|
||||
void changeVersion(String oldVersion, String newVersion, SQLTransactionCallback callback = null, SQLTransactionErrorCallback errorCallback = null, VoidCallback successCallback = null);
|
||||
void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallback callback, SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]);
|
||||
|
||||
void readTransaction(SQLTransactionCallback callback, SQLTransactionErrorCallback errorCallback = null, VoidCallback successCallback = null);
|
||||
void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]);
|
||||
|
||||
void transaction(SQLTransactionCallback callback, SQLTransactionErrorCallback errorCallback = null, VoidCallback successCallback = null);
|
||||
void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ interface DatabaseSync {
|
|||
|
||||
String get version();
|
||||
|
||||
void changeVersion(String oldVersion, String newVersion, SQLTransactionSyncCallback callback = null);
|
||||
void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCallback callback]);
|
||||
|
||||
void readTransaction(SQLTransactionSyncCallback callback);
|
||||
|
||||
|
|
|
@ -8,5 +8,5 @@ interface DeviceMotionEvent extends Event {
|
|||
|
||||
num get interval();
|
||||
|
||||
void initDeviceMotionEvent(String type = null, bool bubbles = null, bool cancelable = null);
|
||||
void initDeviceMotionEvent([String type, bool bubbles, bool cancelable]);
|
||||
}
|
||||
|
|
|
@ -12,5 +12,5 @@ interface DeviceOrientationEvent extends Event {
|
|||
|
||||
num get gamma();
|
||||
|
||||
void initDeviceOrientationEvent(String type = null, bool bubbles = null, bool cancelable = null, num alpha = null, num beta = null, num gamma = null);
|
||||
void initDeviceOrientationEvent([String type, bool bubbles, bool cancelable, num alpha, num beta, num gamma]);
|
||||
}
|
||||
|
|
|
@ -8,9 +8,9 @@ interface DirectoryEntry extends Entry {
|
|||
|
||||
DirectoryReader createReader();
|
||||
|
||||
void getDirectory(String path, WebKitFlags flags = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null);
|
||||
void getDirectory(String path, [WebKitFlags flags, EntryCallback successCallback, ErrorCallback errorCallback]);
|
||||
|
||||
void getFile(String path, WebKitFlags flags = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null);
|
||||
void getFile(String path, [WebKitFlags flags, EntryCallback successCallback, ErrorCallback errorCallback]);
|
||||
|
||||
void removeRecursively(VoidCallback successCallback = null, ErrorCallback errorCallback = null);
|
||||
void removeRecursively([VoidCallback successCallback, ErrorCallback errorCallback]);
|
||||
}
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
|
||||
interface DirectoryReader {
|
||||
|
||||
void readEntries(EntriesCallback successCallback, ErrorCallback errorCallback = null);
|
||||
void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback]);
|
||||
}
|
||||
|
|
|
@ -270,69 +270,69 @@ interface Document extends Node, NodeSelector {
|
|||
|
||||
void set xmlVersion(String value);
|
||||
|
||||
Node adoptNode(Node source = null);
|
||||
Node adoptNode([Node source]);
|
||||
|
||||
Range caretRangeFromPoint(int x = null, int y = null);
|
||||
Range caretRangeFromPoint([int x, int y]);
|
||||
|
||||
Attr createAttribute(String name = null);
|
||||
Attr createAttribute([String name]);
|
||||
|
||||
Attr createAttributeNS(String namespaceURI = null, String qualifiedName = null);
|
||||
Attr createAttributeNS([String namespaceURI, String qualifiedName]);
|
||||
|
||||
CDATASection createCDATASection(String data = null);
|
||||
CDATASection createCDATASection([String data]);
|
||||
|
||||
CSSStyleDeclaration createCSSStyleDeclaration();
|
||||
|
||||
Comment createComment(String data = null);
|
||||
Comment createComment([String data]);
|
||||
|
||||
DocumentFragment createDocumentFragment();
|
||||
|
||||
Element createElement(String tagName = null);
|
||||
Element createElement([String tagName]);
|
||||
|
||||
Element createElementNS(String namespaceURI = null, String qualifiedName = null);
|
||||
Element createElementNS([String namespaceURI, String qualifiedName]);
|
||||
|
||||
EntityReference createEntityReference(String name = null);
|
||||
EntityReference createEntityReference([String name]);
|
||||
|
||||
Event createEvent(String eventType = null);
|
||||
Event createEvent([String eventType]);
|
||||
|
||||
NodeIterator createNodeIterator(Node root = null, int whatToShow = null, NodeFilter filter = null, bool expandEntityReferences = null);
|
||||
NodeIterator createNodeIterator([Node root, int whatToShow, NodeFilter filter, bool expandEntityReferences]);
|
||||
|
||||
ProcessingInstruction createProcessingInstruction(String target = null, String data = null);
|
||||
ProcessingInstruction createProcessingInstruction([String target, String data]);
|
||||
|
||||
Range createRange();
|
||||
|
||||
Text createTextNode(String data = null);
|
||||
Text createTextNode([String data]);
|
||||
|
||||
TreeWalker createTreeWalker(Node root = null, int whatToShow = null, NodeFilter filter = null, bool expandEntityReferences = null);
|
||||
TreeWalker createTreeWalker([Node root, int whatToShow, NodeFilter filter, bool expandEntityReferences]);
|
||||
|
||||
Element elementFromPoint(int x = null, int y = null);
|
||||
Element elementFromPoint([int x, int y]);
|
||||
|
||||
bool execCommand(String command = null, bool userInterface = null, String value = null);
|
||||
bool execCommand([String command, bool userInterface, String value]);
|
||||
|
||||
Object getCSSCanvasContext(String contextId, String name, int width, int height);
|
||||
|
||||
Element getElementById(String elementId = null);
|
||||
Element getElementById([String elementId]);
|
||||
|
||||
NodeList getElementsByClassName(String tagname = null);
|
||||
NodeList getElementsByClassName([String tagname]);
|
||||
|
||||
NodeList getElementsByName(String elementName = null);
|
||||
NodeList getElementsByName([String elementName]);
|
||||
|
||||
NodeList getElementsByTagName(String tagname = null);
|
||||
NodeList getElementsByTagName([String tagname]);
|
||||
|
||||
NodeList getElementsByTagNameNS(String namespaceURI = null, String localName = null);
|
||||
NodeList getElementsByTagNameNS([String namespaceURI, String localName]);
|
||||
|
||||
CSSStyleDeclaration getOverrideStyle(Element element = null, String pseudoElement = null);
|
||||
CSSStyleDeclaration getOverrideStyle([Element element, String pseudoElement]);
|
||||
|
||||
Node importNode(Node importedNode = null, bool deep = null);
|
||||
Node importNode([Node importedNode, bool deep]);
|
||||
|
||||
bool queryCommandEnabled(String command = null);
|
||||
bool queryCommandEnabled([String command]);
|
||||
|
||||
bool queryCommandIndeterm(String command = null);
|
||||
bool queryCommandIndeterm([String command]);
|
||||
|
||||
bool queryCommandState(String command = null);
|
||||
bool queryCommandState([String command]);
|
||||
|
||||
bool queryCommandSupported(String command = null);
|
||||
bool queryCommandSupported([String command]);
|
||||
|
||||
String queryCommandValue(String command = null);
|
||||
String queryCommandValue([String command]);
|
||||
|
||||
Element querySelector(String selectors);
|
||||
|
||||
|
|
|
@ -230,53 +230,53 @@ interface Element extends Node, NodeSelector, ElementTraversal {
|
|||
|
||||
void focus();
|
||||
|
||||
String getAttribute(String name = null);
|
||||
String getAttribute([String name]);
|
||||
|
||||
String getAttributeNS(String namespaceURI = null, String localName = null);
|
||||
String getAttributeNS([String namespaceURI, String localName]);
|
||||
|
||||
Attr getAttributeNode(String name = null);
|
||||
Attr getAttributeNode([String name]);
|
||||
|
||||
Attr getAttributeNodeNS(String namespaceURI = null, String localName = null);
|
||||
Attr getAttributeNodeNS([String namespaceURI, String localName]);
|
||||
|
||||
ClientRect getBoundingClientRect();
|
||||
|
||||
ClientRectList getClientRects();
|
||||
|
||||
NodeList getElementsByClassName(String name = null);
|
||||
NodeList getElementsByClassName([String name]);
|
||||
|
||||
NodeList getElementsByTagName(String name = null);
|
||||
NodeList getElementsByTagName([String name]);
|
||||
|
||||
NodeList getElementsByTagNameNS(String namespaceURI = null, String localName = null);
|
||||
NodeList getElementsByTagNameNS([String namespaceURI, String localName]);
|
||||
|
||||
bool hasAttribute(String name);
|
||||
|
||||
bool hasAttributeNS(String namespaceURI = null, String localName = null);
|
||||
bool hasAttributeNS([String namespaceURI, String localName]);
|
||||
|
||||
Element querySelector(String selectors);
|
||||
|
||||
NodeList querySelectorAll(String selectors);
|
||||
|
||||
void removeAttribute(String name = null);
|
||||
void removeAttribute([String name]);
|
||||
|
||||
void removeAttributeNS(String namespaceURI, String localName);
|
||||
|
||||
Attr removeAttributeNode(Attr oldAttr = null);
|
||||
Attr removeAttributeNode([Attr oldAttr]);
|
||||
|
||||
void scrollByLines(int lines = null);
|
||||
void scrollByLines([int lines]);
|
||||
|
||||
void scrollByPages(int pages = null);
|
||||
void scrollByPages([int pages]);
|
||||
|
||||
void scrollIntoView(bool alignWithTop = null);
|
||||
void scrollIntoView([bool alignWithTop]);
|
||||
|
||||
void scrollIntoViewIfNeeded(bool centerIfNeeded = null);
|
||||
void scrollIntoViewIfNeeded([bool centerIfNeeded]);
|
||||
|
||||
void setAttribute(String name = null, String value = null);
|
||||
void setAttribute([String name, String value]);
|
||||
|
||||
void setAttributeNS(String namespaceURI = null, String qualifiedName = null, String value = null);
|
||||
void setAttributeNS([String namespaceURI, String qualifiedName, String value]);
|
||||
|
||||
Attr setAttributeNode(Attr newAttr = null);
|
||||
Attr setAttributeNode([Attr newAttr]);
|
||||
|
||||
Attr setAttributeNodeNS(Attr newAttr = null);
|
||||
Attr setAttributeNodeNS([Attr newAttr]);
|
||||
|
||||
bool webkitMatchesSelector(String selectors = null);
|
||||
bool webkitMatchesSelector([String selectors]);
|
||||
}
|
||||
|
|
|
@ -16,15 +16,15 @@ interface Entry {
|
|||
|
||||
String get name();
|
||||
|
||||
void copyTo(DirectoryEntry parent, String name = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null);
|
||||
void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback, ErrorCallback errorCallback]);
|
||||
|
||||
void getMetadata(MetadataCallback successCallback = null, ErrorCallback errorCallback = null);
|
||||
void getMetadata([MetadataCallback successCallback, ErrorCallback errorCallback]);
|
||||
|
||||
void getParent(EntryCallback successCallback = null, ErrorCallback errorCallback = null);
|
||||
void getParent([EntryCallback successCallback, ErrorCallback errorCallback]);
|
||||
|
||||
void moveTo(DirectoryEntry parent, String name = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null);
|
||||
void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback, ErrorCallback errorCallback]);
|
||||
|
||||
void remove(VoidCallback successCallback = null, ErrorCallback errorCallback = null);
|
||||
void remove([VoidCallback successCallback, ErrorCallback errorCallback]);
|
||||
|
||||
String toURL();
|
||||
}
|
||||
|
|
|
@ -12,5 +12,5 @@ interface ErrorEvent extends Event {
|
|||
|
||||
String get message();
|
||||
|
||||
void initErrorEvent(String typeArg = null, bool canBubbleArg = null, bool cancelableArg = null, String messageArg = null, String filenameArg = null, int linenoArg = null);
|
||||
void initErrorEvent([String typeArg, bool canBubbleArg, bool cancelableArg, String messageArg, String filenameArg, int linenoArg]);
|
||||
}
|
||||
|
|
|
@ -70,7 +70,7 @@ interface Event {
|
|||
|
||||
String get type();
|
||||
|
||||
void initEvent(String eventTypeArg = null, bool canBubbleArg = null, bool cancelableArg = null);
|
||||
void initEvent([String eventTypeArg, bool canBubbleArg, bool cancelableArg]);
|
||||
|
||||
void preventDefault();
|
||||
|
||||
|
|
|
@ -28,11 +28,11 @@ interface EventSource extends EventTarget {
|
|||
|
||||
int get readyState();
|
||||
|
||||
void addEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void addEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
|
||||
void close();
|
||||
|
||||
bool dispatchEvent(Event evt);
|
||||
|
||||
void removeEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void removeEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
}
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
|
||||
interface EventTarget {
|
||||
|
||||
void addEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void addEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
|
||||
bool dispatchEvent(Event event);
|
||||
|
||||
void removeEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void removeEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
|
||||
// void addEventListener(String type, EventListener listener);
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
interface FileEntry extends Entry {
|
||||
|
||||
void createWriter(FileWriterCallback successCallback, ErrorCallback errorCallback = null);
|
||||
void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCallback]);
|
||||
|
||||
void file(FileCallback successCallback, ErrorCallback errorCallback = null);
|
||||
void file(FileCallback successCallback, [ErrorCallback errorCallback]);
|
||||
}
|
||||
|
|
|
@ -52,5 +52,5 @@ interface FileReader factory _FileReaderFactoryProvider {
|
|||
|
||||
void readAsDataURL(Blob blob);
|
||||
|
||||
void readAsText(Blob blob, String encoding = null);
|
||||
void readAsText(Blob blob, [String encoding]);
|
||||
}
|
||||
|
|
|
@ -12,5 +12,5 @@ interface FileReaderSync {
|
|||
|
||||
String readAsDataURL(Blob blob);
|
||||
|
||||
String readAsText(Blob blob, String encoding = null);
|
||||
String readAsText(Blob blob, [String encoding]);
|
||||
}
|
||||
|
|
|
@ -10,5 +10,5 @@ interface Float32Array extends ArrayBufferView {
|
|||
|
||||
int get length();
|
||||
|
||||
Float32Array subarray(int start = null, int end = null);
|
||||
Float32Array subarray([int start, int end]);
|
||||
}
|
||||
|
|
|
@ -10,5 +10,5 @@ interface Float64Array extends ArrayBufferView {
|
|||
|
||||
int get length();
|
||||
|
||||
Float64Array subarray(int start = null, int end = null);
|
||||
Float64Array subarray([int start, int end]);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ interface Geolocation {
|
|||
|
||||
void clearWatch(int watchId);
|
||||
|
||||
void getCurrentPosition(PositionCallback successCallback, PositionErrorCallback errorCallback = null);
|
||||
void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallback errorCallback]);
|
||||
|
||||
int watchPosition(PositionCallback successCallback, PositionErrorCallback errorCallback = null);
|
||||
int watchPosition(PositionCallback successCallback, [PositionErrorCallback errorCallback]);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ interface HTMLAllCollection {
|
|||
|
||||
int get length();
|
||||
|
||||
Node item(int index = null);
|
||||
Node item([int index]);
|
||||
|
||||
Node namedItem(String name);
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ interface HTMLCanvasElement extends HTMLElement {
|
|||
|
||||
void set width(int value);
|
||||
|
||||
Object getContext(String contextId = null);
|
||||
Object getContext([String contextId]);
|
||||
|
||||
String toDataURL(String type = null);
|
||||
String toDataURL([String type]);
|
||||
}
|
||||
|
|
|
@ -10,5 +10,5 @@ interface HTMLCollection extends List<Node> {
|
|||
|
||||
Node item(int index);
|
||||
|
||||
Node namedItem(String name = null);
|
||||
Node namedItem([String name]);
|
||||
}
|
||||
|
|
|
@ -60,9 +60,9 @@ interface HTMLDocument extends Document {
|
|||
|
||||
void releaseEvents();
|
||||
|
||||
void write(String text = null);
|
||||
void write([String text]);
|
||||
|
||||
void writeln(String text = null);
|
||||
void writeln([String text]);
|
||||
}
|
||||
|
||||
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
||||
|
|
|
@ -72,9 +72,9 @@ interface HTMLElement extends Element {
|
|||
|
||||
void set webkitdropzone(String value);
|
||||
|
||||
Element insertAdjacentElement(String where = null, Element element = null);
|
||||
Element insertAdjacentElement([String where, Element element]);
|
||||
|
||||
void insertAdjacentHTML(String where = null, String html = null);
|
||||
void insertAdjacentHTML([String where, String html]);
|
||||
|
||||
void insertAdjacentText(String where = null, String text = null);
|
||||
void insertAdjacentText([String where, String text]);
|
||||
}
|
||||
|
|
|
@ -194,11 +194,11 @@ interface HTMLInputElement extends HTMLElement {
|
|||
|
||||
void setCustomValidity(String error);
|
||||
|
||||
void setSelectionRange(int start = null, int end = null, String direction = null);
|
||||
void setSelectionRange([int start, int end, String direction]);
|
||||
|
||||
void setValueForUser(String value);
|
||||
|
||||
void stepDown(int n = null);
|
||||
void stepDown([int n]);
|
||||
|
||||
void stepUp(int n = null);
|
||||
void stepUp([int n]);
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ interface HTMLMediaElement extends HTMLElement {
|
|||
|
||||
int get webkitVideoDecodedByteCount();
|
||||
|
||||
String canPlayType(String type = null);
|
||||
String canPlayType([String type]);
|
||||
|
||||
void load();
|
||||
|
||||
|
|
|
@ -14,5 +14,5 @@ interface HTMLOptionsCollection extends HTMLCollection {
|
|||
|
||||
void set selectedIndex(int value);
|
||||
|
||||
void remove(int index = null);
|
||||
void remove([int index]);
|
||||
}
|
||||
|
|
|
@ -56,13 +56,13 @@ interface HTMLSelectElement extends HTMLElement {
|
|||
|
||||
bool get willValidate();
|
||||
|
||||
void add(HTMLElement element = null, HTMLElement before = null);
|
||||
void add([HTMLElement element, HTMLElement before]);
|
||||
|
||||
bool checkValidity();
|
||||
|
||||
Node item(int index = null);
|
||||
Node item([int index]);
|
||||
|
||||
Node namedItem(String name = null);
|
||||
Node namedItem([String name]);
|
||||
|
||||
void remove(int index);
|
||||
|
||||
|
|
|
@ -66,11 +66,11 @@ interface HTMLTableElement extends HTMLElement {
|
|||
|
||||
void deleteCaption();
|
||||
|
||||
void deleteRow(int index = null);
|
||||
void deleteRow([int index]);
|
||||
|
||||
void deleteTFoot();
|
||||
|
||||
void deleteTHead();
|
||||
|
||||
HTMLElement insertRow(int index = null);
|
||||
HTMLElement insertRow([int index]);
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ interface HTMLTableRowElement extends HTMLElement {
|
|||
|
||||
void set vAlign(String value);
|
||||
|
||||
void deleteCell(int index = null);
|
||||
void deleteCell([int index]);
|
||||
|
||||
HTMLElement insertCell(int index = null);
|
||||
HTMLElement insertCell([int index]);
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ interface HTMLTableSectionElement extends HTMLElement {
|
|||
|
||||
void set vAlign(String value);
|
||||
|
||||
void deleteRow(int index = null);
|
||||
void deleteRow([int index]);
|
||||
|
||||
HTMLElement insertRow(int index = null);
|
||||
HTMLElement insertRow([int index]);
|
||||
}
|
||||
|
|
|
@ -90,5 +90,5 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|||
|
||||
void setCustomValidity(String error);
|
||||
|
||||
void setSelectionRange(int start = null, int end = null, String direction = null);
|
||||
void setSelectionRange([int start, int end, String direction]);
|
||||
}
|
||||
|
|
|
@ -10,5 +10,5 @@ interface HashChangeEvent extends Event {
|
|||
|
||||
String get oldURL();
|
||||
|
||||
void initHashChangeEvent(String type = null, bool canBubble = null, bool cancelable = null, String oldURL = null, String newURL = null);
|
||||
void initHashChangeEvent([String type, bool canBubble, bool cancelable, String oldURL, String newURL]);
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@ interface History {
|
|||
|
||||
void forward();
|
||||
|
||||
void go(int distance = null);
|
||||
void go([int distance]);
|
||||
|
||||
void pushState(Object data, String title, String url = null);
|
||||
void pushState(Object data, String title, [String url]);
|
||||
|
||||
void replaceState(Object data, String title, String url = null);
|
||||
void replaceState(Object data, String title, [String url]);
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ interface IDBCursor {
|
|||
|
||||
IDBAny get source();
|
||||
|
||||
void continueFunction(IDBKey key = null);
|
||||
void continueFunction([IDBKey key]);
|
||||
|
||||
IDBRequest delete();
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ interface IDBDatabase {
|
|||
|
||||
String get version();
|
||||
|
||||
void addEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void addEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
|
||||
void close();
|
||||
|
||||
|
@ -32,7 +32,7 @@ interface IDBDatabase {
|
|||
|
||||
bool dispatchEvent(Event evt);
|
||||
|
||||
void removeEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void removeEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
|
||||
IDBVersionChangeRequest setVersion(String version);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ interface IDBIndex {
|
|||
|
||||
IDBRequest getKey(IDBKey key);
|
||||
|
||||
IDBRequest openCursor(IDBKeyRange range = null, int direction = null);
|
||||
IDBRequest openCursor([IDBKeyRange range, int direction]);
|
||||
|
||||
IDBRequest openKeyCursor(IDBKeyRange range = null, int direction = null);
|
||||
IDBRequest openKeyCursor([IDBKeyRange range, int direction]);
|
||||
}
|
||||
|
|
|
@ -14,11 +14,11 @@ interface IDBKeyRange {
|
|||
|
||||
bool get upperOpen();
|
||||
|
||||
IDBKeyRange bound(IDBKey lower, IDBKey upper, bool lowerOpen = null, bool upperOpen = null);
|
||||
IDBKeyRange bound(IDBKey lower, IDBKey upper, [bool lowerOpen, bool upperOpen]);
|
||||
|
||||
IDBKeyRange lowerBound(IDBKey bound, bool open = null);
|
||||
IDBKeyRange lowerBound(IDBKey bound, [bool open]);
|
||||
|
||||
IDBKeyRange only(IDBKey value);
|
||||
|
||||
IDBKeyRange upperBound(IDBKey bound, bool open = null);
|
||||
IDBKeyRange upperBound(IDBKey bound, [bool open]);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ interface IDBObjectStore {
|
|||
|
||||
String get name();
|
||||
|
||||
IDBRequest add(String value, IDBKey key = null);
|
||||
IDBRequest add(String value, [IDBKey key]);
|
||||
|
||||
IDBRequest clear();
|
||||
|
||||
|
@ -24,7 +24,7 @@ interface IDBObjectStore {
|
|||
|
||||
IDBIndex index(String name);
|
||||
|
||||
IDBRequest openCursor(IDBKeyRange range = null, int direction = null);
|
||||
IDBRequest openCursor([IDBKeyRange range, int direction]);
|
||||
|
||||
IDBRequest put(String value, IDBKey key = null);
|
||||
IDBRequest put(String value, [IDBKey key]);
|
||||
}
|
||||
|
|
|
@ -30,9 +30,9 @@ interface IDBRequest {
|
|||
|
||||
String get webkitErrorMessage();
|
||||
|
||||
void addEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void addEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
|
||||
bool dispatchEvent(Event evt);
|
||||
|
||||
void removeEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void removeEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
}
|
||||
|
|
|
@ -30,11 +30,11 @@ interface IDBTransaction {
|
|||
|
||||
void abort();
|
||||
|
||||
void addEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void addEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
|
||||
bool dispatchEvent(Event evt);
|
||||
|
||||
IDBObjectStore objectStore(String name);
|
||||
|
||||
void removeEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void removeEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
}
|
||||
|
|
|
@ -10,5 +10,5 @@ interface Int16Array extends ArrayBufferView {
|
|||
|
||||
int get length();
|
||||
|
||||
Int16Array subarray(int start = null, int end = null);
|
||||
Int16Array subarray([int start, int end]);
|
||||
}
|
||||
|
|
|
@ -10,5 +10,5 @@ interface Int32Array extends ArrayBufferView {
|
|||
|
||||
int get length();
|
||||
|
||||
Int32Array subarray(int start = null, int end = null);
|
||||
Int32Array subarray([int start, int end]);
|
||||
}
|
||||
|
|
|
@ -10,5 +10,5 @@ interface Int8Array extends ArrayBufferView {
|
|||
|
||||
int get length();
|
||||
|
||||
Int8Array subarray(int start = null, int end = null);
|
||||
Int8Array subarray([int start, int end]);
|
||||
}
|
||||
|
|
|
@ -28,9 +28,9 @@ interface KeyboardEvent extends UIEvent {
|
|||
|
||||
bool get shiftKey();
|
||||
|
||||
bool getModifierState(String keyIdentifierArg = null);
|
||||
bool getModifierState([String keyIdentifierArg]);
|
||||
|
||||
void initKeyboardEvent(String type = null, bool canBubble = null, bool cancelable = null, DOMWindow view = null, String keyIdentifier = null, int keyLocation = null, bool ctrlKey = null, bool altKey = null, bool shiftKey = null, bool metaKey = null, bool altGraphKey = null);
|
||||
void initKeyboardEvent([String type, bool canBubble, bool cancelable, DOMWindow view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool altGraphKey]);
|
||||
}
|
||||
|
||||
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
||||
|
|
|
@ -40,11 +40,11 @@ interface Location {
|
|||
|
||||
void set search(String value);
|
||||
|
||||
void assign(String url = null);
|
||||
void assign([String url]);
|
||||
|
||||
String getParameter(String name);
|
||||
|
||||
void reload();
|
||||
|
||||
void replace(String url = null);
|
||||
void replace([String url]);
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@ interface MediaList extends List<String> {
|
|||
|
||||
void set mediaText(String value);
|
||||
|
||||
void appendMedium(String newMedium = null);
|
||||
void appendMedium([String newMedium]);
|
||||
|
||||
void deleteMedium(String oldMedium = null);
|
||||
void deleteMedium([String oldMedium]);
|
||||
|
||||
String item(int index = null);
|
||||
String item([int index]);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ interface MediaQueryList {
|
|||
|
||||
String get media();
|
||||
|
||||
void addListener(MediaQueryListListener listener = null);
|
||||
void addListener([MediaQueryListListener listener]);
|
||||
|
||||
void removeListener(MediaQueryListListener listener = null);
|
||||
void removeListener([MediaQueryListListener listener]);
|
||||
}
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
|
||||
interface MediaQueryListListener {
|
||||
|
||||
void queryChanged(MediaQueryList list = null);
|
||||
void queryChanged([MediaQueryList list]);
|
||||
}
|
||||
|
|
|
@ -20,9 +20,9 @@ interface MediaStream {
|
|||
|
||||
MediaStreamTrackList get tracks();
|
||||
|
||||
void addEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void addEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
|
||||
bool dispatchEvent(Event event);
|
||||
|
||||
void removeEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void removeEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
}
|
||||
|
|
|
@ -16,5 +16,5 @@ interface MessageEvent extends Event {
|
|||
|
||||
DOMWindow get source();
|
||||
|
||||
void initMessageEvent(String typeArg = null, bool canBubbleArg = null, bool cancelableArg = null, String dataArg = null, String originArg = null, String lastEventIdArg = null, DOMWindow sourceArg = null, MessagePort messagePort = null);
|
||||
void initMessageEvent([String typeArg, bool canBubbleArg, bool cancelableArg, String dataArg, String originArg, String lastEventIdArg, DOMWindow sourceArg, MessagePort messagePort]);
|
||||
}
|
||||
|
|
|
@ -38,5 +38,5 @@ interface MouseEvent extends UIEvent {
|
|||
|
||||
int get y();
|
||||
|
||||
void initMouseEvent(String type = null, bool canBubble = null, bool cancelable = null, DOMWindow view = null, int detail = null, int screenX = null, int screenY = null, int clientX = null, int clientY = null, bool ctrlKey = null, bool altKey = null, bool shiftKey = null, bool metaKey = null, int button = null, EventTarget relatedTarget = null);
|
||||
void initMouseEvent([String type, bool canBubble, bool cancelable, DOMWindow view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarget]);
|
||||
}
|
||||
|
|
|
@ -22,5 +22,5 @@ interface MutationEvent extends Event {
|
|||
|
||||
Node get relatedNode();
|
||||
|
||||
void initMutationEvent(String type = null, bool canBubble = null, bool cancelable = null, Node relatedNode = null, String prevValue = null, String newValue = null, String attrName = null, int attrChange = null);
|
||||
void initMutationEvent([String type, bool canBubble, bool cancelable, Node relatedNode, String prevValue, String newValue, String attrName, int attrChange]);
|
||||
}
|
||||
|
|
|
@ -8,17 +8,17 @@ interface NamedNodeMap extends List<Node> {
|
|||
|
||||
int get length();
|
||||
|
||||
Node getNamedItem(String name = null);
|
||||
Node getNamedItem([String name]);
|
||||
|
||||
Node getNamedItemNS(String namespaceURI = null, String localName = null);
|
||||
Node getNamedItemNS([String namespaceURI, String localName]);
|
||||
|
||||
Node item(int index = null);
|
||||
Node item([int index]);
|
||||
|
||||
Node removeNamedItem(String name = null);
|
||||
Node removeNamedItem([String name]);
|
||||
|
||||
Node removeNamedItemNS(String namespaceURI = null, String localName = null);
|
||||
Node removeNamedItemNS([String namespaceURI, String localName]);
|
||||
|
||||
Node setNamedItem(Node node = null);
|
||||
Node setNamedItem([Node node]);
|
||||
|
||||
Node setNamedItemNS(Node node = null);
|
||||
Node setNamedItemNS([Node node]);
|
||||
}
|
||||
|
|
|
@ -82,15 +82,15 @@ interface Node extends EventTarget {
|
|||
|
||||
void set textContent(String value);
|
||||
|
||||
void addEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void addEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
|
||||
Node appendChild(Node newChild);
|
||||
|
||||
Node cloneNode(bool deep = null);
|
||||
Node cloneNode([bool deep]);
|
||||
|
||||
int compareDocumentPosition(Node other = null);
|
||||
int compareDocumentPosition([Node other]);
|
||||
|
||||
bool contains(Node other = null);
|
||||
bool contains([Node other]);
|
||||
|
||||
bool dispatchEvent(Event event);
|
||||
|
||||
|
@ -100,23 +100,23 @@ interface Node extends EventTarget {
|
|||
|
||||
Node insertBefore(Node newChild, Node refChild);
|
||||
|
||||
bool isDefaultNamespace(String namespaceURI = null);
|
||||
bool isDefaultNamespace([String namespaceURI]);
|
||||
|
||||
bool isEqualNode(Node other = null);
|
||||
bool isEqualNode([Node other]);
|
||||
|
||||
bool isSameNode(Node other = null);
|
||||
bool isSameNode([Node other]);
|
||||
|
||||
bool isSupported(String feature = null, String version = null);
|
||||
bool isSupported([String feature, String version]);
|
||||
|
||||
String lookupNamespaceURI(String prefix = null);
|
||||
String lookupNamespaceURI([String prefix]);
|
||||
|
||||
String lookupPrefix(String namespaceURI = null);
|
||||
String lookupPrefix([String namespaceURI]);
|
||||
|
||||
void normalize();
|
||||
|
||||
Node removeChild(Node oldChild);
|
||||
|
||||
void removeEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void removeEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
|
||||
Node replaceChild(Node newChild, Node oldChild);
|
||||
}
|
||||
|
|
|
@ -38,5 +38,5 @@ interface NodeFilter {
|
|||
|
||||
static final int SHOW_TEXT = 0x00000004;
|
||||
|
||||
int acceptNode(Node n = null);
|
||||
int acceptNode([Node n]);
|
||||
}
|
||||
|
|
|
@ -8,5 +8,5 @@ interface NodeList extends List<Node> {
|
|||
|
||||
int get length();
|
||||
|
||||
Node item(int index = null);
|
||||
Node item([int index]);
|
||||
}
|
||||
|
|
|
@ -30,13 +30,13 @@ interface Notification extends EventTarget {
|
|||
|
||||
void set replaceId(String value);
|
||||
|
||||
void addEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void addEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
|
||||
void cancel();
|
||||
|
||||
bool dispatchEvent(Event evt);
|
||||
|
||||
void removeEventListener(String type, EventListener listener, bool useCapture = null);
|
||||
void removeEventListener(String type, EventListener listener, [bool useCapture]);
|
||||
|
||||
void show();
|
||||
}
|
||||
|
|
|
@ -8,11 +8,11 @@ interface OESVertexArrayObject {
|
|||
|
||||
static final int VERTEX_ARRAY_BINDING_OES = 0x85B5;
|
||||
|
||||
void bindVertexArrayOES(WebGLVertexArrayObjectOES arrayObject = null);
|
||||
void bindVertexArrayOES([WebGLVertexArrayObjectOES arrayObject]);
|
||||
|
||||
WebGLVertexArrayObjectOES createVertexArrayOES();
|
||||
|
||||
void deleteVertexArrayOES(WebGLVertexArrayObjectOES arrayObject = null);
|
||||
void deleteVertexArrayOES([WebGLVertexArrayObjectOES arrayObject]);
|
||||
|
||||
bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject = null);
|
||||
bool isVertexArrayOES([WebGLVertexArrayObjectOES arrayObject]);
|
||||
}
|
||||
|
|
|
@ -18,5 +18,5 @@ interface OverflowEvent extends Event {
|
|||
|
||||
bool get verticalOverflow();
|
||||
|
||||
void initOverflowEvent(int orient = null, bool horizontalOverflow = null, bool verticalOverflow = null);
|
||||
void initOverflowEvent([int orient, bool horizontalOverflow, bool verticalOverflow]);
|
||||
}
|
||||
|
|
|
@ -8,5 +8,5 @@ interface PageTransitionEvent extends Event {
|
|||
|
||||
bool get persisted();
|
||||
|
||||
void initPageTransitionEvent(String typeArg = null, bool canBubbleArg = null, bool cancelableArg = null, bool persisted = null);
|
||||
void initPageTransitionEvent([String typeArg, bool canBubbleArg, bool cancelableArg, bool persisted]);
|
||||
}
|
||||
|
|
|
@ -8,5 +8,5 @@ interface PopStateEvent extends Event {
|
|||
|
||||
Object get state();
|
||||
|
||||
void initPopStateEvent(String typeArg = null, bool canBubbleArg = null, bool cancelableArg = null, Object stateArg = null);
|
||||
void initPopStateEvent([String typeArg, bool canBubbleArg, bool cancelableArg, Object stateArg]);
|
||||
}
|
||||
|
|
|
@ -12,5 +12,5 @@ interface ProgressEvent extends Event {
|
|||
|
||||
int get total();
|
||||
|
||||
void initProgressEvent(String typeArg = null, bool canBubbleArg = null, bool cancelableArg = null, bool lengthComputableArg = null, int loadedArg = null, int totalArg = null);
|
||||
void initProgressEvent([String typeArg, bool canBubbleArg, bool cancelableArg, bool lengthComputableArg, int loadedArg, int totalArg]);
|
||||
}
|
||||
|
|
|
@ -40,47 +40,47 @@ interface Range {
|
|||
|
||||
Range cloneRange();
|
||||
|
||||
void collapse(bool toStart = null);
|
||||
void collapse([bool toStart]);
|
||||
|
||||
int compareBoundaryPoints();
|
||||
|
||||
int compareNode(Node refNode = null);
|
||||
int compareNode([Node refNode]);
|
||||
|
||||
int comparePoint(Node refNode = null, int offset = null);
|
||||
int comparePoint([Node refNode, int offset]);
|
||||
|
||||
DocumentFragment createContextualFragment(String html = null);
|
||||
DocumentFragment createContextualFragment([String html]);
|
||||
|
||||
void deleteContents();
|
||||
|
||||
void detach();
|
||||
|
||||
void expand(String unit = null);
|
||||
void expand([String unit]);
|
||||
|
||||
DocumentFragment extractContents();
|
||||
|
||||
void insertNode(Node newNode = null);
|
||||
void insertNode([Node newNode]);
|
||||
|
||||
bool intersectsNode(Node refNode = null);
|
||||
bool intersectsNode([Node refNode]);
|
||||
|
||||
bool isPointInRange(Node refNode = null, int offset = null);
|
||||
bool isPointInRange([Node refNode, int offset]);
|
||||
|
||||
void selectNode(Node refNode = null);
|
||||
void selectNode([Node refNode]);
|
||||
|
||||
void selectNodeContents(Node refNode = null);
|
||||
void selectNodeContents([Node refNode]);
|
||||
|
||||
void setEnd(Node refNode = null, int offset = null);
|
||||
void setEnd([Node refNode, int offset]);
|
||||
|
||||
void setEndAfter(Node refNode = null);
|
||||
void setEndAfter([Node refNode]);
|
||||
|
||||
void setEndBefore(Node refNode = null);
|
||||
void setEndBefore([Node refNode]);
|
||||
|
||||
void setStart(Node refNode = null, int offset = null);
|
||||
void setStart([Node refNode, int offset]);
|
||||
|
||||
void setStartAfter(Node refNode = null);
|
||||
void setStartAfter([Node refNode]);
|
||||
|
||||
void setStartBefore(Node refNode = null);
|
||||
void setStartBefore([Node refNode]);
|
||||
|
||||
void surroundContents(Node newParent = null);
|
||||
void surroundContents([Node newParent]);
|
||||
|
||||
String toString();
|
||||
}
|
||||
|
|
|
@ -16,5 +16,5 @@ interface StorageEvent extends Event {
|
|||
|
||||
String get url();
|
||||
|
||||
void initStorageEvent(String typeArg = null, bool canBubbleArg = null, bool cancelableArg = null, String keyArg = null, String oldValueArg = null, String newValueArg = null, String urlArg = null, Storage storageAreaArg = null);
|
||||
void initStorageEvent([String typeArg, bool canBubbleArg, bool cancelableArg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storage storageAreaArg]);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ interface StorageInfo {
|
|||
|
||||
static final int TEMPORARY = 0;
|
||||
|
||||
void queryUsageAndQuota(int storageType, StorageInfoUsageCallback usageCallback = null, StorageInfoErrorCallback errorCallback = null);
|
||||
void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallback, StorageInfoErrorCallback errorCallback]);
|
||||
|
||||
void requestQuota(int storageType, int newQuotaInBytes, StorageInfoQuotaCallback quotaCallback = null, StorageInfoErrorCallback errorCallback = null);
|
||||
void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallback quotaCallback, StorageInfoErrorCallback errorCallback]);
|
||||
}
|
||||
|
|
|
@ -8,5 +8,5 @@ interface StyleMedia {
|
|||
|
||||
String get type();
|
||||
|
||||
bool matchMedium(String mediaquery = null);
|
||||
bool matchMedium([String mediaquery]);
|
||||
}
|
||||
|
|
|
@ -8,5 +8,5 @@ interface StyleSheetList extends List<StyleSheet> {
|
|||
|
||||
int get length();
|
||||
|
||||
StyleSheet item(int index = null);
|
||||
StyleSheet item([int index]);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ interface Text extends CharacterData {
|
|||
|
||||
String get wholeText();
|
||||
|
||||
Text replaceWholeText(String content = null);
|
||||
Text replaceWholeText([String content]);
|
||||
|
||||
Text splitText(int offset = null);
|
||||
Text splitText([int offset]);
|
||||
}
|
||||
|
|
|
@ -8,5 +8,5 @@ interface TextEvent extends UIEvent {
|
|||
|
||||
String get data();
|
||||
|
||||
void initTextEvent(String typeArg = null, bool canBubbleArg = null, bool cancelableArg = null, DOMWindow viewArg = null, String dataArg = null);
|
||||
void initTextEvent([String typeArg, bool canBubbleArg, bool cancelableArg, DOMWindow viewArg, String dataArg]);
|
||||
}
|
||||
|
|
|
@ -20,5 +20,5 @@ interface TouchEvent extends UIEvent {
|
|||
|
||||
TouchList get touches();
|
||||
|
||||
void initTouchEvent(TouchList touches = null, TouchList targetTouches = null, TouchList changedTouches = null, String type = null, DOMWindow view = null, int screenX = null, int screenY = null, int clientX = null, int clientY = null, bool ctrlKey = null, bool altKey = null, bool shiftKey = null, bool metaKey = null);
|
||||
void initTouchEvent([TouchList touches, TouchList targetTouches, TouchList changedTouches, String type, DOMWindow view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey]);
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue