OLD | NEW |
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 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1405 DOMSelection getSelection() native; | 1405 DOMSelection getSelection() native; |
1406 | 1406 |
1407 MediaQueryList matchMedia(String query) native; | 1407 MediaQueryList matchMedia(String query) native; |
1408 | 1408 |
1409 void moveBy(num x, num y) native; | 1409 void moveBy(num x, num y) native; |
1410 | 1410 |
1411 void moveTo(num x, num y) native; | 1411 void moveTo(num x, num y) native; |
1412 | 1412 |
1413 DOMWindow open(String url, String name, [String options = null]) native; | 1413 DOMWindow open(String url, String name, [String options = null]) native; |
1414 | 1414 |
1415 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback = null]) native; | |
1416 | |
1417 void postMessage(String message, String targetOrigin, [List messagePorts = nul
l]) native; | 1415 void postMessage(String message, String targetOrigin, [List messagePorts = nul
l]) native; |
1418 | 1416 |
1419 void print() native; | 1417 void print() native; |
1420 | 1418 |
1421 String prompt(String message, String defaultValue) native; | 1419 String prompt(String message, String defaultValue) native; |
1422 | 1420 |
1423 void releaseEvents() native; | 1421 void releaseEvents() native; |
1424 | 1422 |
1425 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 1423 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
1426 | 1424 |
(...skipping 2699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4126 | 4124 |
4127 String message; | 4125 String message; |
4128 | 4126 |
4129 var dartObjectLocalStorage; | 4127 var dartObjectLocalStorage; |
4130 | 4128 |
4131 String get typeName() native; | 4129 String get typeName() native; |
4132 } | 4130 } |
4133 | 4131 |
4134 class IDBDatabaseException native "*IDBDatabaseException" { | 4132 class IDBDatabaseException native "*IDBDatabaseException" { |
4135 | 4133 |
4136 static final int ABORT_ERR = 13; | 4134 static final int ABORT_ERR = 8; |
4137 | 4135 |
4138 static final int CONSTRAINT_ERR = 4; | 4136 static final int CONSTRAINT_ERR = 4; |
4139 | 4137 |
4140 static final int DATA_ERR = 5; | 4138 static final int DATA_ERR = 5; |
4141 | 4139 |
4142 static final int DEADLOCK_ERR = 11; | |
4143 | |
4144 static final int NON_TRANSIENT_ERR = 2; | 4140 static final int NON_TRANSIENT_ERR = 2; |
4145 | 4141 |
4146 static final int NOT_ALLOWED_ERR = 6; | 4142 static final int NOT_ALLOWED_ERR = 6; |
4147 | 4143 |
4148 static final int NOT_FOUND_ERR = 3; | 4144 static final int NOT_FOUND_ERR = 3; |
4149 | 4145 |
4150 static final int NO_ERR = 0; | 4146 static final int NO_ERR = 0; |
4151 | 4147 |
4152 static final int READ_ONLY_ERR = 12; | 4148 static final int QUOTA_ERR = 11; |
4153 | 4149 |
4154 static final int RECOVERABLE_ERR = 8; | 4150 static final int READ_ONLY_ERR = 9; |
4155 | |
4156 static final int SERIAL_ERR = 7; | |
4157 | 4151 |
4158 static final int TIMEOUT_ERR = 10; | 4152 static final int TIMEOUT_ERR = 10; |
4159 | 4153 |
4160 static final int TRANSIENT_ERR = 9; | 4154 static final int TRANSACTION_INACTIVE_ERR = 7; |
4161 | 4155 |
4162 static final int UNKNOWN_ERR = 1; | 4156 static final int UNKNOWN_ERR = 1; |
4163 | 4157 |
| 4158 static final int VER_ERR = 12; |
| 4159 |
4164 int code; | 4160 int code; |
4165 | 4161 |
4166 String message; | 4162 String message; |
4167 | 4163 |
4168 String name; | 4164 String name; |
4169 | 4165 |
4170 String toString() native; | 4166 String toString() native; |
4171 | 4167 |
4172 var dartObjectLocalStorage; | 4168 var dartObjectLocalStorage; |
4173 | 4169 |
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5375 | 5371 |
5376 int unloadEventStart; | 5372 int unloadEventStart; |
5377 | 5373 |
5378 var dartObjectLocalStorage; | 5374 var dartObjectLocalStorage; |
5379 | 5375 |
5380 String get typeName() native; | 5376 String get typeName() native; |
5381 } | 5377 } |
5382 | 5378 |
5383 class PointerLock native "*PointerLock" { | 5379 class PointerLock native "*PointerLock" { |
5384 | 5380 |
5385 bool isLocked() native; | 5381 bool isLocked; |
5386 | 5382 |
5387 void lock(Element target, [VoidCallback successCallback = null, VoidCallback f
ailureCallback = null]) native; | 5383 void lock(Element target, [VoidCallback successCallback = null, VoidCallback f
ailureCallback = null]) native; |
5388 | 5384 |
5389 void unlock() native; | 5385 void unlock() native; |
5390 | 5386 |
5391 var dartObjectLocalStorage; | 5387 var dartObjectLocalStorage; |
5392 | 5388 |
5393 String get typeName() native; | 5389 String get typeName() native; |
5394 } | 5390 } |
5395 | 5391 |
(...skipping 4062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9458 EventListener onexit; | 9454 EventListener onexit; |
9459 | 9455 |
9460 bool pauseOnExit; | 9456 bool pauseOnExit; |
9461 | 9457 |
9462 int size; | 9458 int size; |
9463 | 9459 |
9464 bool snapToLines; | 9460 bool snapToLines; |
9465 | 9461 |
9466 num startTime; | 9462 num startTime; |
9467 | 9463 |
| 9464 String text; |
| 9465 |
9468 int textPosition; | 9466 int textPosition; |
9469 | 9467 |
9470 TextTrack track; | 9468 TextTrack track; |
9471 | 9469 |
9472 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 9470 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
9473 | 9471 |
9474 bool dispatchEvent(Event evt) native; | 9472 bool dispatchEvent(Event evt) native; |
9475 | 9473 |
9476 DocumentFragment getCueAsHTML() native; | 9474 DocumentFragment getCueAsHTML() native; |
9477 | 9475 |
9478 String getCueAsSource() native; | |
9479 | |
9480 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 9476 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
9481 | 9477 |
9482 var dartObjectLocalStorage; | 9478 var dartObjectLocalStorage; |
9483 | 9479 |
9484 String get typeName() native; | 9480 String get typeName() native; |
9485 } | 9481 } |
9486 | 9482 |
9487 class TextTrackCueList native "*TextTrackCueList" { | 9483 class TextTrackCueList native "*TextTrackCueList" { |
9488 | 9484 |
9489 int length; | 9485 int length; |
(...skipping 2662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12152 startIndex = a.length - 1; | 12148 startIndex = a.length - 1; |
12153 } | 12149 } |
12154 for (int i = startIndex; i >= 0; i--) { | 12150 for (int i = startIndex; i >= 0; i--) { |
12155 if (a[i] == element) { | 12151 if (a[i] == element) { |
12156 return i; | 12152 return i; |
12157 } | 12153 } |
12158 } | 12154 } |
12159 return -1; | 12155 return -1; |
12160 } | 12156 } |
12161 } | 12157 } |
OLD | NEW |