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

Side by Side Diff: lib/dom/frog/dom_frog.dart

Issue 10035039: Update fremontcut with current chrome feature defines (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add battery APIs Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #library('dom'); 1 #library('dom');
2 2
3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 4 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 5 // BSD-style license that can be found in the LICENSE file.
6 6
7 // DO NOT EDIT 7 // DO NOT EDIT
8 // Auto-generated Dart DOM library. 8 // Auto-generated Dart DOM library.
9 9
10 10
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 } 268 }
269 269
270 class _AudioSourceNodeJs extends _AudioNodeJs implements AudioSourceNode native "*AudioSourceNode" { 270 class _AudioSourceNodeJs extends _AudioNodeJs implements AudioSourceNode native "*AudioSourceNode" {
271 } 271 }
272 272
273 class _BarInfoJs extends _DOMTypeJs implements BarInfo native "*BarInfo" { 273 class _BarInfoJs extends _DOMTypeJs implements BarInfo native "*BarInfo" {
274 274
275 final bool visible; 275 final bool visible;
276 } 276 }
277 277
278 class _BatteryManagerJs extends _EventTargetJs implements BatteryManager native "*BatteryManager" {
279
280 final bool charging;
281
282 final num chargingTime;
283
284 final num dischargingTime;
285
286 final num level;
287
288 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
289
290 bool dispatchEvent(_EventJs evt) native;
291
292 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
293 }
294
278 class _BeforeLoadEventJs extends _EventJs implements BeforeLoadEvent native "*Be foreLoadEvent" { 295 class _BeforeLoadEventJs extends _EventJs implements BeforeLoadEvent native "*Be foreLoadEvent" {
279 296
280 final String url; 297 final String url;
281 } 298 }
282 299
283 class _BiquadFilterNodeJs extends _AudioNodeJs implements BiquadFilterNode nativ e "*BiquadFilterNode" { 300 class _BiquadFilterNodeJs extends _AudioNodeJs implements BiquadFilterNode nativ e "*BiquadFilterNode" {
284 301
285 static final int ALLPASS = 7; 302 static final int ALLPASS = 7;
286 303
287 static final int BANDPASS = 2; 304 static final int BANDPASS = 2;
(...skipping 3178 matching lines...) Expand 10 before | Expand all | Expand 10 after
3466 final String webkitMediaSourceURL; 3483 final String webkitMediaSourceURL;
3467 3484
3468 bool webkitPreservesPitch; 3485 bool webkitPreservesPitch;
3469 3486
3470 final int webkitSourceState; 3487 final int webkitSourceState;
3471 3488
3472 final int webkitVideoDecodedByteCount; 3489 final int webkitVideoDecodedByteCount;
3473 3490
3474 _TextTrackJs addTextTrack(String kind, [String label = null, String language = null]) native; 3491 _TextTrackJs addTextTrack(String kind, [String label = null, String language = null]) native;
3475 3492
3476 String canPlayType(String type) native; 3493 String canPlayType(String type, String keySystem) native;
3477 3494
3478 void load() native; 3495 void load() native;
3479 3496
3480 void pause() native; 3497 void pause() native;
3481 3498
3482 void play() native; 3499 void play() native;
3483 3500
3501 void webkitAddKey(String keySystem, _Uint8ArrayJs key, [_Uint8ArrayJs initData = null, String sessionId = null]) native;
3502
3503 void webkitCancelKeyRequest(String keySystem, String sessionId) native;
3504
3505 void webkitGenerateKeyRequest(String keySystem, [_Uint8ArrayJs initData = null ]) native;
3506
3484 void webkitSourceAddId(String id, String type) native; 3507 void webkitSourceAddId(String id, String type) native;
3485 3508
3486 void webkitSourceAppend(_Uint8ArrayJs data) native; 3509 void webkitSourceAppend(_Uint8ArrayJs data) native;
3487 3510
3488 void webkitSourceEndOfStream(int status) native; 3511 void webkitSourceEndOfStream(int status) native;
3489 3512
3490 void webkitSourceRemoveId(String id) native; 3513 void webkitSourceRemoveId(String id) native;
3491 } 3514 }
3492 3515
3493 class _HTMLMenuElementJs extends _HTMLElementJs implements HTMLMenuElement nativ e "*HTMLMenuElement" { 3516 class _HTMLMenuElementJs extends _HTMLElementJs implements HTMLMenuElement nativ e "*HTMLMenuElement" {
(...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after
4762 4785
4763 final _HTMLMediaElementJs mediaElement; 4786 final _HTMLMediaElementJs mediaElement;
4764 } 4787 }
4765 4788
4766 class _MediaErrorJs extends _DOMTypeJs implements MediaError native "*MediaError " { 4789 class _MediaErrorJs extends _DOMTypeJs implements MediaError native "*MediaError " {
4767 4790
4768 static final int MEDIA_ERR_ABORTED = 1; 4791 static final int MEDIA_ERR_ABORTED = 1;
4769 4792
4770 static final int MEDIA_ERR_DECODE = 3; 4793 static final int MEDIA_ERR_DECODE = 3;
4771 4794
4795 static final int MEDIA_ERR_ENCRYPTED = 5;
4796
4772 static final int MEDIA_ERR_NETWORK = 2; 4797 static final int MEDIA_ERR_NETWORK = 2;
4773 4798
4774 static final int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; 4799 static final int MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
4775 4800
4776 final int code; 4801 final int code;
4777 } 4802 }
4778 4803
4804 class _MediaKeyErrorJs extends _DOMTypeJs implements MediaKeyError native "*Medi aKeyError" {
4805
4806 static final int MEDIA_KEYERR_CLIENT = 2;
4807
4808 static final int MEDIA_KEYERR_DOMAIN = 6;
4809
4810 static final int MEDIA_KEYERR_HARDWARECHANGE = 5;
4811
4812 static final int MEDIA_KEYERR_OUTPUT = 4;
4813
4814 static final int MEDIA_KEYERR_SERVICE = 3;
4815
4816 static final int MEDIA_KEYERR_UNKNOWN = 1;
4817
4818 final int code;
4819 }
4820
4821 class _MediaKeyEventJs extends _EventJs implements MediaKeyEvent native "*MediaK eyEvent" {
4822
4823 final String defaultURL;
4824
4825 final _MediaKeyErrorJs errorCode;
4826
4827 final _Uint8ArrayJs initData;
4828
4829 final String keySystem;
4830
4831 final _Uint8ArrayJs message;
4832
4833 final String sessionId;
4834
4835 final int systemCode;
4836 }
4837
4779 class _MediaListJs extends _DOMTypeJs implements MediaList native "*MediaList" { 4838 class _MediaListJs extends _DOMTypeJs implements MediaList native "*MediaList" {
4780 4839
4781 final int length; 4840 final int length;
4782 4841
4783 String mediaText; 4842 String mediaText;
4784 4843
4785 String operator[](int index) native "return this[index];"; 4844 String operator[](int index) native "return this[index];";
4786 4845
4787 void operator[]=(int index, String value) { 4846 void operator[]=(int index, String value) {
4788 throw new UnsupportedOperationException("Cannot assign element of immutable List."); 4847 throw new UnsupportedOperationException("Cannot assign element of immutable List.");
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
5207 final String product; 5266 final String product;
5208 5267
5209 final String productSub; 5268 final String productSub;
5210 5269
5211 final String userAgent; 5270 final String userAgent;
5212 5271
5213 final String vendor; 5272 final String vendor;
5214 5273
5215 final String vendorSub; 5274 final String vendorSub;
5216 5275
5276 final _BatteryManagerJs webkitBattery;
5277
5217 final _PointerLockJs webkitPointer; 5278 final _PointerLockJs webkitPointer;
5218 5279
5219 void getStorageUpdates() native; 5280 void getStorageUpdates() native;
5220 5281
5221 bool javaEnabled() native; 5282 bool javaEnabled() native;
5222 5283
5223 void registerProtocolHandler(String scheme, String url, String title) native; 5284 void registerProtocolHandler(String scheme, String url, String title) native;
5224 5285
5225 void webkitGetUserMedia(String options, NavigatorUserMediaSuccessCallback succ essCallback, [NavigatorUserMediaErrorCallback errorCallback = null]) native; 5286 void webkitGetUserMedia(String options, NavigatorUserMediaSuccessCallback succ essCallback, [NavigatorUserMediaErrorCallback errorCallback = null]) native;
5226 } 5287 }
(...skipping 7235 matching lines...) Expand 10 before | Expand all | Expand 10 after
12462 } 12523 }
12463 12524
12464 interface BarInfo extends BarProp { 12525 interface BarInfo extends BarProp {
12465 } 12526 }
12466 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12527 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12467 // for details. All rights reserved. Use of this source code is governed by a 12528 // for details. All rights reserved. Use of this source code is governed by a
12468 // BSD-style license that can be found in the LICENSE file. 12529 // BSD-style license that can be found in the LICENSE file.
12469 12530
12470 // WARNING: Do not edit - generated code. 12531 // WARNING: Do not edit - generated code.
12471 12532
12533 interface BatteryManager extends EventTarget {
12534
12535 final bool charging;
12536
12537 final num chargingTime;
12538
12539 final num dischargingTime;
12540
12541 final num level;
12542
12543 void addEventListener(String type, EventListener listener, [bool useCapture]);
12544
12545 bool dispatchEvent(Event evt);
12546
12547 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
12548 }
12549 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12550 // for details. All rights reserved. Use of this source code is governed by a
12551 // BSD-style license that can be found in the LICENSE file.
12552
12553 // WARNING: Do not edit - generated code.
12554
12472 interface BeforeLoadEvent extends Event { 12555 interface BeforeLoadEvent extends Event {
12473 12556
12474 final String url; 12557 final String url;
12475 } 12558 }
12476 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12559 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12477 // for details. All rights reserved. Use of this source code is governed by a 12560 // for details. All rights reserved. Use of this source code is governed by a
12478 // BSD-style license that can be found in the LICENSE file. 12561 // BSD-style license that can be found in the LICENSE file.
12479 12562
12480 // WARNING: Do not edit - generated code. 12563 // WARNING: Do not edit - generated code.
12481 12564
(...skipping 3610 matching lines...) Expand 10 before | Expand all | Expand 10 after
16092 final String webkitMediaSourceURL; 16175 final String webkitMediaSourceURL;
16093 16176
16094 bool webkitPreservesPitch; 16177 bool webkitPreservesPitch;
16095 16178
16096 final int webkitSourceState; 16179 final int webkitSourceState;
16097 16180
16098 final int webkitVideoDecodedByteCount; 16181 final int webkitVideoDecodedByteCount;
16099 16182
16100 TextTrack addTextTrack(String kind, [String label, String language]); 16183 TextTrack addTextTrack(String kind, [String label, String language]);
16101 16184
16102 String canPlayType(String type); 16185 String canPlayType(String type, String keySystem);
16103 16186
16104 void load(); 16187 void load();
16105 16188
16106 void pause(); 16189 void pause();
16107 16190
16108 void play(); 16191 void play();
16109 16192
16193 void webkitAddKey(String keySystem, Uint8Array key, [Uint8Array initData, Stri ng sessionId]);
16194
16195 void webkitCancelKeyRequest(String keySystem, String sessionId);
16196
16197 void webkitGenerateKeyRequest(String keySystem, [Uint8Array initData]);
16198
16110 void webkitSourceAddId(String id, String type); 16199 void webkitSourceAddId(String id, String type);
16111 16200
16112 void webkitSourceAppend(Uint8Array data); 16201 void webkitSourceAppend(Uint8Array data);
16113 16202
16114 void webkitSourceEndOfStream(int status); 16203 void webkitSourceEndOfStream(int status);
16115 16204
16116 void webkitSourceRemoveId(String id); 16205 void webkitSourceRemoveId(String id);
16117 } 16206 }
16118 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16207 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16119 // for details. All rights reserved. Use of this source code is governed by a 16208 // for details. All rights reserved. Use of this source code is governed by a
(...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after
17467 // BSD-style license that can be found in the LICENSE file. 17556 // BSD-style license that can be found in the LICENSE file.
17468 17557
17469 // WARNING: Do not edit - generated code. 17558 // WARNING: Do not edit - generated code.
17470 17559
17471 interface MediaError { 17560 interface MediaError {
17472 17561
17473 static final int MEDIA_ERR_ABORTED = 1; 17562 static final int MEDIA_ERR_ABORTED = 1;
17474 17563
17475 static final int MEDIA_ERR_DECODE = 3; 17564 static final int MEDIA_ERR_DECODE = 3;
17476 17565
17566 static final int MEDIA_ERR_ENCRYPTED = 5;
17567
17477 static final int MEDIA_ERR_NETWORK = 2; 17568 static final int MEDIA_ERR_NETWORK = 2;
17478 17569
17479 static final int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; 17570 static final int MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
17480 17571
17481 final int code; 17572 final int code;
17482 } 17573 }
17483 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17574 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17484 // for details. All rights reserved. Use of this source code is governed by a 17575 // for details. All rights reserved. Use of this source code is governed by a
17485 // BSD-style license that can be found in the LICENSE file. 17576 // BSD-style license that can be found in the LICENSE file.
17486 17577
17487 // WARNING: Do not edit - generated code. 17578 // WARNING: Do not edit - generated code.
17488 17579
17580 interface MediaKeyError {
17581
17582 static final int MEDIA_KEYERR_CLIENT = 2;
17583
17584 static final int MEDIA_KEYERR_DOMAIN = 6;
17585
17586 static final int MEDIA_KEYERR_HARDWARECHANGE = 5;
17587
17588 static final int MEDIA_KEYERR_OUTPUT = 4;
17589
17590 static final int MEDIA_KEYERR_SERVICE = 3;
17591
17592 static final int MEDIA_KEYERR_UNKNOWN = 1;
17593
17594 final int code;
17595 }
17596 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17597 // for details. All rights reserved. Use of this source code is governed by a
17598 // BSD-style license that can be found in the LICENSE file.
17599
17600 // WARNING: Do not edit - generated code.
17601
17602 interface MediaKeyEvent extends Event {
17603
17604 final String defaultURL;
17605
17606 final MediaKeyError errorCode;
17607
17608 final Uint8Array initData;
17609
17610 final String keySystem;
17611
17612 final Uint8Array message;
17613
17614 final String sessionId;
17615
17616 final int systemCode;
17617 }
17618 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17619 // for details. All rights reserved. Use of this source code is governed by a
17620 // BSD-style license that can be found in the LICENSE file.
17621
17622 // WARNING: Do not edit - generated code.
17623
17489 interface MediaList extends List<String> { 17624 interface MediaList extends List<String> {
17490 17625
17491 final int length; 17626 final int length;
17492 17627
17493 String mediaText; 17628 String mediaText;
17494 17629
17495 void appendMedium(String newMedium); 17630 void appendMedium(String newMedium);
17496 17631
17497 void deleteMedium(String oldMedium); 17632 void deleteMedium(String oldMedium);
17498 17633
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
17854 final String product; 17989 final String product;
17855 17990
17856 final String productSub; 17991 final String productSub;
17857 17992
17858 final String userAgent; 17993 final String userAgent;
17859 17994
17860 final String vendor; 17995 final String vendor;
17861 17996
17862 final String vendorSub; 17997 final String vendorSub;
17863 17998
17999 final BatteryManager webkitBattery;
18000
17864 final PointerLock webkitPointer; 18001 final PointerLock webkitPointer;
17865 18002
17866 void getStorageUpdates(); 18003 void getStorageUpdates();
17867 18004
17868 bool javaEnabled(); 18005 bool javaEnabled();
17869 18006
17870 void registerProtocolHandler(String scheme, String url, String title); 18007 void registerProtocolHandler(String scheme, String url, String title);
17871 18008
17872 void webkitGetUserMedia(String options, NavigatorUserMediaSuccessCallback succ essCallback, [NavigatorUserMediaErrorCallback errorCallback]); 18009 void webkitGetUserMedia(String options, NavigatorUserMediaSuccessCallback succ essCallback, [NavigatorUserMediaErrorCallback errorCallback]);
17873 } 18010 }
(...skipping 7134 matching lines...) Expand 10 before | Expand all | Expand 10 after
25008 if (length < 0) throw new IllegalArgumentException('length'); 25145 if (length < 0) throw new IllegalArgumentException('length');
25009 if (start < 0) throw new IndexOutOfRangeException(start); 25146 if (start < 0) throw new IndexOutOfRangeException(start);
25010 int end = start + length; 25147 int end = start + length;
25011 if (end > a.length) throw new IndexOutOfRangeException(end); 25148 if (end > a.length) throw new IndexOutOfRangeException(end);
25012 for (int i = start; i < end; i++) { 25149 for (int i = start; i < end; i++) {
25013 accumulator.add(a[i]); 25150 accumulator.add(a[i]);
25014 } 25151 }
25015 return accumulator; 25152 return accumulator;
25016 } 25153 }
25017 } 25154 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698