Index: client/html/frog/html_frog.dart |
diff --git a/client/html/frog/html_frog.dart b/client/html/frog/html_frog.dart |
index 9e04b7c2f0e14c701572f8e0ad3f40cdab793424..f88e0409158426d6cfcd20ab79aff87e15e282f4 100644 |
--- a/client/html/frog/html_frog.dart |
+++ b/client/html/frog/html_frog.dart |
@@ -15668,6 +15668,213 @@ class _XSLTProcessorJs implements XSLTProcessor native "*XSLTProcessor" { |
// 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. |
+class _AudioElementFactoryProvider { |
+ factory AudioElement([String src = null]) native |
+''' |
+if (src == null) return new Audio(); |
+return new Audio(src); |
+'''; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _BlobBuilderFactoryProvider { |
+ factory BlobBuilder() native |
+ '''return new BlobBuilder();'''; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _CSSMatrixFactoryProvider { |
+ factory CSSMatrix([String cssValue = '']) native |
+ 'return new WebKitCSSMatrix(cssValue);'; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _DOMParserFactoryProvider { |
+ factory DOMParser() native |
+ '''return new DOMParser();'''; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _DOMURLFactoryProvider { |
+ factory DOMURL() native |
+ '''return new DOMURL();'''; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _EventSourceFactoryProvider { |
+ factory EventSource(String scriptUrl) native |
+ '''return new EventSource(scriptUrl);'''; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _FileReaderFactoryProvider { |
+ factory FileReader() native |
+ '''return new FileReader();'''; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _FileReaderSyncFactoryProvider { |
+ factory FileReaderSync() native |
+ '''return new FileReaderSync();'''; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _MediaControllerFactoryProvider { |
+ factory MediaController() native |
+ '''return new MediaController();'''; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _MediaStreamFactoryProvider { |
+ factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList videoTracks) native |
+ '''return new MediaStream(audioTracks, videoTracks);'''; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _MessageChannelFactoryProvider { |
+ factory MessageChannel() native |
+ '''return new MessageChannel();'''; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _OptionElementFactoryProvider { |
+ factory OptionElement([String data = null, String value = null, |
+ bool defaultSelected = null, bool selected = null]) |
+ native |
+''' |
+if (data == null) return new Option(); |
+if (value == null) return new Option(data); |
+if (defaultSelected == null) return new Option(data, value); |
+if (selected == null) return new Option(data, value, defaultSelected); |
+return new Option(data, value, defaultSelected, selected); |
+'''; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _PeerConnectionFactoryProvider { |
+ factory PeerConnection(String serverConfiguration, SignalingCallback signalingCallback) native |
+ '''return new PeerConnection(serverConfiguration, signalingCallback);'''; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _ShadowRootFactoryProvider { |
+ factory ShadowRoot(Element host) native |
+ '''return new ShadowRoot(host);'''; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _SharedWorkerFactoryProvider { |
+ factory SharedWorker(String scriptURL, [String name]) native |
+''' |
+if (name == null) return new SharedWorker(scriptURL); |
+return new SharedWorker(scriptURL, name); |
+'''; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _TextTrackCueFactoryProvider { |
+ factory TextTrackCue(String id, num startTime, num endTime, String text, |
+ [String settings, bool pauseOnExit]) native |
+''' |
+if (settings == null) |
+ return new TextTrackCue(id, startTime, endTime, text); |
+if (pauseOnExit == null) |
+ return new TextTrackCue(id, startTime, endTime, text, settings); |
+return new TextTrackCue(id, startTime, endTime, text, settings, pauseOnExit); |
+'''; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _WorkerFactoryProvider { |
+ factory Worker(String scriptUrl) native |
+ '''return new Worker(scriptUrl);'''; |
+} |
+ |
+class _XMLHttpRequestFactoryProvider { |
+ factory XMLHttpRequest() native 'return new XMLHttpRequest();'; |
+ |
+ factory XMLHttpRequest.getTEMPNAME(String url, |
+ onSuccess(XMLHttpRequest request)) { |
+ final request = new XMLHttpRequest(); |
+ request.open('GET', url, true); |
+ |
+ // TODO(terry): Validate after client login added if necessary to forward |
+ // cookies to server. |
+ request.withCredentials = true; |
+ |
+ // Status 0 is for local XHR request. |
+ request.on.readyStateChange.add((e) { |
+ if (request.readyState == XMLHttpRequest.DONE && |
+ (request.status == 200 || request.status == 0)) { |
+ onSuccess(request); |
+ } |
+ }); |
+ |
+ request.send(); |
+ |
+ return request; |
+ } |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _XMLSerializerFactoryProvider { |
+ factory XMLSerializer() native |
+ '''return new XMLSerializer();'''; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _XPathEvaluatorFactoryProvider { |
+ factory XPathEvaluator() native |
+ '''return new XPathEvaluator();'''; |
+} |
+// Copyright (c) 2012, 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. |
+ |
+class _XSLTProcessorFactoryProvider { |
+ factory XSLTProcessor() native |
+ '''return new XSLTProcessor();'''; |
+} |
+// Copyright (c) 2012, 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. |
interface AbstractWorker extends EventTarget { |
@@ -16044,7 +16251,9 @@ interface AudioDestinationNode extends AudioNode { |
// WARNING: Do not edit - generated code. |
-interface AudioElement extends MediaElement { |
+interface AudioElement extends MediaElement default _AudioElementFactoryProvider { |
+ |
+ AudioElement([String src]); |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -16308,7 +16517,9 @@ interface Blob { |
// WARNING: Do not edit - generated code. |
-interface BlobBuilder { |
+interface BlobBuilder default _BlobBuilderFactoryProvider { |
+ |
+ BlobBuilder(); |
void append(var arrayBuffer_OR_blob_OR_value, [String endings]); |
@@ -16485,7 +16696,9 @@ interface CSSKeyframesRule extends CSSRule { |
// WARNING: Do not edit - generated code. |
-interface CSSMatrix { |
+interface CSSMatrix default _CSSMatrixFactoryProvider { |
+ |
+ CSSMatrix([String cssValue]); |
num a; |
@@ -19347,7 +19560,9 @@ interface DOMMimeTypeArray { |
// WARNING: Do not edit - generated code. |
-interface DOMParser { |
+interface DOMParser default _DOMParserFactoryProvider { |
+ |
+ DOMParser(); |
Document parseFromString(String str, String contentType); |
} |
@@ -19485,7 +19700,9 @@ interface DOMTokenList { |
// WARNING: Do not edit - generated code. |
-interface DOMURL { |
+interface DOMURL default _DOMURLFactoryProvider { |
+ |
+ DOMURL(); |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -20774,7 +20991,9 @@ interface EventException { |
// WARNING: Do not edit - generated code. |
-interface EventSource extends EventTarget { |
+interface EventSource extends EventTarget default _EventSourceFactoryProvider { |
+ |
+ EventSource(String scriptUrl); |
static final int CLOSED = 2; |
@@ -20985,7 +21204,9 @@ interface FileList { |
// WARNING: Do not edit - generated code. |
-interface FileReader { |
+interface FileReader default _FileReaderFactoryProvider { |
+ |
+ FileReader(); |
static final int DONE = 2; |
@@ -21033,7 +21254,9 @@ interface FileReader { |
// WARNING: Do not edit - generated code. |
-interface FileReaderSync { |
+interface FileReaderSync default _FileReaderSyncFactoryProvider { |
+ |
+ FileReaderSync(); |
ArrayBuffer readAsArrayBuffer(Blob blob); |
@@ -22351,7 +22574,9 @@ interface MarqueeElement extends Element { |
// WARNING: Do not edit - generated code. |
-interface MediaController { |
+interface MediaController default _MediaControllerFactoryProvider { |
+ |
+ MediaController(); |
final TimeRanges buffered; |
@@ -22581,7 +22806,9 @@ interface MediaQueryListListener { |
// WARNING: Do not edit - generated code. |
-interface MediaStream { |
+interface MediaStream default _MediaStreamFactoryProvider { |
+ |
+ MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList videoTracks); |
static final int ENDED = 2; |
@@ -22681,7 +22908,9 @@ interface MenuElement extends Element { |
// WARNING: Do not edit - generated code. |
-interface MessageChannel { |
+interface MessageChannel default _MessageChannelFactoryProvider { |
+ |
+ MessageChannel(); |
final MessagePort port1; |
@@ -23360,7 +23589,9 @@ interface OptGroupElement extends Element { |
// WARNING: Do not edit - generated code. |
-interface OptionElement extends Element { |
+interface OptionElement extends Element default _OptionElementFactoryProvider { |
+ |
+ OptionElement([String data, String value, bool defaultSelected, bool selected]); |
bool defaultSelected; |
@@ -23472,7 +23703,9 @@ interface ParamElement extends Element { |
// WARNING: Do not edit - generated code. |
-interface PeerConnection { |
+interface PeerConnection default _PeerConnectionFactoryProvider { |
+ |
+ PeerConnection(String serverConfiguration, SignalingCallback signalingCallback); |
static final int ACTIVE = 2; |
@@ -26809,7 +27042,9 @@ interface ShadowElement extends Element { |
// WARNING: Do not edit - generated code. |
-interface ShadowRoot extends DocumentFragment { |
+interface ShadowRoot extends DocumentFragment default _ShadowRootFactoryProvider { |
+ |
+ ShadowRoot(Element host); |
final Element host; |
@@ -26827,7 +27062,9 @@ interface ShadowRoot extends DocumentFragment { |
// WARNING: Do not edit - generated code. |
-interface SharedWorker extends AbstractWorker { |
+interface SharedWorker extends AbstractWorker default _SharedWorkerFactoryProvider { |
+ |
+ SharedWorker(String scriptURL, [String name]); |
final MessagePort port; |
} |
@@ -27362,7 +27599,9 @@ interface TextTrack { |
// WARNING: Do not edit - generated code. |
-interface TextTrackCue { |
+interface TextTrackCue default _TextTrackCueFactoryProvider { |
+ |
+ TextTrackCue(String id, num startTime, num endTime, String text, [String settings, bool pauseOnExit]); |
String alignment; |
@@ -29316,7 +29555,9 @@ interface WindowEvents extends Events { |
// WARNING: Do not edit - generated code. |
-interface Worker extends AbstractWorker { |
+interface Worker extends AbstractWorker default _WorkerFactoryProvider { |
+ |
+ Worker(String scriptUrl); |
WorkerEvents get on(); |
@@ -29436,13 +29677,12 @@ interface WorkerNavigator { |
// WARNING: Do not edit - generated code. |
interface XMLHttpRequest extends EventTarget default _XMLHttpRequestFactoryProvider { |
- |
- XMLHttpRequest(); |
- |
// TODO(rnystrom): This name should just be "get" which is valid in Dart, but |
// not correctly implemented yet. (b/4970173) |
XMLHttpRequest.getTEMPNAME(String url, onSuccess(XMLHttpRequest request)); |
+ XMLHttpRequest(); |
+ |
static final int DONE = 4; |
static final int HEADERS_RECEIVED = 2; |
@@ -29571,7 +29811,9 @@ interface XMLHttpRequestUploadEvents extends Events { |
// WARNING: Do not edit - generated code. |
-interface XMLSerializer { |
+interface XMLSerializer default _XMLSerializerFactoryProvider { |
+ |
+ XMLSerializer(); |
String serializeToString(Node node); |
} |
@@ -29581,7 +29823,9 @@ interface XMLSerializer { |
// WARNING: Do not edit - generated code. |
-interface XPathEvaluator { |
+interface XPathEvaluator default _XPathEvaluatorFactoryProvider { |
+ |
+ XPathEvaluator(); |
XPathExpression createExpression(String expression, XPathNSResolver resolver); |
@@ -29681,7 +29925,9 @@ interface XPathResult { |
// WARNING: Do not edit - generated code. |
-interface XSLTProcessor { |
+interface XSLTProcessor default _XSLTProcessorFactoryProvider { |
+ |
+ XSLTProcessor(); |
void clearParameters(); |
@@ -30335,16 +30581,6 @@ class _AudioContextFactoryProvider { |
'''; |
} |
-class _DOMParserFactoryProvider { |
- |
- factory DOMParser() native 'return new DOMParser();'; |
-} |
- |
-class _FileReaderFactoryProvider { |
- |
- factory FileReader() native 'return new FileReader();'; |
-} |
- |
class _TypedArrayFactoryProvider { |
factory Float32Array(int length) => _F32(length); |
@@ -30396,12 +30632,6 @@ class _TypedArrayFactoryProvider { |
static ensureNative(List list) => list; // TODO: make sure. |
} |
-class _CSSMatrixFactoryProvider { |
- |
- factory CSSMatrix([String spec = '']) native |
- 'return new WebKitCSSMatrix(spec);'; |
-} |
- |
// TODO(jacobr): this factory does not require any native code so move to a |
// separate file so it can be shared between wrapper and wrapperless versions. |
class _EventFactoryProvider { |
@@ -30417,37 +30647,6 @@ class _PointFactoryProvider { |
factory Point(num x, num y) native 'return new WebKitPoint(x, y);'; |
} |
- |
-class _WebSocketFactoryProvider { |
- |
- factory WebSocket(String url) native 'return new WebSocket(url);'; |
-} |
- |
-class _XMLHttpRequestFactoryProvider { |
- factory XMLHttpRequest() native 'return new XMLHttpRequest();'; |
- |
- factory XMLHttpRequest.getTEMPNAME(String url, |
- onSuccess(XMLHttpRequest request)) { |
- final request = new XMLHttpRequest(); |
- request.open('GET', url, true); |
- |
- // TODO(terry): Validate after client login added if necessary to forward |
- // cookies to server. |
- request.withCredentials = true; |
- |
- // Status 0 is for local XHR request. |
- request.on.readyStateChange.add((e) { |
- if (request.readyState == XMLHttpRequest.DONE && |
- (request.status == 200 || request.status == 0)) { |
- onSuccess(request); |
- } |
- }); |
- |
- request.send(); |
- |
- return request; |
- } |
-} |
// 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. |