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

Unified Diff: client/dom/frog/dom_frog.dart

Issue 9103001: Revert "Refresh dart:dom" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 12 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 | « client/dom/dom_frog.dart ('k') | client/dom/generated/monkey_dom.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/frog/dom_frog.dart
diff --git a/client/dom/frog/dom_frog.dart b/client/dom/frog/dom_frog.dart
index 4f8e7802483f4c8d7b588fd46679d194108d7c5f..c1c7ec9751bf40680a3da501b7a0c832cf170269 100644
--- a/client/dom/frog/dom_frog.dart
+++ b/client/dom/frog/dom_frog.dart
@@ -304,6 +304,8 @@ class BarInfo native "*BarInfo" {
class BeforeLoadEvent extends Event native "*BeforeLoadEvent" {
String url;
+
+ void initBeforeLoadEvent(String type, bool canBubble, bool cancelable, String url) native;
}
class BiquadFilterNode extends AudioNode native "*BiquadFilterNode" {
@@ -331,8 +333,6 @@ class BiquadFilterNode extends AudioNode native "*BiquadFilterNode" {
AudioParam gain;
int type;
-
- void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse) native;
}
class Blob native "*Blob" {
@@ -479,7 +479,7 @@ class CSSRule native "CSSRule" {
static final int WEBKIT_KEYFRAME_RULE = 9;
- static final int WEBKIT_REGION_RULE = 10;
+ static final int WEBKIT_REGION_STYLE_RULE = 10;
String cssText;
@@ -627,7 +627,7 @@ class CanvasRenderingContext native "*CanvasRenderingContext" {
class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRenderingContext2D" {
- Dynamic fillStyle;
+ Object fillStyle;
String font;
@@ -651,7 +651,7 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen
num shadowOffsetY;
- Dynamic strokeStyle;
+ Object strokeStyle;
String textAlign;
@@ -829,6 +829,8 @@ class CloseEvent extends Event native "*CloseEvent" {
String reason;
bool wasClean;
+
+ void initCloseEvent(String typeArg, bool canBubbleArg, bool cancelableArg, bool wasCleanArg, int codeArg, String reasonArg) native;
}
class Comment extends CharacterData native "*Comment" {
@@ -1406,7 +1408,7 @@ class DOMWindow native "@*DOMWindow" {
Database openDatabase(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback = null]) native;
- void postMessage(String message, String targetOrigin, [List messagePorts = null]) native;
+ void postMessage(String message, var messagePorts_OR_targetOrigin, [String targetOrigin = null]) native;
void print() native;
@@ -1434,19 +1436,17 @@ class DOMWindow native "@*DOMWindow" {
void stop() native;
- void webkitCancelAnimationFrame(int id) native;
-
void webkitCancelRequestAnimationFrame(int id) native;
WebKitPoint webkitConvertPointFromNodeToPage(Node node, WebKitPoint p) native;
WebKitPoint webkitConvertPointFromPageToNode(Node node, WebKitPoint p) native;
- void webkitPostMessage(String message, String targetOrigin, [List transferList = null]) native;
+ void webkitPostMessage(String message, var targetOrigin_OR_transferList, [String targetOrigin = null]) native;
int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, Element element) native;
- void webkitRequestFileSystem(int type, int size, FileSystemCallback successCallback, [ErrorCallback errorCallback = null]) native;
+ void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCallback = null, ErrorCallback errorCallback = null]) native;
void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallback = null, ErrorCallback errorCallback = null]) native;
@@ -1537,8 +1537,6 @@ class Database native "*Database" {
class DatabaseSync native "*DatabaseSync" {
- String lastErrorMessage;
-
String version;
void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCallback callback = null]) native;
@@ -1590,7 +1588,7 @@ class DirectoryEntry extends Entry native "*DirectoryEntry" {
void getFile(String path, [WebKitFlags flags = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null]) native;
- void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallback = null]) native;
+ void removeRecursively([VoidCallback successCallback = null, ErrorCallback errorCallback = null]) native;
}
class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" {
@@ -1758,7 +1756,7 @@ class Document extends Node native "Document" {
DOMSelection getSelection() native;
- Node importNode(Node importedNode, [bool deep = null]) native;
+ Node importNode(Node importedNode, bool deep) native;
bool queryCommandEnabled(String command) native;
@@ -1775,8 +1773,6 @@ class Document extends Node native "Document" {
NodeList querySelectorAll(String selectors) native;
void webkitCancelFullScreen() native;
-
- WebKitNamedFlow webkitGetFlowByName(String name) native;
}
class DocumentFragment extends Node native "*DocumentFragment" {
@@ -1963,13 +1959,13 @@ class Entry native "*Entry" {
void copyTo(DirectoryEntry parent, [String name = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null]) native;
- void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallback = null]) native;
+ void getMetadata([MetadataCallback successCallback = null, ErrorCallback errorCallback = null]) native;
void getParent([EntryCallback successCallback = null, ErrorCallback errorCallback = null]) native;
void moveTo(DirectoryEntry parent, [String name = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null]) native;
- void remove(VoidCallback successCallback, [ErrorCallback errorCallback = null]) native;
+ void remove([VoidCallback successCallback = null, ErrorCallback errorCallback = null]) native;
String toURL() native;
@@ -2036,6 +2032,8 @@ class ErrorEvent extends Event native "*ErrorEvent" {
int lineno;
String message;
+
+ void initErrorEvent(String typeArg, bool canBubbleArg, bool cancelableArg, String messageArg, String filenameArg, int linenoArg) native;
}
class Event native "Event" {
@@ -2481,6 +2479,8 @@ class HTMLAllCollection native "*HTMLAllCollection" {
class HTMLAnchorElement extends HTMLElement native "*HTMLAnchorElement" {
+ String accessKey;
+
String charset;
String coords;
@@ -2523,6 +2523,8 @@ class HTMLAnchorElement extends HTMLElement native "*HTMLAnchorElement" {
String type;
+ String getParameter(String name) native;
+
String toString() native;
}
@@ -2553,6 +2555,8 @@ class HTMLAppletElement extends HTMLElement native "*HTMLAppletElement" {
class HTMLAreaElement extends HTMLElement native "*HTMLAreaElement" {
+ String accessKey;
+
String alt;
String coords;
@@ -2623,6 +2627,8 @@ class HTMLBodyElement extends HTMLElement native "*HTMLBodyElement" {
class HTMLButtonElement extends HTMLElement native "*HTMLButtonElement" {
+ String accessKey;
+
bool autofocus;
bool disabled;
@@ -2735,6 +2741,8 @@ class HTMLDocument extends Document native "*HTMLDocument" {
String fgColor;
+ int height;
+
String linkColor;
HTMLCollection plugins;
@@ -2743,6 +2751,8 @@ class HTMLDocument extends Document native "*HTMLDocument" {
String vlinkColor;
+ int width;
+
void captureEvents() native;
void clear() native;
@@ -2762,8 +2772,6 @@ class HTMLDocument extends Document native "*HTMLDocument" {
class HTMLElement extends Element native "HTMLElement" {
- String accessKey;
-
HTMLCollection children;
DOMTokenList classList;
@@ -3033,6 +3041,8 @@ class HTMLInputElement extends HTMLElement native "HTMLInputElement" {
String accept;
+ String accessKey;
+
String align;
String alt;
@@ -3047,8 +3057,6 @@ class HTMLInputElement extends HTMLElement native "HTMLInputElement" {
String defaultValue;
- String dirName;
-
bool disabled;
FileList files;
@@ -3187,6 +3195,8 @@ class HTMLLIElement extends HTMLElement native "*HTMLLIElement" {
class HTMLLabelElement extends HTMLElement native "*HTMLLabelElement" {
+ String accessKey;
+
HTMLElement control;
HTMLFormElement form;
@@ -3196,6 +3206,8 @@ class HTMLLabelElement extends HTMLElement native "*HTMLLabelElement" {
class HTMLLegendElement extends HTMLElement native "*HTMLLegendElement" {
+ String accessKey;
+
String align;
HTMLFormElement form;
@@ -3298,8 +3310,6 @@ class HTMLMediaElement extends HTMLElement native "HTMLMediaElement" {
TimeRanges buffered;
- MediaController controller;
-
bool controls;
String currentSrc;
@@ -3320,8 +3330,6 @@ class HTMLMediaElement extends HTMLElement native "HTMLMediaElement" {
bool loop;
- String mediaGroup;
-
bool muted;
int networkState;
@@ -3344,8 +3352,6 @@ class HTMLMediaElement extends HTMLElement native "HTMLMediaElement" {
num startTime;
- TextTrackList textTracks;
-
num volume;
int webkitAudioDecodedByteCount;
@@ -3423,8 +3429,6 @@ class HTMLOListElement extends HTMLElement native "*HTMLOListElement" {
bool compact;
- bool reversed;
-
int start;
String type;
@@ -3579,13 +3583,6 @@ class HTMLProgressElement extends HTMLElement native "*HTMLProgressElement" {
num value;
}
-class HTMLPropertiesCollection extends HTMLCollection native "*HTMLPropertiesCollection" {
-
- int length;
-
- Node item(int index) native;
-}
-
class HTMLQuoteElement extends HTMLElement native "*HTMLQuoteElement" {
String cite;
@@ -3675,8 +3672,6 @@ class HTMLStyleElement extends HTMLElement native "*HTMLStyleElement" {
String media;
- bool scoped;
-
StyleSheet sheet;
String type;
@@ -3824,14 +3819,14 @@ class HTMLTableSectionElement extends HTMLElement native "*HTMLTableSectionEleme
class HTMLTextAreaElement extends HTMLElement native "*HTMLTextAreaElement" {
+ String accessKey;
+
bool autofocus;
int cols;
String defaultValue;
- String dirName;
-
bool disabled;
HTMLFormElement form;
@@ -3886,22 +3881,12 @@ class HTMLTitleElement extends HTMLElement native "*HTMLTitleElement" {
class HTMLTrackElement extends HTMLElement native "*HTMLTrackElement" {
- static final int ERROR = 3;
-
- static final int LOADED = 2;
-
- static final int LOADING = 1;
-
- static final int NONE = 0;
-
bool isDefault;
String kind;
String label;
- int readyState;
-
String src;
String srclang;
@@ -4130,16 +4115,12 @@ class IDBIndex native "*IDBIndex" {
String keyPath;
- bool multiEntry;
-
String name;
IDBObjectStore objectStore;
bool unique;
- IDBRequest count([IDBKeyRange range = null]) native;
-
IDBRequest getObject(IDBKey key) native;
IDBRequest getKey(IDBKey key) native;
@@ -4195,8 +4176,6 @@ class IDBObjectStore native "*IDBObjectStore" {
IDBRequest clear() native;
- IDBRequest count([IDBKeyRange range = null]) native;
-
IDBIndex createIndex(String name, String keyPath) native;
IDBRequest delete(IDBKey key) native;
@@ -4319,8 +4298,6 @@ class InjectedScriptHost native "*InjectedScriptHost" {
Object evaluate(String text) native;
- Object functionLocation(Object object) native;
-
void inspect(Object objectId, Object hints) native;
Object inspectedNode(int num) native;
@@ -4344,18 +4321,16 @@ class InspectorFrontendHost native "*InspectorFrontendHost" {
void bringToFront() native;
- bool canSaveAs() native;
-
void closeWindow() native;
void copyText(String text) native;
+ void disconnectFromBackend() native;
+
String hiddenPanels() native;
void inspectedURLChanged(String newURL) native;
- String loadResourceSynchronously(String url) native;
-
void loaded() native;
String localizedStringsURL() native;
@@ -4382,7 +4357,7 @@ class InspectorFrontendHost native "*InspectorFrontendHost" {
void setAttachedWindowHeight(int height) native;
- void setInjectedScriptForOrigin(String origin, String script) native;
+ void setExtensionAPI(String script) native;
void showContextMenu(MouseEvent event, Object items) native;
@@ -4537,6 +4512,8 @@ class Location native "*Location" {
void assign(String url) native;
+ String getParameter(String name) native;
+
void reload() native;
void replace(String url) native;
@@ -4555,43 +4532,6 @@ class LowPass2FilterNode extends AudioNode native "*LowPass2FilterNode" {
AudioParam resonance;
}
-class MediaController native "*MediaController" {
-
- TimeRanges buffered;
-
- num currentTime;
-
- num defaultPlaybackRate;
-
- num duration;
-
- bool muted;
-
- bool paused;
-
- num playbackRate;
-
- TimeRanges played;
-
- TimeRanges seekable;
-
- num volume;
-
- void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
-
- bool dispatchEvent(Event evt) native;
-
- void pause() native;
-
- void play() native;
-
- void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
-
- var dartObjectLocalStorage;
-
- String get typeName() native;
-}
-
class MediaElementAudioSourceNode extends AudioSourceNode native "*MediaElementAudioSourceNode" {
HTMLMediaElement mediaElement;
@@ -4764,10 +4704,6 @@ class MouseEvent extends UIEvent native "*MouseEvent" {
Node toElement;
- int webkitMovementX;
-
- int webkitMovementY;
-
int x;
int y;
@@ -4895,6 +4831,26 @@ class Navigator native "*Navigator" {
void registerProtocolHandler(String scheme, String url, String title) native;
+ void webkitGetUserMedia(String options, NavigatorUserMediaSuccessCallback successCallback, [NavigatorUserMediaErrorCallback errorCallback = null]) native;
+
+ var dartObjectLocalStorage;
+
+ String get typeName() native;
+}
+
+class NavigatorUserMediaError native "*NavigatorUserMediaError" {
+
+ static final int PERMISSION_DENIED = 1;
+
+ int code;
+
+ var dartObjectLocalStorage;
+
+ String get typeName() native;
+}
+
+class NavigatorUserMediaSuccessCallback native "*NavigatorUserMediaSuccessCallback" {
+
var dartObjectLocalStorage;
String get typeName() native;
@@ -5220,11 +5176,15 @@ class OverflowEvent extends Event native "*OverflowEvent" {
int orient;
bool verticalOverflow;
+
+ void initOverflowEvent(int orient, bool horizontalOverflow, bool verticalOverflow) native;
}
class PageTransitionEvent extends Event native "*PageTransitionEvent" {
bool persisted;
+
+ void initPageTransitionEvent(String typeArg, bool canBubbleArg, bool cancelableArg, bool persisted) native;
}
class Performance native "*Performance" {
@@ -5308,22 +5268,11 @@ class PerformanceTiming native "*PerformanceTiming" {
String get typeName() native;
}
-class PointerLock native "*PointerLock" {
-
- bool isLocked() native;
-
- void lock(Element target, [VoidCallback successCallback = null, VoidCallback failureCallback = null]) native;
-
- void unlock() native;
-
- var dartObjectLocalStorage;
-
- String get typeName() native;
-}
-
class PopStateEvent extends Event native "*PopStateEvent" {
Object state;
+
+ void initPopStateEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object stateArg) native;
}
class PositionError native "*PositionError" {
@@ -5359,6 +5308,8 @@ class ProgressEvent extends Event native "*ProgressEvent" {
int loaded;
int total;
+
+ void initProgressEvent(String typeArg, bool canBubbleArg, bool cancelableArg, bool lengthComputableArg, int loadedArg, int totalArg) native;
}
class RGBColor native "*RGBColor" {
@@ -9233,11 +9184,19 @@ class TextMetrics native "*TextMetrics" {
class TextTrack native "*TextTrack" {
- static final int DISABLED = 0;
+ static final int Disabled = 0;
+
+ static final int Error = 3;
+
+ static final int Hidden = 1;
+
+ static final int Loaded = 2;
+
+ static final int Loading = 1;
- static final int HIDDEN = 1;
+ static final int None = 0;
- static final int SHOWING = 2;
+ static final int Showing = 2;
TextTrackCueList activeCues;
@@ -9251,18 +9210,12 @@ class TextTrack native "*TextTrack" {
int mode;
- EventListener oncuechange;
+ int readyState;
void addCue(TextTrackCue cue) native;
- void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
-
- bool dispatchEvent(Event evt) native;
-
void removeCue(TextTrackCue cue) native;
- void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
-
var dartObjectLocalStorage;
String get typeName() native;
@@ -9280,10 +9233,6 @@ class TextTrackCue native "*TextTrackCue" {
int linePosition;
- EventListener onenter;
-
- EventListener onexit;
-
bool pauseOnExit;
int size;
@@ -9296,16 +9245,10 @@ class TextTrackCue native "*TextTrackCue" {
TextTrack track;
- void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
-
- bool dispatchEvent(Event evt) native;
-
DocumentFragment getCueAsHTML() native;
String getCueAsSource() native;
- void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
-
var dartObjectLocalStorage;
String get typeName() native;
@@ -9324,25 +9267,6 @@ class TextTrackCueList native "*TextTrackCueList" {
String get typeName() native;
}
-class TextTrackList native "*TextTrackList" {
-
- int length;
-
- EventListener onaddtrack;
-
- void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
-
- bool dispatchEvent(Event evt) native;
-
- TextTrack item(int index) native;
-
- void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
-
- var dartObjectLocalStorage;
-
- String get typeName() native;
-}
-
class TimeRanges native "*TimeRanges" {
int length;
@@ -9423,11 +9347,6 @@ class TouchList native "*TouchList" {
String get typeName() native;
}
-class TrackEvent extends Event native "*TrackEvent" {
-
- Object track;
-}
-
class TreeWalker native "*TreeWalker" {
Node currentNode;
@@ -9595,29 +9514,6 @@ class WebGLBuffer native "*WebGLBuffer" {
String get typeName() native;
}
-class WebGLCompressedTextures native "*WebGLCompressedTextures" {
-
- static final int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02;
-
- static final int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
-
- static final int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
-
- static final int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00;
-
- static final int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
-
- static final int ETC1_RGB8_OES = 0x8D64;
-
- void compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, ArrayBufferView data) native;
-
- void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ArrayBufferView data) native;
-
- var dartObjectLocalStorage;
-
- String get typeName() native;
-}
-
class WebGLContextAttributes native "*WebGLContextAttributes" {
bool alpha;
@@ -9669,17 +9565,6 @@ class WebGLFramebuffer native "*WebGLFramebuffer" {
String get typeName() native;
}
-class WebGLLoseContext native "*WebGLLoseContext" {
-
- void loseContext() native;
-
- void restoreContext() native;
-
- var dartObjectLocalStorage;
-
- String get typeName() native;
-}
-
class WebGLProgram native "*WebGLProgram" {
var dartObjectLocalStorage;
@@ -10663,14 +10548,12 @@ class WebKitBlobBuilder native "*WebKitBlobBuilder" {
class WebKitCSSFilterValue extends CSSValueList native "*WebKitCSSFilterValue" {
- static final int CSS_FILTER_BLUR = 10;
-
- static final int CSS_FILTER_BRIGHTNESS = 8;
-
- static final int CSS_FILTER_CONTRAST = 9;
+ static final int CSS_FILTER_BLUR = 9;
static final int CSS_FILTER_DROP_SHADOW = 11;
+ static final int CSS_FILTER_GAMMA = 8;
+
static final int CSS_FILTER_GRAYSCALE = 2;
static final int CSS_FILTER_HUE_ROTATE = 5;
@@ -10685,6 +10568,8 @@ class WebKitCSSFilterValue extends CSSValueList native "*WebKitCSSFilterValue" {
static final int CSS_FILTER_SEPIA = 3;
+ static final int CSS_FILTER_SHARPEN = 10;
+
int operationType;
}
@@ -10839,16 +10724,20 @@ class WebKitFlags native "*WebKitFlags" {
String get typeName() native;
}
-class WebKitMutationObserver native "*WebKitMutationObserver" {
+class WebKitLoseContext native "*WebKitLoseContext" {
- void disconnect() native;
+ void loseContext() native;
+
+ void restoreContext() native;
var dartObjectLocalStorage;
String get typeName() native;
}
-class WebKitNamedFlow native "*WebKitNamedFlow" {
+class WebKitMutationObserver native "*WebKitMutationObserver" {
+
+ void disconnect() native;
var dartObjectLocalStorage;
@@ -10976,8 +10865,6 @@ class WorkerContext native "*WorkerContext" {
WorkerContext self;
- IDBFactory webkitIndexedDB;
-
NotificationCenter webkitNotifications;
DOMURL webkitURL;
@@ -11352,6 +11239,13 @@ typedef bool MetadataCallback(Metadata metadata);
// WARNING: Do not edit - generated code.
+typedef bool NavigatorUserMediaErrorCallback(NavigatorUserMediaError error);
+// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// WARNING: Do not edit - generated code.
+
typedef bool PositionCallback(Geoposition position);
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
« no previous file with comments | « client/dom/dom_frog.dart ('k') | client/dom/generated/monkey_dom.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698