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 2679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2690 static _construct(arg) native 'return new Float32Array(arg);'; | 2690 static _construct(arg) native 'return new Float32Array(arg);'; |
2691 | 2691 |
2692 static final int BYTES_PER_ELEMENT = 4; | 2692 static final int BYTES_PER_ELEMENT = 4; |
2693 | 2693 |
2694 int get length() native "return this.length;"; | 2694 int get length() native "return this.length;"; |
2695 | 2695 |
2696 num operator[](int index) native; | 2696 num operator[](int index) native; |
2697 | 2697 |
2698 void operator[]=(int index, num value) native; | 2698 void operator[]=(int index, num value) native; |
2699 | 2699 |
| 2700 void setElements(Object array, [int offset = null]) native; |
| 2701 |
2700 Float32Array subarray(int start, [int end = null]) native; | 2702 Float32Array subarray(int start, [int end = null]) native; |
2701 } | 2703 } |
2702 | 2704 |
2703 class Float64Array extends ArrayBufferView implements List<num> native "*Float64
Array" { | 2705 class Float64Array extends ArrayBufferView implements List<num> native "*Float64
Array" { |
2704 | 2706 |
2705 factory Float64Array(int length) => _construct(length); | 2707 factory Float64Array(int length) => _construct(length); |
2706 | 2708 |
2707 factory Float64Array.fromList(List<num> list) => _construct(list); | 2709 factory Float64Array.fromList(List<num> list) => _construct(list); |
2708 | 2710 |
2709 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); | 2711 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); |
2710 | 2712 |
2711 static _construct(arg) native 'return new Float64Array(arg);'; | 2713 static _construct(arg) native 'return new Float64Array(arg);'; |
2712 | 2714 |
2713 static final int BYTES_PER_ELEMENT = 8; | 2715 static final int BYTES_PER_ELEMENT = 8; |
2714 | 2716 |
2715 int get length() native "return this.length;"; | 2717 int get length() native "return this.length;"; |
2716 | 2718 |
2717 num operator[](int index) native; | 2719 num operator[](int index) native; |
2718 | 2720 |
2719 void operator[]=(int index, num value) native; | 2721 void operator[]=(int index, num value) native; |
2720 | 2722 |
| 2723 void setElements(Object array, [int offset = null]) native; |
| 2724 |
2721 Float64Array subarray(int start, [int end = null]) native; | 2725 Float64Array subarray(int start, [int end = null]) native; |
2722 } | 2726 } |
2723 | 2727 |
2724 class Geolocation native "*Geolocation" { | 2728 class Geolocation native "*Geolocation" { |
2725 | 2729 |
2726 void clearWatch(int watchId) native; | 2730 void clearWatch(int watchId) native; |
2727 | 2731 |
2728 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback = null]) native; | 2732 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback = null]) native; |
2729 | 2733 |
2730 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback = null]) native; | 2734 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback = null]) native; |
(...skipping 2754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5485 static _construct(arg) native 'return new Int16Array(arg);'; | 5489 static _construct(arg) native 'return new Int16Array(arg);'; |
5486 | 5490 |
5487 static final int BYTES_PER_ELEMENT = 2; | 5491 static final int BYTES_PER_ELEMENT = 2; |
5488 | 5492 |
5489 int get length() native "return this.length;"; | 5493 int get length() native "return this.length;"; |
5490 | 5494 |
5491 int operator[](int index) native; | 5495 int operator[](int index) native; |
5492 | 5496 |
5493 void operator[]=(int index, int value) native; | 5497 void operator[]=(int index, int value) native; |
5494 | 5498 |
| 5499 void setElements(Object array, [int offset = null]) native; |
| 5500 |
5495 Int16Array subarray(int start, [int end = null]) native; | 5501 Int16Array subarray(int start, [int end = null]) native; |
5496 } | 5502 } |
5497 | 5503 |
5498 class Int32Array extends ArrayBufferView implements List<int> native "*Int32Arra
y" { | 5504 class Int32Array extends ArrayBufferView implements List<int> native "*Int32Arra
y" { |
5499 | 5505 |
5500 factory Int32Array(int length) => _construct(length); | 5506 factory Int32Array(int length) => _construct(length); |
5501 | 5507 |
5502 factory Int32Array.fromList(List<int> list) => _construct(list); | 5508 factory Int32Array.fromList(List<int> list) => _construct(list); |
5503 | 5509 |
5504 factory Int32Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); | 5510 factory Int32Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); |
5505 | 5511 |
5506 static _construct(arg) native 'return new Int32Array(arg);'; | 5512 static _construct(arg) native 'return new Int32Array(arg);'; |
5507 | 5513 |
5508 static final int BYTES_PER_ELEMENT = 4; | 5514 static final int BYTES_PER_ELEMENT = 4; |
5509 | 5515 |
5510 int get length() native "return this.length;"; | 5516 int get length() native "return this.length;"; |
5511 | 5517 |
5512 int operator[](int index) native; | 5518 int operator[](int index) native; |
5513 | 5519 |
5514 void operator[]=(int index, int value) native; | 5520 void operator[]=(int index, int value) native; |
5515 | 5521 |
| 5522 void setElements(Object array, [int offset = null]) native; |
| 5523 |
5516 Int32Array subarray(int start, [int end = null]) native; | 5524 Int32Array subarray(int start, [int end = null]) native; |
5517 } | 5525 } |
5518 | 5526 |
5519 class Int8Array extends ArrayBufferView implements List<int> native "*Int8Array"
{ | 5527 class Int8Array extends ArrayBufferView implements List<int> native "*Int8Array"
{ |
5520 | 5528 |
5521 factory Int8Array(int length) => _construct(length); | 5529 factory Int8Array(int length) => _construct(length); |
5522 | 5530 |
5523 factory Int8Array.fromList(List<int> list) => _construct(list); | 5531 factory Int8Array.fromList(List<int> list) => _construct(list); |
5524 | 5532 |
5525 factory Int8Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); | 5533 factory Int8Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); |
5526 | 5534 |
5527 static _construct(arg) native 'return new Int8Array(arg);'; | 5535 static _construct(arg) native 'return new Int8Array(arg);'; |
5528 | 5536 |
5529 static final int BYTES_PER_ELEMENT = 1; | 5537 static final int BYTES_PER_ELEMENT = 1; |
5530 | 5538 |
5531 int get length() native "return this.length;"; | 5539 int get length() native "return this.length;"; |
5532 | 5540 |
5533 int operator[](int index) native; | 5541 int operator[](int index) native; |
5534 | 5542 |
5535 void operator[]=(int index, int value) native; | 5543 void operator[]=(int index, int value) native; |
5536 | 5544 |
| 5545 void setElements(Object array, [int offset = null]) native; |
| 5546 |
5537 Int8Array subarray(int start, [int end = null]) native; | 5547 Int8Array subarray(int start, [int end = null]) native; |
5538 } | 5548 } |
5539 | 5549 |
5540 class JavaScriptAudioNode extends AudioNode native "*JavaScriptAudioNode" { | 5550 class JavaScriptAudioNode extends AudioNode native "*JavaScriptAudioNode" { |
5541 | 5551 |
5542 int get bufferSize() native "return this.bufferSize;"; | 5552 int get bufferSize() native "return this.bufferSize;"; |
5543 | 5553 |
5544 EventListener get onaudioprocess() native "return this.onaudioprocess;"; | 5554 EventListener get onaudioprocess() native "return this.onaudioprocess;"; |
5545 | 5555 |
5546 void set onaudioprocess(EventListener value) native "this.onaudioprocess = val
ue;"; | 5556 void set onaudioprocess(EventListener value) native "this.onaudioprocess = val
ue;"; |
(...skipping 5543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11090 static _construct(arg) native 'return new Uint16Array(arg);'; | 11100 static _construct(arg) native 'return new Uint16Array(arg);'; |
11091 | 11101 |
11092 static final int BYTES_PER_ELEMENT = 2; | 11102 static final int BYTES_PER_ELEMENT = 2; |
11093 | 11103 |
11094 int get length() native "return this.length;"; | 11104 int get length() native "return this.length;"; |
11095 | 11105 |
11096 int operator[](int index) native; | 11106 int operator[](int index) native; |
11097 | 11107 |
11098 void operator[]=(int index, int value) native; | 11108 void operator[]=(int index, int value) native; |
11099 | 11109 |
| 11110 void setElements(Object array, [int offset = null]) native; |
| 11111 |
11100 Uint16Array subarray(int start, [int end = null]) native; | 11112 Uint16Array subarray(int start, [int end = null]) native; |
11101 } | 11113 } |
11102 | 11114 |
11103 class Uint32Array extends ArrayBufferView implements List<int> native "*Uint32Ar
ray" { | 11115 class Uint32Array extends ArrayBufferView implements List<int> native "*Uint32Ar
ray" { |
11104 | 11116 |
11105 factory Uint32Array(int length) => _construct(length); | 11117 factory Uint32Array(int length) => _construct(length); |
11106 | 11118 |
11107 factory Uint32Array.fromList(List<int> list) => _construct(list); | 11119 factory Uint32Array.fromList(List<int> list) => _construct(list); |
11108 | 11120 |
11109 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); | 11121 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); |
11110 | 11122 |
11111 static _construct(arg) native 'return new Uint32Array(arg);'; | 11123 static _construct(arg) native 'return new Uint32Array(arg);'; |
11112 | 11124 |
11113 static final int BYTES_PER_ELEMENT = 4; | 11125 static final int BYTES_PER_ELEMENT = 4; |
11114 | 11126 |
11115 int get length() native "return this.length;"; | 11127 int get length() native "return this.length;"; |
11116 | 11128 |
11117 int operator[](int index) native; | 11129 int operator[](int index) native; |
11118 | 11130 |
11119 void operator[]=(int index, int value) native; | 11131 void operator[]=(int index, int value) native; |
11120 | 11132 |
| 11133 void setElements(Object array, [int offset = null]) native; |
| 11134 |
11121 Uint32Array subarray(int start, [int end = null]) native; | 11135 Uint32Array subarray(int start, [int end = null]) native; |
11122 } | 11136 } |
11123 | 11137 |
11124 class Uint8Array extends ArrayBufferView implements List<int> native "*Uint8Arra
y" { | 11138 class Uint8Array extends ArrayBufferView implements List<int> native "*Uint8Arra
y" { |
11125 | 11139 |
11126 factory Uint8Array(int length) => _construct(length); | 11140 factory Uint8Array(int length) => _construct(length); |
11127 | 11141 |
11128 factory Uint8Array.fromList(List<int> list) => _construct(list); | 11142 factory Uint8Array.fromList(List<int> list) => _construct(list); |
11129 | 11143 |
11130 factory Uint8Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); | 11144 factory Uint8Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); |
11131 | 11145 |
11132 static _construct(arg) native 'return new Uint8Array(arg);'; | 11146 static _construct(arg) native 'return new Uint8Array(arg);'; |
11133 | 11147 |
11134 static final int BYTES_PER_ELEMENT = 1; | 11148 static final int BYTES_PER_ELEMENT = 1; |
11135 | 11149 |
11136 int get length() native "return this.length;"; | 11150 int get length() native "return this.length;"; |
11137 | 11151 |
11138 int operator[](int index) native; | 11152 int operator[](int index) native; |
11139 | 11153 |
11140 void operator[]=(int index, int value) native; | 11154 void operator[]=(int index, int value) native; |
11141 | 11155 |
| 11156 void setElements(Object array, [int offset = null]) native; |
| 11157 |
11142 Uint8Array subarray(int start, [int end = null]) native; | 11158 Uint8Array subarray(int start, [int end = null]) native; |
11143 } | 11159 } |
11144 | 11160 |
11145 class ValidityState native "*ValidityState" { | 11161 class ValidityState native "*ValidityState" { |
11146 | 11162 |
11147 bool get customError() native "return this.customError;"; | 11163 bool get customError() native "return this.customError;"; |
11148 | 11164 |
11149 bool get patternMismatch() native "return this.patternMismatch;"; | 11165 bool get patternMismatch() native "return this.patternMismatch;"; |
11150 | 11166 |
11151 bool get rangeOverflow() native "return this.rangeOverflow;"; | 11167 bool get rangeOverflow() native "return this.rangeOverflow;"; |
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12013 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText
ure texture, int level) native; | 12029 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText
ure texture, int level) native; |
12014 | 12030 |
12015 void frontFace(int mode) native; | 12031 void frontFace(int mode) native; |
12016 | 12032 |
12017 void generateMipmap(int target) native; | 12033 void generateMipmap(int target) native; |
12018 | 12034 |
12019 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) native; | 12035 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) native; |
12020 | 12036 |
12021 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) native; | 12037 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) native; |
12022 | 12038 |
12023 void getAttachedShaders(WebGLProgram program) native; | 12039 List getAttachedShaders(WebGLProgram program) native; |
12024 | 12040 |
12025 int getAttribLocation(WebGLProgram program, String name) native; | 12041 int getAttribLocation(WebGLProgram program, String name) native; |
12026 | 12042 |
12027 Object getBufferParameter(int target, int pname) native; | 12043 Object getBufferParameter(int target, int pname) native; |
12028 | 12044 |
12029 WebGLContextAttributes getContextAttributes() native; | 12045 WebGLContextAttributes getContextAttributes() native; |
12030 | 12046 |
12031 int getError() native; | 12047 int getError() native; |
12032 | 12048 |
12033 Object getExtension(String name) native; | 12049 Object getExtension(String name) native; |
(...skipping 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13660 startIndex = a.length - 1; | 13676 startIndex = a.length - 1; |
13661 } | 13677 } |
13662 for (int i = startIndex; i >= 0; i--) { | 13678 for (int i = startIndex; i >= 0; i--) { |
13663 if (a[i] == element) { | 13679 if (a[i] == element) { |
13664 return i; | 13680 return i; |
13665 } | 13681 } |
13666 } | 13682 } |
13667 return -1; | 13683 return -1; |
13668 } | 13684 } |
13669 } | 13685 } |
OLD | NEW |