Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #library('dom'); | 1 #library('dom'); |
| 2 | 2 |
| 3 #native('dom_frog.js'); | 3 #native('dom_frog.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 2378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2389 | 2389 |
| 2390 void truncate(int size) native; | 2390 void truncate(int size) native; |
| 2391 | 2391 |
| 2392 void write(Blob data) native; | 2392 void write(Blob data) native; |
| 2393 | 2393 |
| 2394 var dartObjectLocalStorage; | 2394 var dartObjectLocalStorage; |
| 2395 | 2395 |
| 2396 String get typeName() native; | 2396 String get typeName() native; |
| 2397 } | 2397 } |
| 2398 | 2398 |
| 2399 class Float32Array extends ArrayBufferView implements List<num> native "Float32A rray" { | 2399 class Float32Array extends ArrayBufferView implements List<num> native "*Float32 Array" { |
| 2400 | 2400 |
| 2401 factory Float32Array(int length) => _construct(length); | 2401 factory Float32Array(int length) => _construct(length); |
| 2402 | 2402 |
| 2403 factory Float32Array.fromList(List<num> list) => _construct(list); | 2403 factory Float32Array.fromList(List<num> list) => _construct(list); |
| 2404 | 2404 |
| 2405 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); | 2405 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); |
| 2406 | 2406 |
| 2407 static _construct(arg) native 'return new Float32Array(arg);'; | 2407 static _construct(arg) native 'return new Float32Array(arg);'; |
| 2408 | 2408 |
| 2409 static final int BYTES_PER_ELEMENT = 4; | 2409 static final int BYTES_PER_ELEMENT = 4; |
| 2410 | 2410 |
| 2411 int length; | 2411 int length; |
| 2412 | 2412 |
| 2413 num operator[](int index) native; | 2413 num operator[](int index) native; |
| 2414 | 2414 |
| 2415 void operator[]=(int index, num value) native; | 2415 void operator[]=(int index, num value) native; |
| 2416 | 2416 |
| 2417 Float32Array subarray(int start, [int end = null]) native; | 2417 Float32Array subarray(int start, [int end = null]) native; |
| 2418 } | 2418 } |
| 2419 | 2419 |
| 2420 class Float64Array extends ArrayBufferView implements List<num> native "Float64A rray" { | 2420 class Float64Array extends ArrayBufferView implements List<num> native "*Float64 Array" { |
| 2421 | 2421 |
| 2422 factory Float64Array(int length) => _construct(length); | 2422 factory Float64Array(int length) => _construct(length); |
| 2423 | 2423 |
| 2424 factory Float64Array.fromList(List<num> list) => _construct(list); | 2424 factory Float64Array.fromList(List<num> list) => _construct(list); |
| 2425 | 2425 |
| 2426 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); | 2426 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); |
| 2427 | 2427 |
| 2428 static _construct(arg) native 'return new Float64Array(arg);'; | 2428 static _construct(arg) native 'return new Float64Array(arg);'; |
| 2429 | 2429 |
| 2430 static final int BYTES_PER_ELEMENT = 8; | 2430 static final int BYTES_PER_ELEMENT = 8; |
| (...skipping 1928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4359 | 4359 |
| 4360 void setExtensionAPI(String script) native; | 4360 void setExtensionAPI(String script) native; |
| 4361 | 4361 |
| 4362 void showContextMenu(MouseEvent event, Object items) native; | 4362 void showContextMenu(MouseEvent event, Object items) native; |
| 4363 | 4363 |
| 4364 var dartObjectLocalStorage; | 4364 var dartObjectLocalStorage; |
| 4365 | 4365 |
| 4366 String get typeName() native; | 4366 String get typeName() native; |
| 4367 } | 4367 } |
| 4368 | 4368 |
| 4369 class Int16Array extends ArrayBufferView implements List<int> native "Int16Array " { | 4369 class Int16Array extends ArrayBufferView implements List<int> native "*Int16Arra y" { |
| 4370 | 4370 |
| 4371 factory Int16Array(int length) => _construct(length); | 4371 factory Int16Array(int length) => _construct(length); |
| 4372 | 4372 |
| 4373 factory Int16Array.fromList(List<int> list) => _construct(list); | 4373 factory Int16Array.fromList(List<int> list) => _construct(list); |
| 4374 | 4374 |
| 4375 factory Int16Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); | 4375 factory Int16Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); |
| 4376 | 4376 |
| 4377 static _construct(arg) native 'return new Int16Array(arg);'; | 4377 static _construct(arg) native 'return new Int16Array(arg);'; |
| 4378 | 4378 |
| 4379 static final int BYTES_PER_ELEMENT = 2; | 4379 static final int BYTES_PER_ELEMENT = 2; |
| 4380 | 4380 |
| 4381 int length; | 4381 int length; |
| 4382 | 4382 |
| 4383 int operator[](int index) native; | 4383 int operator[](int index) native; |
| 4384 | 4384 |
| 4385 void operator[]=(int index, int value) native; | 4385 void operator[]=(int index, int value) native; |
| 4386 | 4386 |
| 4387 Int16Array subarray(int start, [int end = null]) native; | 4387 Int16Array subarray(int start, [int end = null]) native; |
| 4388 } | 4388 } |
| 4389 | 4389 |
| 4390 class Int32Array extends ArrayBufferView implements List<int> native "Int32Array " { | 4390 class Int32Array extends ArrayBufferView implements List<int> native "*Int32Arra y" { |
| 4391 | 4391 |
| 4392 factory Int32Array(int length) => _construct(length); | 4392 factory Int32Array(int length) => _construct(length); |
| 4393 | 4393 |
| 4394 factory Int32Array.fromList(List<int> list) => _construct(list); | 4394 factory Int32Array.fromList(List<int> list) => _construct(list); |
| 4395 | 4395 |
| 4396 factory Int32Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); | 4396 factory Int32Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); |
| 4397 | 4397 |
| 4398 static _construct(arg) native 'return new Int32Array(arg);'; | 4398 static _construct(arg) native 'return new Int32Array(arg);'; |
| 4399 | 4399 |
| 4400 static final int BYTES_PER_ELEMENT = 4; | 4400 static final int BYTES_PER_ELEMENT = 4; |
| 4401 | 4401 |
| 4402 int length; | 4402 int length; |
| 4403 | 4403 |
| 4404 int operator[](int index) native; | 4404 int operator[](int index) native; |
| 4405 | 4405 |
| 4406 void operator[]=(int index, int value) native; | 4406 void operator[]=(int index, int value) native; |
| 4407 | 4407 |
| 4408 Int32Array subarray(int start, [int end = null]) native; | 4408 Int32Array subarray(int start, [int end = null]) native; |
| 4409 } | 4409 } |
| 4410 | 4410 |
| 4411 class Int8Array extends ArrayBufferView implements List<int> native "Int8Array" { | 4411 class Int8Array extends ArrayBufferView implements List<int> native "*Int8Array" { |
| 4412 | 4412 |
| 4413 factory Int8Array(int length) => _construct(length); | 4413 factory Int8Array(int length) => _construct(length); |
| 4414 | 4414 |
| 4415 factory Int8Array.fromList(List<int> list) => _construct(list); | 4415 factory Int8Array.fromList(List<int> list) => _construct(list); |
| 4416 | 4416 |
| 4417 factory Int8Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); | 4417 factory Int8Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); |
| 4418 | 4418 |
| 4419 static _construct(arg) native 'return new Int8Array(arg);'; | 4419 static _construct(arg) native 'return new Int8Array(arg);'; |
| 4420 | 4420 |
| 4421 static final int BYTES_PER_ELEMENT = 1; | 4421 static final int BYTES_PER_ELEMENT = 1; |
| (...skipping 3265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7687 | 7687 |
| 7688 SVGRect getBBox() native; | 7688 SVGRect getBBox() native; |
| 7689 | 7689 |
| 7690 SVGMatrix getCTM() native; | 7690 SVGMatrix getCTM() native; |
| 7691 | 7691 |
| 7692 SVGMatrix getScreenCTM() native; | 7692 SVGMatrix getScreenCTM() native; |
| 7693 | 7693 |
| 7694 SVGMatrix getTransformToElement(SVGElement element) native; | 7694 SVGMatrix getTransformToElement(SVGElement element) native; |
| 7695 } | 7695 } |
| 7696 | 7696 |
| 7697 class SVGPathSeg native "SVGPathSeg" { | 7697 class SVGPathSeg native "*SVGPathSeg" { |
|
sra1
2011/12/16 04:05:11
Where was SVGPathSeg a problem?
It is in the list
| |
| 7698 | 7698 |
| 7699 static final int PATHSEG_ARC_ABS = 10; | 7699 static final int PATHSEG_ARC_ABS = 10; |
| 7700 | 7700 |
| 7701 static final int PATHSEG_ARC_REL = 11; | 7701 static final int PATHSEG_ARC_REL = 11; |
| 7702 | 7702 |
| 7703 static final int PATHSEG_CLOSEPATH = 1; | 7703 static final int PATHSEG_CLOSEPATH = 1; |
| 7704 | 7704 |
| 7705 static final int PATHSEG_CURVETO_CUBIC_ABS = 6; | 7705 static final int PATHSEG_CURVETO_CUBIC_ABS = 6; |
| 7706 | 7706 |
| 7707 static final int PATHSEG_CURVETO_CUBIC_REL = 7; | 7707 static final int PATHSEG_CURVETO_CUBIC_REL = 7; |
| (...skipping 1686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 9394 | 9394 |
| 9395 int pageY; | 9395 int pageY; |
| 9396 | 9396 |
| 9397 DOMWindow view; | 9397 DOMWindow view; |
| 9398 | 9398 |
| 9399 int which; | 9399 int which; |
| 9400 | 9400 |
| 9401 void initUIEvent(String type, bool canBubble, bool cancelable, DOMWindow view, int detail) native; | 9401 void initUIEvent(String type, bool canBubble, bool cancelable, DOMWindow view, int detail) native; |
| 9402 } | 9402 } |
| 9403 | 9403 |
| 9404 class Uint16Array extends ArrayBufferView implements List<int> native "Uint16Arr ay" { | 9404 class Uint16Array extends ArrayBufferView implements List<int> native "*Uint16Ar ray" { |
| 9405 | 9405 |
| 9406 factory Uint16Array(int length) => _construct(length); | 9406 factory Uint16Array(int length) => _construct(length); |
| 9407 | 9407 |
| 9408 factory Uint16Array.fromList(List<int> list) => _construct(list); | 9408 factory Uint16Array.fromList(List<int> list) => _construct(list); |
| 9409 | 9409 |
| 9410 factory Uint16Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); | 9410 factory Uint16Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); |
| 9411 | 9411 |
| 9412 static _construct(arg) native 'return new Uint16Array(arg);'; | 9412 static _construct(arg) native 'return new Uint16Array(arg);'; |
| 9413 | 9413 |
| 9414 static final int BYTES_PER_ELEMENT = 2; | 9414 static final int BYTES_PER_ELEMENT = 2; |
| 9415 | 9415 |
| 9416 int length; | 9416 int length; |
| 9417 | 9417 |
| 9418 int operator[](int index) native; | 9418 int operator[](int index) native; |
| 9419 | 9419 |
| 9420 void operator[]=(int index, int value) native; | 9420 void operator[]=(int index, int value) native; |
| 9421 | 9421 |
| 9422 Uint16Array subarray(int start, [int end = null]) native; | 9422 Uint16Array subarray(int start, [int end = null]) native; |
| 9423 } | 9423 } |
| 9424 | 9424 |
| 9425 class Uint32Array extends ArrayBufferView implements List<int> native "Uint32Arr ay" { | 9425 class Uint32Array extends ArrayBufferView implements List<int> native "*Uint32Ar ray" { |
| 9426 | 9426 |
| 9427 factory Uint32Array(int length) => _construct(length); | 9427 factory Uint32Array(int length) => _construct(length); |
| 9428 | 9428 |
| 9429 factory Uint32Array.fromList(List<int> list) => _construct(list); | 9429 factory Uint32Array.fromList(List<int> list) => _construct(list); |
| 9430 | 9430 |
| 9431 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); | 9431 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); |
| 9432 | 9432 |
| 9433 static _construct(arg) native 'return new Uint32Array(arg);'; | 9433 static _construct(arg) native 'return new Uint32Array(arg);'; |
| 9434 | 9434 |
| 9435 static final int BYTES_PER_ELEMENT = 4; | 9435 static final int BYTES_PER_ELEMENT = 4; |
| 9436 | 9436 |
| 9437 int length; | 9437 int length; |
| 9438 | 9438 |
| 9439 int operator[](int index) native; | 9439 int operator[](int index) native; |
| 9440 | 9440 |
| 9441 void operator[]=(int index, int value) native; | 9441 void operator[]=(int index, int value) native; |
| 9442 | 9442 |
| 9443 Uint32Array subarray(int start, [int end = null]) native; | 9443 Uint32Array subarray(int start, [int end = null]) native; |
| 9444 } | 9444 } |
| 9445 | 9445 |
| 9446 class Uint8Array extends ArrayBufferView implements List<int> native "Uint8Array " { | 9446 class Uint8Array extends ArrayBufferView implements List<int> native "*Uint8Arra y" { |
| 9447 | 9447 |
| 9448 factory Uint8Array(int length) => _construct(length); | 9448 factory Uint8Array(int length) => _construct(length); |
| 9449 | 9449 |
| 9450 factory Uint8Array.fromList(List<int> list) => _construct(list); | 9450 factory Uint8Array.fromList(List<int> list) => _construct(list); |
| 9451 | 9451 |
| 9452 factory Uint8Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); | 9452 factory Uint8Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); |
| 9453 | 9453 |
| 9454 static _construct(arg) native 'return new Uint8Array(arg);'; | 9454 static _construct(arg) native 'return new Uint8Array(arg);'; |
| 9455 | 9455 |
| 9456 static final int BYTES_PER_ELEMENT = 1; | 9456 static final int BYTES_PER_ELEMENT = 1; |
| (...skipping 2538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 11995 startIndex = a.length - 1; | 11995 startIndex = a.length - 1; |
| 11996 } | 11996 } |
| 11997 for (int i = startIndex; i >= 0; i--) { | 11997 for (int i = startIndex; i >= 0; i--) { |
| 11998 if (a[i] == element) { | 11998 if (a[i] == element) { |
| 11999 return i; | 11999 return i; |
| 12000 } | 12000 } |
| 12001 } | 12001 } |
| 12002 return -1; | 12002 return -1; |
| 12003 } | 12003 } |
| 12004 } | 12004 } |
| OLD | NEW |