| OLD | NEW |
| 1 #library('dom'); | 1 #library('dom'); |
| 2 | 2 |
| 3 #native('frog_dom.js'); | 3 #native('frog_dom.js'); |
| 4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 5 // for details. All rights reserved. Use of this source code is governed by a | 5 // for details. All rights reserved. Use of this source code is governed by a |
| 6 // BSD-style license that can be found in the LICENSE file. | 6 // BSD-style license that can be found in the LICENSE file. |
| 7 | 7 |
| 8 // DO NOT EDIT | 8 // DO NOT EDIT |
| 9 // Auto-generated Dart DOM library. | 9 // Auto-generated Dart DOM library. |
| 10 | 10 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 DynamicsCompressorNode createDynamicsCompressor() native; | 145 DynamicsCompressorNode createDynamicsCompressor() native; |
| 146 | 146 |
| 147 AudioGainNode createGainNode() native; | 147 AudioGainNode createGainNode() native; |
| 148 | 148 |
| 149 HighPass2FilterNode createHighPass2Filter() native; | 149 HighPass2FilterNode createHighPass2Filter() native; |
| 150 | 150 |
| 151 JavaScriptAudioNode createJavaScriptNode(int bufferSize) native; | 151 JavaScriptAudioNode createJavaScriptNode(int bufferSize) native; |
| 152 | 152 |
| 153 LowPass2FilterNode createLowPass2Filter() native; | 153 LowPass2FilterNode createLowPass2Filter() native; |
| 154 | 154 |
| 155 MediaElementAudioSourceNode createMediaElementSource(HTMLMediaElement mediaEle
ment) native; |
| 156 |
| 155 AudioPannerNode createPanner() native; | 157 AudioPannerNode createPanner() native; |
| 156 | 158 |
| 157 WaveShaperNode createWaveShaper() native; | 159 WaveShaperNode createWaveShaper() native; |
| 158 | 160 |
| 159 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback = null]) native; | 161 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback = null]) native; |
| 160 | 162 |
| 161 void startRendering() native; | 163 void startRendering() native; |
| 162 | 164 |
| 163 var dartObjectLocalStorage; | 165 var dartObjectLocalStorage; |
| 164 | 166 |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 void closePath() native; | 674 void closePath() native; |
| 673 | 675 |
| 674 ImageData createImageData(var imagedata_OR_sw, [num sh = null]) native; | 676 ImageData createImageData(var imagedata_OR_sw, [num sh = null]) native; |
| 675 | 677 |
| 676 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; | 678 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; |
| 677 | 679 |
| 678 CanvasPattern createPattern(var canvas_OR_image, String repetitionType) native
; | 680 CanvasPattern createPattern(var canvas_OR_image, String repetitionType) native
; |
| 679 | 681 |
| 680 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1) native; | 682 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1) native; |
| 681 | 683 |
| 682 void drawImage(var canvas_OR_image, num sx_OR_x, num sy_OR_y, [num sw_OR_width
= null, num height_OR_sh = null, num dx = null, num dy = null, num dw = null, n
um dh = null]) native; | 684 void drawImage(var canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw
_OR_width = null, num height_OR_sh = null, num dx = null, num dy = null, num dw
= null, num dh = null]) native; |
| 683 | 685 |
| 684 void drawImageFromRect(HTMLImageElement image, [num sx = null, num sy = null,
num sw = null, num sh = null, num dx = null, num dy = null, num dw = null, num d
h = null, String compositeOperation = null]) native; | 686 void drawImageFromRect(HTMLImageElement image, [num sx = null, num sy = null,
num sw = null, num sh = null, num dx = null, num dy = null, num dw = null, num d
h = null, String compositeOperation = null]) native; |
| 685 | 687 |
| 686 void fill() native; | 688 void fill() native; |
| 687 | 689 |
| 688 void fillRect(num x, num y, num width, num height) native; | 690 void fillRect(num x, num y, num width, num height) native; |
| 689 | 691 |
| 690 void fillText(String text, num x, num y, [num maxWidth = null]) native; | 692 void fillText(String text, num x, num y, [num maxWidth = null]) native; |
| 691 | 693 |
| 692 ImageData getImageData(num sx, num sy, num sw, num sh) native; | 694 ImageData getImageData(num sx, num sy, num sw, num sh) native; |
| (...skipping 9578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10271 void stencilFuncSeparate(int face, int func, int ref, int mask) native; | 10273 void stencilFuncSeparate(int face, int func, int ref, int mask) native; |
| 10272 | 10274 |
| 10273 void stencilMask(int mask) native; | 10275 void stencilMask(int mask) native; |
| 10274 | 10276 |
| 10275 void stencilMaskSeparate(int face, int mask) native; | 10277 void stencilMaskSeparate(int face, int mask) native; |
| 10276 | 10278 |
| 10277 void stencilOp(int fail, int zfail, int zpass) native; | 10279 void stencilOp(int fail, int zfail, int zpass) native; |
| 10278 | 10280 |
| 10279 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; | 10281 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; |
| 10280 | 10282 |
| 10281 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, var border_OR_canvas_OR_image_OR_pixels, [int format = nul
l, int type = null, ArrayBufferView pixels = null]) native; | 10283 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, var border_OR_canvas_OR_image_OR_pixels_OR_video, [int for
mat = null, int type = null, ArrayBufferView pixels = null]) native; |
| 10282 | 10284 |
| 10283 void texParameterf(int target, int pname, num param) native; | 10285 void texParameterf(int target, int pname, num param) native; |
| 10284 | 10286 |
| 10285 void texParameteri(int target, int pname, int param) native; | 10287 void texParameteri(int target, int pname, int param) native; |
| 10286 | 10288 |
| 10287 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, var canvas_OR_format_OR_image_OR_pixels, [int typ
e = null, ArrayBufferView pixels = null]) native; | 10289 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, var canvas_OR_format_OR_image_OR_pixels_OR_video,
[int type = null, ArrayBufferView pixels = null]) native; |
| 10288 | 10290 |
| 10289 void uniform1f(WebGLUniformLocation location, num x) native; | 10291 void uniform1f(WebGLUniformLocation location, num x) native; |
| 10290 | 10292 |
| 10291 void uniform1fv(WebGLUniformLocation location, Float32Array v) native; | 10293 void uniform1fv(WebGLUniformLocation location, Float32Array v) native; |
| 10292 | 10294 |
| 10293 void uniform1i(WebGLUniformLocation location, int x) native; | 10295 void uniform1i(WebGLUniformLocation location, int x) native; |
| 10294 | 10296 |
| 10295 void uniform1iv(WebGLUniformLocation location, Int32Array v) native; | 10297 void uniform1iv(WebGLUniformLocation location, Int32Array v) native; |
| 10296 | 10298 |
| 10297 void uniform2f(WebGLUniformLocation location, num x, num y) native; | 10299 void uniform2f(WebGLUniformLocation location, num x, num y) native; |
| (...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11347 startIndex = a.length - 1; | 11349 startIndex = a.length - 1; |
| 11348 } | 11350 } |
| 11349 for (int i = startIndex; i >= 0; i--) { | 11351 for (int i = startIndex; i >= 0; i--) { |
| 11350 if (a[i] == element) { | 11352 if (a[i] == element) { |
| 11351 return i; | 11353 return i; |
| 11352 } | 11354 } |
| 11353 } | 11355 } |
| 11354 return -1; | 11356 return -1; |
| 11355 } | 11357 } |
| 11356 } | 11358 } |
| OLD | NEW |