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

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

Issue 10548065: Revert "Fix DataView constructor and byte accessors." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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
« no previous file with comments | « lib/dom/dom.dart ('k') | lib/dom/idl/dart/dart.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 class _DataViewJs extends _ArrayBufferViewJs implements DataView native "*DataVi ew" { 1490 class _DataViewJs extends _ArrayBufferViewJs implements DataView native "*DataVi ew" {
1491 1491
1492 num getFloat32(int byteOffset, [bool littleEndian = null]) native; 1492 num getFloat32(int byteOffset, [bool littleEndian = null]) native;
1493 1493
1494 num getFloat64(int byteOffset, [bool littleEndian = null]) native; 1494 num getFloat64(int byteOffset, [bool littleEndian = null]) native;
1495 1495
1496 int getInt16(int byteOffset, [bool littleEndian = null]) native; 1496 int getInt16(int byteOffset, [bool littleEndian = null]) native;
1497 1497
1498 int getInt32(int byteOffset, [bool littleEndian = null]) native; 1498 int getInt32(int byteOffset, [bool littleEndian = null]) native;
1499 1499
1500 int getInt8(int byteOffset) native; 1500 Object getInt8() native;
1501 1501
1502 int getUint16(int byteOffset, [bool littleEndian = null]) native; 1502 int getUint16(int byteOffset, [bool littleEndian = null]) native;
1503 1503
1504 int getUint32(int byteOffset, [bool littleEndian = null]) native; 1504 int getUint32(int byteOffset, [bool littleEndian = null]) native;
1505 1505
1506 int getUint8(int byteOffset) native; 1506 Object getUint8() native;
1507 1507
1508 void setFloat32(int byteOffset, num value, [bool littleEndian = null]) native; 1508 void setFloat32(int byteOffset, num value, [bool littleEndian = null]) native;
1509 1509
1510 void setFloat64(int byteOffset, num value, [bool littleEndian = null]) native; 1510 void setFloat64(int byteOffset, num value, [bool littleEndian = null]) native;
1511 1511
1512 void setInt16(int byteOffset, int value, [bool littleEndian = null]) native; 1512 void setInt16(int byteOffset, int value, [bool littleEndian = null]) native;
1513 1513
1514 void setInt32(int byteOffset, int value, [bool littleEndian = null]) native; 1514 void setInt32(int byteOffset, int value, [bool littleEndian = null]) native;
1515 1515
1516 void setInt8(int byteOffset, int value) native; 1516 void setInt8() native;
1517 1517
1518 void setUint16(int byteOffset, int value, [bool littleEndian = null]) native; 1518 void setUint16(int byteOffset, int value, [bool littleEndian = null]) native;
1519 1519
1520 void setUint32(int byteOffset, int value, [bool littleEndian = null]) native; 1520 void setUint32(int byteOffset, int value, [bool littleEndian = null]) native;
1521 1521
1522 void setUint8(int byteOffset, int value) native; 1522 void setUint8() native;
1523 } 1523 }
1524 1524
1525 class _DatabaseJs extends _DOMTypeJs implements Database native "*Database" { 1525 class _DatabaseJs extends _DOMTypeJs implements Database native "*Database" {
1526 1526
1527 final String version; 1527 final String version;
1528 1528
1529 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba ck callback = null, SQLTransactionErrorCallback errorCallback = null, VoidCallba ck successCallback = null]) native; 1529 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba ck callback = null, SQLTransactionErrorCallback errorCallback = null, VoidCallba ck successCallback = null]) native;
1530 1530
1531 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall back errorCallback = null, VoidCallback successCallback = null]) native; 1531 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall back errorCallback = null, VoidCallback successCallback = null]) native;
1532 1532
(...skipping 10407 matching lines...) Expand 10 before | Expand all | Expand 10 after
11940 // BSD-style license that can be found in the LICENSE file. 11940 // BSD-style license that can be found in the LICENSE file.
11941 11941
11942 class _DOMURLFactoryProvider { 11942 class _DOMURLFactoryProvider {
11943 factory DOMURL() native 11943 factory DOMURL() native
11944 '''return new DOMURL();'''; 11944 '''return new DOMURL();''';
11945 } 11945 }
11946 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11946 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11947 // for details. All rights reserved. Use of this source code is governed by a 11947 // for details. All rights reserved. Use of this source code is governed by a
11948 // BSD-style license that can be found in the LICENSE file. 11948 // BSD-style license that can be found in the LICENSE file.
11949 11949
11950 class _DataViewFactoryProvider {
11951 factory DataView(ArrayBuffer buffer, [int byteOffset = null, int byteLength = null]) native
11952 '''return new DataView(buffer, byteOffset, byteLength);''';
11953 }
11954 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11955 // for details. All rights reserved. Use of this source code is governed by a
11956 // BSD-style license that can be found in the LICENSE file.
11957
11958 class _DeprecatedPeerConnectionFactoryProvider { 11950 class _DeprecatedPeerConnectionFactoryProvider {
11959 factory DeprecatedPeerConnection(String serverConfiguration, SignalingCallback signalingCallback) native 11951 factory DeprecatedPeerConnection(String serverConfiguration, SignalingCallback signalingCallback) native
11960 '''return new DeprecatedPeerConnection(serverConfiguration, signalingCallb ack);'''; 11952 '''return new DeprecatedPeerConnection(serverConfiguration, signalingCallb ack);''';
11961 } 11953 }
11962 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11954 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11963 // for details. All rights reserved. Use of this source code is governed by a 11955 // for details. All rights reserved. Use of this source code is governed by a
11964 // BSD-style license that can be found in the LICENSE file. 11956 // BSD-style license that can be found in the LICENSE file.
11965 11957
11966 class _EventSourceFactoryProvider { 11958 class _EventSourceFactoryProvider {
11967 factory EventSource(String scriptUrl) native 11959 factory EventSource(String scriptUrl) native
(...skipping 1962 matching lines...) Expand 10 before | Expand all | Expand 10 after
13930 void clear(); 13922 void clear();
13931 13923
13932 DataTransferItem item(int index); 13924 DataTransferItem item(int index);
13933 } 13925 }
13934 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13926 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13935 // for details. All rights reserved. Use of this source code is governed by a 13927 // for details. All rights reserved. Use of this source code is governed by a
13936 // BSD-style license that can be found in the LICENSE file. 13928 // BSD-style license that can be found in the LICENSE file.
13937 13929
13938 // WARNING: Do not edit - generated code. 13930 // WARNING: Do not edit - generated code.
13939 13931
13940 interface DataView extends ArrayBufferView default _DataViewFactoryProvider { 13932 interface DataView extends ArrayBufferView {
13941
13942 DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]);
13943 13933
13944 num getFloat32(int byteOffset, [bool littleEndian]); 13934 num getFloat32(int byteOffset, [bool littleEndian]);
13945 13935
13946 num getFloat64(int byteOffset, [bool littleEndian]); 13936 num getFloat64(int byteOffset, [bool littleEndian]);
13947 13937
13948 int getInt16(int byteOffset, [bool littleEndian]); 13938 int getInt16(int byteOffset, [bool littleEndian]);
13949 13939
13950 int getInt32(int byteOffset, [bool littleEndian]); 13940 int getInt32(int byteOffset, [bool littleEndian]);
13951 13941
13952 int getInt8(int byteOffset); 13942 Object getInt8();
13953 13943
13954 int getUint16(int byteOffset, [bool littleEndian]); 13944 int getUint16(int byteOffset, [bool littleEndian]);
13955 13945
13956 int getUint32(int byteOffset, [bool littleEndian]); 13946 int getUint32(int byteOffset, [bool littleEndian]);
13957 13947
13958 int getUint8(int byteOffset); 13948 Object getUint8();
13959 13949
13960 void setFloat32(int byteOffset, num value, [bool littleEndian]); 13950 void setFloat32(int byteOffset, num value, [bool littleEndian]);
13961 13951
13962 void setFloat64(int byteOffset, num value, [bool littleEndian]); 13952 void setFloat64(int byteOffset, num value, [bool littleEndian]);
13963 13953
13964 void setInt16(int byteOffset, int value, [bool littleEndian]); 13954 void setInt16(int byteOffset, int value, [bool littleEndian]);
13965 13955
13966 void setInt32(int byteOffset, int value, [bool littleEndian]); 13956 void setInt32(int byteOffset, int value, [bool littleEndian]);
13967 13957
13968 void setInt8(int byteOffset, int value); 13958 void setInt8();
13969 13959
13970 void setUint16(int byteOffset, int value, [bool littleEndian]); 13960 void setUint16(int byteOffset, int value, [bool littleEndian]);
13971 13961
13972 void setUint32(int byteOffset, int value, [bool littleEndian]); 13962 void setUint32(int byteOffset, int value, [bool littleEndian]);
13973 13963
13974 void setUint8(int byteOffset, int value); 13964 void setUint8();
13975 } 13965 }
13976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13966 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13977 // for details. All rights reserved. Use of this source code is governed by a 13967 // for details. All rights reserved. Use of this source code is governed by a
13978 // BSD-style license that can be found in the LICENSE file. 13968 // BSD-style license that can be found in the LICENSE file.
13979 13969
13980 // WARNING: Do not edit - generated code. 13970 // WARNING: Do not edit - generated code.
13981 13971
13982 interface Database { 13972 interface Database {
13983 13973
13984 final String version; 13974 final String version;
(...skipping 11245 matching lines...) Expand 10 before | Expand all | Expand 10 after
25230 if (length < 0) throw new IllegalArgumentException('length'); 25220 if (length < 0) throw new IllegalArgumentException('length');
25231 if (start < 0) throw new IndexOutOfRangeException(start); 25221 if (start < 0) throw new IndexOutOfRangeException(start);
25232 int end = start + length; 25222 int end = start + length;
25233 if (end > a.length) throw new IndexOutOfRangeException(end); 25223 if (end > a.length) throw new IndexOutOfRangeException(end);
25234 for (int i = start; i < end; i++) { 25224 for (int i = start; i < end; i++) {
25235 accumulator.add(a[i]); 25225 accumulator.add(a[i]);
25236 } 25226 }
25237 return accumulator; 25227 return accumulator;
25238 } 25228 }
25239 } 25229 }
OLDNEW
« no previous file with comments | « lib/dom/dom.dart ('k') | lib/dom/idl/dart/dart.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698