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

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

Issue 9704024: Update dart:dom and dart:html bindings to reflect latest webkit changes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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.dart ('k') | client/html/dartium/html_dartium.dart » ('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 eb16819124124107f122a32f0aa410bcaaf62a39..7b5f978f4f3c04b9f19b503aa106d451e60f778e 100644
--- a/client/dom/frog/dom_frog.dart
+++ b/client/dom/frog/dom_frog.dart
@@ -1478,6 +1478,51 @@ class _DelayNodeJs extends _AudioNodeJs implements DelayNode native "*DelayNode"
final _AudioParamJs delayTime;
}
+class _DeprecatedPeerConnectionJs extends _DOMTypeJs implements DeprecatedPeerConnection native "*DeprecatedPeerConnection" {
+
+ static final int ACTIVE = 2;
+
+ static final int CLOSED = 3;
+
+ static final int NEGOTIATING = 1;
+
+ static final int NEW = 0;
+
+ final _MediaStreamListJs localStreams;
+
+ EventListener onaddstream;
+
+ EventListener onconnecting;
+
+ EventListener onmessage;
+
+ EventListener onopen;
+
+ EventListener onremovestream;
+
+ EventListener onstatechange;
+
+ final int readyState;
+
+ final _MediaStreamListJs remoteStreams;
+
+ void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
+
+ void addStream(_MediaStreamJs stream) native;
+
+ void close() native;
+
+ bool dispatchEvent(_EventJs event) native;
+
+ void processSignalingMessage(String message) native;
+
+ void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
+
+ void removeStream(_MediaStreamJs stream) native;
+
+ void send(String text) native;
+}
+
class _DeviceMotionEventJs extends _EventJs implements DeviceMotionEvent native "*DeviceMotionEvent" {
final num interval;
@@ -5489,51 +5534,6 @@ class _PageTransitionEventJs extends _EventJs implements PageTransitionEvent nat
final bool persisted;
}
-class _PeerConnectionJs extends _DOMTypeJs implements PeerConnection native "*PeerConnection" {
-
- static final int ACTIVE = 2;
-
- static final int CLOSED = 3;
-
- static final int NEGOTIATING = 1;
-
- static final int NEW = 0;
-
- final _MediaStreamListJs localStreams;
-
- EventListener onaddstream;
-
- EventListener onconnecting;
-
- EventListener onmessage;
-
- EventListener onopen;
-
- EventListener onremovestream;
-
- EventListener onstatechange;
-
- final int readyState;
-
- final _MediaStreamListJs remoteStreams;
-
- void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
-
- void addStream(_MediaStreamJs stream) native;
-
- void close() native;
-
- bool dispatchEvent(_EventJs event) native;
-
- void processSignalingMessage(String message) native;
-
- void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
-
- void removeStream(_MediaStreamJs stream) native;
-
- void send(String text) native;
-}
-
class _PerformanceJs extends _DOMTypeJs implements Performance native "*Performance" {
final _MemoryInfoJs memory;
@@ -9210,6 +9210,22 @@ class _SharedWorkerContextJs extends _WorkerContextJs implements SharedWorkerCon
EventListener onconnect;
}
+class _SpeechGrammarJs extends _DOMTypeJs implements SpeechGrammar native "*SpeechGrammar" {
+
+ num weight;
+}
+
+class _SpeechGrammarListJs extends _DOMTypeJs implements SpeechGrammarList native "*SpeechGrammarList" {
+
+ final int length;
+
+ void addFromString(String string, [num weight = null]) native;
+
+ void addFromUri(String src, [num weight = null]) native;
+
+ _SpeechGrammarJs item(int index) native;
+}
+
class _SpeechInputEventJs extends _EventJs implements SpeechInputEvent native "*SpeechInputEvent" {
final _SpeechInputResultListJs results;
@@ -9228,6 +9244,65 @@ class _SpeechInputResultListJs extends _DOMTypeJs implements SpeechInputResultLi
_SpeechInputResultJs item(int index) native;
}
+
+class _SpeechRecognitionAlternativeJs extends _DOMTypeJs implements SpeechRecognitionAlternative native "*SpeechRecognitionAlternative" {
+
+ final num confidence;
+
+ final String transcript;
+}
+
+class _SpeechRecognitionErrorJs extends _DOMTypeJs implements SpeechRecognitionError native "*SpeechRecognitionError" {
+
+ static final int ABORTED = 2;
+
+ static final int AUDIO_CAPTURE = 3;
+
+ static final int BAD_GRAMMAR = 7;
+
+ static final int LANGUAGE_NOT_SUPPORTED = 8;
+
+ static final int NETWORK = 4;
+
+ static final int NOT_ALLOWED = 5;
+
+ static final int NO_SPEECH = 1;
+
+ static final int OTHER = 0;
+
+ static final int SERVICE_NOT_ALLOWED = 6;
+
+ final int code;
+
+ final String message;
+}
+
+class _SpeechRecognitionEventJs extends _EventJs implements SpeechRecognitionEvent native "*SpeechRecognitionEvent" {
+
+ final _SpeechRecognitionErrorJs error;
+
+ final _SpeechRecognitionResultJs result;
+
+ final _SpeechRecognitionResultListJs resultHistory;
+
+ final int resultIndex;
+}
+
+class _SpeechRecognitionResultJs extends _DOMTypeJs implements SpeechRecognitionResult native "*SpeechRecognitionResult" {
+
+ bool get finalValue() native "return this.final;";
+
+ final int length;
+
+ _SpeechRecognitionAlternativeJs item(int index) native;
+}
+
+class _SpeechRecognitionResultListJs extends _DOMTypeJs implements SpeechRecognitionResultList native "*SpeechRecognitionResultList" {
+
+ final int length;
+
+ _SpeechRecognitionResultJs item(int index) native;
+}
// 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.
@@ -11567,6 +11642,14 @@ class _DOMURLFactoryProvider {
// 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 _DeprecatedPeerConnectionFactoryProvider {
+ factory DeprecatedPeerConnection(String serverConfiguration, SignalingCallback signalingCallback) native
+ '''return new DeprecatedPeerConnection(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 _EventSourceFactoryProvider {
factory EventSource(String scriptUrl) native
'''return new EventSource(scriptUrl);''';
@@ -11642,14 +11725,6 @@ class _MessageChannelFactoryProvider {
// 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);''';
@@ -11669,6 +11744,22 @@ return new SharedWorker(scriptURL, name);
// 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 _SpeechGrammarFactoryProvider {
+ factory SpeechGrammar() native
+ '''return new SpeechGrammar();''';
+}
+// 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 _SpeechGrammarListFactoryProvider {
+ factory SpeechGrammarList() native
+ '''return new SpeechGrammarList();''';
+}
+// 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
@@ -13545,6 +13636,58 @@ interface DelayNode extends AudioNode {
// WARNING: Do not edit - generated code.
+interface DeprecatedPeerConnection default _DeprecatedPeerConnectionFactoryProvider {
+
+ DeprecatedPeerConnection(String serverConfiguration, SignalingCallback signalingCallback);
+
+ static final int ACTIVE = 2;
+
+ static final int CLOSED = 3;
+
+ static final int NEGOTIATING = 1;
+
+ static final int NEW = 0;
+
+ final MediaStreamList localStreams;
+
+ EventListener onaddstream;
+
+ EventListener onconnecting;
+
+ EventListener onmessage;
+
+ EventListener onopen;
+
+ EventListener onremovestream;
+
+ EventListener onstatechange;
+
+ final int readyState;
+
+ final MediaStreamList remoteStreams;
+
+ void addEventListener(String type, EventListener listener, [bool useCapture]);
+
+ void addStream(MediaStream stream);
+
+ void close();
+
+ bool dispatchEvent(Event event);
+
+ void processSignalingMessage(String message);
+
+ void removeEventListener(String type, EventListener listener, [bool useCapture]);
+
+ void removeStream(MediaStream stream);
+
+ void send(String text);
+}
+// 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 DeviceMotionEvent extends Event {
final num interval;
@@ -17834,58 +17977,6 @@ interface PageTransitionEvent extends Event {
// WARNING: Do not edit - generated code.
-interface PeerConnection default _PeerConnectionFactoryProvider {
-
- PeerConnection(String serverConfiguration, SignalingCallback signalingCallback);
-
- static final int ACTIVE = 2;
-
- static final int CLOSED = 3;
-
- static final int NEGOTIATING = 1;
-
- static final int NEW = 0;
-
- final MediaStreamList localStreams;
-
- EventListener onaddstream;
-
- EventListener onconnecting;
-
- EventListener onmessage;
-
- EventListener onopen;
-
- EventListener onremovestream;
-
- EventListener onstatechange;
-
- final int readyState;
-
- final MediaStreamList remoteStreams;
-
- void addEventListener(String type, EventListener listener, [bool useCapture]);
-
- void addStream(MediaStream stream);
-
- void close();
-
- bool dispatchEvent(Event event);
-
- void processSignalingMessage(String message);
-
- void removeEventListener(String type, EventListener listener, [bool useCapture]);
-
- void removeStream(MediaStream stream);
-
- void send(String text);
-}
-// 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 Performance {
final MemoryInfo memory;
@@ -21011,7 +21102,37 @@ interface SharedWorkerContext extends SharedWorkerGlobalScope {
// WARNING: Do not edit - generated code.
-typedef bool SignalingCallback(String message, PeerConnection source);
+typedef bool SignalingCallback(String message, DeprecatedPeerConnection source);
+// 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 SpeechGrammar default _SpeechGrammarFactoryProvider {
+
+ SpeechGrammar();
+
+ num weight;
+}
+// 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 SpeechGrammarList default _SpeechGrammarListFactoryProvider {
+
+ SpeechGrammarList();
+
+ final int length;
+
+ void addFromString(String string, [num weight]);
+
+ void addFromUri(String src, [num weight]);
+
+ SpeechGrammar item(int index);
+}
// 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.
@@ -21052,6 +21173,90 @@ interface SpeechInputResultList {
// WARNING: Do not edit - generated code.
+interface SpeechRecognitionAlternative {
+
+ final num confidence;
+
+ final String transcript;
+}
+// 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 SpeechRecognitionError {
+
+ static final int ABORTED = 2;
+
+ static final int AUDIO_CAPTURE = 3;
+
+ static final int BAD_GRAMMAR = 7;
+
+ static final int LANGUAGE_NOT_SUPPORTED = 8;
+
+ static final int NETWORK = 4;
+
+ static final int NOT_ALLOWED = 5;
+
+ static final int NO_SPEECH = 1;
+
+ static final int OTHER = 0;
+
+ static final int SERVICE_NOT_ALLOWED = 6;
+
+ final int code;
+
+ final String message;
+}
+// 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 SpeechRecognitionEvent extends Event {
+
+ final SpeechRecognitionError error;
+
+ final SpeechRecognitionResult result;
+
+ final SpeechRecognitionResultList resultHistory;
+
+ final int resultIndex;
+}
+// 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 SpeechRecognitionResult {
+
+ final bool finalValue;
+
+ final int length;
+
+ SpeechRecognitionAlternative item(int index);
+}
+// 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 SpeechRecognitionResultList {
+
+ final int length;
+
+ SpeechRecognitionResult item(int index);
+}
+// 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 Storage {
final int length;
« no previous file with comments | « client/dom/dom.dart ('k') | client/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698