| OLD | NEW |
| 1 #library('html'); | 1 #library('html'); |
| 2 | 2 |
| 3 #import('dart:dom', prefix:'dom'); | 3 #import('dart:dom', prefix:'dom'); |
| 4 #import('dart:htmlimpl'); |
| 4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 5 // 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 | 6 // 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. | 7 // BSD-style license that can be found in the LICENSE file. |
| 7 | 8 |
| 8 // DO NOT EDIT | 9 // DO NOT EDIT |
| 9 // Auto-generated Dart HTML library. | 10 // Auto-generated Dart HTML library. |
| 10 | 11 |
| 11 | 12 |
| 12 | 13 |
| 13 | 14 |
| 14 | |
| 15 | |
| 16 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 15 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 17 // for details. All rights reserved. Use of this source code is governed by a | 16 // for details. All rights reserved. Use of this source code is governed by a |
| 18 // BSD-style license that can be found in the LICENSE file. | 17 // BSD-style license that can be found in the LICENSE file. |
| 19 | 18 |
| 20 // WARNING: Do not edit - generated code. | 19 // WARNING: Do not edit - generated code. |
| 21 | 20 |
| 22 interface AnchorElement extends Element { | 21 interface AnchorElement extends Element { |
| 23 | 22 |
| 24 String get accessKey(); | 23 String get accessKey(); |
| 25 | 24 |
| (...skipping 6402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6428 int get code(); | 6427 int get code(); |
| 6429 | 6428 |
| 6430 String get message(); | 6429 String get message(); |
| 6431 | 6430 |
| 6432 String get name(); | 6431 String get name(); |
| 6433 } | 6432 } |
| 6434 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 6433 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 6435 // for details. All rights reserved. Use of this source code is governed by a | 6434 // for details. All rights reserved. Use of this source code is governed by a |
| 6436 // BSD-style license that can be found in the LICENSE file. | 6435 // BSD-style license that can be found in the LICENSE file. |
| 6437 | 6436 |
| 6438 // WARNING: Do not edit - generated code. | |
| 6439 | |
| 6440 class AnchorElementWrappingImplementation extends ElementWrappingImplementation
implements AnchorElement { | |
| 6441 AnchorElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6442 | |
| 6443 String get accessKey() { return _ptr.accessKey; } | |
| 6444 | |
| 6445 void set accessKey(String value) { _ptr.accessKey = value; } | |
| 6446 | |
| 6447 String get charset() { return _ptr.charset; } | |
| 6448 | |
| 6449 void set charset(String value) { _ptr.charset = value; } | |
| 6450 | |
| 6451 String get coords() { return _ptr.coords; } | |
| 6452 | |
| 6453 void set coords(String value) { _ptr.coords = value; } | |
| 6454 | |
| 6455 String get download() { return _ptr.download; } | |
| 6456 | |
| 6457 void set download(String value) { _ptr.download = value; } | |
| 6458 | |
| 6459 String get hash() { return _ptr.hash; } | |
| 6460 | |
| 6461 void set hash(String value) { _ptr.hash = value; } | |
| 6462 | |
| 6463 String get host() { return _ptr.host; } | |
| 6464 | |
| 6465 void set host(String value) { _ptr.host = value; } | |
| 6466 | |
| 6467 String get hostname() { return _ptr.hostname; } | |
| 6468 | |
| 6469 void set hostname(String value) { _ptr.hostname = value; } | |
| 6470 | |
| 6471 String get href() { return _ptr.href; } | |
| 6472 | |
| 6473 void set href(String value) { _ptr.href = value; } | |
| 6474 | |
| 6475 String get hreflang() { return _ptr.hreflang; } | |
| 6476 | |
| 6477 void set hreflang(String value) { _ptr.hreflang = value; } | |
| 6478 | |
| 6479 String get name() { return _ptr.name; } | |
| 6480 | |
| 6481 void set name(String value) { _ptr.name = value; } | |
| 6482 | |
| 6483 String get origin() { return _ptr.origin; } | |
| 6484 | |
| 6485 String get pathname() { return _ptr.pathname; } | |
| 6486 | |
| 6487 void set pathname(String value) { _ptr.pathname = value; } | |
| 6488 | |
| 6489 String get ping() { return _ptr.ping; } | |
| 6490 | |
| 6491 void set ping(String value) { _ptr.ping = value; } | |
| 6492 | |
| 6493 String get port() { return _ptr.port; } | |
| 6494 | |
| 6495 void set port(String value) { _ptr.port = value; } | |
| 6496 | |
| 6497 String get protocol() { return _ptr.protocol; } | |
| 6498 | |
| 6499 void set protocol(String value) { _ptr.protocol = value; } | |
| 6500 | |
| 6501 String get rel() { return _ptr.rel; } | |
| 6502 | |
| 6503 void set rel(String value) { _ptr.rel = value; } | |
| 6504 | |
| 6505 String get rev() { return _ptr.rev; } | |
| 6506 | |
| 6507 void set rev(String value) { _ptr.rev = value; } | |
| 6508 | |
| 6509 String get search() { return _ptr.search; } | |
| 6510 | |
| 6511 void set search(String value) { _ptr.search = value; } | |
| 6512 | |
| 6513 String get shape() { return _ptr.shape; } | |
| 6514 | |
| 6515 void set shape(String value) { _ptr.shape = value; } | |
| 6516 | |
| 6517 String get target() { return _ptr.target; } | |
| 6518 | |
| 6519 void set target(String value) { _ptr.target = value; } | |
| 6520 | |
| 6521 String get text() { return _ptr.text; } | |
| 6522 | |
| 6523 String get type() { return _ptr.type; } | |
| 6524 | |
| 6525 void set type(String value) { _ptr.type = value; } | |
| 6526 | |
| 6527 String getParameter(String name) { | |
| 6528 return _ptr.getParameter(name); | |
| 6529 } | |
| 6530 } | |
| 6531 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6532 // for details. All rights reserved. Use of this source code is governed by a | |
| 6533 // BSD-style license that can be found in the LICENSE file. | |
| 6534 | |
| 6535 // WARNING: Do not edit - generated code. | |
| 6536 | |
| 6537 class AnimationListWrappingImplementation extends DOMWrapperBase implements Anim
ationList { | |
| 6538 AnimationListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6539 | |
| 6540 int get length() { return _ptr.length; } | |
| 6541 | |
| 6542 Animation item(int index) { | |
| 6543 return LevelDom.wrapAnimation(_ptr.item(index)); | |
| 6544 } | |
| 6545 } | |
| 6546 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6547 // for details. All rights reserved. Use of this source code is governed by a | |
| 6548 // BSD-style license that can be found in the LICENSE file. | |
| 6549 | |
| 6550 // WARNING: Do not edit - generated code. | |
| 6551 | |
| 6552 class AnimationWrappingImplementation extends DOMWrapperBase implements Animatio
n { | |
| 6553 AnimationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6554 | |
| 6555 num get delay() { return _ptr.delay; } | |
| 6556 | |
| 6557 int get direction() { return _ptr.direction; } | |
| 6558 | |
| 6559 num get duration() { return _ptr.duration; } | |
| 6560 | |
| 6561 num get elapsedTime() { return _ptr.elapsedTime; } | |
| 6562 | |
| 6563 void set elapsedTime(num value) { _ptr.elapsedTime = value; } | |
| 6564 | |
| 6565 bool get ended() { return _ptr.ended; } | |
| 6566 | |
| 6567 int get fillMode() { return _ptr.fillMode; } | |
| 6568 | |
| 6569 int get iterationCount() { return _ptr.iterationCount; } | |
| 6570 | |
| 6571 String get name() { return _ptr.name; } | |
| 6572 | |
| 6573 bool get paused() { return _ptr.paused; } | |
| 6574 | |
| 6575 void pause() { | |
| 6576 _ptr.pause(); | |
| 6577 return; | |
| 6578 } | |
| 6579 | |
| 6580 void play() { | |
| 6581 _ptr.play(); | |
| 6582 return; | |
| 6583 } | |
| 6584 } | |
| 6585 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6586 // for details. All rights reserved. Use of this source code is governed by a | |
| 6587 // BSD-style license that can be found in the LICENSE file. | |
| 6588 | |
| 6589 // WARNING: Do not edit - generated code. | |
| 6590 | |
| 6591 class AreaElementWrappingImplementation extends ElementWrappingImplementation im
plements AreaElement { | |
| 6592 AreaElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6593 | |
| 6594 String get accessKey() { return _ptr.accessKey; } | |
| 6595 | |
| 6596 void set accessKey(String value) { _ptr.accessKey = value; } | |
| 6597 | |
| 6598 String get alt() { return _ptr.alt; } | |
| 6599 | |
| 6600 void set alt(String value) { _ptr.alt = value; } | |
| 6601 | |
| 6602 String get coords() { return _ptr.coords; } | |
| 6603 | |
| 6604 void set coords(String value) { _ptr.coords = value; } | |
| 6605 | |
| 6606 String get hash() { return _ptr.hash; } | |
| 6607 | |
| 6608 String get host() { return _ptr.host; } | |
| 6609 | |
| 6610 String get hostname() { return _ptr.hostname; } | |
| 6611 | |
| 6612 String get href() { return _ptr.href; } | |
| 6613 | |
| 6614 void set href(String value) { _ptr.href = value; } | |
| 6615 | |
| 6616 bool get noHref() { return _ptr.noHref; } | |
| 6617 | |
| 6618 void set noHref(bool value) { _ptr.noHref = value; } | |
| 6619 | |
| 6620 String get pathname() { return _ptr.pathname; } | |
| 6621 | |
| 6622 String get ping() { return _ptr.ping; } | |
| 6623 | |
| 6624 void set ping(String value) { _ptr.ping = value; } | |
| 6625 | |
| 6626 String get port() { return _ptr.port; } | |
| 6627 | |
| 6628 String get protocol() { return _ptr.protocol; } | |
| 6629 | |
| 6630 String get search() { return _ptr.search; } | |
| 6631 | |
| 6632 String get shape() { return _ptr.shape; } | |
| 6633 | |
| 6634 void set shape(String value) { _ptr.shape = value; } | |
| 6635 | |
| 6636 String get target() { return _ptr.target; } | |
| 6637 | |
| 6638 void set target(String value) { _ptr.target = value; } | |
| 6639 } | |
| 6640 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6641 // for details. All rights reserved. Use of this source code is governed by a | |
| 6642 // BSD-style license that can be found in the LICENSE file. | |
| 6643 | |
| 6644 // WARNING: Do not edit - generated code. | |
| 6645 | |
| 6646 class ArrayBufferViewWrappingImplementation extends DOMWrapperBase implements Ar
rayBufferView { | |
| 6647 ArrayBufferViewWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6648 | |
| 6649 ArrayBuffer get buffer() { return LevelDom.wrapArrayBuffer(_ptr.buffer); } | |
| 6650 | |
| 6651 int get byteLength() { return _ptr.byteLength; } | |
| 6652 | |
| 6653 int get byteOffset() { return _ptr.byteOffset; } | |
| 6654 } | |
| 6655 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6656 // for details. All rights reserved. Use of this source code is governed by a | |
| 6657 // BSD-style license that can be found in the LICENSE file. | |
| 6658 | |
| 6659 // WARNING: Do not edit - generated code. | |
| 6660 | |
| 6661 class ArrayBufferWrappingImplementation extends DOMWrapperBase implements ArrayB
uffer { | |
| 6662 ArrayBufferWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6663 | |
| 6664 int get byteLength() { return _ptr.byteLength; } | |
| 6665 } | |
| 6666 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6667 // for details. All rights reserved. Use of this source code is governed by a | |
| 6668 // BSD-style license that can be found in the LICENSE file. | |
| 6669 | |
| 6670 // WARNING: Do not edit - generated code. | |
| 6671 | |
| 6672 class AudioElementWrappingImplementation extends MediaElementWrappingImplementat
ion implements AudioElement { | |
| 6673 AudioElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6674 } | |
| 6675 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6676 // for details. All rights reserved. Use of this source code is governed by a | |
| 6677 // BSD-style license that can be found in the LICENSE file. | |
| 6678 | |
| 6679 // WARNING: Do not edit - generated code. | |
| 6680 | |
| 6681 class BRElementWrappingImplementation extends ElementWrappingImplementation impl
ements BRElement { | |
| 6682 BRElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6683 | |
| 6684 String get clear() { return _ptr.clear; } | |
| 6685 | |
| 6686 void set clear(String value) { _ptr.clear = value; } | |
| 6687 } | |
| 6688 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6689 // for details. All rights reserved. Use of this source code is governed by a | |
| 6690 // BSD-style license that can be found in the LICENSE file. | |
| 6691 | |
| 6692 // WARNING: Do not edit - generated code. | |
| 6693 | |
| 6694 class BarInfoWrappingImplementation extends DOMWrapperBase implements BarInfo { | |
| 6695 BarInfoWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6696 | |
| 6697 bool get visible() { return _ptr.visible; } | |
| 6698 } | |
| 6699 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6700 // for details. All rights reserved. Use of this source code is governed by a | |
| 6701 // BSD-style license that can be found in the LICENSE file. | |
| 6702 | |
| 6703 // WARNING: Do not edit - generated code. | |
| 6704 | |
| 6705 class BaseElementWrappingImplementation extends ElementWrappingImplementation im
plements BaseElement { | |
| 6706 BaseElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6707 | |
| 6708 String get href() { return _ptr.href; } | |
| 6709 | |
| 6710 void set href(String value) { _ptr.href = value; } | |
| 6711 | |
| 6712 String get target() { return _ptr.target; } | |
| 6713 | |
| 6714 void set target(String value) { _ptr.target = value; } | |
| 6715 } | |
| 6716 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6717 // for details. All rights reserved. Use of this source code is governed by a | |
| 6718 // BSD-style license that can be found in the LICENSE file. | |
| 6719 | |
| 6720 // WARNING: Do not edit - generated code. | |
| 6721 | |
| 6722 class BlobBuilderWrappingImplementation extends DOMWrapperBase implements BlobBu
ilder { | |
| 6723 BlobBuilderWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6724 | |
| 6725 void append(var blob_OR_value, [String endings = null]) { | |
| 6726 if (blob_OR_value is Blob) { | |
| 6727 if (endings === null) { | |
| 6728 _ptr.append(LevelDom.unwrap(blob_OR_value)); | |
| 6729 return; | |
| 6730 } | |
| 6731 } else { | |
| 6732 if (blob_OR_value is String) { | |
| 6733 if (endings === null) { | |
| 6734 _ptr.append(LevelDom.unwrap(blob_OR_value)); | |
| 6735 return; | |
| 6736 } else { | |
| 6737 _ptr.append(LevelDom.unwrap(blob_OR_value), endings); | |
| 6738 return; | |
| 6739 } | |
| 6740 } | |
| 6741 } | |
| 6742 throw "Incorrect number or type of arguments"; | |
| 6743 } | |
| 6744 | |
| 6745 Blob getBlob([String contentType = null]) { | |
| 6746 if (contentType === null) { | |
| 6747 return LevelDom.wrapBlob(_ptr.getBlob()); | |
| 6748 } else { | |
| 6749 return LevelDom.wrapBlob(_ptr.getBlob(contentType)); | |
| 6750 } | |
| 6751 } | |
| 6752 } | |
| 6753 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6754 // for details. All rights reserved. Use of this source code is governed by a | |
| 6755 // BSD-style license that can be found in the LICENSE file. | |
| 6756 | |
| 6757 // WARNING: Do not edit - generated code. | |
| 6758 | |
| 6759 class BlobWrappingImplementation extends DOMWrapperBase implements Blob { | |
| 6760 BlobWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6761 | |
| 6762 int get size() { return _ptr.size; } | |
| 6763 | |
| 6764 String get type() { return _ptr.type; } | |
| 6765 } | |
| 6766 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6767 // for details. All rights reserved. Use of this source code is governed by a | |
| 6768 // BSD-style license that can be found in the LICENSE file. | |
| 6769 | |
| 6770 // WARNING: Do not edit - generated code. | |
| 6771 | |
| 6772 class ButtonElementWrappingImplementation extends ElementWrappingImplementation
implements ButtonElement { | |
| 6773 ButtonElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6774 | |
| 6775 String get accessKey() { return _ptr.accessKey; } | |
| 6776 | |
| 6777 void set accessKey(String value) { _ptr.accessKey = value; } | |
| 6778 | |
| 6779 bool get autofocus() { return _ptr.autofocus; } | |
| 6780 | |
| 6781 void set autofocus(bool value) { _ptr.autofocus = value; } | |
| 6782 | |
| 6783 bool get disabled() { return _ptr.disabled; } | |
| 6784 | |
| 6785 void set disabled(bool value) { _ptr.disabled = value; } | |
| 6786 | |
| 6787 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
| 6788 | |
| 6789 String get formAction() { return _ptr.formAction; } | |
| 6790 | |
| 6791 void set formAction(String value) { _ptr.formAction = value; } | |
| 6792 | |
| 6793 String get formEnctype() { return _ptr.formEnctype; } | |
| 6794 | |
| 6795 void set formEnctype(String value) { _ptr.formEnctype = value; } | |
| 6796 | |
| 6797 String get formMethod() { return _ptr.formMethod; } | |
| 6798 | |
| 6799 void set formMethod(String value) { _ptr.formMethod = value; } | |
| 6800 | |
| 6801 bool get formNoValidate() { return _ptr.formNoValidate; } | |
| 6802 | |
| 6803 void set formNoValidate(bool value) { _ptr.formNoValidate = value; } | |
| 6804 | |
| 6805 String get formTarget() { return _ptr.formTarget; } | |
| 6806 | |
| 6807 void set formTarget(String value) { _ptr.formTarget = value; } | |
| 6808 | |
| 6809 ElementList get labels() { return LevelDom.wrapElementList(_ptr.labels); } | |
| 6810 | |
| 6811 String get name() { return _ptr.name; } | |
| 6812 | |
| 6813 void set name(String value) { _ptr.name = value; } | |
| 6814 | |
| 6815 String get type() { return _ptr.type; } | |
| 6816 | |
| 6817 String get validationMessage() { return _ptr.validationMessage; } | |
| 6818 | |
| 6819 ValidityState get validity() { return LevelDom.wrapValidityState(_ptr.validity
); } | |
| 6820 | |
| 6821 String get value() { return _ptr.value; } | |
| 6822 | |
| 6823 void set value(String value) { _ptr.value = value; } | |
| 6824 | |
| 6825 bool get willValidate() { return _ptr.willValidate; } | |
| 6826 | |
| 6827 bool checkValidity() { | |
| 6828 return _ptr.checkValidity(); | |
| 6829 } | |
| 6830 | |
| 6831 void click() { | |
| 6832 _ptr.click(); | |
| 6833 return; | |
| 6834 } | |
| 6835 | |
| 6836 void setCustomValidity(String error) { | |
| 6837 _ptr.setCustomValidity(error); | |
| 6838 return; | |
| 6839 } | |
| 6840 } | |
| 6841 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6842 // for details. All rights reserved. Use of this source code is governed by a | |
| 6843 // BSD-style license that can be found in the LICENSE file. | |
| 6844 | |
| 6845 // WARNING: Do not edit - generated code. | |
| 6846 | |
| 6847 class CDATASectionWrappingImplementation extends TextWrappingImplementation impl
ements CDATASection { | |
| 6848 CDATASectionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6849 } | |
| 6850 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6851 // for details. All rights reserved. Use of this source code is governed by a | |
| 6852 // BSD-style license that can be found in the LICENSE file. | |
| 6853 | |
| 6854 // WARNING: Do not edit - generated code. | |
| 6855 | |
| 6856 class CSSCharsetRuleWrappingImplementation extends CSSRuleWrappingImplementation
implements CSSCharsetRule { | |
| 6857 CSSCharsetRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6858 | |
| 6859 String get encoding() { return _ptr.encoding; } | |
| 6860 | |
| 6861 void set encoding(String value) { _ptr.encoding = value; } | |
| 6862 } | |
| 6863 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6864 // for details. All rights reserved. Use of this source code is governed by a | |
| 6865 // BSD-style license that can be found in the LICENSE file. | |
| 6866 | |
| 6867 // WARNING: Do not edit - generated code. | |
| 6868 | |
| 6869 class CSSFontFaceRuleWrappingImplementation extends CSSRuleWrappingImplementatio
n implements CSSFontFaceRule { | |
| 6870 CSSFontFaceRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6871 | |
| 6872 CSSStyleDeclaration get style() { return LevelDom.wrapCSSStyleDeclaration(_ptr
.style); } | |
| 6873 } | |
| 6874 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6875 // for details. All rights reserved. Use of this source code is governed by a | |
| 6876 // BSD-style license that can be found in the LICENSE file. | |
| 6877 | |
| 6878 // WARNING: Do not edit - generated code. | |
| 6879 | |
| 6880 class CSSImportRuleWrappingImplementation extends CSSRuleWrappingImplementation
implements CSSImportRule { | |
| 6881 CSSImportRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6882 | |
| 6883 String get href() { return _ptr.href; } | |
| 6884 | |
| 6885 MediaList get media() { return LevelDom.wrapMediaList(_ptr.media); } | |
| 6886 | |
| 6887 CSSStyleSheet get styleSheet() { return LevelDom.wrapCSSStyleSheet(_ptr.styleS
heet); } | |
| 6888 } | |
| 6889 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6890 // for details. All rights reserved. Use of this source code is governed by a | |
| 6891 // BSD-style license that can be found in the LICENSE file. | |
| 6892 | |
| 6893 // WARNING: Do not edit - generated code. | |
| 6894 | |
| 6895 class CSSKeyframeRuleWrappingImplementation extends CSSRuleWrappingImplementatio
n implements CSSKeyframeRule { | |
| 6896 CSSKeyframeRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6897 | |
| 6898 String get keyText() { return _ptr.keyText; } | |
| 6899 | |
| 6900 void set keyText(String value) { _ptr.keyText = value; } | |
| 6901 | |
| 6902 CSSStyleDeclaration get style() { return LevelDom.wrapCSSStyleDeclaration(_ptr
.style); } | |
| 6903 } | |
| 6904 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6905 // for details. All rights reserved. Use of this source code is governed by a | |
| 6906 // BSD-style license that can be found in the LICENSE file. | |
| 6907 | |
| 6908 // WARNING: Do not edit - generated code. | |
| 6909 | |
| 6910 class CSSKeyframesRuleWrappingImplementation extends CSSRuleWrappingImplementati
on implements CSSKeyframesRule { | |
| 6911 CSSKeyframesRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6912 | |
| 6913 CSSRuleList get cssRules() { return LevelDom.wrapCSSRuleList(_ptr.cssRules); } | |
| 6914 | |
| 6915 String get name() { return _ptr.name; } | |
| 6916 | |
| 6917 void set name(String value) { _ptr.name = value; } | |
| 6918 | |
| 6919 void deleteRule(String key) { | |
| 6920 _ptr.deleteRule(key); | |
| 6921 return; | |
| 6922 } | |
| 6923 | |
| 6924 CSSKeyframeRule findRule(String key) { | |
| 6925 return LevelDom.wrapCSSKeyframeRule(_ptr.findRule(key)); | |
| 6926 } | |
| 6927 | |
| 6928 void insertRule(String rule) { | |
| 6929 _ptr.insertRule(rule); | |
| 6930 return; | |
| 6931 } | |
| 6932 } | |
| 6933 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 6934 // for details. All rights reserved. Use of this source code is governed by a | |
| 6935 // BSD-style license that can be found in the LICENSE file. | |
| 6936 | |
| 6937 // WARNING: Do not edit - generated code. | |
| 6938 | |
| 6939 class CSSMatrixWrappingImplementation extends DOMWrapperBase implements CSSMatri
x { | |
| 6940 CSSMatrixWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 6941 | |
| 6942 num get a() { return _ptr.a; } | |
| 6943 | |
| 6944 void set a(num value) { _ptr.a = value; } | |
| 6945 | |
| 6946 num get b() { return _ptr.b; } | |
| 6947 | |
| 6948 void set b(num value) { _ptr.b = value; } | |
| 6949 | |
| 6950 num get c() { return _ptr.c; } | |
| 6951 | |
| 6952 void set c(num value) { _ptr.c = value; } | |
| 6953 | |
| 6954 num get d() { return _ptr.d; } | |
| 6955 | |
| 6956 void set d(num value) { _ptr.d = value; } | |
| 6957 | |
| 6958 num get e() { return _ptr.e; } | |
| 6959 | |
| 6960 void set e(num value) { _ptr.e = value; } | |
| 6961 | |
| 6962 num get f() { return _ptr.f; } | |
| 6963 | |
| 6964 void set f(num value) { _ptr.f = value; } | |
| 6965 | |
| 6966 num get m11() { return _ptr.m11; } | |
| 6967 | |
| 6968 void set m11(num value) { _ptr.m11 = value; } | |
| 6969 | |
| 6970 num get m12() { return _ptr.m12; } | |
| 6971 | |
| 6972 void set m12(num value) { _ptr.m12 = value; } | |
| 6973 | |
| 6974 num get m13() { return _ptr.m13; } | |
| 6975 | |
| 6976 void set m13(num value) { _ptr.m13 = value; } | |
| 6977 | |
| 6978 num get m14() { return _ptr.m14; } | |
| 6979 | |
| 6980 void set m14(num value) { _ptr.m14 = value; } | |
| 6981 | |
| 6982 num get m21() { return _ptr.m21; } | |
| 6983 | |
| 6984 void set m21(num value) { _ptr.m21 = value; } | |
| 6985 | |
| 6986 num get m22() { return _ptr.m22; } | |
| 6987 | |
| 6988 void set m22(num value) { _ptr.m22 = value; } | |
| 6989 | |
| 6990 num get m23() { return _ptr.m23; } | |
| 6991 | |
| 6992 void set m23(num value) { _ptr.m23 = value; } | |
| 6993 | |
| 6994 num get m24() { return _ptr.m24; } | |
| 6995 | |
| 6996 void set m24(num value) { _ptr.m24 = value; } | |
| 6997 | |
| 6998 num get m31() { return _ptr.m31; } | |
| 6999 | |
| 7000 void set m31(num value) { _ptr.m31 = value; } | |
| 7001 | |
| 7002 num get m32() { return _ptr.m32; } | |
| 7003 | |
| 7004 void set m32(num value) { _ptr.m32 = value; } | |
| 7005 | |
| 7006 num get m33() { return _ptr.m33; } | |
| 7007 | |
| 7008 void set m33(num value) { _ptr.m33 = value; } | |
| 7009 | |
| 7010 num get m34() { return _ptr.m34; } | |
| 7011 | |
| 7012 void set m34(num value) { _ptr.m34 = value; } | |
| 7013 | |
| 7014 num get m41() { return _ptr.m41; } | |
| 7015 | |
| 7016 void set m41(num value) { _ptr.m41 = value; } | |
| 7017 | |
| 7018 num get m42() { return _ptr.m42; } | |
| 7019 | |
| 7020 void set m42(num value) { _ptr.m42 = value; } | |
| 7021 | |
| 7022 num get m43() { return _ptr.m43; } | |
| 7023 | |
| 7024 void set m43(num value) { _ptr.m43 = value; } | |
| 7025 | |
| 7026 num get m44() { return _ptr.m44; } | |
| 7027 | |
| 7028 void set m44(num value) { _ptr.m44 = value; } | |
| 7029 | |
| 7030 CSSMatrix inverse() { | |
| 7031 return LevelDom.wrapCSSMatrix(_ptr.inverse()); | |
| 7032 } | |
| 7033 | |
| 7034 CSSMatrix multiply(CSSMatrix secondMatrix) { | |
| 7035 return LevelDom.wrapCSSMatrix(_ptr.multiply(LevelDom.unwrap(secondMatrix))); | |
| 7036 } | |
| 7037 | |
| 7038 CSSMatrix rotate(num rotX, num rotY, num rotZ) { | |
| 7039 return LevelDom.wrapCSSMatrix(_ptr.rotate(rotX, rotY, rotZ)); | |
| 7040 } | |
| 7041 | |
| 7042 CSSMatrix rotateAxisAngle(num x, num y, num z, num angle) { | |
| 7043 return LevelDom.wrapCSSMatrix(_ptr.rotateAxisAngle(x, y, z, angle)); | |
| 7044 } | |
| 7045 | |
| 7046 CSSMatrix scale(num scaleX, num scaleY, num scaleZ) { | |
| 7047 return LevelDom.wrapCSSMatrix(_ptr.scale(scaleX, scaleY, scaleZ)); | |
| 7048 } | |
| 7049 | |
| 7050 void setMatrixValue(String string) { | |
| 7051 _ptr.setMatrixValue(string); | |
| 7052 return; | |
| 7053 } | |
| 7054 | |
| 7055 CSSMatrix skewX(num angle) { | |
| 7056 return LevelDom.wrapCSSMatrix(_ptr.skewX(angle)); | |
| 7057 } | |
| 7058 | |
| 7059 CSSMatrix skewY(num angle) { | |
| 7060 return LevelDom.wrapCSSMatrix(_ptr.skewY(angle)); | |
| 7061 } | |
| 7062 | |
| 7063 String toString() { | |
| 7064 return _ptr.toString(); | |
| 7065 } | |
| 7066 | |
| 7067 CSSMatrix translate(num x, num y, num z) { | |
| 7068 return LevelDom.wrapCSSMatrix(_ptr.translate(x, y, z)); | |
| 7069 } | |
| 7070 } | |
| 7071 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 7072 // for details. All rights reserved. Use of this source code is governed by a | |
| 7073 // BSD-style license that can be found in the LICENSE file. | |
| 7074 | |
| 7075 // WARNING: Do not edit - generated code. | |
| 7076 | |
| 7077 class CSSMediaRuleWrappingImplementation extends CSSRuleWrappingImplementation i
mplements CSSMediaRule { | |
| 7078 CSSMediaRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 7079 | |
| 7080 CSSRuleList get cssRules() { return LevelDom.wrapCSSRuleList(_ptr.cssRules); } | |
| 7081 | |
| 7082 MediaList get media() { return LevelDom.wrapMediaList(_ptr.media); } | |
| 7083 | |
| 7084 void deleteRule(int index) { | |
| 7085 _ptr.deleteRule(index); | |
| 7086 return; | |
| 7087 } | |
| 7088 | |
| 7089 int insertRule(String rule, int index) { | |
| 7090 return _ptr.insertRule(rule, index); | |
| 7091 } | |
| 7092 } | |
| 7093 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 7094 // for details. All rights reserved. Use of this source code is governed by a | |
| 7095 // BSD-style license that can be found in the LICENSE file. | |
| 7096 | |
| 7097 // WARNING: Do not edit - generated code. | |
| 7098 | |
| 7099 class CSSPageRuleWrappingImplementation extends CSSRuleWrappingImplementation im
plements CSSPageRule { | |
| 7100 CSSPageRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 7101 | |
| 7102 String get selectorText() { return _ptr.selectorText; } | |
| 7103 | |
| 7104 void set selectorText(String value) { _ptr.selectorText = value; } | |
| 7105 | |
| 7106 CSSStyleDeclaration get style() { return LevelDom.wrapCSSStyleDeclaration(_ptr
.style); } | |
| 7107 } | |
| 7108 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 7109 // for details. All rights reserved. Use of this source code is governed by a | |
| 7110 // BSD-style license that can be found in the LICENSE file. | |
| 7111 | |
| 7112 // WARNING: Do not edit - generated code. | |
| 7113 | |
| 7114 class CSSPrimitiveValueWrappingImplementation extends CSSValueWrappingImplementa
tion implements CSSPrimitiveValue { | |
| 7115 CSSPrimitiveValueWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 7116 | |
| 7117 int get primitiveType() { return _ptr.primitiveType; } | |
| 7118 | |
| 7119 Counter getCounterValue() { | |
| 7120 return LevelDom.wrapCounter(_ptr.getCounterValue()); | |
| 7121 } | |
| 7122 | |
| 7123 num getFloatValue(int unitType) { | |
| 7124 return _ptr.getFloatValue(unitType); | |
| 7125 } | |
| 7126 | |
| 7127 RGBColor getRGBColorValue() { | |
| 7128 return LevelDom.wrapRGBColor(_ptr.getRGBColorValue()); | |
| 7129 } | |
| 7130 | |
| 7131 Rect getRectValue() { | |
| 7132 return LevelDom.wrapRect(_ptr.getRectValue()); | |
| 7133 } | |
| 7134 | |
| 7135 String getStringValue() { | |
| 7136 return _ptr.getStringValue(); | |
| 7137 } | |
| 7138 | |
| 7139 void setFloatValue(int unitType, num floatValue) { | |
| 7140 _ptr.setFloatValue(unitType, floatValue); | |
| 7141 return; | |
| 7142 } | |
| 7143 | |
| 7144 void setStringValue(int stringType, String stringValue) { | |
| 7145 _ptr.setStringValue(stringType, stringValue); | |
| 7146 return; | |
| 7147 } | |
| 7148 } | |
| 7149 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 7150 // for details. All rights reserved. Use of this source code is governed by a | |
| 7151 // BSD-style license that can be found in the LICENSE file. | |
| 7152 | |
| 7153 // WARNING: Do not edit - generated code. | |
| 7154 | |
| 7155 class CSSRuleListWrappingImplementation extends DOMWrapperBase implements CSSRul
eList { | |
| 7156 CSSRuleListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 7157 | |
| 7158 int get length() { return _ptr.length; } | |
| 7159 | |
| 7160 CSSRule item(int index) { | |
| 7161 return LevelDom.wrapCSSRule(_ptr.item(index)); | |
| 7162 } | |
| 7163 } | |
| 7164 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 7165 // for details. All rights reserved. Use of this source code is governed by a | |
| 7166 // BSD-style license that can be found in the LICENSE file. | |
| 7167 | |
| 7168 // WARNING: Do not edit - generated code. | |
| 7169 | |
| 7170 class CSSRuleWrappingImplementation extends DOMWrapperBase implements CSSRule { | |
| 7171 CSSRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 7172 | |
| 7173 String get cssText() { return _ptr.cssText; } | |
| 7174 | |
| 7175 void set cssText(String value) { _ptr.cssText = value; } | |
| 7176 | |
| 7177 CSSRule get parentRule() { return LevelDom.wrapCSSRule(_ptr.parentRule); } | |
| 7178 | |
| 7179 CSSStyleSheet get parentStyleSheet() { return LevelDom.wrapCSSStyleSheet(_ptr.
parentStyleSheet); } | |
| 7180 | |
| 7181 int get type() { return _ptr.type; } | |
| 7182 } | |
| 7183 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 7184 // for details. All rights reserved. Use of this source code is governed by a | |
| 7185 // BSD-style license that can be found in the LICENSE file. | |
| 7186 | |
| 7187 // WARNING: Do not edit - generated code. | |
| 7188 | |
| 7189 class CSSStyleRuleWrappingImplementation extends CSSRuleWrappingImplementation i
mplements CSSStyleRule { | |
| 7190 CSSStyleRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 7191 | |
| 7192 String get selectorText() { return _ptr.selectorText; } | |
| 7193 | |
| 7194 void set selectorText(String value) { _ptr.selectorText = value; } | |
| 7195 | |
| 7196 CSSStyleDeclaration get style() { return LevelDom.wrapCSSStyleDeclaration(_ptr
.style); } | |
| 7197 } | |
| 7198 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 7199 // for details. All rights reserved. Use of this source code is governed by a | |
| 7200 // BSD-style license that can be found in the LICENSE file. | |
| 7201 | |
| 7202 // WARNING: Do not edit - generated code. | |
| 7203 | |
| 7204 class CSSStyleSheetWrappingImplementation extends StyleSheetWrappingImplementati
on implements CSSStyleSheet { | |
| 7205 CSSStyleSheetWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 7206 | |
| 7207 CSSRuleList get cssRules() { return LevelDom.wrapCSSRuleList(_ptr.cssRules); } | |
| 7208 | |
| 7209 CSSRule get ownerRule() { return LevelDom.wrapCSSRule(_ptr.ownerRule); } | |
| 7210 | |
| 7211 CSSRuleList get rules() { return LevelDom.wrapCSSRuleList(_ptr.rules); } | |
| 7212 | |
| 7213 int addRule(String selector, String style, [int index = null]) { | |
| 7214 if (index === null) { | |
| 7215 return _ptr.addRule(selector, style); | |
| 7216 } else { | |
| 7217 return _ptr.addRule(selector, style, index); | |
| 7218 } | |
| 7219 } | |
| 7220 | |
| 7221 void deleteRule(int index) { | |
| 7222 _ptr.deleteRule(index); | |
| 7223 return; | |
| 7224 } | |
| 7225 | |
| 7226 int insertRule(String rule, int index) { | |
| 7227 return _ptr.insertRule(rule, index); | |
| 7228 } | |
| 7229 | |
| 7230 void removeRule(int index) { | |
| 7231 _ptr.removeRule(index); | |
| 7232 return; | |
| 7233 } | |
| 7234 } | |
| 7235 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 7236 // for details. All rights reserved. Use of this source code is governed by a | |
| 7237 // BSD-style license that can be found in the LICENSE file. | |
| 7238 | |
| 7239 // WARNING: Do not edit - generated code. | |
| 7240 | |
| 7241 class CSSTransformValueWrappingImplementation extends CSSValueListWrappingImplem
entation implements CSSTransformValue { | |
| 7242 CSSTransformValueWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 7243 | |
| 7244 int get operationType() { return _ptr.operationType; } | |
| 7245 } | |
| 7246 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 7247 // for details. All rights reserved. Use of this source code is governed by a | |
| 7248 // BSD-style license that can be found in the LICENSE file. | |
| 7249 | |
| 7250 // WARNING: Do not edit - generated code. | |
| 7251 | |
| 7252 class CSSUnknownRuleWrappingImplementation extends CSSRuleWrappingImplementation
implements CSSUnknownRule { | |
| 7253 CSSUnknownRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 7254 } | |
| 7255 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 7256 // for details. All rights reserved. Use of this source code is governed by a | |
| 7257 // BSD-style license that can be found in the LICENSE file. | |
| 7258 | |
| 7259 // WARNING: Do not edit - generated code. | |
| 7260 | |
| 7261 class CSSValueListWrappingImplementation extends CSSValueWrappingImplementation
implements CSSValueList { | |
| 7262 CSSValueListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 7263 | |
| 7264 int get length() { return _ptr.length; } | |
| 7265 | |
| 7266 CSSValue item(int index) { | |
| 7267 return LevelDom.wrapCSSValue(_ptr.item(index)); | |
| 7268 } | |
| 7269 } | |
| 7270 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 7271 // for details. All rights reserved. Use of this source code is governed by a | |
| 7272 // BSD-style license that can be found in the LICENSE file. | |
| 7273 | |
| 7274 // WARNING: Do not edit - generated code. | |
| 7275 | |
| 7276 class CSSValueWrappingImplementation extends DOMWrapperBase implements CSSValue
{ | |
| 7277 CSSValueWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 7278 | |
| 7279 String get cssText() { return _ptr.cssText; } | |
| 7280 | |
| 7281 void set cssText(String value) { _ptr.cssText = value; } | |
| 7282 | |
| 7283 int get cssValueType() { return _ptr.cssValueType; } | |
| 7284 } | |
| 7285 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 7286 // for details. All rights reserved. Use of this source code is governed by a | |
| 7287 // BSD-style license that can be found in the LICENSE file. | |
| 7288 | |
| 7289 // WARNING: Do not edit - generated code. | |
| 7290 | |
| 7291 class CanvasElementWrappingImplementation extends ElementWrappingImplementation
implements CanvasElement { | |
| 7292 CanvasElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 7293 | |
| 7294 int get height() { return _ptr.height; } | |
| 7295 | |
| 7296 void set height(int value) { _ptr.height = value; } | |
| 7297 | |
| 7298 int get width() { return _ptr.width; } | |
| 7299 | |
| 7300 void set width(int value) { _ptr.width = value; } | |
| 7301 | |
| 7302 CanvasRenderingContext getContext([String contextId = null]) { | |
| 7303 if (contextId === null) { | |
| 7304 return LevelDom.wrapCanvasRenderingContext(_ptr.getContext()); | |
| 7305 } else { | |
| 7306 return LevelDom.wrapCanvasRenderingContext(_ptr.getContext(contextId)); | |
| 7307 } | |
| 7308 } | |
| 7309 | |
| 7310 String toDataURL(String type) { | |
| 7311 return _ptr.toDataURL(type); | |
| 7312 } | |
| 7313 } | |
| 7314 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 7315 // for details. All rights reserved. Use of this source code is governed by a | |
| 7316 // BSD-style license that can be found in the LICENSE file. | |
| 7317 | |
| 7318 // WARNING: Do not edit - generated code. | |
| 7319 | |
| 7320 class CanvasGradientWrappingImplementation extends DOMWrapperBase implements Can
vasGradient { | |
| 7321 CanvasGradientWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 7322 | |
| 7323 void addColorStop(num offset, String color) { | |
| 7324 _ptr.addColorStop(offset, color); | |
| 7325 return; | |
| 7326 } | |
| 7327 } | |
| 7328 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 7329 // for details. All rights reserved. Use of this source code is governed by a | |
| 7330 // BSD-style license that can be found in the LICENSE file. | |
| 7331 | |
| 7332 // WARNING: Do not edit - generated code. | |
| 7333 | |
| 7334 class CanvasPatternWrappingImplementation extends DOMWrapperBase implements Canv
asPattern { | |
| 7335 CanvasPatternWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 7336 } | |
| 7337 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 7338 // for details. All rights reserved. Use of this source code is governed by a | |
| 7339 // BSD-style license that can be found in the LICENSE file. | |
| 7340 | |
| 7341 // WARNING: Do not edit - generated code. | |
| 7342 | |
| 7343 class CanvasPixelArrayWrappingImplementation extends DOMWrapperBase implements C
anvasPixelArray { | |
| 7344 CanvasPixelArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 7345 | |
| 7346 int get length() { return _ptr.length; } | |
| 7347 | |
| 7348 int operator[](int index) { | |
| 7349 return item(index); | |
| 7350 } | |
| 7351 | |
| 7352 void operator[]=(int index, int value) { | |
| 7353 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
| 7354 } | |
| 7355 | |
| 7356 void add(int value) { | |
| 7357 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 7358 } | |
| 7359 | |
| 7360 void addLast(int value) { | |
| 7361 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 7362 } | |
| 7363 | |
| 7364 void addAll(Collection<int> collection) { | |
| 7365 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 7366 } | |
| 7367 | |
| 7368 void sort(int compare(int a, int b)) { | |
| 7369 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 7370 } | |
| 7371 | |
| 7372 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | |
| 7373 throw new UnsupportedOperationException("This object is immutable."); | |
| 7374 } | |
| 7375 | |
| 7376 int indexOf(int element, [int start = 0]) { | |
| 7377 return _Lists.indexOf(this, element, start, this.length); | |
| 7378 } | |
| 7379 | |
| 7380 int lastIndexOf(int element, [int start = null]) { | |
| 7381 if (start == null) start = length - 1; | |
| 7382 return _Lists.lastIndexOf(this, element, start); | |
| 7383 } | |
| 7384 | |
| 7385 int clear() { | |
| 7386 throw new UnsupportedOperationException("Cannot clear immutable List."); | |
| 7387 } | |
| 7388 | |
| 7389 int removeLast() { | |
| 7390 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 7391 } | |
| 7392 | |
| 7393 int last() { | |
| 7394 return this[length - 1]; | |
| 7395 } | |
| 7396 | |
| 7397 void forEach(void f(int element)) { | |
| 7398 _Collections.forEach(this, f); | |
| 7399 } | |
| 7400 | |
| 7401 Collection<int> filter(bool f(int element)) { | |
| 7402 return _Collections.filter(this, new List<int>(), f); | |
| 7403 } | |
| 7404 | |
| 7405 bool every(bool f(int element)) { | |
| 7406 return _Collections.every(this, f); | |
| 7407 } | |
| 7408 | |
| 7409 bool some(bool f(int element)) { | |
| 7410 return _Collections.some(this, f); | |
| 7411 } | |
| 7412 | |
| 7413 void setRange(int start, int length, List<int> from, [int startFrom]) { | |
| 7414 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 7415 } | |
| 7416 | |
| 7417 void removeRange(int start, int length) { | |
| 7418 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 7419 } | |
| 7420 | |
| 7421 void insertRange(int start, int length, [int initialValue]) { | |
| 7422 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 7423 } | |
| 7424 | |
| 7425 List<int> getRange(int start, int length) { | |
| 7426 throw new NotImplementedException(); | |
| 7427 } | |
| 7428 | |
| 7429 bool isEmpty() { | |
| 7430 return length == 0; | |
| 7431 } | |
| 7432 | |
| 7433 Iterator<int> iterator() { | |
| 7434 return new _FixedSizeListIterator<int>(this); | |
| 7435 } | |
| 7436 | |
| 7437 int item(int index) { | |
| 7438 return _ptr.item(index); | |
| 7439 } | |
| 7440 } | |
| 7441 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 7442 // for details. All rights reserved. Use of this source code is governed by a | |
| 7443 // BSD-style license that can be found in the LICENSE file. | |
| 7444 | |
| 7445 // WARNING: Do not edit - generated code. | |
| 7446 | |
| 7447 class CanvasRenderingContext2DWrappingImplementation extends CanvasRenderingCont
extWrappingImplementation implements CanvasRenderingContext2D { | |
| 7448 CanvasRenderingContext2DWrappingImplementation._wrap(ptr) : super._wrap(ptr) {
} | |
| 7449 | |
| 7450 String get font() { return _ptr.font; } | |
| 7451 | |
| 7452 void set font(String value) { _ptr.font = value; } | |
| 7453 | |
| 7454 num get globalAlpha() { return _ptr.globalAlpha; } | |
| 7455 | |
| 7456 void set globalAlpha(num value) { _ptr.globalAlpha = value; } | |
| 7457 | |
| 7458 String get globalCompositeOperation() { return _ptr.globalCompositeOperation;
} | |
| 7459 | |
| 7460 void set globalCompositeOperation(String value) { _ptr.globalCompositeOperatio
n = value; } | |
| 7461 | |
| 7462 String get lineCap() { return _ptr.lineCap; } | |
| 7463 | |
| 7464 void set lineCap(String value) { _ptr.lineCap = value; } | |
| 7465 | |
| 7466 String get lineJoin() { return _ptr.lineJoin; } | |
| 7467 | |
| 7468 void set lineJoin(String value) { _ptr.lineJoin = value; } | |
| 7469 | |
| 7470 num get lineWidth() { return _ptr.lineWidth; } | |
| 7471 | |
| 7472 void set lineWidth(num value) { _ptr.lineWidth = value; } | |
| 7473 | |
| 7474 num get miterLimit() { return _ptr.miterLimit; } | |
| 7475 | |
| 7476 void set miterLimit(num value) { _ptr.miterLimit = value; } | |
| 7477 | |
| 7478 num get shadowBlur() { return _ptr.shadowBlur; } | |
| 7479 | |
| 7480 void set shadowBlur(num value) { _ptr.shadowBlur = value; } | |
| 7481 | |
| 7482 String get shadowColor() { return _ptr.shadowColor; } | |
| 7483 | |
| 7484 void set shadowColor(String value) { _ptr.shadowColor = value; } | |
| 7485 | |
| 7486 num get shadowOffsetX() { return _ptr.shadowOffsetX; } | |
| 7487 | |
| 7488 void set shadowOffsetX(num value) { _ptr.shadowOffsetX = value; } | |
| 7489 | |
| 7490 num get shadowOffsetY() { return _ptr.shadowOffsetY; } | |
| 7491 | |
| 7492 void set shadowOffsetY(num value) { _ptr.shadowOffsetY = value; } | |
| 7493 | |
| 7494 String get textAlign() { return _ptr.textAlign; } | |
| 7495 | |
| 7496 void set textAlign(String value) { _ptr.textAlign = value; } | |
| 7497 | |
| 7498 String get textBaseline() { return _ptr.textBaseline; } | |
| 7499 | |
| 7500 void set textBaseline(String value) { _ptr.textBaseline = value; } | |
| 7501 | |
| 7502 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc
kwise) { | |
| 7503 _ptr.arc(x, y, radius, startAngle, endAngle, anticlockwise); | |
| 7504 return; | |
| 7505 } | |
| 7506 | |
| 7507 void arcTo(num x1, num y1, num x2, num y2, num radius) { | |
| 7508 _ptr.arcTo(x1, y1, x2, y2, radius); | |
| 7509 return; | |
| 7510 } | |
| 7511 | |
| 7512 void beginPath() { | |
| 7513 _ptr.beginPath(); | |
| 7514 return; | |
| 7515 } | |
| 7516 | |
| 7517 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) { | |
| 7518 _ptr.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y); | |
| 7519 return; | |
| 7520 } | |
| 7521 | |
| 7522 void clearRect(num x, num y, num width, num height) { | |
| 7523 _ptr.clearRect(x, y, width, height); | |
| 7524 return; | |
| 7525 } | |
| 7526 | |
| 7527 void clearShadow() { | |
| 7528 _ptr.clearShadow(); | |
| 7529 return; | |
| 7530 } | |
| 7531 | |
| 7532 void clip() { | |
| 7533 _ptr.clip(); | |
| 7534 return; | |
| 7535 } | |
| 7536 | |
| 7537 void closePath() { | |
| 7538 _ptr.closePath(); | |
| 7539 return; | |
| 7540 } | |
| 7541 | |
| 7542 ImageData createImageData(var imagedata_OR_sw, [num sh = null]) { | |
| 7543 if (imagedata_OR_sw is ImageData) { | |
| 7544 if (sh === null) { | |
| 7545 return LevelDom.wrapImageData(_ptr.createImageData(LevelDom.unwrap(image
data_OR_sw))); | |
| 7546 } | |
| 7547 } else { | |
| 7548 if (imagedata_OR_sw is num) { | |
| 7549 return LevelDom.wrapImageData(_ptr.createImageData(LevelDom.unwrap(image
data_OR_sw), sh)); | |
| 7550 } | |
| 7551 } | |
| 7552 throw "Incorrect number or type of arguments"; | |
| 7553 } | |
| 7554 | |
| 7555 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) { | |
| 7556 return LevelDom.wrapCanvasGradient(_ptr.createLinearGradient(x0, y0, x1, y1)
); | |
| 7557 } | |
| 7558 | |
| 7559 CanvasPattern createPattern(var canvas_OR_image, String repetitionType) { | |
| 7560 if (canvas_OR_image is CanvasElement) { | |
| 7561 return LevelDom.wrapCanvasPattern(_ptr.createPattern(LevelDom.unwrap(canva
s_OR_image), repetitionType)); | |
| 7562 } else { | |
| 7563 if (canvas_OR_image is ImageElement) { | |
| 7564 return LevelDom.wrapCanvasPattern(_ptr.createPattern(LevelDom.unwrap(can
vas_OR_image), repetitionType)); | |
| 7565 } | |
| 7566 } | |
| 7567 throw "Incorrect number or type of arguments"; | |
| 7568 } | |
| 7569 | |
| 7570 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1) { | |
| 7571 return LevelDom.wrapCanvasGradient(_ptr.createRadialGradient(x0, y0, r0, x1,
y1, r1)); | |
| 7572 } | |
| 7573 | |
| 7574 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]) { | |
| 7575 if (canvas_OR_image is ImageElement) { | |
| 7576 if (sw_OR_width === null) { | |
| 7577 if (height_OR_sh === null) { | |
| 7578 if (dx === null) { | |
| 7579 if (dy === null) { | |
| 7580 if (dw === null) { | |
| 7581 if (dh === null) { | |
| 7582 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy_O
R_y); | |
| 7583 return; | |
| 7584 } | |
| 7585 } | |
| 7586 } | |
| 7587 } | |
| 7588 } | |
| 7589 } else { | |
| 7590 if (dx === null) { | |
| 7591 if (dy === null) { | |
| 7592 if (dw === null) { | |
| 7593 if (dh === null) { | |
| 7594 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy_OR_
y, sw_OR_width, height_OR_sh); | |
| 7595 return; | |
| 7596 } | |
| 7597 } | |
| 7598 } | |
| 7599 } else { | |
| 7600 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy_OR_y, sw_
OR_width, height_OR_sh, dx, dy, dw, dh); | |
| 7601 return; | |
| 7602 } | |
| 7603 } | |
| 7604 } else { | |
| 7605 if (canvas_OR_image is CanvasElement) { | |
| 7606 if (sw_OR_width === null) { | |
| 7607 if (height_OR_sh === null) { | |
| 7608 if (dx === null) { | |
| 7609 if (dy === null) { | |
| 7610 if (dw === null) { | |
| 7611 if (dh === null) { | |
| 7612 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy
_OR_y); | |
| 7613 return; | |
| 7614 } | |
| 7615 } | |
| 7616 } | |
| 7617 } | |
| 7618 } | |
| 7619 } else { | |
| 7620 if (dx === null) { | |
| 7621 if (dy === null) { | |
| 7622 if (dw === null) { | |
| 7623 if (dh === null) { | |
| 7624 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy_O
R_y, sw_OR_width, height_OR_sh); | |
| 7625 return; | |
| 7626 } | |
| 7627 } | |
| 7628 } | |
| 7629 } else { | |
| 7630 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy_OR_y, s
w_OR_width, height_OR_sh, dx, dy, dw, dh); | |
| 7631 return; | |
| 7632 } | |
| 7633 } | |
| 7634 } | |
| 7635 } | |
| 7636 throw "Incorrect number or type of arguments"; | |
| 7637 } | |
| 7638 | |
| 7639 void drawImageFromRect(ImageElement image, [num sx = null, num sy = null, num
sw = null, num sh = null, num dx = null, num dy = null, num dw = null, num dh =
null, String compositeOperation = null]) { | |
| 7640 if (sx === null) { | |
| 7641 if (sy === null) { | |
| 7642 if (sw === null) { | |
| 7643 if (sh === null) { | |
| 7644 if (dx === null) { | |
| 7645 if (dy === null) { | |
| 7646 if (dw === null) { | |
| 7647 if (dh === null) { | |
| 7648 if (compositeOperation === null) { | |
| 7649 _ptr.drawImageFromRect(LevelDom.unwrap(image)); | |
| 7650 return; | |
| 7651 } | |
| 7652 } | |
| 7653 } | |
| 7654 } | |
| 7655 } | |
| 7656 } | |
| 7657 } | |
| 7658 } | |
| 7659 } else { | |
| 7660 if (sy === null) { | |
| 7661 if (sw === null) { | |
| 7662 if (sh === null) { | |
| 7663 if (dx === null) { | |
| 7664 if (dy === null) { | |
| 7665 if (dw === null) { | |
| 7666 if (dh === null) { | |
| 7667 if (compositeOperation === null) { | |
| 7668 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx); | |
| 7669 return; | |
| 7670 } | |
| 7671 } | |
| 7672 } | |
| 7673 } | |
| 7674 } | |
| 7675 } | |
| 7676 } | |
| 7677 } else { | |
| 7678 if (sw === null) { | |
| 7679 if (sh === null) { | |
| 7680 if (dx === null) { | |
| 7681 if (dy === null) { | |
| 7682 if (dw === null) { | |
| 7683 if (dh === null) { | |
| 7684 if (compositeOperation === null) { | |
| 7685 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx, sy); | |
| 7686 return; | |
| 7687 } | |
| 7688 } | |
| 7689 } | |
| 7690 } | |
| 7691 } | |
| 7692 } | |
| 7693 } else { | |
| 7694 if (sh === null) { | |
| 7695 if (dx === null) { | |
| 7696 if (dy === null) { | |
| 7697 if (dw === null) { | |
| 7698 if (dh === null) { | |
| 7699 if (compositeOperation === null) { | |
| 7700 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx, sy, sw)
; | |
| 7701 return; | |
| 7702 } | |
| 7703 } | |
| 7704 } | |
| 7705 } | |
| 7706 } | |
| 7707 } else { | |
| 7708 if (dx === null) { | |
| 7709 if (dy === null) { | |
| 7710 if (dw === null) { | |
| 7711 if (dh === null) { | |
| 7712 if (compositeOperation === null) { | |
| 7713 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx, sy, sw,
sh); | |
| 7714 return; | |
| 7715 } | |
| 7716 } | |
| 7717 } | |
| 7718 } | |
| 7719 } else { | |
| 7720 if (dy === null) { | |
| 7721 if (dw === null) { | |
| 7722 if (dh === null) { | |
| 7723 if (compositeOperation === null) { | |
| 7724 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx, sy, sw,
sh, dx); | |
| 7725 return; | |
| 7726 } | |
| 7727 } | |
| 7728 } | |
| 7729 } else { | |
| 7730 if (dw === null) { | |
| 7731 if (dh === null) { | |
| 7732 if (compositeOperation === null) { | |
| 7733 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx, sy, sw,
sh, dx, dy); | |
| 7734 return; | |
| 7735 } | |
| 7736 } | |
| 7737 } else { | |
| 7738 if (dh === null) { | |
| 7739 if (compositeOperation === null) { | |
| 7740 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx, sy, sw,
sh, dx, dy, dw); | |
| 7741 return; | |
| 7742 } | |
| 7743 } else { | |
| 7744 if (compositeOperation === null) { | |
| 7745 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx, sy, sw,
sh, dx, dy, dw, dh); | |
| 7746 return; | |
| 7747 } else { | |
| 7748 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx, sy, sw,
sh, dx, dy, dw, dh, compositeOperation); | |
| 7749 return; | |
| 7750 } | |
| 7751 } | |
| 7752 } | |
| 7753 } | |
| 7754 } | |
| 7755 } | |
| 7756 } | |
| 7757 } | |
| 7758 } | |
| 7759 throw "Incorrect number or type of arguments"; | |
| 7760 } | |
| 7761 | |
| 7762 void fill() { | |
| 7763 _ptr.fill(); | |
| 7764 return; | |
| 7765 } | |
| 7766 | |
| 7767 void fillRect(num x, num y, num width, num height) { | |
| 7768 _ptr.fillRect(x, y, width, height); | |
| 7769 return; | |
| 7770 } | |
| 7771 | |
| 7772 void fillText(String text, num x, num y, [num maxWidth = null]) { | |
| 7773 if (maxWidth === null) { | |
| 7774 _ptr.fillText(text, x, y); | |
| 7775 return; | |
| 7776 } else { | |
| 7777 _ptr.fillText(text, x, y, maxWidth); | |
| 7778 return; | |
| 7779 } | |
| 7780 } | |
| 7781 | |
| 7782 ImageData getImageData(num sx, num sy, num sw, num sh) { | |
| 7783 return LevelDom.wrapImageData(_ptr.getImageData(sx, sy, sw, sh)); | |
| 7784 } | |
| 7785 | |
| 7786 bool isPointInPath(num x, num y) { | |
| 7787 return _ptr.isPointInPath(x, y); | |
| 7788 } | |
| 7789 | |
| 7790 void lineTo(num x, num y) { | |
| 7791 _ptr.lineTo(x, y); | |
| 7792 return; | |
| 7793 } | |
| 7794 | |
| 7795 TextMetrics measureText(String text) { | |
| 7796 return LevelDom.wrapTextMetrics(_ptr.measureText(text)); | |
| 7797 } | |
| 7798 | |
| 7799 void moveTo(num x, num y) { | |
| 7800 _ptr.moveTo(x, y); | |
| 7801 return; | |
| 7802 } | |
| 7803 | |
| 7804 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX = null, num
dirtyY = null, num dirtyWidth = null, num dirtyHeight = null]) { | |
| 7805 if (dirtyX === null) { | |
| 7806 if (dirtyY === null) { | |
| 7807 if (dirtyWidth === null) { | |
| 7808 if (dirtyHeight === null) { | |
| 7809 _ptr.putImageData(LevelDom.unwrap(imagedata), dx, dy); | |
| 7810 return; | |
| 7811 } | |
| 7812 } | |
| 7813 } | |
| 7814 } else { | |
| 7815 _ptr.putImageData(LevelDom.unwrap(imagedata), dx, dy, dirtyX, dirtyY, dirt
yWidth, dirtyHeight); | |
| 7816 return; | |
| 7817 } | |
| 7818 throw "Incorrect number or type of arguments"; | |
| 7819 } | |
| 7820 | |
| 7821 void quadraticCurveTo(num cpx, num cpy, num x, num y) { | |
| 7822 _ptr.quadraticCurveTo(cpx, cpy, x, y); | |
| 7823 return; | |
| 7824 } | |
| 7825 | |
| 7826 void rect(num x, num y, num width, num height) { | |
| 7827 _ptr.rect(x, y, width, height); | |
| 7828 return; | |
| 7829 } | |
| 7830 | |
| 7831 void restore() { | |
| 7832 _ptr.restore(); | |
| 7833 return; | |
| 7834 } | |
| 7835 | |
| 7836 void rotate(num angle) { | |
| 7837 _ptr.rotate(angle); | |
| 7838 return; | |
| 7839 } | |
| 7840 | |
| 7841 void save() { | |
| 7842 _ptr.save(); | |
| 7843 return; | |
| 7844 } | |
| 7845 | |
| 7846 void scale(num sx, num sy) { | |
| 7847 _ptr.scale(sx, sy); | |
| 7848 return; | |
| 7849 } | |
| 7850 | |
| 7851 void setAlpha(num alpha) { | |
| 7852 _ptr.setAlpha(alpha); | |
| 7853 return; | |
| 7854 } | |
| 7855 | |
| 7856 void setCompositeOperation(String compositeOperation) { | |
| 7857 _ptr.setCompositeOperation(compositeOperation); | |
| 7858 return; | |
| 7859 } | |
| 7860 | |
| 7861 void setFillColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m = nul
l, num b_OR_y = null, num a_OR_k = null, num a = null]) { | |
| 7862 if (c_OR_color_OR_grayLevel_OR_r is String) { | |
| 7863 if (alpha_OR_g_OR_m === null) { | |
| 7864 if (b_OR_y === null) { | |
| 7865 if (a_OR_k === null) { | |
| 7866 if (a === null) { | |
| 7867 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r)); | |
| 7868 return; | |
| 7869 } | |
| 7870 } | |
| 7871 } | |
| 7872 } else { | |
| 7873 if (b_OR_y === null) { | |
| 7874 if (a_OR_k === null) { | |
| 7875 if (a === null) { | |
| 7876 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r), a
lpha_OR_g_OR_m); | |
| 7877 return; | |
| 7878 } | |
| 7879 } | |
| 7880 } | |
| 7881 } | |
| 7882 } else { | |
| 7883 if (c_OR_color_OR_grayLevel_OR_r is num) { | |
| 7884 if (alpha_OR_g_OR_m === null) { | |
| 7885 if (b_OR_y === null) { | |
| 7886 if (a_OR_k === null) { | |
| 7887 if (a === null) { | |
| 7888 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r))
; | |
| 7889 return; | |
| 7890 } | |
| 7891 } | |
| 7892 } | |
| 7893 } else { | |
| 7894 if (b_OR_y === null) { | |
| 7895 if (a_OR_k === null) { | |
| 7896 if (a === null) { | |
| 7897 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r),
alpha_OR_g_OR_m); | |
| 7898 return; | |
| 7899 } | |
| 7900 } | |
| 7901 } else { | |
| 7902 if (a === null) { | |
| 7903 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r), a
lpha_OR_g_OR_m, b_OR_y, a_OR_k); | |
| 7904 return; | |
| 7905 } else { | |
| 7906 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r), a
lpha_OR_g_OR_m, b_OR_y, a_OR_k, a); | |
| 7907 return; | |
| 7908 } | |
| 7909 } | |
| 7910 } | |
| 7911 } | |
| 7912 } | |
| 7913 throw "Incorrect number or type of arguments"; | |
| 7914 } | |
| 7915 | |
| 7916 void setFillStyle(var color_OR_gradient_OR_pattern) { | |
| 7917 if (color_OR_gradient_OR_pattern is String) { | |
| 7918 _ptr.setFillStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern)); | |
| 7919 return; | |
| 7920 } else { | |
| 7921 if (color_OR_gradient_OR_pattern is CanvasGradient) { | |
| 7922 _ptr.setFillStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern)); | |
| 7923 return; | |
| 7924 } else { | |
| 7925 if (color_OR_gradient_OR_pattern is CanvasPattern) { | |
| 7926 _ptr.setFillStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern)); | |
| 7927 return; | |
| 7928 } | |
| 7929 } | |
| 7930 } | |
| 7931 throw "Incorrect number or type of arguments"; | |
| 7932 } | |
| 7933 | |
| 7934 void setLineCap(String cap) { | |
| 7935 _ptr.setLineCap(cap); | |
| 7936 return; | |
| 7937 } | |
| 7938 | |
| 7939 void setLineJoin(String join) { | |
| 7940 _ptr.setLineJoin(join); | |
| 7941 return; | |
| 7942 } | |
| 7943 | |
| 7944 void setLineWidth(num width) { | |
| 7945 _ptr.setLineWidth(width); | |
| 7946 return; | |
| 7947 } | |
| 7948 | |
| 7949 void setMiterLimit(num limit) { | |
| 7950 _ptr.setMiterLimit(limit); | |
| 7951 return; | |
| 7952 } | |
| 7953 | |
| 7954 void setShadow(num width, num height, num blur, [var c_OR_color_OR_grayLevel_O
R_r = null, num alpha_OR_g_OR_m = null, num b_OR_y = null, num a_OR_k = null, nu
m a = null]) { | |
| 7955 if (c_OR_color_OR_grayLevel_OR_r === null) { | |
| 7956 if (alpha_OR_g_OR_m === null) { | |
| 7957 if (b_OR_y === null) { | |
| 7958 if (a_OR_k === null) { | |
| 7959 if (a === null) { | |
| 7960 _ptr.setShadow(width, height, blur); | |
| 7961 return; | |
| 7962 } | |
| 7963 } | |
| 7964 } | |
| 7965 } | |
| 7966 } else { | |
| 7967 if (c_OR_color_OR_grayLevel_OR_r is String) { | |
| 7968 if (alpha_OR_g_OR_m === null) { | |
| 7969 if (b_OR_y === null) { | |
| 7970 if (a_OR_k === null) { | |
| 7971 if (a === null) { | |
| 7972 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color_O
R_grayLevel_OR_r)); | |
| 7973 return; | |
| 7974 } | |
| 7975 } | |
| 7976 } | |
| 7977 } else { | |
| 7978 if (b_OR_y === null) { | |
| 7979 if (a_OR_k === null) { | |
| 7980 if (a === null) { | |
| 7981 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color_O
R_grayLevel_OR_r), alpha_OR_g_OR_m); | |
| 7982 return; | |
| 7983 } | |
| 7984 } | |
| 7985 } | |
| 7986 } | |
| 7987 } else { | |
| 7988 if (c_OR_color_OR_grayLevel_OR_r is num) { | |
| 7989 if (alpha_OR_g_OR_m === null) { | |
| 7990 if (b_OR_y === null) { | |
| 7991 if (a_OR_k === null) { | |
| 7992 if (a === null) { | |
| 7993 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color
_OR_grayLevel_OR_r)); | |
| 7994 return; | |
| 7995 } | |
| 7996 } | |
| 7997 } | |
| 7998 } else { | |
| 7999 if (b_OR_y === null) { | |
| 8000 if (a_OR_k === null) { | |
| 8001 if (a === null) { | |
| 8002 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color
_OR_grayLevel_OR_r), alpha_OR_g_OR_m); | |
| 8003 return; | |
| 8004 } | |
| 8005 } | |
| 8006 } else { | |
| 8007 if (a === null) { | |
| 8008 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color_O
R_grayLevel_OR_r), alpha_OR_g_OR_m, b_OR_y, a_OR_k); | |
| 8009 return; | |
| 8010 } else { | |
| 8011 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color_O
R_grayLevel_OR_r), alpha_OR_g_OR_m, b_OR_y, a_OR_k, a); | |
| 8012 return; | |
| 8013 } | |
| 8014 } | |
| 8015 } | |
| 8016 } | |
| 8017 } | |
| 8018 } | |
| 8019 throw "Incorrect number or type of arguments"; | |
| 8020 } | |
| 8021 | |
| 8022 void setStrokeColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m = n
ull, num b_OR_y = null, num a_OR_k = null, num a = null]) { | |
| 8023 if (c_OR_color_OR_grayLevel_OR_r is String) { | |
| 8024 if (alpha_OR_g_OR_m === null) { | |
| 8025 if (b_OR_y === null) { | |
| 8026 if (a_OR_k === null) { | |
| 8027 if (a === null) { | |
| 8028 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r))
; | |
| 8029 return; | |
| 8030 } | |
| 8031 } | |
| 8032 } | |
| 8033 } else { | |
| 8034 if (b_OR_y === null) { | |
| 8035 if (a_OR_k === null) { | |
| 8036 if (a === null) { | |
| 8037 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r),
alpha_OR_g_OR_m); | |
| 8038 return; | |
| 8039 } | |
| 8040 } | |
| 8041 } | |
| 8042 } | |
| 8043 } else { | |
| 8044 if (c_OR_color_OR_grayLevel_OR_r is num) { | |
| 8045 if (alpha_OR_g_OR_m === null) { | |
| 8046 if (b_OR_y === null) { | |
| 8047 if (a_OR_k === null) { | |
| 8048 if (a === null) { | |
| 8049 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r
)); | |
| 8050 return; | |
| 8051 } | |
| 8052 } | |
| 8053 } | |
| 8054 } else { | |
| 8055 if (b_OR_y === null) { | |
| 8056 if (a_OR_k === null) { | |
| 8057 if (a === null) { | |
| 8058 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r
), alpha_OR_g_OR_m); | |
| 8059 return; | |
| 8060 } | |
| 8061 } | |
| 8062 } else { | |
| 8063 if (a === null) { | |
| 8064 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r),
alpha_OR_g_OR_m, b_OR_y, a_OR_k); | |
| 8065 return; | |
| 8066 } else { | |
| 8067 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r),
alpha_OR_g_OR_m, b_OR_y, a_OR_k, a); | |
| 8068 return; | |
| 8069 } | |
| 8070 } | |
| 8071 } | |
| 8072 } | |
| 8073 } | |
| 8074 throw "Incorrect number or type of arguments"; | |
| 8075 } | |
| 8076 | |
| 8077 void setStrokeStyle(var color_OR_gradient_OR_pattern) { | |
| 8078 if (color_OR_gradient_OR_pattern is String) { | |
| 8079 _ptr.setStrokeStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern)); | |
| 8080 return; | |
| 8081 } else { | |
| 8082 if (color_OR_gradient_OR_pattern is CanvasGradient) { | |
| 8083 _ptr.setStrokeStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern)); | |
| 8084 return; | |
| 8085 } else { | |
| 8086 if (color_OR_gradient_OR_pattern is CanvasPattern) { | |
| 8087 _ptr.setStrokeStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern)); | |
| 8088 return; | |
| 8089 } | |
| 8090 } | |
| 8091 } | |
| 8092 throw "Incorrect number or type of arguments"; | |
| 8093 } | |
| 8094 | |
| 8095 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) { | |
| 8096 _ptr.setTransform(m11, m12, m21, m22, dx, dy); | |
| 8097 return; | |
| 8098 } | |
| 8099 | |
| 8100 void stroke() { | |
| 8101 _ptr.stroke(); | |
| 8102 return; | |
| 8103 } | |
| 8104 | |
| 8105 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) { | |
| 8106 if (lineWidth === null) { | |
| 8107 _ptr.strokeRect(x, y, width, height); | |
| 8108 return; | |
| 8109 } else { | |
| 8110 _ptr.strokeRect(x, y, width, height, lineWidth); | |
| 8111 return; | |
| 8112 } | |
| 8113 } | |
| 8114 | |
| 8115 void strokeText(String text, num x, num y, [num maxWidth = null]) { | |
| 8116 if (maxWidth === null) { | |
| 8117 _ptr.strokeText(text, x, y); | |
| 8118 return; | |
| 8119 } else { | |
| 8120 _ptr.strokeText(text, x, y, maxWidth); | |
| 8121 return; | |
| 8122 } | |
| 8123 } | |
| 8124 | |
| 8125 void transform(num m11, num m12, num m21, num m22, num dx, num dy) { | |
| 8126 _ptr.transform(m11, m12, m21, m22, dx, dy); | |
| 8127 return; | |
| 8128 } | |
| 8129 | |
| 8130 void translate(num tx, num ty) { | |
| 8131 _ptr.translate(tx, ty); | |
| 8132 return; | |
| 8133 } | |
| 8134 } | |
| 8135 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8136 // for details. All rights reserved. Use of this source code is governed by a | |
| 8137 // BSD-style license that can be found in the LICENSE file. | |
| 8138 | |
| 8139 // WARNING: Do not edit - generated code. | |
| 8140 | |
| 8141 class CanvasRenderingContextWrappingImplementation extends DOMWrapperBase implem
ents CanvasRenderingContext { | |
| 8142 CanvasRenderingContextWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8143 | |
| 8144 CanvasElement get canvas() { return LevelDom.wrapCanvasElement(_ptr.canvas); } | |
| 8145 } | |
| 8146 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8147 // for details. All rights reserved. Use of this source code is governed by a | |
| 8148 // BSD-style license that can be found in the LICENSE file. | |
| 8149 | |
| 8150 // WARNING: Do not edit - generated code. | |
| 8151 | |
| 8152 class CharacterDataWrappingImplementation extends NodeWrappingImplementation imp
lements CharacterData { | |
| 8153 CharacterDataWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8154 | |
| 8155 String get data() { return _ptr.data; } | |
| 8156 | |
| 8157 void set data(String value) { _ptr.data = value; } | |
| 8158 | |
| 8159 int get length() { return _ptr.length; } | |
| 8160 | |
| 8161 void appendData(String data) { | |
| 8162 _ptr.appendData(data); | |
| 8163 return; | |
| 8164 } | |
| 8165 | |
| 8166 void deleteData(int offset, int length) { | |
| 8167 _ptr.deleteData(offset, length); | |
| 8168 return; | |
| 8169 } | |
| 8170 | |
| 8171 void insertData(int offset, String data) { | |
| 8172 _ptr.insertData(offset, data); | |
| 8173 return; | |
| 8174 } | |
| 8175 | |
| 8176 void replaceData(int offset, int length, String data) { | |
| 8177 _ptr.replaceData(offset, length, data); | |
| 8178 return; | |
| 8179 } | |
| 8180 | |
| 8181 String substringData(int offset, int length) { | |
| 8182 return _ptr.substringData(offset, length); | |
| 8183 } | |
| 8184 } | |
| 8185 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8186 // for details. All rights reserved. Use of this source code is governed by a | |
| 8187 // BSD-style license that can be found in the LICENSE file. | |
| 8188 | |
| 8189 // WARNING: Do not edit - generated code. | |
| 8190 | |
| 8191 class ClientRectWrappingImplementation extends DOMWrapperBase implements ClientR
ect { | |
| 8192 ClientRectWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8193 | |
| 8194 num get bottom() { return _ptr.bottom; } | |
| 8195 | |
| 8196 num get height() { return _ptr.height; } | |
| 8197 | |
| 8198 num get left() { return _ptr.left; } | |
| 8199 | |
| 8200 num get right() { return _ptr.right; } | |
| 8201 | |
| 8202 num get top() { return _ptr.top; } | |
| 8203 | |
| 8204 num get width() { return _ptr.width; } | |
| 8205 } | |
| 8206 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8207 // for details. All rights reserved. Use of this source code is governed by a | |
| 8208 // BSD-style license that can be found in the LICENSE file. | |
| 8209 | |
| 8210 // WARNING: Do not edit - generated code. | |
| 8211 | |
| 8212 class ClipboardWrappingImplementation extends DOMWrapperBase implements Clipboar
d { | |
| 8213 ClipboardWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8214 | |
| 8215 String get dropEffect() { return _ptr.dropEffect; } | |
| 8216 | |
| 8217 void set dropEffect(String value) { _ptr.dropEffect = value; } | |
| 8218 | |
| 8219 String get effectAllowed() { return _ptr.effectAllowed; } | |
| 8220 | |
| 8221 void set effectAllowed(String value) { _ptr.effectAllowed = value; } | |
| 8222 | |
| 8223 FileList get files() { return LevelDom.wrapFileList(_ptr.files); } | |
| 8224 | |
| 8225 DataTransferItems get items() { return LevelDom.wrapDataTransferItems(_ptr.ite
ms); } | |
| 8226 | |
| 8227 void clearData([String type = null]) { | |
| 8228 if (type === null) { | |
| 8229 _ptr.clearData(); | |
| 8230 return; | |
| 8231 } else { | |
| 8232 _ptr.clearData(type); | |
| 8233 return; | |
| 8234 } | |
| 8235 } | |
| 8236 | |
| 8237 void getData(String type) { | |
| 8238 _ptr.getData(type); | |
| 8239 return; | |
| 8240 } | |
| 8241 | |
| 8242 bool setData(String type, String data) { | |
| 8243 return _ptr.setData(type, data); | |
| 8244 } | |
| 8245 | |
| 8246 void setDragImage(ImageElement image, int x, int y) { | |
| 8247 _ptr.setDragImage(LevelDom.unwrap(image), x, y); | |
| 8248 return; | |
| 8249 } | |
| 8250 } | |
| 8251 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8252 // for details. All rights reserved. Use of this source code is governed by a | |
| 8253 // BSD-style license that can be found in the LICENSE file. | |
| 8254 | |
| 8255 // WARNING: Do not edit - generated code. | |
| 8256 | |
| 8257 class CommentWrappingImplementation extends CharacterDataWrappingImplementation
implements Comment { | |
| 8258 CommentWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8259 } | |
| 8260 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8261 // for details. All rights reserved. Use of this source code is governed by a | |
| 8262 // BSD-style license that can be found in the LICENSE file. | |
| 8263 | |
| 8264 // WARNING: Do not edit - generated code. | |
| 8265 | |
| 8266 class ConsoleWrappingImplementation extends DOMWrapperBase implements Console { | |
| 8267 ConsoleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8268 | |
| 8269 void count() { | |
| 8270 _ptr.count(); | |
| 8271 return; | |
| 8272 } | |
| 8273 | |
| 8274 void debug(Object arg) { | |
| 8275 _ptr.debug(LevelDom.unwrapMaybePrimitive(arg)); | |
| 8276 return; | |
| 8277 } | |
| 8278 | |
| 8279 void dir() { | |
| 8280 _ptr.dir(); | |
| 8281 return; | |
| 8282 } | |
| 8283 | |
| 8284 void dirxml() { | |
| 8285 _ptr.dirxml(); | |
| 8286 return; | |
| 8287 } | |
| 8288 | |
| 8289 void error(Object arg) { | |
| 8290 _ptr.error(LevelDom.unwrapMaybePrimitive(arg)); | |
| 8291 return; | |
| 8292 } | |
| 8293 | |
| 8294 void group() { | |
| 8295 _ptr.group(); | |
| 8296 return; | |
| 8297 } | |
| 8298 | |
| 8299 void groupCollapsed() { | |
| 8300 _ptr.groupCollapsed(); | |
| 8301 return; | |
| 8302 } | |
| 8303 | |
| 8304 void groupEnd() { | |
| 8305 _ptr.groupEnd(); | |
| 8306 return; | |
| 8307 } | |
| 8308 | |
| 8309 void info(Object arg) { | |
| 8310 _ptr.info(LevelDom.unwrapMaybePrimitive(arg)); | |
| 8311 return; | |
| 8312 } | |
| 8313 | |
| 8314 void log(Object arg) { | |
| 8315 _ptr.log(LevelDom.unwrapMaybePrimitive(arg)); | |
| 8316 return; | |
| 8317 } | |
| 8318 | |
| 8319 void markTimeline() { | |
| 8320 _ptr.markTimeline(); | |
| 8321 return; | |
| 8322 } | |
| 8323 | |
| 8324 void time(String title) { | |
| 8325 _ptr.time(title); | |
| 8326 return; | |
| 8327 } | |
| 8328 | |
| 8329 void timeEnd(String title) { | |
| 8330 _ptr.timeEnd(title); | |
| 8331 return; | |
| 8332 } | |
| 8333 | |
| 8334 void timeStamp() { | |
| 8335 _ptr.timeStamp(); | |
| 8336 return; | |
| 8337 } | |
| 8338 | |
| 8339 void trace(Object arg) { | |
| 8340 _ptr.trace(LevelDom.unwrapMaybePrimitive(arg)); | |
| 8341 return; | |
| 8342 } | |
| 8343 | |
| 8344 void warn(Object arg) { | |
| 8345 _ptr.warn(LevelDom.unwrapMaybePrimitive(arg)); | |
| 8346 return; | |
| 8347 } | |
| 8348 } | |
| 8349 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8350 // for details. All rights reserved. Use of this source code is governed by a | |
| 8351 // BSD-style license that can be found in the LICENSE file. | |
| 8352 | |
| 8353 // WARNING: Do not edit - generated code. | |
| 8354 | |
| 8355 class CoordinatesWrappingImplementation extends DOMWrapperBase implements Coordi
nates { | |
| 8356 CoordinatesWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8357 | |
| 8358 num get accuracy() { return _ptr.accuracy; } | |
| 8359 | |
| 8360 num get altitude() { return _ptr.altitude; } | |
| 8361 | |
| 8362 num get altitudeAccuracy() { return _ptr.altitudeAccuracy; } | |
| 8363 | |
| 8364 num get heading() { return _ptr.heading; } | |
| 8365 | |
| 8366 num get latitude() { return _ptr.latitude; } | |
| 8367 | |
| 8368 num get longitude() { return _ptr.longitude; } | |
| 8369 | |
| 8370 num get speed() { return _ptr.speed; } | |
| 8371 } | |
| 8372 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8373 // for details. All rights reserved. Use of this source code is governed by a | |
| 8374 // BSD-style license that can be found in the LICENSE file. | |
| 8375 | |
| 8376 // WARNING: Do not edit - generated code. | |
| 8377 | |
| 8378 class CounterWrappingImplementation extends DOMWrapperBase implements Counter { | |
| 8379 CounterWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8380 | |
| 8381 String get identifier() { return _ptr.identifier; } | |
| 8382 | |
| 8383 String get listStyle() { return _ptr.listStyle; } | |
| 8384 | |
| 8385 String get separator() { return _ptr.separator; } | |
| 8386 } | |
| 8387 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8388 // for details. All rights reserved. Use of this source code is governed by a | |
| 8389 // BSD-style license that can be found in the LICENSE file. | |
| 8390 | |
| 8391 // WARNING: Do not edit - generated code. | |
| 8392 | |
| 8393 class CryptoWrappingImplementation extends DOMWrapperBase implements Crypto { | |
| 8394 CryptoWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8395 | |
| 8396 void getRandomValues(ArrayBufferView array) { | |
| 8397 _ptr.getRandomValues(LevelDom.unwrap(array)); | |
| 8398 return; | |
| 8399 } | |
| 8400 } | |
| 8401 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8402 // for details. All rights reserved. Use of this source code is governed by a | |
| 8403 // BSD-style license that can be found in the LICENSE file. | |
| 8404 | |
| 8405 // WARNING: Do not edit - generated code. | |
| 8406 | |
| 8407 class DListElementWrappingImplementation extends ElementWrappingImplementation i
mplements DListElement { | |
| 8408 DListElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8409 | |
| 8410 bool get compact() { return _ptr.compact; } | |
| 8411 | |
| 8412 void set compact(bool value) { _ptr.compact = value; } | |
| 8413 } | |
| 8414 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8415 // for details. All rights reserved. Use of this source code is governed by a | |
| 8416 // BSD-style license that can be found in the LICENSE file. | |
| 8417 | |
| 8418 // WARNING: Do not edit - generated code. | |
| 8419 | |
| 8420 class DOMExceptionWrappingImplementation extends DOMWrapperBase implements DOMEx
ception { | |
| 8421 DOMExceptionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8422 | |
| 8423 int get code() { return _ptr.code; } | |
| 8424 | |
| 8425 String get message() { return _ptr.message; } | |
| 8426 | |
| 8427 String get name() { return _ptr.name; } | |
| 8428 } | |
| 8429 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8430 // for details. All rights reserved. Use of this source code is governed by a | |
| 8431 // BSD-style license that can be found in the LICENSE file. | |
| 8432 | |
| 8433 // WARNING: Do not edit - generated code. | |
| 8434 | |
| 8435 class DOMFileSystemSyncWrappingImplementation extends DOMWrapperBase implements
DOMFileSystemSync { | |
| 8436 DOMFileSystemSyncWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8437 | |
| 8438 String get name() { return _ptr.name; } | |
| 8439 | |
| 8440 DirectoryEntrySync get root() { return LevelDom.wrapDirectoryEntrySync(_ptr.ro
ot); } | |
| 8441 } | |
| 8442 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8443 // for details. All rights reserved. Use of this source code is governed by a | |
| 8444 // BSD-style license that can be found in the LICENSE file. | |
| 8445 | |
| 8446 // WARNING: Do not edit - generated code. | |
| 8447 | |
| 8448 class DOMFileSystemWrappingImplementation extends DOMWrapperBase implements DOMF
ileSystem { | |
| 8449 DOMFileSystemWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8450 | |
| 8451 String get name() { return _ptr.name; } | |
| 8452 | |
| 8453 DirectoryEntry get root() { return LevelDom.wrapDirectoryEntry(_ptr.root); } | |
| 8454 } | |
| 8455 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8456 // for details. All rights reserved. Use of this source code is governed by a | |
| 8457 // BSD-style license that can be found in the LICENSE file. | |
| 8458 | |
| 8459 // WARNING: Do not edit - generated code. | |
| 8460 | |
| 8461 class DOMFormDataWrappingImplementation extends DOMWrapperBase implements DOMFor
mData { | |
| 8462 DOMFormDataWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8463 | |
| 8464 void append(String name, String value) { | |
| 8465 _ptr.append(name, value); | |
| 8466 return; | |
| 8467 } | |
| 8468 } | |
| 8469 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8470 // for details. All rights reserved. Use of this source code is governed by a | |
| 8471 // BSD-style license that can be found in the LICENSE file. | |
| 8472 | |
| 8473 // WARNING: Do not edit - generated code. | |
| 8474 | |
| 8475 class DOMMimeTypeArrayWrappingImplementation extends DOMWrapperBase implements D
OMMimeTypeArray { | |
| 8476 DOMMimeTypeArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8477 | |
| 8478 int get length() { return _ptr.length; } | |
| 8479 | |
| 8480 DOMMimeType item(int index) { | |
| 8481 return LevelDom.wrapDOMMimeType(_ptr.item(index)); | |
| 8482 } | |
| 8483 | |
| 8484 DOMMimeType namedItem(String name) { | |
| 8485 return LevelDom.wrapDOMMimeType(_ptr.namedItem(name)); | |
| 8486 } | |
| 8487 } | |
| 8488 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8489 // for details. All rights reserved. Use of this source code is governed by a | |
| 8490 // BSD-style license that can be found in the LICENSE file. | |
| 8491 | |
| 8492 // WARNING: Do not edit - generated code. | |
| 8493 | |
| 8494 class DOMMimeTypeWrappingImplementation extends DOMWrapperBase implements DOMMim
eType { | |
| 8495 DOMMimeTypeWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8496 | |
| 8497 String get description() { return _ptr.description; } | |
| 8498 | |
| 8499 DOMPlugin get enabledPlugin() { return LevelDom.wrapDOMPlugin(_ptr.enabledPlug
in); } | |
| 8500 | |
| 8501 String get suffixes() { return _ptr.suffixes; } | |
| 8502 | |
| 8503 String get type() { return _ptr.type; } | |
| 8504 } | |
| 8505 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8506 // for details. All rights reserved. Use of this source code is governed by a | |
| 8507 // BSD-style license that can be found in the LICENSE file. | |
| 8508 | |
| 8509 // WARNING: Do not edit - generated code. | |
| 8510 | |
| 8511 class DOMParserWrappingImplementation extends DOMWrapperBase implements DOMParse
r { | |
| 8512 DOMParserWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8513 | |
| 8514 Document parseFromString(String str, String contentType) { | |
| 8515 return LevelDom.wrapDocument(_ptr.parseFromString(str, contentType)); | |
| 8516 } | |
| 8517 } | |
| 8518 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8519 // for details. All rights reserved. Use of this source code is governed by a | |
| 8520 // BSD-style license that can be found in the LICENSE file. | |
| 8521 | |
| 8522 // WARNING: Do not edit - generated code. | |
| 8523 | |
| 8524 class DOMPluginArrayWrappingImplementation extends DOMWrapperBase implements DOM
PluginArray { | |
| 8525 DOMPluginArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8526 | |
| 8527 int get length() { return _ptr.length; } | |
| 8528 | |
| 8529 DOMPlugin item(int index) { | |
| 8530 return LevelDom.wrapDOMPlugin(_ptr.item(index)); | |
| 8531 } | |
| 8532 | |
| 8533 DOMPlugin namedItem(String name) { | |
| 8534 return LevelDom.wrapDOMPlugin(_ptr.namedItem(name)); | |
| 8535 } | |
| 8536 | |
| 8537 void refresh(bool reload) { | |
| 8538 _ptr.refresh(reload); | |
| 8539 return; | |
| 8540 } | |
| 8541 } | |
| 8542 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8543 // for details. All rights reserved. Use of this source code is governed by a | |
| 8544 // BSD-style license that can be found in the LICENSE file. | |
| 8545 | |
| 8546 // WARNING: Do not edit - generated code. | |
| 8547 | |
| 8548 class DOMPluginWrappingImplementation extends DOMWrapperBase implements DOMPlugi
n { | |
| 8549 DOMPluginWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8550 | |
| 8551 String get description() { return _ptr.description; } | |
| 8552 | |
| 8553 String get filename() { return _ptr.filename; } | |
| 8554 | |
| 8555 int get length() { return _ptr.length; } | |
| 8556 | |
| 8557 String get name() { return _ptr.name; } | |
| 8558 | |
| 8559 DOMMimeType item(int index) { | |
| 8560 return LevelDom.wrapDOMMimeType(_ptr.item(index)); | |
| 8561 } | |
| 8562 | |
| 8563 DOMMimeType namedItem(String name) { | |
| 8564 return LevelDom.wrapDOMMimeType(_ptr.namedItem(name)); | |
| 8565 } | |
| 8566 } | |
| 8567 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8568 // for details. All rights reserved. Use of this source code is governed by a | |
| 8569 // BSD-style license that can be found in the LICENSE file. | |
| 8570 | |
| 8571 // WARNING: Do not edit - generated code. | |
| 8572 | |
| 8573 class DOMSelectionWrappingImplementation extends DOMWrapperBase implements DOMSe
lection { | |
| 8574 DOMSelectionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8575 | |
| 8576 Node get anchorNode() { return LevelDom.wrapNode(_ptr.anchorNode); } | |
| 8577 | |
| 8578 int get anchorOffset() { return _ptr.anchorOffset; } | |
| 8579 | |
| 8580 Node get baseNode() { return LevelDom.wrapNode(_ptr.baseNode); } | |
| 8581 | |
| 8582 int get baseOffset() { return _ptr.baseOffset; } | |
| 8583 | |
| 8584 Node get extentNode() { return LevelDom.wrapNode(_ptr.extentNode); } | |
| 8585 | |
| 8586 int get extentOffset() { return _ptr.extentOffset; } | |
| 8587 | |
| 8588 Node get focusNode() { return LevelDom.wrapNode(_ptr.focusNode); } | |
| 8589 | |
| 8590 int get focusOffset() { return _ptr.focusOffset; } | |
| 8591 | |
| 8592 bool get isCollapsed() { return _ptr.isCollapsed; } | |
| 8593 | |
| 8594 int get rangeCount() { return _ptr.rangeCount; } | |
| 8595 | |
| 8596 String get type() { return _ptr.type; } | |
| 8597 | |
| 8598 void addRange(Range range) { | |
| 8599 _ptr.addRange(LevelDom.unwrap(range)); | |
| 8600 return; | |
| 8601 } | |
| 8602 | |
| 8603 void collapse(Node node, int index) { | |
| 8604 _ptr.collapse(LevelDom.unwrap(node), index); | |
| 8605 return; | |
| 8606 } | |
| 8607 | |
| 8608 void collapseToEnd() { | |
| 8609 _ptr.collapseToEnd(); | |
| 8610 return; | |
| 8611 } | |
| 8612 | |
| 8613 void collapseToStart() { | |
| 8614 _ptr.collapseToStart(); | |
| 8615 return; | |
| 8616 } | |
| 8617 | |
| 8618 bool containsNode(Node node, bool allowPartial) { | |
| 8619 return _ptr.containsNode(LevelDom.unwrap(node), allowPartial); | |
| 8620 } | |
| 8621 | |
| 8622 void deleteFromDocument() { | |
| 8623 _ptr.deleteFromDocument(); | |
| 8624 return; | |
| 8625 } | |
| 8626 | |
| 8627 void empty() { | |
| 8628 _ptr.empty(); | |
| 8629 return; | |
| 8630 } | |
| 8631 | |
| 8632 void extend(Node node, int offset) { | |
| 8633 _ptr.extend(LevelDom.unwrap(node), offset); | |
| 8634 return; | |
| 8635 } | |
| 8636 | |
| 8637 Range getRangeAt(int index) { | |
| 8638 return LevelDom.wrapRange(_ptr.getRangeAt(index)); | |
| 8639 } | |
| 8640 | |
| 8641 void modify(String alter, String direction, String granularity) { | |
| 8642 _ptr.modify(alter, direction, granularity); | |
| 8643 return; | |
| 8644 } | |
| 8645 | |
| 8646 void removeAllRanges() { | |
| 8647 _ptr.removeAllRanges(); | |
| 8648 return; | |
| 8649 } | |
| 8650 | |
| 8651 void selectAllChildren(Node node) { | |
| 8652 _ptr.selectAllChildren(LevelDom.unwrap(node)); | |
| 8653 return; | |
| 8654 } | |
| 8655 | |
| 8656 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte
ntOffset) { | |
| 8657 _ptr.setBaseAndExtent(LevelDom.unwrap(baseNode), baseOffset, LevelDom.unwrap
(extentNode), extentOffset); | |
| 8658 return; | |
| 8659 } | |
| 8660 | |
| 8661 void setPosition(Node node, int offset) { | |
| 8662 _ptr.setPosition(LevelDom.unwrap(node), offset); | |
| 8663 return; | |
| 8664 } | |
| 8665 } | |
| 8666 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8667 // for details. All rights reserved. Use of this source code is governed by a | |
| 8668 // BSD-style license that can be found in the LICENSE file. | |
| 8669 | |
| 8670 // WARNING: Do not edit - generated code. | |
| 8671 | |
| 8672 class DOMSettableTokenListWrappingImplementation extends DOMTokenListWrappingImp
lementation implements DOMSettableTokenList { | |
| 8673 DOMSettableTokenListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8674 | |
| 8675 String get value() { return _ptr.value; } | |
| 8676 | |
| 8677 void set value(String value) { _ptr.value = value; } | |
| 8678 } | |
| 8679 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8680 // for details. All rights reserved. Use of this source code is governed by a | |
| 8681 // BSD-style license that can be found in the LICENSE file. | |
| 8682 | |
| 8683 // WARNING: Do not edit - generated code. | |
| 8684 | |
| 8685 class DOMTokenListWrappingImplementation extends DOMWrapperBase implements DOMTo
kenList { | |
| 8686 DOMTokenListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8687 | |
| 8688 int get length() { return _ptr.length; } | |
| 8689 | |
| 8690 void add(String token) { | |
| 8691 _ptr.add(token); | |
| 8692 return; | |
| 8693 } | |
| 8694 | |
| 8695 bool contains(String token) { | |
| 8696 return _ptr.contains(token); | |
| 8697 } | |
| 8698 | |
| 8699 String item(int index) { | |
| 8700 return _ptr.item(index); | |
| 8701 } | |
| 8702 | |
| 8703 void remove(String token) { | |
| 8704 _ptr.remove(token); | |
| 8705 return; | |
| 8706 } | |
| 8707 | |
| 8708 bool toggle(String token) { | |
| 8709 return _ptr.toggle(token); | |
| 8710 } | |
| 8711 } | |
| 8712 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8713 // for details. All rights reserved. Use of this source code is governed by a | |
| 8714 // BSD-style license that can be found in the LICENSE file. | |
| 8715 | |
| 8716 // WARNING: Do not edit - generated code. | |
| 8717 | |
| 8718 class DOMURLWrappingImplementation extends DOMWrapperBase implements DOMURL { | |
| 8719 DOMURLWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8720 | |
| 8721 String createObjectURL(Blob blob) { | |
| 8722 return _ptr.createObjectURL(LevelDom.unwrap(blob)); | |
| 8723 } | |
| 8724 | |
| 8725 void revokeObjectURL(String url) { | |
| 8726 _ptr.revokeObjectURL(url); | |
| 8727 return; | |
| 8728 } | |
| 8729 } | |
| 8730 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8731 // for details. All rights reserved. Use of this source code is governed by a | |
| 8732 // BSD-style license that can be found in the LICENSE file. | |
| 8733 | |
| 8734 // WARNING: Do not edit - generated code. | |
| 8735 | |
| 8736 class DataListElementWrappingImplementation extends ElementWrappingImplementatio
n implements DataListElement { | |
| 8737 DataListElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8738 | |
| 8739 ElementList get options() { return LevelDom.wrapElementList(_ptr.options); } | |
| 8740 } | |
| 8741 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8742 // for details. All rights reserved. Use of this source code is governed by a | |
| 8743 // BSD-style license that can be found in the LICENSE file. | |
| 8744 | |
| 8745 // WARNING: Do not edit - generated code. | |
| 8746 | |
| 8747 class DataTransferItemWrappingImplementation extends DOMWrapperBase implements D
ataTransferItem { | |
| 8748 DataTransferItemWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8749 | |
| 8750 String get kind() { return _ptr.kind; } | |
| 8751 | |
| 8752 String get type() { return _ptr.type; } | |
| 8753 | |
| 8754 Blob getAsFile() { | |
| 8755 return LevelDom.wrapBlob(_ptr.getAsFile()); | |
| 8756 } | |
| 8757 | |
| 8758 void getAsString(StringCallback callback) { | |
| 8759 _ptr.getAsString(LevelDom.unwrap(callback)); | |
| 8760 return; | |
| 8761 } | |
| 8762 } | |
| 8763 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8764 // for details. All rights reserved. Use of this source code is governed by a | |
| 8765 // BSD-style license that can be found in the LICENSE file. | |
| 8766 | |
| 8767 // WARNING: Do not edit - generated code. | |
| 8768 | |
| 8769 class DataTransferItemsWrappingImplementation extends DOMWrapperBase implements
DataTransferItems { | |
| 8770 DataTransferItemsWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8771 | |
| 8772 int get length() { return _ptr.length; } | |
| 8773 | |
| 8774 void add(String data, String type) { | |
| 8775 _ptr.add(data, type); | |
| 8776 return; | |
| 8777 } | |
| 8778 | |
| 8779 void clear() { | |
| 8780 _ptr.clear(); | |
| 8781 return; | |
| 8782 } | |
| 8783 | |
| 8784 DataTransferItem item(int index) { | |
| 8785 return LevelDom.wrapDataTransferItem(_ptr.item(index)); | |
| 8786 } | |
| 8787 } | |
| 8788 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8789 // for details. All rights reserved. Use of this source code is governed by a | |
| 8790 // BSD-style license that can be found in the LICENSE file. | |
| 8791 | |
| 8792 // WARNING: Do not edit - generated code. | |
| 8793 | |
| 8794 class DataViewWrappingImplementation extends ArrayBufferViewWrappingImplementati
on implements DataView { | |
| 8795 DataViewWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8796 | |
| 8797 num getFloat32(int byteOffset, [bool littleEndian = null]) { | |
| 8798 if (littleEndian === null) { | |
| 8799 return _ptr.getFloat32(byteOffset); | |
| 8800 } else { | |
| 8801 return _ptr.getFloat32(byteOffset, littleEndian); | |
| 8802 } | |
| 8803 } | |
| 8804 | |
| 8805 num getFloat64(int byteOffset, [bool littleEndian = null]) { | |
| 8806 if (littleEndian === null) { | |
| 8807 return _ptr.getFloat64(byteOffset); | |
| 8808 } else { | |
| 8809 return _ptr.getFloat64(byteOffset, littleEndian); | |
| 8810 } | |
| 8811 } | |
| 8812 | |
| 8813 int getInt16(int byteOffset, [bool littleEndian = null]) { | |
| 8814 if (littleEndian === null) { | |
| 8815 return _ptr.getInt16(byteOffset); | |
| 8816 } else { | |
| 8817 return _ptr.getInt16(byteOffset, littleEndian); | |
| 8818 } | |
| 8819 } | |
| 8820 | |
| 8821 int getInt32(int byteOffset, [bool littleEndian = null]) { | |
| 8822 if (littleEndian === null) { | |
| 8823 return _ptr.getInt32(byteOffset); | |
| 8824 } else { | |
| 8825 return _ptr.getInt32(byteOffset, littleEndian); | |
| 8826 } | |
| 8827 } | |
| 8828 | |
| 8829 int getInt8() { | |
| 8830 return _ptr.getInt8(); | |
| 8831 } | |
| 8832 | |
| 8833 int getUint16(int byteOffset, [bool littleEndian = null]) { | |
| 8834 if (littleEndian === null) { | |
| 8835 return _ptr.getUint16(byteOffset); | |
| 8836 } else { | |
| 8837 return _ptr.getUint16(byteOffset, littleEndian); | |
| 8838 } | |
| 8839 } | |
| 8840 | |
| 8841 int getUint32(int byteOffset, [bool littleEndian = null]) { | |
| 8842 if (littleEndian === null) { | |
| 8843 return _ptr.getUint32(byteOffset); | |
| 8844 } else { | |
| 8845 return _ptr.getUint32(byteOffset, littleEndian); | |
| 8846 } | |
| 8847 } | |
| 8848 | |
| 8849 int getUint8() { | |
| 8850 return _ptr.getUint8(); | |
| 8851 } | |
| 8852 | |
| 8853 void setFloat32(int byteOffset, num value, [bool littleEndian = null]) { | |
| 8854 if (littleEndian === null) { | |
| 8855 _ptr.setFloat32(byteOffset, value); | |
| 8856 return; | |
| 8857 } else { | |
| 8858 _ptr.setFloat32(byteOffset, value, littleEndian); | |
| 8859 return; | |
| 8860 } | |
| 8861 } | |
| 8862 | |
| 8863 void setFloat64(int byteOffset, num value, [bool littleEndian = null]) { | |
| 8864 if (littleEndian === null) { | |
| 8865 _ptr.setFloat64(byteOffset, value); | |
| 8866 return; | |
| 8867 } else { | |
| 8868 _ptr.setFloat64(byteOffset, value, littleEndian); | |
| 8869 return; | |
| 8870 } | |
| 8871 } | |
| 8872 | |
| 8873 void setInt16(int byteOffset, int value, [bool littleEndian = null]) { | |
| 8874 if (littleEndian === null) { | |
| 8875 _ptr.setInt16(byteOffset, value); | |
| 8876 return; | |
| 8877 } else { | |
| 8878 _ptr.setInt16(byteOffset, value, littleEndian); | |
| 8879 return; | |
| 8880 } | |
| 8881 } | |
| 8882 | |
| 8883 void setInt32(int byteOffset, int value, [bool littleEndian = null]) { | |
| 8884 if (littleEndian === null) { | |
| 8885 _ptr.setInt32(byteOffset, value); | |
| 8886 return; | |
| 8887 } else { | |
| 8888 _ptr.setInt32(byteOffset, value, littleEndian); | |
| 8889 return; | |
| 8890 } | |
| 8891 } | |
| 8892 | |
| 8893 void setInt8() { | |
| 8894 _ptr.setInt8(); | |
| 8895 return; | |
| 8896 } | |
| 8897 | |
| 8898 void setUint16(int byteOffset, int value, [bool littleEndian = null]) { | |
| 8899 if (littleEndian === null) { | |
| 8900 _ptr.setUint16(byteOffset, value); | |
| 8901 return; | |
| 8902 } else { | |
| 8903 _ptr.setUint16(byteOffset, value, littleEndian); | |
| 8904 return; | |
| 8905 } | |
| 8906 } | |
| 8907 | |
| 8908 void setUint32(int byteOffset, int value, [bool littleEndian = null]) { | |
| 8909 if (littleEndian === null) { | |
| 8910 _ptr.setUint32(byteOffset, value); | |
| 8911 return; | |
| 8912 } else { | |
| 8913 _ptr.setUint32(byteOffset, value, littleEndian); | |
| 8914 return; | |
| 8915 } | |
| 8916 } | |
| 8917 | |
| 8918 void setUint8() { | |
| 8919 _ptr.setUint8(); | |
| 8920 return; | |
| 8921 } | |
| 8922 } | |
| 8923 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8924 // for details. All rights reserved. Use of this source code is governed by a | |
| 8925 // BSD-style license that can be found in the LICENSE file. | |
| 8926 | |
| 8927 // WARNING: Do not edit - generated code. | |
| 8928 | |
| 8929 class DetailsElementWrappingImplementation extends ElementWrappingImplementation
implements DetailsElement { | |
| 8930 DetailsElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8931 | |
| 8932 bool get open() { return _ptr.open; } | |
| 8933 | |
| 8934 void set open(bool value) { _ptr.open = value; } | |
| 8935 } | |
| 8936 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8937 // for details. All rights reserved. Use of this source code is governed by a | |
| 8938 // BSD-style license that can be found in the LICENSE file. | |
| 8939 | |
| 8940 // WARNING: Do not edit - generated code. | |
| 8941 | |
| 8942 class DirectoryEntrySyncWrappingImplementation extends EntrySyncWrappingImplemen
tation implements DirectoryEntrySync { | |
| 8943 DirectoryEntrySyncWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8944 | |
| 8945 DirectoryReaderSync createReader() { | |
| 8946 return LevelDom.wrapDirectoryReaderSync(_ptr.createReader()); | |
| 8947 } | |
| 8948 | |
| 8949 DirectoryEntrySync getDirectory(String path, Flags flags) { | |
| 8950 return LevelDom.wrapDirectoryEntrySync(_ptr.getDirectory(path, LevelDom.unwr
ap(flags))); | |
| 8951 } | |
| 8952 | |
| 8953 FileEntrySync getFile(String path, Flags flags) { | |
| 8954 return LevelDom.wrapFileEntrySync(_ptr.getFile(path, LevelDom.unwrap(flags))
); | |
| 8955 } | |
| 8956 | |
| 8957 void removeRecursively() { | |
| 8958 _ptr.removeRecursively(); | |
| 8959 return; | |
| 8960 } | |
| 8961 } | |
| 8962 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 8963 // for details. All rights reserved. Use of this source code is governed by a | |
| 8964 // BSD-style license that can be found in the LICENSE file. | |
| 8965 | |
| 8966 // WARNING: Do not edit - generated code. | |
| 8967 | |
| 8968 class DirectoryEntryWrappingImplementation extends EntryWrappingImplementation i
mplements DirectoryEntry { | |
| 8969 DirectoryEntryWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8970 | |
| 8971 DirectoryReader createReader() { | |
| 8972 return LevelDom.wrapDirectoryReader(_ptr.createReader()); | |
| 8973 } | |
| 8974 | |
| 8975 void getDirectory(String path, [Flags flags = null, EntryCallback successCallb
ack = null, ErrorCallback errorCallback = null]) { | |
| 8976 if (flags === null) { | |
| 8977 if (successCallback === null) { | |
| 8978 if (errorCallback === null) { | |
| 8979 _ptr.getDirectory(path); | |
| 8980 return; | |
| 8981 } | |
| 8982 } | |
| 8983 } else { | |
| 8984 if (successCallback === null) { | |
| 8985 if (errorCallback === null) { | |
| 8986 _ptr.getDirectory(path, LevelDom.unwrap(flags)); | |
| 8987 return; | |
| 8988 } | |
| 8989 } else { | |
| 8990 if (errorCallback === null) { | |
| 8991 _ptr.getDirectory(path, LevelDom.unwrap(flags), LevelDom.unwrap(succes
sCallback)); | |
| 8992 return; | |
| 8993 } else { | |
| 8994 _ptr.getDirectory(path, LevelDom.unwrap(flags), LevelDom.unwrap(succes
sCallback), LevelDom.unwrap(errorCallback)); | |
| 8995 return; | |
| 8996 } | |
| 8997 } | |
| 8998 } | |
| 8999 throw "Incorrect number or type of arguments"; | |
| 9000 } | |
| 9001 | |
| 9002 void getFile(String path, [Flags flags = null, EntryCallback successCallback =
null, ErrorCallback errorCallback = null]) { | |
| 9003 if (flags === null) { | |
| 9004 if (successCallback === null) { | |
| 9005 if (errorCallback === null) { | |
| 9006 _ptr.getFile(path); | |
| 9007 return; | |
| 9008 } | |
| 9009 } | |
| 9010 } else { | |
| 9011 if (successCallback === null) { | |
| 9012 if (errorCallback === null) { | |
| 9013 _ptr.getFile(path, LevelDom.unwrap(flags)); | |
| 9014 return; | |
| 9015 } | |
| 9016 } else { | |
| 9017 if (errorCallback === null) { | |
| 9018 _ptr.getFile(path, LevelDom.unwrap(flags), LevelDom.unwrap(successCall
back)); | |
| 9019 return; | |
| 9020 } else { | |
| 9021 _ptr.getFile(path, LevelDom.unwrap(flags), LevelDom.unwrap(successCall
back), LevelDom.unwrap(errorCallback)); | |
| 9022 return; | |
| 9023 } | |
| 9024 } | |
| 9025 } | |
| 9026 throw "Incorrect number or type of arguments"; | |
| 9027 } | |
| 9028 | |
| 9029 void removeRecursively([VoidCallback successCallback = null, ErrorCallback err
orCallback = null]) { | |
| 9030 if (successCallback === null) { | |
| 9031 if (errorCallback === null) { | |
| 9032 _ptr.removeRecursively(); | |
| 9033 return; | |
| 9034 } | |
| 9035 } else { | |
| 9036 if (errorCallback === null) { | |
| 9037 _ptr.removeRecursively(LevelDom.unwrap(successCallback)); | |
| 9038 return; | |
| 9039 } else { | |
| 9040 _ptr.removeRecursively(LevelDom.unwrap(successCallback), LevelDom.unwrap
(errorCallback)); | |
| 9041 return; | |
| 9042 } | |
| 9043 } | |
| 9044 throw "Incorrect number or type of arguments"; | |
| 9045 } | |
| 9046 } | |
| 9047 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9048 // for details. All rights reserved. Use of this source code is governed by a | |
| 9049 // BSD-style license that can be found in the LICENSE file. | |
| 9050 | |
| 9051 // WARNING: Do not edit - generated code. | |
| 9052 | |
| 9053 class DirectoryReaderSyncWrappingImplementation extends DOMWrapperBase implement
s DirectoryReaderSync { | |
| 9054 DirectoryReaderSyncWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9055 | |
| 9056 EntryArraySync readEntries() { | |
| 9057 return LevelDom.wrapEntryArraySync(_ptr.readEntries()); | |
| 9058 } | |
| 9059 } | |
| 9060 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9061 // for details. All rights reserved. Use of this source code is governed by a | |
| 9062 // BSD-style license that can be found in the LICENSE file. | |
| 9063 | |
| 9064 // WARNING: Do not edit - generated code. | |
| 9065 | |
| 9066 class DirectoryReaderWrappingImplementation extends DOMWrapperBase implements Di
rectoryReader { | |
| 9067 DirectoryReaderWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9068 | |
| 9069 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback
= null]) { | |
| 9070 if (errorCallback === null) { | |
| 9071 _ptr.readEntries(LevelDom.unwrap(successCallback)); | |
| 9072 return; | |
| 9073 } else { | |
| 9074 _ptr.readEntries(LevelDom.unwrap(successCallback), LevelDom.unwrap(errorCa
llback)); | |
| 9075 return; | |
| 9076 } | |
| 9077 } | |
| 9078 } | |
| 9079 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9080 // for details. All rights reserved. Use of this source code is governed by a | |
| 9081 // BSD-style license that can be found in the LICENSE file. | |
| 9082 | |
| 9083 // WARNING: Do not edit - generated code. | |
| 9084 | |
| 9085 class DivElementWrappingImplementation extends ElementWrappingImplementation imp
lements DivElement { | |
| 9086 DivElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9087 | |
| 9088 String get align() { return _ptr.align; } | |
| 9089 | |
| 9090 void set align(String value) { _ptr.align = value; } | |
| 9091 } | |
| 9092 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9093 // for details. All rights reserved. Use of this source code is governed by a | |
| 9094 // BSD-style license that can be found in the LICENSE file. | |
| 9095 | |
| 9096 // WARNING: Do not edit - generated code. | |
| 9097 | |
| 9098 class EmbedElementWrappingImplementation extends ElementWrappingImplementation i
mplements EmbedElement { | |
| 9099 EmbedElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9100 | |
| 9101 String get align() { return _ptr.align; } | |
| 9102 | |
| 9103 void set align(String value) { _ptr.align = value; } | |
| 9104 | |
| 9105 int get height() { return _ptr.height; } | |
| 9106 | |
| 9107 void set height(int value) { _ptr.height = value; } | |
| 9108 | |
| 9109 String get name() { return _ptr.name; } | |
| 9110 | |
| 9111 void set name(String value) { _ptr.name = value; } | |
| 9112 | |
| 9113 String get src() { return _ptr.src; } | |
| 9114 | |
| 9115 void set src(String value) { _ptr.src = value; } | |
| 9116 | |
| 9117 String get type() { return _ptr.type; } | |
| 9118 | |
| 9119 void set type(String value) { _ptr.type = value; } | |
| 9120 | |
| 9121 int get width() { return _ptr.width; } | |
| 9122 | |
| 9123 void set width(int value) { _ptr.width = value; } | |
| 9124 } | |
| 9125 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9126 // for details. All rights reserved. Use of this source code is governed by a | |
| 9127 // BSD-style license that can be found in the LICENSE file. | |
| 9128 | |
| 9129 // WARNING: Do not edit - generated code. | |
| 9130 | |
| 9131 class EntityReferenceWrappingImplementation extends NodeWrappingImplementation i
mplements EntityReference { | |
| 9132 EntityReferenceWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9133 } | |
| 9134 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9135 // for details. All rights reserved. Use of this source code is governed by a | |
| 9136 // BSD-style license that can be found in the LICENSE file. | |
| 9137 | |
| 9138 // WARNING: Do not edit - generated code. | |
| 9139 | |
| 9140 class EntityWrappingImplementation extends NodeWrappingImplementation implements
Entity { | |
| 9141 EntityWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9142 | |
| 9143 String get notationName() { return _ptr.notationName; } | |
| 9144 | |
| 9145 String get publicId() { return _ptr.publicId; } | |
| 9146 | |
| 9147 String get systemId() { return _ptr.systemId; } | |
| 9148 } | |
| 9149 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9150 // for details. All rights reserved. Use of this source code is governed by a | |
| 9151 // BSD-style license that can be found in the LICENSE file. | |
| 9152 | |
| 9153 // WARNING: Do not edit - generated code. | |
| 9154 | |
| 9155 class EntriesCallbackWrappingImplementation extends DOMWrapperBase implements En
triesCallback { | |
| 9156 EntriesCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9157 | |
| 9158 bool handleEvent(EntryArray entries) { | |
| 9159 return _ptr.handleEvent(LevelDom.unwrap(entries)); | |
| 9160 } | |
| 9161 } | |
| 9162 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9163 // for details. All rights reserved. Use of this source code is governed by a | |
| 9164 // BSD-style license that can be found in the LICENSE file. | |
| 9165 | |
| 9166 // WARNING: Do not edit - generated code. | |
| 9167 | |
| 9168 class EntryArraySyncWrappingImplementation extends DOMWrapperBase implements Ent
ryArraySync { | |
| 9169 EntryArraySyncWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9170 | |
| 9171 int get length() { return _ptr.length; } | |
| 9172 | |
| 9173 EntrySync item(int index) { | |
| 9174 return LevelDom.wrapEntrySync(_ptr.item(index)); | |
| 9175 } | |
| 9176 } | |
| 9177 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9178 // for details. All rights reserved. Use of this source code is governed by a | |
| 9179 // BSD-style license that can be found in the LICENSE file. | |
| 9180 | |
| 9181 // WARNING: Do not edit - generated code. | |
| 9182 | |
| 9183 class EntryArrayWrappingImplementation extends DOMWrapperBase implements EntryAr
ray { | |
| 9184 EntryArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9185 | |
| 9186 int get length() { return _ptr.length; } | |
| 9187 | |
| 9188 Entry item(int index) { | |
| 9189 return LevelDom.wrapEntry(_ptr.item(index)); | |
| 9190 } | |
| 9191 } | |
| 9192 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9193 // for details. All rights reserved. Use of this source code is governed by a | |
| 9194 // BSD-style license that can be found in the LICENSE file. | |
| 9195 | |
| 9196 // WARNING: Do not edit - generated code. | |
| 9197 | |
| 9198 class EntryCallbackWrappingImplementation extends DOMWrapperBase implements Entr
yCallback { | |
| 9199 EntryCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9200 | |
| 9201 bool handleEvent(Entry entry) { | |
| 9202 return _ptr.handleEvent(LevelDom.unwrap(entry)); | |
| 9203 } | |
| 9204 } | |
| 9205 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9206 // for details. All rights reserved. Use of this source code is governed by a | |
| 9207 // BSD-style license that can be found in the LICENSE file. | |
| 9208 | |
| 9209 // WARNING: Do not edit - generated code. | |
| 9210 | |
| 9211 class EntrySyncWrappingImplementation extends DOMWrapperBase implements EntrySyn
c { | |
| 9212 EntrySyncWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9213 | |
| 9214 DOMFileSystemSync get filesystem() { return LevelDom.wrapDOMFileSystemSync(_pt
r.filesystem); } | |
| 9215 | |
| 9216 String get fullPath() { return _ptr.fullPath; } | |
| 9217 | |
| 9218 bool get isDirectory() { return _ptr.isDirectory; } | |
| 9219 | |
| 9220 bool get isFile() { return _ptr.isFile; } | |
| 9221 | |
| 9222 String get name() { return _ptr.name; } | |
| 9223 | |
| 9224 EntrySync copyTo(DirectoryEntrySync parent, String name) { | |
| 9225 return LevelDom.wrapEntrySync(_ptr.copyTo(LevelDom.unwrap(parent), name)); | |
| 9226 } | |
| 9227 | |
| 9228 Metadata getMetadata() { | |
| 9229 return LevelDom.wrapMetadata(_ptr.getMetadata()); | |
| 9230 } | |
| 9231 | |
| 9232 DirectoryEntrySync getParent() { | |
| 9233 return LevelDom.wrapDirectoryEntrySync(_ptr.getParent()); | |
| 9234 } | |
| 9235 | |
| 9236 EntrySync moveTo(DirectoryEntrySync parent, String name) { | |
| 9237 return LevelDom.wrapEntrySync(_ptr.moveTo(LevelDom.unwrap(parent), name)); | |
| 9238 } | |
| 9239 | |
| 9240 void remove() { | |
| 9241 _ptr.remove(); | |
| 9242 return; | |
| 9243 } | |
| 9244 | |
| 9245 String toURL() { | |
| 9246 return _ptr.toURL(); | |
| 9247 } | |
| 9248 } | |
| 9249 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9250 // for details. All rights reserved. Use of this source code is governed by a | |
| 9251 // BSD-style license that can be found in the LICENSE file. | |
| 9252 | |
| 9253 // WARNING: Do not edit - generated code. | |
| 9254 | |
| 9255 class EntryWrappingImplementation extends DOMWrapperBase implements Entry { | |
| 9256 EntryWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9257 | |
| 9258 DOMFileSystem get filesystem() { return LevelDom.wrapDOMFileSystem(_ptr.filesy
stem); } | |
| 9259 | |
| 9260 String get fullPath() { return _ptr.fullPath; } | |
| 9261 | |
| 9262 bool get isDirectory() { return _ptr.isDirectory; } | |
| 9263 | |
| 9264 bool get isFile() { return _ptr.isFile; } | |
| 9265 | |
| 9266 String get name() { return _ptr.name; } | |
| 9267 | |
| 9268 void copyTo(DirectoryEntry parent, [String name = null, EntryCallback successC
allback = null, ErrorCallback errorCallback = null]) { | |
| 9269 if (name === null) { | |
| 9270 if (successCallback === null) { | |
| 9271 if (errorCallback === null) { | |
| 9272 _ptr.copyTo(LevelDom.unwrap(parent)); | |
| 9273 return; | |
| 9274 } | |
| 9275 } | |
| 9276 } else { | |
| 9277 if (successCallback === null) { | |
| 9278 if (errorCallback === null) { | |
| 9279 _ptr.copyTo(LevelDom.unwrap(parent), name); | |
| 9280 return; | |
| 9281 } | |
| 9282 } else { | |
| 9283 if (errorCallback === null) { | |
| 9284 _ptr.copyTo(LevelDom.unwrap(parent), name, LevelDom.unwrap(successCall
back)); | |
| 9285 return; | |
| 9286 } else { | |
| 9287 _ptr.copyTo(LevelDom.unwrap(parent), name, LevelDom.unwrap(successCall
back), LevelDom.unwrap(errorCallback)); | |
| 9288 return; | |
| 9289 } | |
| 9290 } | |
| 9291 } | |
| 9292 throw "Incorrect number or type of arguments"; | |
| 9293 } | |
| 9294 | |
| 9295 void getMetadata([MetadataCallback successCallback = null, ErrorCallback error
Callback = null]) { | |
| 9296 if (successCallback === null) { | |
| 9297 if (errorCallback === null) { | |
| 9298 _ptr.getMetadata(); | |
| 9299 return; | |
| 9300 } | |
| 9301 } else { | |
| 9302 if (errorCallback === null) { | |
| 9303 _ptr.getMetadata(LevelDom.unwrap(successCallback)); | |
| 9304 return; | |
| 9305 } else { | |
| 9306 _ptr.getMetadata(LevelDom.unwrap(successCallback), LevelDom.unwrap(error
Callback)); | |
| 9307 return; | |
| 9308 } | |
| 9309 } | |
| 9310 throw "Incorrect number or type of arguments"; | |
| 9311 } | |
| 9312 | |
| 9313 void getParent([EntryCallback successCallback = null, ErrorCallback errorCallb
ack = null]) { | |
| 9314 if (successCallback === null) { | |
| 9315 if (errorCallback === null) { | |
| 9316 _ptr.getParent(); | |
| 9317 return; | |
| 9318 } | |
| 9319 } else { | |
| 9320 if (errorCallback === null) { | |
| 9321 _ptr.getParent(LevelDom.unwrap(successCallback)); | |
| 9322 return; | |
| 9323 } else { | |
| 9324 _ptr.getParent(LevelDom.unwrap(successCallback), LevelDom.unwrap(errorCa
llback)); | |
| 9325 return; | |
| 9326 } | |
| 9327 } | |
| 9328 throw "Incorrect number or type of arguments"; | |
| 9329 } | |
| 9330 | |
| 9331 void moveTo(DirectoryEntry parent, [String name = null, EntryCallback successC
allback = null, ErrorCallback errorCallback = null]) { | |
| 9332 if (name === null) { | |
| 9333 if (successCallback === null) { | |
| 9334 if (errorCallback === null) { | |
| 9335 _ptr.moveTo(LevelDom.unwrap(parent)); | |
| 9336 return; | |
| 9337 } | |
| 9338 } | |
| 9339 } else { | |
| 9340 if (successCallback === null) { | |
| 9341 if (errorCallback === null) { | |
| 9342 _ptr.moveTo(LevelDom.unwrap(parent), name); | |
| 9343 return; | |
| 9344 } | |
| 9345 } else { | |
| 9346 if (errorCallback === null) { | |
| 9347 _ptr.moveTo(LevelDom.unwrap(parent), name, LevelDom.unwrap(successCall
back)); | |
| 9348 return; | |
| 9349 } else { | |
| 9350 _ptr.moveTo(LevelDom.unwrap(parent), name, LevelDom.unwrap(successCall
back), LevelDom.unwrap(errorCallback)); | |
| 9351 return; | |
| 9352 } | |
| 9353 } | |
| 9354 } | |
| 9355 throw "Incorrect number or type of arguments"; | |
| 9356 } | |
| 9357 | |
| 9358 void remove([VoidCallback successCallback = null, ErrorCallback errorCallback
= null]) { | |
| 9359 if (successCallback === null) { | |
| 9360 if (errorCallback === null) { | |
| 9361 _ptr.remove(); | |
| 9362 return; | |
| 9363 } | |
| 9364 } else { | |
| 9365 if (errorCallback === null) { | |
| 9366 _ptr.remove(LevelDom.unwrap(successCallback)); | |
| 9367 return; | |
| 9368 } else { | |
| 9369 _ptr.remove(LevelDom.unwrap(successCallback), LevelDom.unwrap(errorCallb
ack)); | |
| 9370 return; | |
| 9371 } | |
| 9372 } | |
| 9373 throw "Incorrect number or type of arguments"; | |
| 9374 } | |
| 9375 | |
| 9376 String toURL() { | |
| 9377 return _ptr.toURL(); | |
| 9378 } | |
| 9379 } | |
| 9380 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9381 // for details. All rights reserved. Use of this source code is governed by a | |
| 9382 // BSD-style license that can be found in the LICENSE file. | |
| 9383 | |
| 9384 // WARNING: Do not edit - generated code. | |
| 9385 | |
| 9386 class ErrorCallbackWrappingImplementation extends DOMWrapperBase implements Erro
rCallback { | |
| 9387 ErrorCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9388 | |
| 9389 bool handleEvent(FileError error) { | |
| 9390 return _ptr.handleEvent(LevelDom.unwrap(error)); | |
| 9391 } | |
| 9392 } | |
| 9393 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9394 // for details. All rights reserved. Use of this source code is governed by a | |
| 9395 // BSD-style license that can be found in the LICENSE file. | |
| 9396 | |
| 9397 // WARNING: Do not edit - generated code. | |
| 9398 | |
| 9399 class EventExceptionWrappingImplementation extends DOMWrapperBase implements Eve
ntException { | |
| 9400 EventExceptionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9401 | |
| 9402 int get code() { return _ptr.code; } | |
| 9403 | |
| 9404 String get message() { return _ptr.message; } | |
| 9405 | |
| 9406 String get name() { return _ptr.name; } | |
| 9407 } | |
| 9408 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9409 // for details. All rights reserved. Use of this source code is governed by a | |
| 9410 // BSD-style license that can be found in the LICENSE file. | |
| 9411 | |
| 9412 // WARNING: Do not edit - generated code. | |
| 9413 | |
| 9414 class FieldSetElementWrappingImplementation extends ElementWrappingImplementatio
n implements FieldSetElement { | |
| 9415 FieldSetElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9416 | |
| 9417 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
| 9418 | |
| 9419 String get validationMessage() { return _ptr.validationMessage; } | |
| 9420 | |
| 9421 ValidityState get validity() { return LevelDom.wrapValidityState(_ptr.validity
); } | |
| 9422 | |
| 9423 bool get willValidate() { return _ptr.willValidate; } | |
| 9424 | |
| 9425 bool checkValidity() { | |
| 9426 return _ptr.checkValidity(); | |
| 9427 } | |
| 9428 | |
| 9429 void setCustomValidity(String error) { | |
| 9430 _ptr.setCustomValidity(error); | |
| 9431 return; | |
| 9432 } | |
| 9433 } | |
| 9434 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9435 // for details. All rights reserved. Use of this source code is governed by a | |
| 9436 // BSD-style license that can be found in the LICENSE file. | |
| 9437 | |
| 9438 // WARNING: Do not edit - generated code. | |
| 9439 | |
| 9440 class FileCallbackWrappingImplementation extends DOMWrapperBase implements FileC
allback { | |
| 9441 FileCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9442 | |
| 9443 bool handleEvent(File file) { | |
| 9444 return _ptr.handleEvent(LevelDom.unwrap(file)); | |
| 9445 } | |
| 9446 } | |
| 9447 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9448 // for details. All rights reserved. Use of this source code is governed by a | |
| 9449 // BSD-style license that can be found in the LICENSE file. | |
| 9450 | |
| 9451 // WARNING: Do not edit - generated code. | |
| 9452 | |
| 9453 class FileEntrySyncWrappingImplementation extends EntrySyncWrappingImplementatio
n implements FileEntrySync { | |
| 9454 FileEntrySyncWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9455 | |
| 9456 FileWriterSync createWriter() { | |
| 9457 return LevelDom.wrapFileWriterSync(_ptr.createWriter()); | |
| 9458 } | |
| 9459 | |
| 9460 File file() { | |
| 9461 return LevelDom.wrapFile(_ptr.file()); | |
| 9462 } | |
| 9463 } | |
| 9464 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9465 // for details. All rights reserved. Use of this source code is governed by a | |
| 9466 // BSD-style license that can be found in the LICENSE file. | |
| 9467 | |
| 9468 // WARNING: Do not edit - generated code. | |
| 9469 | |
| 9470 class FileEntryWrappingImplementation extends EntryWrappingImplementation implem
ents FileEntry { | |
| 9471 FileEntryWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9472 | |
| 9473 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall
back = null]) { | |
| 9474 if (errorCallback === null) { | |
| 9475 _ptr.createWriter(LevelDom.unwrap(successCallback)); | |
| 9476 return; | |
| 9477 } else { | |
| 9478 _ptr.createWriter(LevelDom.unwrap(successCallback), LevelDom.unwrap(errorC
allback)); | |
| 9479 return; | |
| 9480 } | |
| 9481 } | |
| 9482 | |
| 9483 void file(FileCallback successCallback, [ErrorCallback errorCallback = null])
{ | |
| 9484 if (errorCallback === null) { | |
| 9485 _ptr.file(LevelDom.unwrap(successCallback)); | |
| 9486 return; | |
| 9487 } else { | |
| 9488 _ptr.file(LevelDom.unwrap(successCallback), LevelDom.unwrap(errorCallback)
); | |
| 9489 return; | |
| 9490 } | |
| 9491 } | |
| 9492 } | |
| 9493 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9494 // for details. All rights reserved. Use of this source code is governed by a | |
| 9495 // BSD-style license that can be found in the LICENSE file. | |
| 9496 | |
| 9497 // WARNING: Do not edit - generated code. | |
| 9498 | |
| 9499 class FileErrorWrappingImplementation extends DOMWrapperBase implements FileErro
r { | |
| 9500 FileErrorWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9501 | |
| 9502 int get code() { return _ptr.code; } | |
| 9503 } | |
| 9504 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9505 // for details. All rights reserved. Use of this source code is governed by a | |
| 9506 // BSD-style license that can be found in the LICENSE file. | |
| 9507 | |
| 9508 // WARNING: Do not edit - generated code. | |
| 9509 | |
| 9510 class FileExceptionWrappingImplementation extends DOMWrapperBase implements File
Exception { | |
| 9511 FileExceptionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9512 | |
| 9513 int get code() { return _ptr.code; } | |
| 9514 | |
| 9515 String get message() { return _ptr.message; } | |
| 9516 | |
| 9517 String get name() { return _ptr.name; } | |
| 9518 } | |
| 9519 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9520 // for details. All rights reserved. Use of this source code is governed by a | |
| 9521 // BSD-style license that can be found in the LICENSE file. | |
| 9522 | |
| 9523 // WARNING: Do not edit - generated code. | |
| 9524 | |
| 9525 class FileListWrappingImplementation extends DOMWrapperBase implements FileList
{ | |
| 9526 FileListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9527 | |
| 9528 int get length() { return _ptr.length; } | |
| 9529 | |
| 9530 File item(int index) { | |
| 9531 return LevelDom.wrapFile(_ptr.item(index)); | |
| 9532 } | |
| 9533 } | |
| 9534 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9535 // for details. All rights reserved. Use of this source code is governed by a | |
| 9536 // BSD-style license that can be found in the LICENSE file. | |
| 9537 | |
| 9538 // WARNING: Do not edit - generated code. | |
| 9539 | |
| 9540 class FileReaderSyncWrappingImplementation extends DOMWrapperBase implements Fil
eReaderSync { | |
| 9541 FileReaderSyncWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9542 | |
| 9543 ArrayBuffer readAsArrayBuffer(Blob blob) { | |
| 9544 return LevelDom.wrapArrayBuffer(_ptr.readAsArrayBuffer(LevelDom.unwrap(blob)
)); | |
| 9545 } | |
| 9546 | |
| 9547 String readAsBinaryString(Blob blob) { | |
| 9548 return _ptr.readAsBinaryString(LevelDom.unwrap(blob)); | |
| 9549 } | |
| 9550 | |
| 9551 String readAsDataURL(Blob blob) { | |
| 9552 return _ptr.readAsDataURL(LevelDom.unwrap(blob)); | |
| 9553 } | |
| 9554 | |
| 9555 String readAsText(Blob blob, [String encoding = null]) { | |
| 9556 if (encoding === null) { | |
| 9557 return _ptr.readAsText(LevelDom.unwrap(blob)); | |
| 9558 } else { | |
| 9559 return _ptr.readAsText(LevelDom.unwrap(blob), encoding); | |
| 9560 } | |
| 9561 } | |
| 9562 } | |
| 9563 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9564 // for details. All rights reserved. Use of this source code is governed by a | |
| 9565 // BSD-style license that can be found in the LICENSE file. | |
| 9566 | |
| 9567 // WARNING: Do not edit - generated code. | |
| 9568 | |
| 9569 class FileReaderWrappingImplementation extends DOMWrapperBase implements FileRea
der { | |
| 9570 FileReaderWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9571 | |
| 9572 FileError get error() { return LevelDom.wrapFileError(_ptr.error); } | |
| 9573 | |
| 9574 EventListener get onabort() { return LevelDom.wrapEventListener(_ptr.onabort);
} | |
| 9575 | |
| 9576 void set onabort(EventListener value) { _ptr.onabort = LevelDom.unwrap(value);
} | |
| 9577 | |
| 9578 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror);
} | |
| 9579 | |
| 9580 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value);
} | |
| 9581 | |
| 9582 EventListener get onload() { return LevelDom.wrapEventListener(_ptr.onload); } | |
| 9583 | |
| 9584 void set onload(EventListener value) { _ptr.onload = LevelDom.unwrap(value); } | |
| 9585 | |
| 9586 EventListener get onloadend() { return LevelDom.wrapEventListener(_ptr.onloade
nd); } | |
| 9587 | |
| 9588 void set onloadend(EventListener value) { _ptr.onloadend = LevelDom.unwrap(val
ue); } | |
| 9589 | |
| 9590 EventListener get onloadstart() { return LevelDom.wrapEventListener(_ptr.onloa
dstart); } | |
| 9591 | |
| 9592 void set onloadstart(EventListener value) { _ptr.onloadstart = LevelDom.unwrap
(value); } | |
| 9593 | |
| 9594 EventListener get onprogress() { return LevelDom.wrapEventListener(_ptr.onprog
ress); } | |
| 9595 | |
| 9596 void set onprogress(EventListener value) { _ptr.onprogress = LevelDom.unwrap(v
alue); } | |
| 9597 | |
| 9598 int get readyState() { return _ptr.readyState; } | |
| 9599 | |
| 9600 String get result() { return _ptr.result; } | |
| 9601 | |
| 9602 void abort() { | |
| 9603 _ptr.abort(); | |
| 9604 return; | |
| 9605 } | |
| 9606 | |
| 9607 void readAsArrayBuffer(Blob blob) { | |
| 9608 _ptr.readAsArrayBuffer(LevelDom.unwrap(blob)); | |
| 9609 return; | |
| 9610 } | |
| 9611 | |
| 9612 void readAsBinaryString(Blob blob) { | |
| 9613 _ptr.readAsBinaryString(LevelDom.unwrap(blob)); | |
| 9614 return; | |
| 9615 } | |
| 9616 | |
| 9617 void readAsDataURL(Blob blob) { | |
| 9618 _ptr.readAsDataURL(LevelDom.unwrap(blob)); | |
| 9619 return; | |
| 9620 } | |
| 9621 | |
| 9622 void readAsText(Blob blob, [String encoding = null]) { | |
| 9623 if (encoding === null) { | |
| 9624 _ptr.readAsText(LevelDom.unwrap(blob)); | |
| 9625 return; | |
| 9626 } else { | |
| 9627 _ptr.readAsText(LevelDom.unwrap(blob), encoding); | |
| 9628 return; | |
| 9629 } | |
| 9630 } | |
| 9631 } | |
| 9632 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9633 // for details. All rights reserved. Use of this source code is governed by a | |
| 9634 // BSD-style license that can be found in the LICENSE file. | |
| 9635 | |
| 9636 // WARNING: Do not edit - generated code. | |
| 9637 | |
| 9638 class FileSystemCallbackWrappingImplementation extends DOMWrapperBase implements
FileSystemCallback { | |
| 9639 FileSystemCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9640 | |
| 9641 bool handleEvent(DOMFileSystem fileSystem) { | |
| 9642 return _ptr.handleEvent(LevelDom.unwrap(fileSystem)); | |
| 9643 } | |
| 9644 } | |
| 9645 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9646 // for details. All rights reserved. Use of this source code is governed by a | |
| 9647 // BSD-style license that can be found in the LICENSE file. | |
| 9648 | |
| 9649 // WARNING: Do not edit - generated code. | |
| 9650 | |
| 9651 class FileWrappingImplementation extends BlobWrappingImplementation implements F
ile { | |
| 9652 FileWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9653 | |
| 9654 String get fileName() { return _ptr.fileName; } | |
| 9655 | |
| 9656 int get fileSize() { return _ptr.fileSize; } | |
| 9657 | |
| 9658 Date get lastModifiedDate() { return _ptr.lastModifiedDate; } | |
| 9659 | |
| 9660 String get name() { return _ptr.name; } | |
| 9661 } | |
| 9662 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9663 // for details. All rights reserved. Use of this source code is governed by a | |
| 9664 // BSD-style license that can be found in the LICENSE file. | |
| 9665 | |
| 9666 // WARNING: Do not edit - generated code. | |
| 9667 | |
| 9668 class FileWriterCallbackWrappingImplementation extends DOMWrapperBase implements
FileWriterCallback { | |
| 9669 FileWriterCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9670 | |
| 9671 bool handleEvent(FileWriter fileWriter) { | |
| 9672 return _ptr.handleEvent(LevelDom.unwrap(fileWriter)); | |
| 9673 } | |
| 9674 } | |
| 9675 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9676 // for details. All rights reserved. Use of this source code is governed by a | |
| 9677 // BSD-style license that can be found in the LICENSE file. | |
| 9678 | |
| 9679 // WARNING: Do not edit - generated code. | |
| 9680 | |
| 9681 class FileWriterSyncWrappingImplementation extends DOMWrapperBase implements Fil
eWriterSync { | |
| 9682 FileWriterSyncWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9683 | |
| 9684 int get length() { return _ptr.length; } | |
| 9685 | |
| 9686 int get position() { return _ptr.position; } | |
| 9687 | |
| 9688 void seek(int position) { | |
| 9689 _ptr.seek(position); | |
| 9690 return; | |
| 9691 } | |
| 9692 | |
| 9693 void truncate(int size) { | |
| 9694 _ptr.truncate(size); | |
| 9695 return; | |
| 9696 } | |
| 9697 | |
| 9698 void write(Blob data) { | |
| 9699 _ptr.write(LevelDom.unwrap(data)); | |
| 9700 return; | |
| 9701 } | |
| 9702 } | |
| 9703 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9704 // for details. All rights reserved. Use of this source code is governed by a | |
| 9705 // BSD-style license that can be found in the LICENSE file. | |
| 9706 | |
| 9707 // WARNING: Do not edit - generated code. | |
| 9708 | |
| 9709 class FileWriterWrappingImplementation extends DOMWrapperBase implements FileWri
ter { | |
| 9710 FileWriterWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9711 | |
| 9712 FileError get error() { return LevelDom.wrapFileError(_ptr.error); } | |
| 9713 | |
| 9714 int get length() { return _ptr.length; } | |
| 9715 | |
| 9716 EventListener get onabort() { return LevelDom.wrapEventListener(_ptr.onabort);
} | |
| 9717 | |
| 9718 void set onabort(EventListener value) { _ptr.onabort = LevelDom.unwrap(value);
} | |
| 9719 | |
| 9720 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror);
} | |
| 9721 | |
| 9722 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value);
} | |
| 9723 | |
| 9724 EventListener get onprogress() { return LevelDom.wrapEventListener(_ptr.onprog
ress); } | |
| 9725 | |
| 9726 void set onprogress(EventListener value) { _ptr.onprogress = LevelDom.unwrap(v
alue); } | |
| 9727 | |
| 9728 EventListener get onwrite() { return LevelDom.wrapEventListener(_ptr.onwrite);
} | |
| 9729 | |
| 9730 void set onwrite(EventListener value) { _ptr.onwrite = LevelDom.unwrap(value);
} | |
| 9731 | |
| 9732 EventListener get onwriteend() { return LevelDom.wrapEventListener(_ptr.onwrit
eend); } | |
| 9733 | |
| 9734 void set onwriteend(EventListener value) { _ptr.onwriteend = LevelDom.unwrap(v
alue); } | |
| 9735 | |
| 9736 EventListener get onwritestart() { return LevelDom.wrapEventListener(_ptr.onwr
itestart); } | |
| 9737 | |
| 9738 void set onwritestart(EventListener value) { _ptr.onwritestart = LevelDom.unwr
ap(value); } | |
| 9739 | |
| 9740 int get position() { return _ptr.position; } | |
| 9741 | |
| 9742 int get readyState() { return _ptr.readyState; } | |
| 9743 | |
| 9744 void abort() { | |
| 9745 _ptr.abort(); | |
| 9746 return; | |
| 9747 } | |
| 9748 | |
| 9749 void seek(int position) { | |
| 9750 _ptr.seek(position); | |
| 9751 return; | |
| 9752 } | |
| 9753 | |
| 9754 void truncate(int size) { | |
| 9755 _ptr.truncate(size); | |
| 9756 return; | |
| 9757 } | |
| 9758 | |
| 9759 void write(Blob data) { | |
| 9760 _ptr.write(LevelDom.unwrap(data)); | |
| 9761 return; | |
| 9762 } | |
| 9763 } | |
| 9764 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9765 // for details. All rights reserved. Use of this source code is governed by a | |
| 9766 // BSD-style license that can be found in the LICENSE file. | |
| 9767 | |
| 9768 // WARNING: Do not edit - generated code. | |
| 9769 | |
| 9770 class FlagsWrappingImplementation extends DOMWrapperBase implements Flags { | |
| 9771 FlagsWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9772 | |
| 9773 bool get create() { return _ptr.create; } | |
| 9774 | |
| 9775 void set create(bool value) { _ptr.create = value; } | |
| 9776 | |
| 9777 bool get exclusive() { return _ptr.exclusive; } | |
| 9778 | |
| 9779 void set exclusive(bool value) { _ptr.exclusive = value; } | |
| 9780 } | |
| 9781 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9782 // for details. All rights reserved. Use of this source code is governed by a | |
| 9783 // BSD-style license that can be found in the LICENSE file. | |
| 9784 | |
| 9785 // WARNING: Do not edit - generated code. | |
| 9786 | |
| 9787 class Float32ArrayWrappingImplementation extends ArrayBufferViewWrappingImplemen
tation implements Float32Array { | |
| 9788 Float32ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9789 | |
| 9790 int get length() { return _ptr.length; } | |
| 9791 | |
| 9792 Float32Array subarray(int start, [int end = null]) { | |
| 9793 if (end === null) { | |
| 9794 return LevelDom.wrapFloat32Array(_ptr.subarray(start)); | |
| 9795 } else { | |
| 9796 return LevelDom.wrapFloat32Array(_ptr.subarray(start, end)); | |
| 9797 } | |
| 9798 } | |
| 9799 } | |
| 9800 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9801 // for details. All rights reserved. Use of this source code is governed by a | |
| 9802 // BSD-style license that can be found in the LICENSE file. | |
| 9803 | |
| 9804 // WARNING: Do not edit - generated code. | |
| 9805 | |
| 9806 class Float64ArrayWrappingImplementation extends ArrayBufferViewWrappingImplemen
tation implements Float64Array { | |
| 9807 Float64ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9808 | |
| 9809 int get length() { return _ptr.length; } | |
| 9810 | |
| 9811 Float64Array subarray(int start, [int end = null]) { | |
| 9812 if (end === null) { | |
| 9813 return LevelDom.wrapFloat64Array(_ptr.subarray(start)); | |
| 9814 } else { | |
| 9815 return LevelDom.wrapFloat64Array(_ptr.subarray(start, end)); | |
| 9816 } | |
| 9817 } | |
| 9818 } | |
| 9819 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9820 // for details. All rights reserved. Use of this source code is governed by a | |
| 9821 // BSD-style license that can be found in the LICENSE file. | |
| 9822 | |
| 9823 // WARNING: Do not edit - generated code. | |
| 9824 | |
| 9825 class FontElementWrappingImplementation extends ElementWrappingImplementation im
plements FontElement { | |
| 9826 FontElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9827 | |
| 9828 String get color() { return _ptr.color; } | |
| 9829 | |
| 9830 void set color(String value) { _ptr.color = value; } | |
| 9831 | |
| 9832 String get face() { return _ptr.face; } | |
| 9833 | |
| 9834 void set face(String value) { _ptr.face = value; } | |
| 9835 | |
| 9836 String get size() { return _ptr.size; } | |
| 9837 | |
| 9838 void set size(String value) { _ptr.size = value; } | |
| 9839 } | |
| 9840 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9841 // for details. All rights reserved. Use of this source code is governed by a | |
| 9842 // BSD-style license that can be found in the LICENSE file. | |
| 9843 | |
| 9844 // WARNING: Do not edit - generated code. | |
| 9845 | |
| 9846 class FormElementWrappingImplementation extends ElementWrappingImplementation im
plements FormElement { | |
| 9847 FormElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9848 | |
| 9849 String get acceptCharset() { return _ptr.acceptCharset; } | |
| 9850 | |
| 9851 void set acceptCharset(String value) { _ptr.acceptCharset = value; } | |
| 9852 | |
| 9853 String get action() { return _ptr.action; } | |
| 9854 | |
| 9855 void set action(String value) { _ptr.action = value; } | |
| 9856 | |
| 9857 String get autocomplete() { return _ptr.autocomplete; } | |
| 9858 | |
| 9859 void set autocomplete(String value) { _ptr.autocomplete = value; } | |
| 9860 | |
| 9861 String get encoding() { return _ptr.encoding; } | |
| 9862 | |
| 9863 void set encoding(String value) { _ptr.encoding = value; } | |
| 9864 | |
| 9865 String get enctype() { return _ptr.enctype; } | |
| 9866 | |
| 9867 void set enctype(String value) { _ptr.enctype = value; } | |
| 9868 | |
| 9869 int get length() { return _ptr.length; } | |
| 9870 | |
| 9871 String get method() { return _ptr.method; } | |
| 9872 | |
| 9873 void set method(String value) { _ptr.method = value; } | |
| 9874 | |
| 9875 String get name() { return _ptr.name; } | |
| 9876 | |
| 9877 void set name(String value) { _ptr.name = value; } | |
| 9878 | |
| 9879 bool get noValidate() { return _ptr.noValidate; } | |
| 9880 | |
| 9881 void set noValidate(bool value) { _ptr.noValidate = value; } | |
| 9882 | |
| 9883 String get target() { return _ptr.target; } | |
| 9884 | |
| 9885 void set target(String value) { _ptr.target = value; } | |
| 9886 | |
| 9887 bool checkValidity() { | |
| 9888 return _ptr.checkValidity(); | |
| 9889 } | |
| 9890 | |
| 9891 void reset() { | |
| 9892 _ptr.reset(); | |
| 9893 return; | |
| 9894 } | |
| 9895 | |
| 9896 void submit() { | |
| 9897 _ptr.submit(); | |
| 9898 return; | |
| 9899 } | |
| 9900 } | |
| 9901 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9902 // for details. All rights reserved. Use of this source code is governed by a | |
| 9903 // BSD-style license that can be found in the LICENSE file. | |
| 9904 | |
| 9905 // WARNING: Do not edit - generated code. | |
| 9906 | |
| 9907 class GeolocationWrappingImplementation extends DOMWrapperBase implements Geoloc
ation { | |
| 9908 GeolocationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9909 | |
| 9910 void clearWatch(int watchId) { | |
| 9911 _ptr.clearWatch(watchId); | |
| 9912 return; | |
| 9913 } | |
| 9914 | |
| 9915 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback = null]) { | |
| 9916 if (errorCallback === null) { | |
| 9917 _ptr.getCurrentPosition(LevelDom.unwrap(successCallback)); | |
| 9918 return; | |
| 9919 } else { | |
| 9920 _ptr.getCurrentPosition(LevelDom.unwrap(successCallback), LevelDom.unwrap(
errorCallback)); | |
| 9921 return; | |
| 9922 } | |
| 9923 } | |
| 9924 | |
| 9925 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback = null]) { | |
| 9926 if (errorCallback === null) { | |
| 9927 return _ptr.watchPosition(LevelDom.unwrap(successCallback)); | |
| 9928 } else { | |
| 9929 return _ptr.watchPosition(LevelDom.unwrap(successCallback), LevelDom.unwra
p(errorCallback)); | |
| 9930 } | |
| 9931 } | |
| 9932 } | |
| 9933 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9934 // for details. All rights reserved. Use of this source code is governed by a | |
| 9935 // BSD-style license that can be found in the LICENSE file. | |
| 9936 | |
| 9937 // WARNING: Do not edit - generated code. | |
| 9938 | |
| 9939 class GeopositionWrappingImplementation extends DOMWrapperBase implements Geopos
ition { | |
| 9940 GeopositionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9941 | |
| 9942 Coordinates get coords() { return LevelDom.wrapCoordinates(_ptr.coords); } | |
| 9943 | |
| 9944 int get timestamp() { return _ptr.timestamp; } | |
| 9945 } | |
| 9946 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9947 // for details. All rights reserved. Use of this source code is governed by a | |
| 9948 // BSD-style license that can be found in the LICENSE file. | |
| 9949 | |
| 9950 // WARNING: Do not edit - generated code. | |
| 9951 | |
| 9952 class HRElementWrappingImplementation extends ElementWrappingImplementation impl
ements HRElement { | |
| 9953 HRElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9954 | |
| 9955 String get align() { return _ptr.align; } | |
| 9956 | |
| 9957 void set align(String value) { _ptr.align = value; } | |
| 9958 | |
| 9959 bool get noShade() { return _ptr.noShade; } | |
| 9960 | |
| 9961 void set noShade(bool value) { _ptr.noShade = value; } | |
| 9962 | |
| 9963 String get size() { return _ptr.size; } | |
| 9964 | |
| 9965 void set size(String value) { _ptr.size = value; } | |
| 9966 | |
| 9967 String get width() { return _ptr.width; } | |
| 9968 | |
| 9969 void set width(String value) { _ptr.width = value; } | |
| 9970 } | |
| 9971 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9972 // for details. All rights reserved. Use of this source code is governed by a | |
| 9973 // BSD-style license that can be found in the LICENSE file. | |
| 9974 | |
| 9975 // WARNING: Do not edit - generated code. | |
| 9976 | |
| 9977 class HTMLAllCollectionWrappingImplementation extends DOMWrapperBase implements
HTMLAllCollection { | |
| 9978 HTMLAllCollectionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9979 | |
| 9980 int get length() { return _ptr.length; } | |
| 9981 | |
| 9982 Node item(int index) { | |
| 9983 return LevelDom.wrapNode(_ptr.item(index)); | |
| 9984 } | |
| 9985 | |
| 9986 Node namedItem(String name) { | |
| 9987 return LevelDom.wrapNode(_ptr.namedItem(name)); | |
| 9988 } | |
| 9989 | |
| 9990 ElementList tags(String name) { | |
| 9991 return LevelDom.wrapElementList(_ptr.tags(name)); | |
| 9992 } | |
| 9993 } | |
| 9994 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 9995 // for details. All rights reserved. Use of this source code is governed by a | |
| 9996 // BSD-style license that can be found in the LICENSE file. | |
| 9997 | |
| 9998 // WARNING: Do not edit - generated code. | |
| 9999 | |
| 10000 class HeadElementWrappingImplementation extends ElementWrappingImplementation im
plements HeadElement { | |
| 10001 HeadElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10002 | |
| 10003 String get profile() { return _ptr.profile; } | |
| 10004 | |
| 10005 void set profile(String value) { _ptr.profile = value; } | |
| 10006 } | |
| 10007 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10008 // for details. All rights reserved. Use of this source code is governed by a | |
| 10009 // BSD-style license that can be found in the LICENSE file. | |
| 10010 | |
| 10011 // WARNING: Do not edit - generated code. | |
| 10012 | |
| 10013 class HeadingElementWrappingImplementation extends ElementWrappingImplementation
implements HeadingElement { | |
| 10014 HeadingElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10015 | |
| 10016 String get align() { return _ptr.align; } | |
| 10017 | |
| 10018 void set align(String value) { _ptr.align = value; } | |
| 10019 } | |
| 10020 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10021 // for details. All rights reserved. Use of this source code is governed by a | |
| 10022 // BSD-style license that can be found in the LICENSE file. | |
| 10023 | |
| 10024 // WARNING: Do not edit - generated code. | |
| 10025 | |
| 10026 class HistoryWrappingImplementation extends DOMWrapperBase implements History { | |
| 10027 HistoryWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10028 | |
| 10029 int get length() { return _ptr.length; } | |
| 10030 | |
| 10031 void back() { | |
| 10032 _ptr.back(); | |
| 10033 return; | |
| 10034 } | |
| 10035 | |
| 10036 void forward() { | |
| 10037 _ptr.forward(); | |
| 10038 return; | |
| 10039 } | |
| 10040 | |
| 10041 void go(int distance) { | |
| 10042 _ptr.go(distance); | |
| 10043 return; | |
| 10044 } | |
| 10045 | |
| 10046 void pushState(Object data, String title, [String url = null]) { | |
| 10047 if (url === null) { | |
| 10048 _ptr.pushState(LevelDom.unwrapMaybePrimitive(data), title); | |
| 10049 return; | |
| 10050 } else { | |
| 10051 _ptr.pushState(LevelDom.unwrapMaybePrimitive(data), title, url); | |
| 10052 return; | |
| 10053 } | |
| 10054 } | |
| 10055 | |
| 10056 void replaceState(Object data, String title, [String url = null]) { | |
| 10057 if (url === null) { | |
| 10058 _ptr.replaceState(LevelDom.unwrapMaybePrimitive(data), title); | |
| 10059 return; | |
| 10060 } else { | |
| 10061 _ptr.replaceState(LevelDom.unwrapMaybePrimitive(data), title, url); | |
| 10062 return; | |
| 10063 } | |
| 10064 } | |
| 10065 } | |
| 10066 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10067 // for details. All rights reserved. Use of this source code is governed by a | |
| 10068 // BSD-style license that can be found in the LICENSE file. | |
| 10069 | |
| 10070 // WARNING: Do not edit - generated code. | |
| 10071 | |
| 10072 class HtmlElementWrappingImplementation extends ElementWrappingImplementation im
plements HtmlElement { | |
| 10073 HtmlElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10074 | |
| 10075 String get manifest() { return _ptr.manifest; } | |
| 10076 | |
| 10077 void set manifest(String value) { _ptr.manifest = value; } | |
| 10078 | |
| 10079 String get version() { return _ptr.version; } | |
| 10080 | |
| 10081 void set version(String value) { _ptr.version = value; } | |
| 10082 } | |
| 10083 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10084 // for details. All rights reserved. Use of this source code is governed by a | |
| 10085 // BSD-style license that can be found in the LICENSE file. | |
| 10086 | |
| 10087 // WARNING: Do not edit - generated code. | |
| 10088 | |
| 10089 class IDBAnyWrappingImplementation extends DOMWrapperBase implements IDBAny { | |
| 10090 IDBAnyWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10091 } | |
| 10092 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10093 // for details. All rights reserved. Use of this source code is governed by a | |
| 10094 // BSD-style license that can be found in the LICENSE file. | |
| 10095 | |
| 10096 // WARNING: Do not edit - generated code. | |
| 10097 | |
| 10098 class IDBCursorWithValueWrappingImplementation extends IDBCursorWrappingImplemen
tation implements IDBCursorWithValue { | |
| 10099 IDBCursorWithValueWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10100 | |
| 10101 String get value() { return _ptr.value; } | |
| 10102 } | |
| 10103 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10104 // for details. All rights reserved. Use of this source code is governed by a | |
| 10105 // BSD-style license that can be found in the LICENSE file. | |
| 10106 | |
| 10107 // WARNING: Do not edit - generated code. | |
| 10108 | |
| 10109 class IDBCursorWrappingImplementation extends DOMWrapperBase implements IDBCurso
r { | |
| 10110 IDBCursorWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10111 | |
| 10112 int get direction() { return _ptr.direction; } | |
| 10113 | |
| 10114 IDBKey get key() { return LevelDom.wrapIDBKey(_ptr.key); } | |
| 10115 | |
| 10116 IDBKey get primaryKey() { return LevelDom.wrapIDBKey(_ptr.primaryKey); } | |
| 10117 | |
| 10118 IDBAny get source() { return LevelDom.wrapIDBAny(_ptr.source); } | |
| 10119 | |
| 10120 void continueFunction([IDBKey key = null]) { | |
| 10121 if (key === null) { | |
| 10122 _ptr.continueFunction(); | |
| 10123 return; | |
| 10124 } else { | |
| 10125 _ptr.continueFunction(LevelDom.unwrap(key)); | |
| 10126 return; | |
| 10127 } | |
| 10128 } | |
| 10129 | |
| 10130 IDBRequest delete() { | |
| 10131 return LevelDom.wrapIDBRequest(_ptr.delete()); | |
| 10132 } | |
| 10133 | |
| 10134 IDBRequest update(String value) { | |
| 10135 return LevelDom.wrapIDBRequest(_ptr.update(value)); | |
| 10136 } | |
| 10137 } | |
| 10138 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10139 // for details. All rights reserved. Use of this source code is governed by a | |
| 10140 // BSD-style license that can be found in the LICENSE file. | |
| 10141 | |
| 10142 // WARNING: Do not edit - generated code. | |
| 10143 | |
| 10144 class IDBDatabaseErrorWrappingImplementation extends DOMWrapperBase implements I
DBDatabaseError { | |
| 10145 IDBDatabaseErrorWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10146 | |
| 10147 int get code() { return _ptr.code; } | |
| 10148 | |
| 10149 void set code(int value) { _ptr.code = value; } | |
| 10150 | |
| 10151 String get message() { return _ptr.message; } | |
| 10152 | |
| 10153 void set message(String value) { _ptr.message = value; } | |
| 10154 } | |
| 10155 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10156 // for details. All rights reserved. Use of this source code is governed by a | |
| 10157 // BSD-style license that can be found in the LICENSE file. | |
| 10158 | |
| 10159 // WARNING: Do not edit - generated code. | |
| 10160 | |
| 10161 class IDBDatabaseExceptionWrappingImplementation extends DOMWrapperBase implemen
ts IDBDatabaseException { | |
| 10162 IDBDatabaseExceptionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10163 | |
| 10164 int get code() { return _ptr.code; } | |
| 10165 | |
| 10166 String get message() { return _ptr.message; } | |
| 10167 | |
| 10168 String get name() { return _ptr.name; } | |
| 10169 } | |
| 10170 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10171 // for details. All rights reserved. Use of this source code is governed by a | |
| 10172 // BSD-style license that can be found in the LICENSE file. | |
| 10173 | |
| 10174 // WARNING: Do not edit - generated code. | |
| 10175 | |
| 10176 class IDBDatabaseWrappingImplementation extends DOMWrapperBase implements IDBDat
abase { | |
| 10177 IDBDatabaseWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10178 | |
| 10179 String get name() { return _ptr.name; } | |
| 10180 | |
| 10181 EventListener get onabort() { return LevelDom.wrapEventListener(_ptr.onabort);
} | |
| 10182 | |
| 10183 void set onabort(EventListener value) { _ptr.onabort = LevelDom.unwrap(value);
} | |
| 10184 | |
| 10185 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror);
} | |
| 10186 | |
| 10187 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value);
} | |
| 10188 | |
| 10189 EventListener get onversionchange() { return LevelDom.wrapEventListener(_ptr.o
nversionchange); } | |
| 10190 | |
| 10191 void set onversionchange(EventListener value) { _ptr.onversionchange = LevelDo
m.unwrap(value); } | |
| 10192 | |
| 10193 String get version() { return _ptr.version; } | |
| 10194 | |
| 10195 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
| 10196 if (useCapture === null) { | |
| 10197 _ptr.addEventListener(type, LevelDom.unwrap(listener)); | |
| 10198 return; | |
| 10199 } else { | |
| 10200 _ptr.addEventListener(type, LevelDom.unwrap(listener), useCapture); | |
| 10201 return; | |
| 10202 } | |
| 10203 } | |
| 10204 | |
| 10205 void close() { | |
| 10206 _ptr.close(); | |
| 10207 return; | |
| 10208 } | |
| 10209 | |
| 10210 IDBObjectStore createObjectStore(String name) { | |
| 10211 return LevelDom.wrapIDBObjectStore(_ptr.createObjectStore(name)); | |
| 10212 } | |
| 10213 | |
| 10214 void deleteObjectStore(String name) { | |
| 10215 _ptr.deleteObjectStore(name); | |
| 10216 return; | |
| 10217 } | |
| 10218 | |
| 10219 bool dispatchEvent(Event evt) { | |
| 10220 return _ptr.dispatchEvent(LevelDom.unwrap(evt)); | |
| 10221 } | |
| 10222 | |
| 10223 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
| 10224 if (useCapture === null) { | |
| 10225 _ptr.removeEventListener(type, LevelDom.unwrap(listener)); | |
| 10226 return; | |
| 10227 } else { | |
| 10228 _ptr.removeEventListener(type, LevelDom.unwrap(listener), useCapture); | |
| 10229 return; | |
| 10230 } | |
| 10231 } | |
| 10232 | |
| 10233 IDBVersionChangeRequest setVersion(String version) { | |
| 10234 return LevelDom.wrapIDBVersionChangeRequest(_ptr.setVersion(version)); | |
| 10235 } | |
| 10236 } | |
| 10237 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10238 // for details. All rights reserved. Use of this source code is governed by a | |
| 10239 // BSD-style license that can be found in the LICENSE file. | |
| 10240 | |
| 10241 // WARNING: Do not edit - generated code. | |
| 10242 | |
| 10243 class IDBFactoryWrappingImplementation extends DOMWrapperBase implements IDBFact
ory { | |
| 10244 IDBFactoryWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10245 | |
| 10246 IDBRequest getDatabaseNames() { | |
| 10247 return LevelDom.wrapIDBRequest(_ptr.getDatabaseNames()); | |
| 10248 } | |
| 10249 | |
| 10250 IDBRequest open(String name) { | |
| 10251 return LevelDom.wrapIDBRequest(_ptr.open(name)); | |
| 10252 } | |
| 10253 } | |
| 10254 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10255 // for details. All rights reserved. Use of this source code is governed by a | |
| 10256 // BSD-style license that can be found in the LICENSE file. | |
| 10257 | |
| 10258 // WARNING: Do not edit - generated code. | |
| 10259 | |
| 10260 class IDBIndexWrappingImplementation extends DOMWrapperBase implements IDBIndex
{ | |
| 10261 IDBIndexWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10262 | |
| 10263 String get keyPath() { return _ptr.keyPath; } | |
| 10264 | |
| 10265 String get name() { return _ptr.name; } | |
| 10266 | |
| 10267 IDBObjectStore get objectStore() { return LevelDom.wrapIDBObjectStore(_ptr.obj
ectStore); } | |
| 10268 | |
| 10269 bool get unique() { return _ptr.unique; } | |
| 10270 | |
| 10271 IDBRequest getObject(IDBKey key) { | |
| 10272 return LevelDom.wrapIDBRequest(_ptr.getObject(LevelDom.unwrap(key))); | |
| 10273 } | |
| 10274 | |
| 10275 IDBRequest getKey(IDBKey key) { | |
| 10276 return LevelDom.wrapIDBRequest(_ptr.getKey(LevelDom.unwrap(key))); | |
| 10277 } | |
| 10278 | |
| 10279 IDBRequest openCursor([IDBKeyRange range = null, int direction = null]) { | |
| 10280 if (range === null) { | |
| 10281 if (direction === null) { | |
| 10282 return LevelDom.wrapIDBRequest(_ptr.openCursor()); | |
| 10283 } | |
| 10284 } else { | |
| 10285 if (direction === null) { | |
| 10286 return LevelDom.wrapIDBRequest(_ptr.openCursor(LevelDom.unwrap(range))); | |
| 10287 } else { | |
| 10288 return LevelDom.wrapIDBRequest(_ptr.openCursor(LevelDom.unwrap(range), d
irection)); | |
| 10289 } | |
| 10290 } | |
| 10291 throw "Incorrect number or type of arguments"; | |
| 10292 } | |
| 10293 | |
| 10294 IDBRequest openKeyCursor([IDBKeyRange range = null, int direction = null]) { | |
| 10295 if (range === null) { | |
| 10296 if (direction === null) { | |
| 10297 return LevelDom.wrapIDBRequest(_ptr.openKeyCursor()); | |
| 10298 } | |
| 10299 } else { | |
| 10300 if (direction === null) { | |
| 10301 return LevelDom.wrapIDBRequest(_ptr.openKeyCursor(LevelDom.unwrap(range)
)); | |
| 10302 } else { | |
| 10303 return LevelDom.wrapIDBRequest(_ptr.openKeyCursor(LevelDom.unwrap(range)
, direction)); | |
| 10304 } | |
| 10305 } | |
| 10306 throw "Incorrect number or type of arguments"; | |
| 10307 } | |
| 10308 } | |
| 10309 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10310 // for details. All rights reserved. Use of this source code is governed by a | |
| 10311 // BSD-style license that can be found in the LICENSE file. | |
| 10312 | |
| 10313 // WARNING: Do not edit - generated code. | |
| 10314 | |
| 10315 class IDBKeyRangeWrappingImplementation extends DOMWrapperBase implements IDBKey
Range { | |
| 10316 IDBKeyRangeWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10317 | |
| 10318 IDBKey get lower() { return LevelDom.wrapIDBKey(_ptr.lower); } | |
| 10319 | |
| 10320 bool get lowerOpen() { return _ptr.lowerOpen; } | |
| 10321 | |
| 10322 IDBKey get upper() { return LevelDom.wrapIDBKey(_ptr.upper); } | |
| 10323 | |
| 10324 bool get upperOpen() { return _ptr.upperOpen; } | |
| 10325 | |
| 10326 IDBKeyRange bound(IDBKey lower, IDBKey upper, [bool lowerOpen = null, bool upp
erOpen = null]) { | |
| 10327 if (lowerOpen === null) { | |
| 10328 if (upperOpen === null) { | |
| 10329 return LevelDom.wrapIDBKeyRange(_ptr.bound(LevelDom.unwrap(lower), Level
Dom.unwrap(upper))); | |
| 10330 } | |
| 10331 } else { | |
| 10332 if (upperOpen === null) { | |
| 10333 return LevelDom.wrapIDBKeyRange(_ptr.bound(LevelDom.unwrap(lower), Level
Dom.unwrap(upper), lowerOpen)); | |
| 10334 } else { | |
| 10335 return LevelDom.wrapIDBKeyRange(_ptr.bound(LevelDom.unwrap(lower), Level
Dom.unwrap(upper), lowerOpen, upperOpen)); | |
| 10336 } | |
| 10337 } | |
| 10338 throw "Incorrect number or type of arguments"; | |
| 10339 } | |
| 10340 | |
| 10341 IDBKeyRange lowerBound(IDBKey bound, [bool open = null]) { | |
| 10342 if (open === null) { | |
| 10343 return LevelDom.wrapIDBKeyRange(_ptr.lowerBound(LevelDom.unwrap(bound))); | |
| 10344 } else { | |
| 10345 return LevelDom.wrapIDBKeyRange(_ptr.lowerBound(LevelDom.unwrap(bound), op
en)); | |
| 10346 } | |
| 10347 } | |
| 10348 | |
| 10349 IDBKeyRange only(IDBKey value) { | |
| 10350 return LevelDom.wrapIDBKeyRange(_ptr.only(LevelDom.unwrap(value))); | |
| 10351 } | |
| 10352 | |
| 10353 IDBKeyRange upperBound(IDBKey bound, [bool open = null]) { | |
| 10354 if (open === null) { | |
| 10355 return LevelDom.wrapIDBKeyRange(_ptr.upperBound(LevelDom.unwrap(bound))); | |
| 10356 } else { | |
| 10357 return LevelDom.wrapIDBKeyRange(_ptr.upperBound(LevelDom.unwrap(bound), op
en)); | |
| 10358 } | |
| 10359 } | |
| 10360 } | |
| 10361 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10362 // for details. All rights reserved. Use of this source code is governed by a | |
| 10363 // BSD-style license that can be found in the LICENSE file. | |
| 10364 | |
| 10365 // WARNING: Do not edit - generated code. | |
| 10366 | |
| 10367 class IDBKeyWrappingImplementation extends DOMWrapperBase implements IDBKey { | |
| 10368 IDBKeyWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10369 } | |
| 10370 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10371 // for details. All rights reserved. Use of this source code is governed by a | |
| 10372 // BSD-style license that can be found in the LICENSE file. | |
| 10373 | |
| 10374 // WARNING: Do not edit - generated code. | |
| 10375 | |
| 10376 class IDBObjectStoreWrappingImplementation extends DOMWrapperBase implements IDB
ObjectStore { | |
| 10377 IDBObjectStoreWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10378 | |
| 10379 String get keyPath() { return _ptr.keyPath; } | |
| 10380 | |
| 10381 String get name() { return _ptr.name; } | |
| 10382 | |
| 10383 IDBRequest add(String value, [IDBKey key = null]) { | |
| 10384 if (key === null) { | |
| 10385 return LevelDom.wrapIDBRequest(_ptr.add(value)); | |
| 10386 } else { | |
| 10387 return LevelDom.wrapIDBRequest(_ptr.add(value, LevelDom.unwrap(key))); | |
| 10388 } | |
| 10389 } | |
| 10390 | |
| 10391 IDBRequest clear() { | |
| 10392 return LevelDom.wrapIDBRequest(_ptr.clear()); | |
| 10393 } | |
| 10394 | |
| 10395 IDBIndex createIndex(String name, String keyPath) { | |
| 10396 return LevelDom.wrapIDBIndex(_ptr.createIndex(name, keyPath)); | |
| 10397 } | |
| 10398 | |
| 10399 IDBRequest delete(IDBKey key) { | |
| 10400 return LevelDom.wrapIDBRequest(_ptr.delete(LevelDom.unwrap(key))); | |
| 10401 } | |
| 10402 | |
| 10403 void deleteIndex(String name) { | |
| 10404 _ptr.deleteIndex(name); | |
| 10405 return; | |
| 10406 } | |
| 10407 | |
| 10408 IDBRequest getObject(IDBKey key) { | |
| 10409 return LevelDom.wrapIDBRequest(_ptr.getObject(LevelDom.unwrap(key))); | |
| 10410 } | |
| 10411 | |
| 10412 IDBIndex index(String name) { | |
| 10413 return LevelDom.wrapIDBIndex(_ptr.index(name)); | |
| 10414 } | |
| 10415 | |
| 10416 IDBRequest openCursor([IDBKeyRange range = null, int direction = null]) { | |
| 10417 if (range === null) { | |
| 10418 if (direction === null) { | |
| 10419 return LevelDom.wrapIDBRequest(_ptr.openCursor()); | |
| 10420 } | |
| 10421 } else { | |
| 10422 if (direction === null) { | |
| 10423 return LevelDom.wrapIDBRequest(_ptr.openCursor(LevelDom.unwrap(range))); | |
| 10424 } else { | |
| 10425 return LevelDom.wrapIDBRequest(_ptr.openCursor(LevelDom.unwrap(range), d
irection)); | |
| 10426 } | |
| 10427 } | |
| 10428 throw "Incorrect number or type of arguments"; | |
| 10429 } | |
| 10430 | |
| 10431 IDBRequest put(String value, [IDBKey key = null]) { | |
| 10432 if (key === null) { | |
| 10433 return LevelDom.wrapIDBRequest(_ptr.put(value)); | |
| 10434 } else { | |
| 10435 return LevelDom.wrapIDBRequest(_ptr.put(value, LevelDom.unwrap(key))); | |
| 10436 } | |
| 10437 } | |
| 10438 } | |
| 10439 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10440 // for details. All rights reserved. Use of this source code is governed by a | |
| 10441 // BSD-style license that can be found in the LICENSE file. | |
| 10442 | |
| 10443 // WARNING: Do not edit - generated code. | |
| 10444 | |
| 10445 class IDBRequestWrappingImplementation extends DOMWrapperBase implements IDBRequ
est { | |
| 10446 IDBRequestWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10447 | |
| 10448 int get errorCode() { return _ptr.errorCode; } | |
| 10449 | |
| 10450 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror);
} | |
| 10451 | |
| 10452 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value);
} | |
| 10453 | |
| 10454 EventListener get onsuccess() { return LevelDom.wrapEventListener(_ptr.onsucce
ss); } | |
| 10455 | |
| 10456 void set onsuccess(EventListener value) { _ptr.onsuccess = LevelDom.unwrap(val
ue); } | |
| 10457 | |
| 10458 int get readyState() { return _ptr.readyState; } | |
| 10459 | |
| 10460 IDBAny get result() { return LevelDom.wrapIDBAny(_ptr.result); } | |
| 10461 | |
| 10462 IDBAny get source() { return LevelDom.wrapIDBAny(_ptr.source); } | |
| 10463 | |
| 10464 IDBTransaction get transaction() { return LevelDom.wrapIDBTransaction(_ptr.tra
nsaction); } | |
| 10465 | |
| 10466 String get webkitErrorMessage() { return _ptr.webkitErrorMessage; } | |
| 10467 | |
| 10468 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
| 10469 if (useCapture === null) { | |
| 10470 _ptr.addEventListener(type, LevelDom.unwrap(listener)); | |
| 10471 return; | |
| 10472 } else { | |
| 10473 _ptr.addEventListener(type, LevelDom.unwrap(listener), useCapture); | |
| 10474 return; | |
| 10475 } | |
| 10476 } | |
| 10477 | |
| 10478 bool dispatchEvent(Event evt) { | |
| 10479 return _ptr.dispatchEvent(LevelDom.unwrap(evt)); | |
| 10480 } | |
| 10481 | |
| 10482 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
| 10483 if (useCapture === null) { | |
| 10484 _ptr.removeEventListener(type, LevelDom.unwrap(listener)); | |
| 10485 return; | |
| 10486 } else { | |
| 10487 _ptr.removeEventListener(type, LevelDom.unwrap(listener), useCapture); | |
| 10488 return; | |
| 10489 } | |
| 10490 } | |
| 10491 } | |
| 10492 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10493 // for details. All rights reserved. Use of this source code is governed by a | |
| 10494 // BSD-style license that can be found in the LICENSE file. | |
| 10495 | |
| 10496 // WARNING: Do not edit - generated code. | |
| 10497 | |
| 10498 class IDBTransactionWrappingImplementation extends DOMWrapperBase implements IDB
Transaction { | |
| 10499 IDBTransactionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10500 | |
| 10501 IDBDatabase get db() { return LevelDom.wrapIDBDatabase(_ptr.db); } | |
| 10502 | |
| 10503 int get mode() { return _ptr.mode; } | |
| 10504 | |
| 10505 EventListener get onabort() { return LevelDom.wrapEventListener(_ptr.onabort);
} | |
| 10506 | |
| 10507 void set onabort(EventListener value) { _ptr.onabort = LevelDom.unwrap(value);
} | |
| 10508 | |
| 10509 EventListener get oncomplete() { return LevelDom.wrapEventListener(_ptr.oncomp
lete); } | |
| 10510 | |
| 10511 void set oncomplete(EventListener value) { _ptr.oncomplete = LevelDom.unwrap(v
alue); } | |
| 10512 | |
| 10513 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror);
} | |
| 10514 | |
| 10515 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value);
} | |
| 10516 | |
| 10517 void abort() { | |
| 10518 _ptr.abort(); | |
| 10519 return; | |
| 10520 } | |
| 10521 | |
| 10522 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
| 10523 if (useCapture === null) { | |
| 10524 _ptr.addEventListener(type, LevelDom.unwrap(listener)); | |
| 10525 return; | |
| 10526 } else { | |
| 10527 _ptr.addEventListener(type, LevelDom.unwrap(listener), useCapture); | |
| 10528 return; | |
| 10529 } | |
| 10530 } | |
| 10531 | |
| 10532 bool dispatchEvent(Event evt) { | |
| 10533 return _ptr.dispatchEvent(LevelDom.unwrap(evt)); | |
| 10534 } | |
| 10535 | |
| 10536 IDBObjectStore objectStore(String name) { | |
| 10537 return LevelDom.wrapIDBObjectStore(_ptr.objectStore(name)); | |
| 10538 } | |
| 10539 | |
| 10540 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
| 10541 if (useCapture === null) { | |
| 10542 _ptr.removeEventListener(type, LevelDom.unwrap(listener)); | |
| 10543 return; | |
| 10544 } else { | |
| 10545 _ptr.removeEventListener(type, LevelDom.unwrap(listener), useCapture); | |
| 10546 return; | |
| 10547 } | |
| 10548 } | |
| 10549 } | |
| 10550 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10551 // for details. All rights reserved. Use of this source code is governed by a | |
| 10552 // BSD-style license that can be found in the LICENSE file. | |
| 10553 | |
| 10554 // WARNING: Do not edit - generated code. | |
| 10555 | |
| 10556 class IDBVersionChangeEventWrappingImplementation extends EventWrappingImplement
ation implements IDBVersionChangeEvent { | |
| 10557 IDBVersionChangeEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10558 | |
| 10559 String get version() { return _ptr.version; } | |
| 10560 } | |
| 10561 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10562 // for details. All rights reserved. Use of this source code is governed by a | |
| 10563 // BSD-style license that can be found in the LICENSE file. | |
| 10564 | |
| 10565 // WARNING: Do not edit - generated code. | |
| 10566 | |
| 10567 class IDBVersionChangeRequestWrappingImplementation extends IDBRequestWrappingIm
plementation implements IDBVersionChangeRequest { | |
| 10568 IDBVersionChangeRequestWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10569 | |
| 10570 EventListener get onblocked() { return LevelDom.wrapEventListener(_ptr.onblock
ed); } | |
| 10571 | |
| 10572 void set onblocked(EventListener value) { _ptr.onblocked = LevelDom.unwrap(val
ue); } | |
| 10573 } | |
| 10574 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10575 // for details. All rights reserved. Use of this source code is governed by a | |
| 10576 // BSD-style license that can be found in the LICENSE file. | |
| 10577 | |
| 10578 // WARNING: Do not edit - generated code. | |
| 10579 | |
| 10580 class IFrameElementWrappingImplementation extends ElementWrappingImplementation
implements IFrameElement { | |
| 10581 IFrameElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10582 | |
| 10583 String get align() { return _ptr.align; } | |
| 10584 | |
| 10585 void set align(String value) { _ptr.align = value; } | |
| 10586 | |
| 10587 Document get contentDocument() { return LevelDom.wrapDocument(_ptr.contentDocu
ment); } | |
| 10588 | |
| 10589 Window get contentWindow() { return LevelDom.wrapWindow(_ptr.contentWindow); } | |
| 10590 | |
| 10591 String get frameBorder() { return _ptr.frameBorder; } | |
| 10592 | |
| 10593 void set frameBorder(String value) { _ptr.frameBorder = value; } | |
| 10594 | |
| 10595 String get height() { return _ptr.height; } | |
| 10596 | |
| 10597 void set height(String value) { _ptr.height = value; } | |
| 10598 | |
| 10599 String get longDesc() { return _ptr.longDesc; } | |
| 10600 | |
| 10601 void set longDesc(String value) { _ptr.longDesc = value; } | |
| 10602 | |
| 10603 String get marginHeight() { return _ptr.marginHeight; } | |
| 10604 | |
| 10605 void set marginHeight(String value) { _ptr.marginHeight = value; } | |
| 10606 | |
| 10607 String get marginWidth() { return _ptr.marginWidth; } | |
| 10608 | |
| 10609 void set marginWidth(String value) { _ptr.marginWidth = value; } | |
| 10610 | |
| 10611 String get name() { return _ptr.name; } | |
| 10612 | |
| 10613 void set name(String value) { _ptr.name = value; } | |
| 10614 | |
| 10615 String get sandbox() { return _ptr.sandbox; } | |
| 10616 | |
| 10617 void set sandbox(String value) { _ptr.sandbox = value; } | |
| 10618 | |
| 10619 String get scrolling() { return _ptr.scrolling; } | |
| 10620 | |
| 10621 void set scrolling(String value) { _ptr.scrolling = value; } | |
| 10622 | |
| 10623 String get src() { return _ptr.src; } | |
| 10624 | |
| 10625 void set src(String value) { _ptr.src = value; } | |
| 10626 | |
| 10627 String get width() { return _ptr.width; } | |
| 10628 | |
| 10629 void set width(String value) { _ptr.width = value; } | |
| 10630 } | |
| 10631 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10632 // for details. All rights reserved. Use of this source code is governed by a | |
| 10633 // BSD-style license that can be found in the LICENSE file. | |
| 10634 | |
| 10635 // WARNING: Do not edit - generated code. | |
| 10636 | |
| 10637 class ImageDataWrappingImplementation extends DOMWrapperBase implements ImageDat
a { | |
| 10638 ImageDataWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10639 | |
| 10640 CanvasPixelArray get data() { return LevelDom.wrapCanvasPixelArray(_ptr.data);
} | |
| 10641 | |
| 10642 int get height() { return _ptr.height; } | |
| 10643 | |
| 10644 int get width() { return _ptr.width; } | |
| 10645 } | |
| 10646 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10647 // for details. All rights reserved. Use of this source code is governed by a | |
| 10648 // BSD-style license that can be found in the LICENSE file. | |
| 10649 | |
| 10650 // WARNING: Do not edit - generated code. | |
| 10651 | |
| 10652 class ImageElementWrappingImplementation extends ElementWrappingImplementation i
mplements ImageElement { | |
| 10653 ImageElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10654 | |
| 10655 String get align() { return _ptr.align; } | |
| 10656 | |
| 10657 void set align(String value) { _ptr.align = value; } | |
| 10658 | |
| 10659 String get alt() { return _ptr.alt; } | |
| 10660 | |
| 10661 void set alt(String value) { _ptr.alt = value; } | |
| 10662 | |
| 10663 String get border() { return _ptr.border; } | |
| 10664 | |
| 10665 void set border(String value) { _ptr.border = value; } | |
| 10666 | |
| 10667 bool get complete() { return _ptr.complete; } | |
| 10668 | |
| 10669 String get crossOrigin() { return _ptr.crossOrigin; } | |
| 10670 | |
| 10671 void set crossOrigin(String value) { _ptr.crossOrigin = value; } | |
| 10672 | |
| 10673 int get height() { return _ptr.height; } | |
| 10674 | |
| 10675 void set height(int value) { _ptr.height = value; } | |
| 10676 | |
| 10677 int get hspace() { return _ptr.hspace; } | |
| 10678 | |
| 10679 void set hspace(int value) { _ptr.hspace = value; } | |
| 10680 | |
| 10681 bool get isMap() { return _ptr.isMap; } | |
| 10682 | |
| 10683 void set isMap(bool value) { _ptr.isMap = value; } | |
| 10684 | |
| 10685 String get longDesc() { return _ptr.longDesc; } | |
| 10686 | |
| 10687 void set longDesc(String value) { _ptr.longDesc = value; } | |
| 10688 | |
| 10689 String get lowsrc() { return _ptr.lowsrc; } | |
| 10690 | |
| 10691 void set lowsrc(String value) { _ptr.lowsrc = value; } | |
| 10692 | |
| 10693 String get name() { return _ptr.name; } | |
| 10694 | |
| 10695 void set name(String value) { _ptr.name = value; } | |
| 10696 | |
| 10697 int get naturalHeight() { return _ptr.naturalHeight; } | |
| 10698 | |
| 10699 int get naturalWidth() { return _ptr.naturalWidth; } | |
| 10700 | |
| 10701 String get src() { return _ptr.src; } | |
| 10702 | |
| 10703 void set src(String value) { _ptr.src = value; } | |
| 10704 | |
| 10705 String get useMap() { return _ptr.useMap; } | |
| 10706 | |
| 10707 void set useMap(String value) { _ptr.useMap = value; } | |
| 10708 | |
| 10709 int get vspace() { return _ptr.vspace; } | |
| 10710 | |
| 10711 void set vspace(int value) { _ptr.vspace = value; } | |
| 10712 | |
| 10713 int get width() { return _ptr.width; } | |
| 10714 | |
| 10715 void set width(int value) { _ptr.width = value; } | |
| 10716 | |
| 10717 int get x() { return _ptr.x; } | |
| 10718 | |
| 10719 int get y() { return _ptr.y; } | |
| 10720 } | |
| 10721 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10722 // for details. All rights reserved. Use of this source code is governed by a | |
| 10723 // BSD-style license that can be found in the LICENSE file. | |
| 10724 | |
| 10725 // WARNING: Do not edit - generated code. | |
| 10726 | |
| 10727 class InputElementWrappingImplementation extends ElementWrappingImplementation i
mplements InputElement { | |
| 10728 InputElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10729 | |
| 10730 String get accept() { return _ptr.accept; } | |
| 10731 | |
| 10732 void set accept(String value) { _ptr.accept = value; } | |
| 10733 | |
| 10734 String get accessKey() { return _ptr.accessKey; } | |
| 10735 | |
| 10736 void set accessKey(String value) { _ptr.accessKey = value; } | |
| 10737 | |
| 10738 String get align() { return _ptr.align; } | |
| 10739 | |
| 10740 void set align(String value) { _ptr.align = value; } | |
| 10741 | |
| 10742 String get alt() { return _ptr.alt; } | |
| 10743 | |
| 10744 void set alt(String value) { _ptr.alt = value; } | |
| 10745 | |
| 10746 String get autocomplete() { return _ptr.autocomplete; } | |
| 10747 | |
| 10748 void set autocomplete(String value) { _ptr.autocomplete = value; } | |
| 10749 | |
| 10750 bool get autofocus() { return _ptr.autofocus; } | |
| 10751 | |
| 10752 void set autofocus(bool value) { _ptr.autofocus = value; } | |
| 10753 | |
| 10754 bool get checked() { return _ptr.checked; } | |
| 10755 | |
| 10756 void set checked(bool value) { _ptr.checked = value; } | |
| 10757 | |
| 10758 bool get defaultChecked() { return _ptr.defaultChecked; } | |
| 10759 | |
| 10760 void set defaultChecked(bool value) { _ptr.defaultChecked = value; } | |
| 10761 | |
| 10762 String get defaultValue() { return _ptr.defaultValue; } | |
| 10763 | |
| 10764 void set defaultValue(String value) { _ptr.defaultValue = value; } | |
| 10765 | |
| 10766 bool get disabled() { return _ptr.disabled; } | |
| 10767 | |
| 10768 void set disabled(bool value) { _ptr.disabled = value; } | |
| 10769 | |
| 10770 FileList get files() { return LevelDom.wrapFileList(_ptr.files); } | |
| 10771 | |
| 10772 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
| 10773 | |
| 10774 String get formAction() { return _ptr.formAction; } | |
| 10775 | |
| 10776 void set formAction(String value) { _ptr.formAction = value; } | |
| 10777 | |
| 10778 String get formEnctype() { return _ptr.formEnctype; } | |
| 10779 | |
| 10780 void set formEnctype(String value) { _ptr.formEnctype = value; } | |
| 10781 | |
| 10782 String get formMethod() { return _ptr.formMethod; } | |
| 10783 | |
| 10784 void set formMethod(String value) { _ptr.formMethod = value; } | |
| 10785 | |
| 10786 bool get formNoValidate() { return _ptr.formNoValidate; } | |
| 10787 | |
| 10788 void set formNoValidate(bool value) { _ptr.formNoValidate = value; } | |
| 10789 | |
| 10790 String get formTarget() { return _ptr.formTarget; } | |
| 10791 | |
| 10792 void set formTarget(String value) { _ptr.formTarget = value; } | |
| 10793 | |
| 10794 bool get incremental() { return _ptr.incremental; } | |
| 10795 | |
| 10796 void set incremental(bool value) { _ptr.incremental = value; } | |
| 10797 | |
| 10798 bool get indeterminate() { return _ptr.indeterminate; } | |
| 10799 | |
| 10800 void set indeterminate(bool value) { _ptr.indeterminate = value; } | |
| 10801 | |
| 10802 ElementList get labels() { return LevelDom.wrapElementList(_ptr.labels); } | |
| 10803 | |
| 10804 Element get list() { return LevelDom.wrapElement(_ptr.list); } | |
| 10805 | |
| 10806 String get max() { return _ptr.max; } | |
| 10807 | |
| 10808 void set max(String value) { _ptr.max = value; } | |
| 10809 | |
| 10810 int get maxLength() { return _ptr.maxLength; } | |
| 10811 | |
| 10812 void set maxLength(int value) { _ptr.maxLength = value; } | |
| 10813 | |
| 10814 String get min() { return _ptr.min; } | |
| 10815 | |
| 10816 void set min(String value) { _ptr.min = value; } | |
| 10817 | |
| 10818 bool get multiple() { return _ptr.multiple; } | |
| 10819 | |
| 10820 void set multiple(bool value) { _ptr.multiple = value; } | |
| 10821 | |
| 10822 String get name() { return _ptr.name; } | |
| 10823 | |
| 10824 void set name(String value) { _ptr.name = value; } | |
| 10825 | |
| 10826 EventListener get onwebkitspeechchange() { return LevelDom.wrapEventListener(_
ptr.onwebkitspeechchange); } | |
| 10827 | |
| 10828 void set onwebkitspeechchange(EventListener value) { _ptr.onwebkitspeechchange
= LevelDom.unwrap(value); } | |
| 10829 | |
| 10830 String get pattern() { return _ptr.pattern; } | |
| 10831 | |
| 10832 void set pattern(String value) { _ptr.pattern = value; } | |
| 10833 | |
| 10834 String get placeholder() { return _ptr.placeholder; } | |
| 10835 | |
| 10836 void set placeholder(String value) { _ptr.placeholder = value; } | |
| 10837 | |
| 10838 bool get readOnly() { return _ptr.readOnly; } | |
| 10839 | |
| 10840 void set readOnly(bool value) { _ptr.readOnly = value; } | |
| 10841 | |
| 10842 bool get required() { return _ptr.required; } | |
| 10843 | |
| 10844 void set required(bool value) { _ptr.required = value; } | |
| 10845 | |
| 10846 OptionElement get selectedOption() { return LevelDom.wrapOptionElement(_ptr.se
lectedOption); } | |
| 10847 | |
| 10848 String get selectionDirection() { return _ptr.selectionDirection; } | |
| 10849 | |
| 10850 void set selectionDirection(String value) { _ptr.selectionDirection = value; } | |
| 10851 | |
| 10852 int get selectionEnd() { return _ptr.selectionEnd; } | |
| 10853 | |
| 10854 void set selectionEnd(int value) { _ptr.selectionEnd = value; } | |
| 10855 | |
| 10856 int get selectionStart() { return _ptr.selectionStart; } | |
| 10857 | |
| 10858 void set selectionStart(int value) { _ptr.selectionStart = value; } | |
| 10859 | |
| 10860 int get size() { return _ptr.size; } | |
| 10861 | |
| 10862 void set size(int value) { _ptr.size = value; } | |
| 10863 | |
| 10864 String get src() { return _ptr.src; } | |
| 10865 | |
| 10866 void set src(String value) { _ptr.src = value; } | |
| 10867 | |
| 10868 String get step() { return _ptr.step; } | |
| 10869 | |
| 10870 void set step(String value) { _ptr.step = value; } | |
| 10871 | |
| 10872 String get type() { return _ptr.type; } | |
| 10873 | |
| 10874 void set type(String value) { _ptr.type = value; } | |
| 10875 | |
| 10876 String get useMap() { return _ptr.useMap; } | |
| 10877 | |
| 10878 void set useMap(String value) { _ptr.useMap = value; } | |
| 10879 | |
| 10880 String get validationMessage() { return _ptr.validationMessage; } | |
| 10881 | |
| 10882 ValidityState get validity() { return LevelDom.wrapValidityState(_ptr.validity
); } | |
| 10883 | |
| 10884 String get value() { return _ptr.value; } | |
| 10885 | |
| 10886 void set value(String value) { _ptr.value = value; } | |
| 10887 | |
| 10888 Date get valueAsDate() { return _ptr.valueAsDate; } | |
| 10889 | |
| 10890 void set valueAsDate(Date value) { _ptr.valueAsDate = value; } | |
| 10891 | |
| 10892 num get valueAsNumber() { return _ptr.valueAsNumber; } | |
| 10893 | |
| 10894 void set valueAsNumber(num value) { _ptr.valueAsNumber = value; } | |
| 10895 | |
| 10896 bool get webkitGrammar() { return _ptr.webkitGrammar; } | |
| 10897 | |
| 10898 void set webkitGrammar(bool value) { _ptr.webkitGrammar = value; } | |
| 10899 | |
| 10900 bool get webkitSpeech() { return _ptr.webkitSpeech; } | |
| 10901 | |
| 10902 void set webkitSpeech(bool value) { _ptr.webkitSpeech = value; } | |
| 10903 | |
| 10904 bool get webkitdirectory() { return _ptr.webkitdirectory; } | |
| 10905 | |
| 10906 void set webkitdirectory(bool value) { _ptr.webkitdirectory = value; } | |
| 10907 | |
| 10908 bool get willValidate() { return _ptr.willValidate; } | |
| 10909 | |
| 10910 bool checkValidity() { | |
| 10911 return _ptr.checkValidity(); | |
| 10912 } | |
| 10913 | |
| 10914 void click() { | |
| 10915 _ptr.click(); | |
| 10916 return; | |
| 10917 } | |
| 10918 | |
| 10919 void select() { | |
| 10920 _ptr.select(); | |
| 10921 return; | |
| 10922 } | |
| 10923 | |
| 10924 void setCustomValidity(String error) { | |
| 10925 _ptr.setCustomValidity(error); | |
| 10926 return; | |
| 10927 } | |
| 10928 | |
| 10929 void setSelectionRange(int start, int end, [String direction = null]) { | |
| 10930 if (direction === null) { | |
| 10931 _ptr.setSelectionRange(start, end); | |
| 10932 return; | |
| 10933 } else { | |
| 10934 _ptr.setSelectionRange(start, end, direction); | |
| 10935 return; | |
| 10936 } | |
| 10937 } | |
| 10938 | |
| 10939 void setValueForUser(String value) { | |
| 10940 _ptr.setValueForUser(value); | |
| 10941 return; | |
| 10942 } | |
| 10943 | |
| 10944 void stepDown([int n = null]) { | |
| 10945 if (n === null) { | |
| 10946 _ptr.stepDown(); | |
| 10947 return; | |
| 10948 } else { | |
| 10949 _ptr.stepDown(n); | |
| 10950 return; | |
| 10951 } | |
| 10952 } | |
| 10953 | |
| 10954 void stepUp([int n = null]) { | |
| 10955 if (n === null) { | |
| 10956 _ptr.stepUp(); | |
| 10957 return; | |
| 10958 } else { | |
| 10959 _ptr.stepUp(n); | |
| 10960 return; | |
| 10961 } | |
| 10962 } | |
| 10963 } | |
| 10964 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10965 // for details. All rights reserved. Use of this source code is governed by a | |
| 10966 // BSD-style license that can be found in the LICENSE file. | |
| 10967 | |
| 10968 // WARNING: Do not edit - generated code. | |
| 10969 | |
| 10970 class Int16ArrayWrappingImplementation extends ArrayBufferViewWrappingImplementa
tion implements Int16Array { | |
| 10971 Int16ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10972 | |
| 10973 int get length() { return _ptr.length; } | |
| 10974 | |
| 10975 Int16Array subarray(int start, [int end = null]) { | |
| 10976 if (end === null) { | |
| 10977 return LevelDom.wrapInt16Array(_ptr.subarray(start)); | |
| 10978 } else { | |
| 10979 return LevelDom.wrapInt16Array(_ptr.subarray(start, end)); | |
| 10980 } | |
| 10981 } | |
| 10982 } | |
| 10983 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 10984 // for details. All rights reserved. Use of this source code is governed by a | |
| 10985 // BSD-style license that can be found in the LICENSE file. | |
| 10986 | |
| 10987 // WARNING: Do not edit - generated code. | |
| 10988 | |
| 10989 class Int32ArrayWrappingImplementation extends ArrayBufferViewWrappingImplementa
tion implements Int32Array { | |
| 10990 Int32ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 10991 | |
| 10992 int get length() { return _ptr.length; } | |
| 10993 | |
| 10994 Int32Array subarray(int start, [int end = null]) { | |
| 10995 if (end === null) { | |
| 10996 return LevelDom.wrapInt32Array(_ptr.subarray(start)); | |
| 10997 } else { | |
| 10998 return LevelDom.wrapInt32Array(_ptr.subarray(start, end)); | |
| 10999 } | |
| 11000 } | |
| 11001 } | |
| 11002 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11003 // for details. All rights reserved. Use of this source code is governed by a | |
| 11004 // BSD-style license that can be found in the LICENSE file. | |
| 11005 | |
| 11006 // WARNING: Do not edit - generated code. | |
| 11007 | |
| 11008 class Int8ArrayWrappingImplementation extends ArrayBufferViewWrappingImplementat
ion implements Int8Array { | |
| 11009 Int8ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11010 | |
| 11011 int get length() { return _ptr.length; } | |
| 11012 | |
| 11013 Int8Array subarray(int start, [int end = null]) { | |
| 11014 if (end === null) { | |
| 11015 return LevelDom.wrapInt8Array(_ptr.subarray(start)); | |
| 11016 } else { | |
| 11017 return LevelDom.wrapInt8Array(_ptr.subarray(start, end)); | |
| 11018 } | |
| 11019 } | |
| 11020 } | |
| 11021 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11022 // for details. All rights reserved. Use of this source code is governed by a | |
| 11023 // BSD-style license that can be found in the LICENSE file. | |
| 11024 | |
| 11025 // WARNING: Do not edit - generated code. | |
| 11026 | |
| 11027 class KeygenElementWrappingImplementation extends ElementWrappingImplementation
implements KeygenElement { | |
| 11028 KeygenElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11029 | |
| 11030 bool get autofocus() { return _ptr.autofocus; } | |
| 11031 | |
| 11032 void set autofocus(bool value) { _ptr.autofocus = value; } | |
| 11033 | |
| 11034 String get challenge() { return _ptr.challenge; } | |
| 11035 | |
| 11036 void set challenge(String value) { _ptr.challenge = value; } | |
| 11037 | |
| 11038 bool get disabled() { return _ptr.disabled; } | |
| 11039 | |
| 11040 void set disabled(bool value) { _ptr.disabled = value; } | |
| 11041 | |
| 11042 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
| 11043 | |
| 11044 String get keytype() { return _ptr.keytype; } | |
| 11045 | |
| 11046 void set keytype(String value) { _ptr.keytype = value; } | |
| 11047 | |
| 11048 ElementList get labels() { return LevelDom.wrapElementList(_ptr.labels); } | |
| 11049 | |
| 11050 String get name() { return _ptr.name; } | |
| 11051 | |
| 11052 void set name(String value) { _ptr.name = value; } | |
| 11053 | |
| 11054 String get type() { return _ptr.type; } | |
| 11055 | |
| 11056 String get validationMessage() { return _ptr.validationMessage; } | |
| 11057 | |
| 11058 ValidityState get validity() { return LevelDom.wrapValidityState(_ptr.validity
); } | |
| 11059 | |
| 11060 bool get willValidate() { return _ptr.willValidate; } | |
| 11061 | |
| 11062 bool checkValidity() { | |
| 11063 return _ptr.checkValidity(); | |
| 11064 } | |
| 11065 | |
| 11066 void setCustomValidity(String error) { | |
| 11067 _ptr.setCustomValidity(error); | |
| 11068 return; | |
| 11069 } | |
| 11070 } | |
| 11071 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11072 // for details. All rights reserved. Use of this source code is governed by a | |
| 11073 // BSD-style license that can be found in the LICENSE file. | |
| 11074 | |
| 11075 // WARNING: Do not edit - generated code. | |
| 11076 | |
| 11077 class LIElementWrappingImplementation extends ElementWrappingImplementation impl
ements LIElement { | |
| 11078 LIElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11079 | |
| 11080 String get type() { return _ptr.type; } | |
| 11081 | |
| 11082 void set type(String value) { _ptr.type = value; } | |
| 11083 | |
| 11084 int get value() { return _ptr.value; } | |
| 11085 | |
| 11086 void set value(int value) { _ptr.value = value; } | |
| 11087 } | |
| 11088 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11089 // for details. All rights reserved. Use of this source code is governed by a | |
| 11090 // BSD-style license that can be found in the LICENSE file. | |
| 11091 | |
| 11092 // WARNING: Do not edit - generated code. | |
| 11093 | |
| 11094 class LabelElementWrappingImplementation extends ElementWrappingImplementation i
mplements LabelElement { | |
| 11095 LabelElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11096 | |
| 11097 String get accessKey() { return _ptr.accessKey; } | |
| 11098 | |
| 11099 void set accessKey(String value) { _ptr.accessKey = value; } | |
| 11100 | |
| 11101 Element get control() { return LevelDom.wrapElement(_ptr.control); } | |
| 11102 | |
| 11103 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
| 11104 | |
| 11105 String get htmlFor() { return _ptr.htmlFor; } | |
| 11106 | |
| 11107 void set htmlFor(String value) { _ptr.htmlFor = value; } | |
| 11108 } | |
| 11109 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11110 // for details. All rights reserved. Use of this source code is governed by a | |
| 11111 // BSD-style license that can be found in the LICENSE file. | |
| 11112 | |
| 11113 // WARNING: Do not edit - generated code. | |
| 11114 | |
| 11115 class LegendElementWrappingImplementation extends ElementWrappingImplementation
implements LegendElement { | |
| 11116 LegendElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11117 | |
| 11118 String get accessKey() { return _ptr.accessKey; } | |
| 11119 | |
| 11120 void set accessKey(String value) { _ptr.accessKey = value; } | |
| 11121 | |
| 11122 String get align() { return _ptr.align; } | |
| 11123 | |
| 11124 void set align(String value) { _ptr.align = value; } | |
| 11125 | |
| 11126 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
| 11127 } | |
| 11128 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11129 // for details. All rights reserved. Use of this source code is governed by a | |
| 11130 // BSD-style license that can be found in the LICENSE file. | |
| 11131 | |
| 11132 // WARNING: Do not edit - generated code. | |
| 11133 | |
| 11134 class LinkElementWrappingImplementation extends ElementWrappingImplementation im
plements LinkElement { | |
| 11135 LinkElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11136 | |
| 11137 String get charset() { return _ptr.charset; } | |
| 11138 | |
| 11139 void set charset(String value) { _ptr.charset = value; } | |
| 11140 | |
| 11141 bool get disabled() { return _ptr.disabled; } | |
| 11142 | |
| 11143 void set disabled(bool value) { _ptr.disabled = value; } | |
| 11144 | |
| 11145 String get href() { return _ptr.href; } | |
| 11146 | |
| 11147 void set href(String value) { _ptr.href = value; } | |
| 11148 | |
| 11149 String get hreflang() { return _ptr.hreflang; } | |
| 11150 | |
| 11151 void set hreflang(String value) { _ptr.hreflang = value; } | |
| 11152 | |
| 11153 String get media() { return _ptr.media; } | |
| 11154 | |
| 11155 void set media(String value) { _ptr.media = value; } | |
| 11156 | |
| 11157 String get rel() { return _ptr.rel; } | |
| 11158 | |
| 11159 void set rel(String value) { _ptr.rel = value; } | |
| 11160 | |
| 11161 String get rev() { return _ptr.rev; } | |
| 11162 | |
| 11163 void set rev(String value) { _ptr.rev = value; } | |
| 11164 | |
| 11165 StyleSheet get sheet() { return LevelDom.wrapStyleSheet(_ptr.sheet); } | |
| 11166 | |
| 11167 String get target() { return _ptr.target; } | |
| 11168 | |
| 11169 void set target(String value) { _ptr.target = value; } | |
| 11170 | |
| 11171 String get type() { return _ptr.type; } | |
| 11172 | |
| 11173 void set type(String value) { _ptr.type = value; } | |
| 11174 } | |
| 11175 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11176 // for details. All rights reserved. Use of this source code is governed by a | |
| 11177 // BSD-style license that can be found in the LICENSE file. | |
| 11178 | |
| 11179 // WARNING: Do not edit - generated code. | |
| 11180 | |
| 11181 class LocalMediaStreamWrappingImplementation extends MediaStreamWrappingImplemen
tation implements LocalMediaStream { | |
| 11182 LocalMediaStreamWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11183 | |
| 11184 void stop() { | |
| 11185 _ptr.stop(); | |
| 11186 return; | |
| 11187 } | |
| 11188 } | |
| 11189 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11190 // for details. All rights reserved. Use of this source code is governed by a | |
| 11191 // BSD-style license that can be found in the LICENSE file. | |
| 11192 | |
| 11193 // WARNING: Do not edit - generated code. | |
| 11194 | |
| 11195 class LocationWrappingImplementation extends DOMWrapperBase implements Location
{ | |
| 11196 LocationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11197 | |
| 11198 String get hash() { return _ptr.hash; } | |
| 11199 | |
| 11200 void set hash(String value) { _ptr.hash = value; } | |
| 11201 | |
| 11202 String get host() { return _ptr.host; } | |
| 11203 | |
| 11204 void set host(String value) { _ptr.host = value; } | |
| 11205 | |
| 11206 String get hostname() { return _ptr.hostname; } | |
| 11207 | |
| 11208 void set hostname(String value) { _ptr.hostname = value; } | |
| 11209 | |
| 11210 String get href() { return _ptr.href; } | |
| 11211 | |
| 11212 void set href(String value) { _ptr.href = value; } | |
| 11213 | |
| 11214 String get origin() { return _ptr.origin; } | |
| 11215 | |
| 11216 String get pathname() { return _ptr.pathname; } | |
| 11217 | |
| 11218 void set pathname(String value) { _ptr.pathname = value; } | |
| 11219 | |
| 11220 String get port() { return _ptr.port; } | |
| 11221 | |
| 11222 void set port(String value) { _ptr.port = value; } | |
| 11223 | |
| 11224 String get protocol() { return _ptr.protocol; } | |
| 11225 | |
| 11226 void set protocol(String value) { _ptr.protocol = value; } | |
| 11227 | |
| 11228 String get search() { return _ptr.search; } | |
| 11229 | |
| 11230 void set search(String value) { _ptr.search = value; } | |
| 11231 | |
| 11232 void assign(String url) { | |
| 11233 _ptr.assign(url); | |
| 11234 return; | |
| 11235 } | |
| 11236 | |
| 11237 String getParameter(String name) { | |
| 11238 return _ptr.getParameter(name); | |
| 11239 } | |
| 11240 | |
| 11241 void reload() { | |
| 11242 _ptr.reload(); | |
| 11243 return; | |
| 11244 } | |
| 11245 | |
| 11246 void replace(String url) { | |
| 11247 _ptr.replace(url); | |
| 11248 return; | |
| 11249 } | |
| 11250 } | |
| 11251 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11252 // for details. All rights reserved. Use of this source code is governed by a | |
| 11253 // BSD-style license that can be found in the LICENSE file. | |
| 11254 | |
| 11255 // WARNING: Do not edit - generated code. | |
| 11256 | |
| 11257 class LoseContextWrappingImplementation extends DOMWrapperBase implements LoseCo
ntext { | |
| 11258 LoseContextWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11259 | |
| 11260 void loseContext() { | |
| 11261 _ptr.loseContext(); | |
| 11262 return; | |
| 11263 } | |
| 11264 | |
| 11265 void restoreContext() { | |
| 11266 _ptr.restoreContext(); | |
| 11267 return; | |
| 11268 } | |
| 11269 } | |
| 11270 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11271 // for details. All rights reserved. Use of this source code is governed by a | |
| 11272 // BSD-style license that can be found in the LICENSE file. | |
| 11273 | |
| 11274 // WARNING: Do not edit - generated code. | |
| 11275 | |
| 11276 class MapElementWrappingImplementation extends ElementWrappingImplementation imp
lements MapElement { | |
| 11277 MapElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11278 | |
| 11279 ElementList get areas() { return LevelDom.wrapElementList(_ptr.areas); } | |
| 11280 | |
| 11281 String get name() { return _ptr.name; } | |
| 11282 | |
| 11283 void set name(String value) { _ptr.name = value; } | |
| 11284 } | |
| 11285 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11286 // for details. All rights reserved. Use of this source code is governed by a | |
| 11287 // BSD-style license that can be found in the LICENSE file. | |
| 11288 | |
| 11289 // WARNING: Do not edit - generated code. | |
| 11290 | |
| 11291 class MarqueeElementWrappingImplementation extends ElementWrappingImplementation
implements MarqueeElement { | |
| 11292 MarqueeElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11293 | |
| 11294 String get behavior() { return _ptr.behavior; } | |
| 11295 | |
| 11296 void set behavior(String value) { _ptr.behavior = value; } | |
| 11297 | |
| 11298 String get bgColor() { return _ptr.bgColor; } | |
| 11299 | |
| 11300 void set bgColor(String value) { _ptr.bgColor = value; } | |
| 11301 | |
| 11302 String get direction() { return _ptr.direction; } | |
| 11303 | |
| 11304 void set direction(String value) { _ptr.direction = value; } | |
| 11305 | |
| 11306 String get height() { return _ptr.height; } | |
| 11307 | |
| 11308 void set height(String value) { _ptr.height = value; } | |
| 11309 | |
| 11310 int get hspace() { return _ptr.hspace; } | |
| 11311 | |
| 11312 void set hspace(int value) { _ptr.hspace = value; } | |
| 11313 | |
| 11314 int get loop() { return _ptr.loop; } | |
| 11315 | |
| 11316 void set loop(int value) { _ptr.loop = value; } | |
| 11317 | |
| 11318 int get scrollAmount() { return _ptr.scrollAmount; } | |
| 11319 | |
| 11320 void set scrollAmount(int value) { _ptr.scrollAmount = value; } | |
| 11321 | |
| 11322 int get scrollDelay() { return _ptr.scrollDelay; } | |
| 11323 | |
| 11324 void set scrollDelay(int value) { _ptr.scrollDelay = value; } | |
| 11325 | |
| 11326 bool get trueSpeed() { return _ptr.trueSpeed; } | |
| 11327 | |
| 11328 void set trueSpeed(bool value) { _ptr.trueSpeed = value; } | |
| 11329 | |
| 11330 int get vspace() { return _ptr.vspace; } | |
| 11331 | |
| 11332 void set vspace(int value) { _ptr.vspace = value; } | |
| 11333 | |
| 11334 String get width() { return _ptr.width; } | |
| 11335 | |
| 11336 void set width(String value) { _ptr.width = value; } | |
| 11337 | |
| 11338 void start() { | |
| 11339 _ptr.start(); | |
| 11340 return; | |
| 11341 } | |
| 11342 | |
| 11343 void stop() { | |
| 11344 _ptr.stop(); | |
| 11345 return; | |
| 11346 } | |
| 11347 } | |
| 11348 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11349 // for details. All rights reserved. Use of this source code is governed by a | |
| 11350 // BSD-style license that can be found in the LICENSE file. | |
| 11351 | |
| 11352 // WARNING: Do not edit - generated code. | |
| 11353 | |
| 11354 class MediaElementWrappingImplementation extends ElementWrappingImplementation i
mplements MediaElement { | |
| 11355 MediaElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11356 | |
| 11357 bool get autoplay() { return _ptr.autoplay; } | |
| 11358 | |
| 11359 void set autoplay(bool value) { _ptr.autoplay = value; } | |
| 11360 | |
| 11361 TimeRanges get buffered() { return LevelDom.wrapTimeRanges(_ptr.buffered); } | |
| 11362 | |
| 11363 bool get controls() { return _ptr.controls; } | |
| 11364 | |
| 11365 void set controls(bool value) { _ptr.controls = value; } | |
| 11366 | |
| 11367 String get currentSrc() { return _ptr.currentSrc; } | |
| 11368 | |
| 11369 num get currentTime() { return _ptr.currentTime; } | |
| 11370 | |
| 11371 void set currentTime(num value) { _ptr.currentTime = value; } | |
| 11372 | |
| 11373 bool get defaultMuted() { return _ptr.defaultMuted; } | |
| 11374 | |
| 11375 void set defaultMuted(bool value) { _ptr.defaultMuted = value; } | |
| 11376 | |
| 11377 num get defaultPlaybackRate() { return _ptr.defaultPlaybackRate; } | |
| 11378 | |
| 11379 void set defaultPlaybackRate(num value) { _ptr.defaultPlaybackRate = value; } | |
| 11380 | |
| 11381 num get duration() { return _ptr.duration; } | |
| 11382 | |
| 11383 bool get ended() { return _ptr.ended; } | |
| 11384 | |
| 11385 MediaError get error() { return LevelDom.wrapMediaError(_ptr.error); } | |
| 11386 | |
| 11387 num get initialTime() { return _ptr.initialTime; } | |
| 11388 | |
| 11389 bool get loop() { return _ptr.loop; } | |
| 11390 | |
| 11391 void set loop(bool value) { _ptr.loop = value; } | |
| 11392 | |
| 11393 bool get muted() { return _ptr.muted; } | |
| 11394 | |
| 11395 void set muted(bool value) { _ptr.muted = value; } | |
| 11396 | |
| 11397 int get networkState() { return _ptr.networkState; } | |
| 11398 | |
| 11399 bool get paused() { return _ptr.paused; } | |
| 11400 | |
| 11401 num get playbackRate() { return _ptr.playbackRate; } | |
| 11402 | |
| 11403 void set playbackRate(num value) { _ptr.playbackRate = value; } | |
| 11404 | |
| 11405 TimeRanges get played() { return LevelDom.wrapTimeRanges(_ptr.played); } | |
| 11406 | |
| 11407 String get preload() { return _ptr.preload; } | |
| 11408 | |
| 11409 void set preload(String value) { _ptr.preload = value; } | |
| 11410 | |
| 11411 int get readyState() { return _ptr.readyState; } | |
| 11412 | |
| 11413 TimeRanges get seekable() { return LevelDom.wrapTimeRanges(_ptr.seekable); } | |
| 11414 | |
| 11415 bool get seeking() { return _ptr.seeking; } | |
| 11416 | |
| 11417 String get src() { return _ptr.src; } | |
| 11418 | |
| 11419 void set src(String value) { _ptr.src = value; } | |
| 11420 | |
| 11421 num get startTime() { return _ptr.startTime; } | |
| 11422 | |
| 11423 num get volume() { return _ptr.volume; } | |
| 11424 | |
| 11425 void set volume(num value) { _ptr.volume = value; } | |
| 11426 | |
| 11427 int get webkitAudioDecodedByteCount() { return _ptr.webkitAudioDecodedByteCoun
t; } | |
| 11428 | |
| 11429 bool get webkitClosedCaptionsVisible() { return _ptr.webkitClosedCaptionsVisib
le; } | |
| 11430 | |
| 11431 void set webkitClosedCaptionsVisible(bool value) { _ptr.webkitClosedCaptionsVi
sible = value; } | |
| 11432 | |
| 11433 bool get webkitHasClosedCaptions() { return _ptr.webkitHasClosedCaptions; } | |
| 11434 | |
| 11435 bool get webkitPreservesPitch() { return _ptr.webkitPreservesPitch; } | |
| 11436 | |
| 11437 void set webkitPreservesPitch(bool value) { _ptr.webkitPreservesPitch = value;
} | |
| 11438 | |
| 11439 int get webkitVideoDecodedByteCount() { return _ptr.webkitVideoDecodedByteCoun
t; } | |
| 11440 | |
| 11441 String canPlayType(String type) { | |
| 11442 return _ptr.canPlayType(type); | |
| 11443 } | |
| 11444 | |
| 11445 void load() { | |
| 11446 _ptr.load(); | |
| 11447 return; | |
| 11448 } | |
| 11449 | |
| 11450 void pause() { | |
| 11451 _ptr.pause(); | |
| 11452 return; | |
| 11453 } | |
| 11454 | |
| 11455 void play() { | |
| 11456 _ptr.play(); | |
| 11457 return; | |
| 11458 } | |
| 11459 } | |
| 11460 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11461 // for details. All rights reserved. Use of this source code is governed by a | |
| 11462 // BSD-style license that can be found in the LICENSE file. | |
| 11463 | |
| 11464 // WARNING: Do not edit - generated code. | |
| 11465 | |
| 11466 class MediaErrorWrappingImplementation extends DOMWrapperBase implements MediaEr
ror { | |
| 11467 MediaErrorWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11468 | |
| 11469 int get code() { return _ptr.code; } | |
| 11470 } | |
| 11471 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11472 // for details. All rights reserved. Use of this source code is governed by a | |
| 11473 // BSD-style license that can be found in the LICENSE file. | |
| 11474 | |
| 11475 // WARNING: Do not edit - generated code. | |
| 11476 | |
| 11477 class MediaListWrappingImplementation extends DOMWrapperBase implements MediaLis
t { | |
| 11478 MediaListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11479 | |
| 11480 int get length() { return _ptr.length; } | |
| 11481 | |
| 11482 String get mediaText() { return _ptr.mediaText; } | |
| 11483 | |
| 11484 void set mediaText(String value) { _ptr.mediaText = value; } | |
| 11485 | |
| 11486 String operator[](int index) { | |
| 11487 return item(index); | |
| 11488 } | |
| 11489 | |
| 11490 void operator[]=(int index, String value) { | |
| 11491 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
| 11492 } | |
| 11493 | |
| 11494 void add(String value) { | |
| 11495 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 11496 } | |
| 11497 | |
| 11498 void addLast(String value) { | |
| 11499 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 11500 } | |
| 11501 | |
| 11502 void addAll(Collection<String> collection) { | |
| 11503 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 11504 } | |
| 11505 | |
| 11506 void sort(int compare(String a, String b)) { | |
| 11507 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 11508 } | |
| 11509 | |
| 11510 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | |
| 11511 throw new UnsupportedOperationException("This object is immutable."); | |
| 11512 } | |
| 11513 | |
| 11514 int indexOf(String element, [int start = 0]) { | |
| 11515 return _Lists.indexOf(this, element, start, this.length); | |
| 11516 } | |
| 11517 | |
| 11518 int lastIndexOf(String element, [int start = null]) { | |
| 11519 if (start === null) start = length - 1; | |
| 11520 return _Lists.lastIndexOf(this, element, start); | |
| 11521 } | |
| 11522 | |
| 11523 int clear() { | |
| 11524 throw new UnsupportedOperationException("Cannot clear immutable List."); | |
| 11525 } | |
| 11526 | |
| 11527 String removeLast() { | |
| 11528 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 11529 } | |
| 11530 | |
| 11531 String last() { | |
| 11532 return this[length - 1]; | |
| 11533 } | |
| 11534 | |
| 11535 void forEach(void f(String element)) { | |
| 11536 _Collections.forEach(this, f); | |
| 11537 } | |
| 11538 | |
| 11539 Collection<String> filter(bool f(String element)) { | |
| 11540 return _Collections.filter(this, new List<String>(), f); | |
| 11541 } | |
| 11542 | |
| 11543 bool every(bool f(String element)) { | |
| 11544 return _Collections.every(this, f); | |
| 11545 } | |
| 11546 | |
| 11547 bool some(bool f(String element)) { | |
| 11548 return _Collections.some(this, f); | |
| 11549 } | |
| 11550 | |
| 11551 void setRange(int start, int length, List<String> from, [int startFrom]) { | |
| 11552 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 11553 } | |
| 11554 | |
| 11555 void removeRange(int start, int length) { | |
| 11556 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 11557 } | |
| 11558 | |
| 11559 void insertRange(int start, int length, [String initialValue]) { | |
| 11560 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 11561 } | |
| 11562 | |
| 11563 List<String> getRange(int start, int length) { | |
| 11564 throw new NotImplementedException(); | |
| 11565 } | |
| 11566 | |
| 11567 bool isEmpty() { | |
| 11568 return length == 0; | |
| 11569 } | |
| 11570 | |
| 11571 Iterator<String> iterator() { | |
| 11572 return new _FixedSizeListIterator<String>(this); | |
| 11573 } | |
| 11574 | |
| 11575 void appendMedium(String newMedium) { | |
| 11576 _ptr.appendMedium(newMedium); | |
| 11577 return; | |
| 11578 } | |
| 11579 | |
| 11580 void deleteMedium(String oldMedium) { | |
| 11581 _ptr.deleteMedium(oldMedium); | |
| 11582 return; | |
| 11583 } | |
| 11584 | |
| 11585 String item(int index) { | |
| 11586 return _ptr.item(index); | |
| 11587 } | |
| 11588 } | |
| 11589 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11590 // for details. All rights reserved. Use of this source code is governed by a | |
| 11591 // BSD-style license that can be found in the LICENSE file. | |
| 11592 | |
| 11593 // WARNING: Do not edit - generated code. | |
| 11594 | |
| 11595 class MediaQueryListListenerWrappingImplementation extends DOMWrapperBase implem
ents MediaQueryListListener { | |
| 11596 MediaQueryListListenerWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11597 | |
| 11598 void queryChanged(MediaQueryList list) { | |
| 11599 _ptr.queryChanged(LevelDom.unwrap(list)); | |
| 11600 return; | |
| 11601 } | |
| 11602 } | |
| 11603 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11604 // for details. All rights reserved. Use of this source code is governed by a | |
| 11605 // BSD-style license that can be found in the LICENSE file. | |
| 11606 | |
| 11607 // WARNING: Do not edit - generated code. | |
| 11608 | |
| 11609 class MediaQueryListWrappingImplementation extends DOMWrapperBase implements Med
iaQueryList { | |
| 11610 MediaQueryListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11611 | |
| 11612 bool get matches() { return _ptr.matches; } | |
| 11613 | |
| 11614 String get media() { return _ptr.media; } | |
| 11615 | |
| 11616 void addListener(MediaQueryListListener listener) { | |
| 11617 _ptr.addListener(LevelDom.unwrap(listener)); | |
| 11618 return; | |
| 11619 } | |
| 11620 | |
| 11621 void removeListener(MediaQueryListListener listener) { | |
| 11622 _ptr.removeListener(LevelDom.unwrap(listener)); | |
| 11623 return; | |
| 11624 } | |
| 11625 } | |
| 11626 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11627 // for details. All rights reserved. Use of this source code is governed by a | |
| 11628 // BSD-style license that can be found in the LICENSE file. | |
| 11629 | |
| 11630 // WARNING: Do not edit - generated code. | |
| 11631 | |
| 11632 class MediaStreamListWrappingImplementation extends DOMWrapperBase implements Me
diaStreamList { | |
| 11633 MediaStreamListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11634 | |
| 11635 int get length() { return _ptr.length; } | |
| 11636 | |
| 11637 MediaStream item(int index) { | |
| 11638 return LevelDom.wrapMediaStream(_ptr.item(index)); | |
| 11639 } | |
| 11640 } | |
| 11641 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11642 // for details. All rights reserved. Use of this source code is governed by a | |
| 11643 // BSD-style license that can be found in the LICENSE file. | |
| 11644 | |
| 11645 // WARNING: Do not edit - generated code. | |
| 11646 | |
| 11647 class MediaStreamTrackListWrappingImplementation extends DOMWrapperBase implemen
ts MediaStreamTrackList { | |
| 11648 MediaStreamTrackListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11649 | |
| 11650 int get length() { return _ptr.length; } | |
| 11651 | |
| 11652 MediaStreamTrack item(int index) { | |
| 11653 return LevelDom.wrapMediaStreamTrack(_ptr.item(index)); | |
| 11654 } | |
| 11655 } | |
| 11656 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11657 // for details. All rights reserved. Use of this source code is governed by a | |
| 11658 // BSD-style license that can be found in the LICENSE file. | |
| 11659 | |
| 11660 // WARNING: Do not edit - generated code. | |
| 11661 | |
| 11662 class MediaStreamTrackWrappingImplementation extends DOMWrapperBase implements M
ediaStreamTrack { | |
| 11663 MediaStreamTrackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11664 | |
| 11665 bool get enabled() { return _ptr.enabled; } | |
| 11666 | |
| 11667 void set enabled(bool value) { _ptr.enabled = value; } | |
| 11668 | |
| 11669 String get kind() { return _ptr.kind; } | |
| 11670 | |
| 11671 String get label() { return _ptr.label; } | |
| 11672 } | |
| 11673 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11674 // for details. All rights reserved. Use of this source code is governed by a | |
| 11675 // BSD-style license that can be found in the LICENSE file. | |
| 11676 | |
| 11677 // WARNING: Do not edit - generated code. | |
| 11678 | |
| 11679 class MediaStreamWrappingImplementation extends DOMWrapperBase implements MediaS
tream { | |
| 11680 MediaStreamWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11681 | |
| 11682 String get label() { return _ptr.label; } | |
| 11683 | |
| 11684 EventListener get onended() { return LevelDom.wrapEventListener(_ptr.onended);
} | |
| 11685 | |
| 11686 void set onended(EventListener value) { _ptr.onended = LevelDom.unwrap(value);
} | |
| 11687 | |
| 11688 int get readyState() { return _ptr.readyState; } | |
| 11689 | |
| 11690 MediaStreamTrackList get tracks() { return LevelDom.wrapMediaStreamTrackList(_
ptr.tracks); } | |
| 11691 | |
| 11692 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
| 11693 if (useCapture === null) { | |
| 11694 _ptr.addEventListener(type, LevelDom.unwrap(listener)); | |
| 11695 return; | |
| 11696 } else { | |
| 11697 _ptr.addEventListener(type, LevelDom.unwrap(listener), useCapture); | |
| 11698 return; | |
| 11699 } | |
| 11700 } | |
| 11701 | |
| 11702 bool dispatchEvent(Event event) { | |
| 11703 return _ptr.dispatchEvent(LevelDom.unwrap(event)); | |
| 11704 } | |
| 11705 | |
| 11706 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
| 11707 if (useCapture === null) { | |
| 11708 _ptr.removeEventListener(type, LevelDom.unwrap(listener)); | |
| 11709 return; | |
| 11710 } else { | |
| 11711 _ptr.removeEventListener(type, LevelDom.unwrap(listener), useCapture); | |
| 11712 return; | |
| 11713 } | |
| 11714 } | |
| 11715 } | |
| 11716 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11717 // for details. All rights reserved. Use of this source code is governed by a | |
| 11718 // BSD-style license that can be found in the LICENSE file. | |
| 11719 | |
| 11720 // WARNING: Do not edit - generated code. | |
| 11721 | |
| 11722 class MenuElementWrappingImplementation extends ElementWrappingImplementation im
plements MenuElement { | |
| 11723 MenuElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11724 | |
| 11725 bool get compact() { return _ptr.compact; } | |
| 11726 | |
| 11727 void set compact(bool value) { _ptr.compact = value; } | |
| 11728 } | |
| 11729 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11730 // for details. All rights reserved. Use of this source code is governed by a | |
| 11731 // BSD-style license that can be found in the LICENSE file. | |
| 11732 | |
| 11733 // WARNING: Do not edit - generated code. | |
| 11734 | |
| 11735 class MessageChannelWrappingImplementation extends DOMWrapperBase implements Mes
sageChannel { | |
| 11736 MessageChannelWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11737 | |
| 11738 MessagePort get port1() { return LevelDom.wrapMessagePort(_ptr.port1); } | |
| 11739 | |
| 11740 MessagePort get port2() { return LevelDom.wrapMessagePort(_ptr.port2); } | |
| 11741 } | |
| 11742 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11743 // for details. All rights reserved. Use of this source code is governed by a | |
| 11744 // BSD-style license that can be found in the LICENSE file. | |
| 11745 | |
| 11746 // WARNING: Do not edit - generated code. | |
| 11747 | |
| 11748 class MetaElementWrappingImplementation extends ElementWrappingImplementation im
plements MetaElement { | |
| 11749 MetaElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11750 | |
| 11751 String get content() { return _ptr.content; } | |
| 11752 | |
| 11753 void set content(String value) { _ptr.content = value; } | |
| 11754 | |
| 11755 String get httpEquiv() { return _ptr.httpEquiv; } | |
| 11756 | |
| 11757 void set httpEquiv(String value) { _ptr.httpEquiv = value; } | |
| 11758 | |
| 11759 String get name() { return _ptr.name; } | |
| 11760 | |
| 11761 void set name(String value) { _ptr.name = value; } | |
| 11762 | |
| 11763 String get scheme() { return _ptr.scheme; } | |
| 11764 | |
| 11765 void set scheme(String value) { _ptr.scheme = value; } | |
| 11766 } | |
| 11767 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11768 // for details. All rights reserved. Use of this source code is governed by a | |
| 11769 // BSD-style license that can be found in the LICENSE file. | |
| 11770 | |
| 11771 // WARNING: Do not edit - generated code. | |
| 11772 | |
| 11773 class MetadataCallbackWrappingImplementation extends DOMWrapperBase implements M
etadataCallback { | |
| 11774 MetadataCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11775 | |
| 11776 bool handleEvent(Metadata metadata) { | |
| 11777 return _ptr.handleEvent(LevelDom.unwrap(metadata)); | |
| 11778 } | |
| 11779 } | |
| 11780 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11781 // for details. All rights reserved. Use of this source code is governed by a | |
| 11782 // BSD-style license that can be found in the LICENSE file. | |
| 11783 | |
| 11784 // WARNING: Do not edit - generated code. | |
| 11785 | |
| 11786 class MetadataWrappingImplementation extends DOMWrapperBase implements Metadata
{ | |
| 11787 MetadataWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11788 | |
| 11789 Date get modificationTime() { return _ptr.modificationTime; } | |
| 11790 } | |
| 11791 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11792 // for details. All rights reserved. Use of this source code is governed by a | |
| 11793 // BSD-style license that can be found in the LICENSE file. | |
| 11794 | |
| 11795 // WARNING: Do not edit - generated code. | |
| 11796 | |
| 11797 class MeterElementWrappingImplementation extends ElementWrappingImplementation i
mplements MeterElement { | |
| 11798 MeterElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11799 | |
| 11800 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
| 11801 | |
| 11802 num get high() { return _ptr.high; } | |
| 11803 | |
| 11804 void set high(num value) { _ptr.high = value; } | |
| 11805 | |
| 11806 ElementList get labels() { return LevelDom.wrapElementList(_ptr.labels); } | |
| 11807 | |
| 11808 num get low() { return _ptr.low; } | |
| 11809 | |
| 11810 void set low(num value) { _ptr.low = value; } | |
| 11811 | |
| 11812 num get max() { return _ptr.max; } | |
| 11813 | |
| 11814 void set max(num value) { _ptr.max = value; } | |
| 11815 | |
| 11816 num get min() { return _ptr.min; } | |
| 11817 | |
| 11818 void set min(num value) { _ptr.min = value; } | |
| 11819 | |
| 11820 num get optimum() { return _ptr.optimum; } | |
| 11821 | |
| 11822 void set optimum(num value) { _ptr.optimum = value; } | |
| 11823 | |
| 11824 num get value() { return _ptr.value; } | |
| 11825 | |
| 11826 void set value(num value) { _ptr.value = value; } | |
| 11827 } | |
| 11828 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11829 // for details. All rights reserved. Use of this source code is governed by a | |
| 11830 // BSD-style license that can be found in the LICENSE file. | |
| 11831 | |
| 11832 // WARNING: Do not edit - generated code. | |
| 11833 | |
| 11834 class ModElementWrappingImplementation extends ElementWrappingImplementation imp
lements ModElement { | |
| 11835 ModElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11836 | |
| 11837 String get cite() { return _ptr.cite; } | |
| 11838 | |
| 11839 void set cite(String value) { _ptr.cite = value; } | |
| 11840 | |
| 11841 String get dateTime() { return _ptr.dateTime; } | |
| 11842 | |
| 11843 void set dateTime(String value) { _ptr.dateTime = value; } | |
| 11844 } | |
| 11845 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11846 // for details. All rights reserved. Use of this source code is governed by a | |
| 11847 // BSD-style license that can be found in the LICENSE file. | |
| 11848 | |
| 11849 // WARNING: Do not edit - generated code. | |
| 11850 | |
| 11851 class MutationRecordWrappingImplementation extends DOMWrapperBase implements Mut
ationRecord { | |
| 11852 MutationRecordWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11853 | |
| 11854 ElementList get addedNodes() { return LevelDom.wrapElementList(_ptr.addedNodes
); } | |
| 11855 | |
| 11856 String get attributeName() { return _ptr.attributeName; } | |
| 11857 | |
| 11858 String get attributeNamespace() { return _ptr.attributeNamespace; } | |
| 11859 | |
| 11860 Node get nextSibling() { return LevelDom.wrapNode(_ptr.nextSibling); } | |
| 11861 | |
| 11862 String get oldValue() { return _ptr.oldValue; } | |
| 11863 | |
| 11864 Node get previousSibling() { return LevelDom.wrapNode(_ptr.previousSibling); } | |
| 11865 | |
| 11866 ElementList get removedNodes() { return LevelDom.wrapElementList(_ptr.removedN
odes); } | |
| 11867 | |
| 11868 Node get target() { return LevelDom.wrapNode(_ptr.target); } | |
| 11869 | |
| 11870 String get type() { return _ptr.type; } | |
| 11871 } | |
| 11872 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11873 // for details. All rights reserved. Use of this source code is governed by a | |
| 11874 // BSD-style license that can be found in the LICENSE file. | |
| 11875 | |
| 11876 // WARNING: Do not edit - generated code. | |
| 11877 | |
| 11878 class NavigatorUserMediaErrorCallbackWrappingImplementation extends DOMWrapperBa
se implements NavigatorUserMediaErrorCallback { | |
| 11879 NavigatorUserMediaErrorCallbackWrappingImplementation._wrap(ptr) : super._wrap
(ptr) {} | |
| 11880 | |
| 11881 bool handleEvent(NavigatorUserMediaError error) { | |
| 11882 return _ptr.handleEvent(LevelDom.unwrap(error)); | |
| 11883 } | |
| 11884 } | |
| 11885 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11886 // for details. All rights reserved. Use of this source code is governed by a | |
| 11887 // BSD-style license that can be found in the LICENSE file. | |
| 11888 | |
| 11889 // WARNING: Do not edit - generated code. | |
| 11890 | |
| 11891 class NavigatorUserMediaErrorWrappingImplementation extends DOMWrapperBase imple
ments NavigatorUserMediaError { | |
| 11892 NavigatorUserMediaErrorWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11893 | |
| 11894 int get code() { return _ptr.code; } | |
| 11895 } | |
| 11896 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11897 // for details. All rights reserved. Use of this source code is governed by a | |
| 11898 // BSD-style license that can be found in the LICENSE file. | |
| 11899 | |
| 11900 // WARNING: Do not edit - generated code. | |
| 11901 | |
| 11902 class NavigatorUserMediaSuccessCallbackWrappingImplementation extends DOMWrapper
Base implements NavigatorUserMediaSuccessCallback { | |
| 11903 NavigatorUserMediaSuccessCallbackWrappingImplementation._wrap(ptr) : super._wr
ap(ptr) {} | |
| 11904 | |
| 11905 bool handleEvent(LocalMediaStream stream) { | |
| 11906 return _ptr.handleEvent(LevelDom.unwrap(stream)); | |
| 11907 } | |
| 11908 } | |
| 11909 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11910 // for details. All rights reserved. Use of this source code is governed by a | |
| 11911 // BSD-style license that can be found in the LICENSE file. | |
| 11912 | |
| 11913 // WARNING: Do not edit - generated code. | |
| 11914 | |
| 11915 class NavigatorWrappingImplementation extends DOMWrapperBase implements Navigato
r { | |
| 11916 NavigatorWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11917 | |
| 11918 String get appCodeName() { return _ptr.appCodeName; } | |
| 11919 | |
| 11920 String get appName() { return _ptr.appName; } | |
| 11921 | |
| 11922 String get appVersion() { return _ptr.appVersion; } | |
| 11923 | |
| 11924 bool get cookieEnabled() { return _ptr.cookieEnabled; } | |
| 11925 | |
| 11926 String get language() { return _ptr.language; } | |
| 11927 | |
| 11928 DOMMimeTypeArray get mimeTypes() { return LevelDom.wrapDOMMimeTypeArray(_ptr.m
imeTypes); } | |
| 11929 | |
| 11930 bool get onLine() { return _ptr.onLine; } | |
| 11931 | |
| 11932 String get platform() { return _ptr.platform; } | |
| 11933 | |
| 11934 DOMPluginArray get plugins() { return LevelDom.wrapDOMPluginArray(_ptr.plugins
); } | |
| 11935 | |
| 11936 String get product() { return _ptr.product; } | |
| 11937 | |
| 11938 String get productSub() { return _ptr.productSub; } | |
| 11939 | |
| 11940 String get userAgent() { return _ptr.userAgent; } | |
| 11941 | |
| 11942 String get vendor() { return _ptr.vendor; } | |
| 11943 | |
| 11944 String get vendorSub() { return _ptr.vendorSub; } | |
| 11945 | |
| 11946 void getStorageUpdates() { | |
| 11947 _ptr.getStorageUpdates(); | |
| 11948 return; | |
| 11949 } | |
| 11950 | |
| 11951 bool javaEnabled() { | |
| 11952 return _ptr.javaEnabled(); | |
| 11953 } | |
| 11954 } | |
| 11955 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11956 // for details. All rights reserved. Use of this source code is governed by a | |
| 11957 // BSD-style license that can be found in the LICENSE file. | |
| 11958 | |
| 11959 // WARNING: Do not edit - generated code. | |
| 11960 | |
| 11961 class NotationWrappingImplementation extends NodeWrappingImplementation implemen
ts Notation { | |
| 11962 NotationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11963 | |
| 11964 String get publicId() { return _ptr.publicId; } | |
| 11965 | |
| 11966 String get systemId() { return _ptr.systemId; } | |
| 11967 } | |
| 11968 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11969 // for details. All rights reserved. Use of this source code is governed by a | |
| 11970 // BSD-style license that can be found in the LICENSE file. | |
| 11971 | |
| 11972 // WARNING: Do not edit - generated code. | |
| 11973 | |
| 11974 class NotificationCenterWrappingImplementation extends DOMWrapperBase implements
NotificationCenter { | |
| 11975 NotificationCenterWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 11976 | |
| 11977 int checkPermission() { | |
| 11978 return _ptr.checkPermission(); | |
| 11979 } | |
| 11980 | |
| 11981 Notification createHTMLNotification(String url) { | |
| 11982 return LevelDom.wrapNotification(_ptr.createHTMLNotification(url)); | |
| 11983 } | |
| 11984 | |
| 11985 Notification createNotification(String iconUrl, String title, String body) { | |
| 11986 return LevelDom.wrapNotification(_ptr.createNotification(iconUrl, title, bod
y)); | |
| 11987 } | |
| 11988 | |
| 11989 void requestPermission(VoidCallback callback) { | |
| 11990 _ptr.requestPermission(LevelDom.unwrap(callback)); | |
| 11991 return; | |
| 11992 } | |
| 11993 } | |
| 11994 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 11995 // for details. All rights reserved. Use of this source code is governed by a | |
| 11996 // BSD-style license that can be found in the LICENSE file. | |
| 11997 | |
| 11998 // WARNING: Do not edit - generated code. | |
| 11999 | |
| 12000 class OESStandardDerivativesWrappingImplementation extends DOMWrapperBase implem
ents OESStandardDerivatives { | |
| 12001 OESStandardDerivativesWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12002 } | |
| 12003 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12004 // for details. All rights reserved. Use of this source code is governed by a | |
| 12005 // BSD-style license that can be found in the LICENSE file. | |
| 12006 | |
| 12007 // WARNING: Do not edit - generated code. | |
| 12008 | |
| 12009 class OESTextureFloatWrappingImplementation extends DOMWrapperBase implements OE
STextureFloat { | |
| 12010 OESTextureFloatWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12011 } | |
| 12012 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12013 // for details. All rights reserved. Use of this source code is governed by a | |
| 12014 // BSD-style license that can be found in the LICENSE file. | |
| 12015 | |
| 12016 // WARNING: Do not edit - generated code. | |
| 12017 | |
| 12018 class OESVertexArrayObjectWrappingImplementation extends DOMWrapperBase implemen
ts OESVertexArrayObject { | |
| 12019 OESVertexArrayObjectWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12020 | |
| 12021 void bindVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) { | |
| 12022 _ptr.bindVertexArrayOES(LevelDom.unwrap(arrayObject)); | |
| 12023 return; | |
| 12024 } | |
| 12025 | |
| 12026 WebGLVertexArrayObjectOES createVertexArrayOES() { | |
| 12027 return LevelDom.wrapWebGLVertexArrayObjectOES(_ptr.createVertexArrayOES()); | |
| 12028 } | |
| 12029 | |
| 12030 void deleteVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) { | |
| 12031 _ptr.deleteVertexArrayOES(LevelDom.unwrap(arrayObject)); | |
| 12032 return; | |
| 12033 } | |
| 12034 | |
| 12035 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) { | |
| 12036 return _ptr.isVertexArrayOES(LevelDom.unwrap(arrayObject)); | |
| 12037 } | |
| 12038 } | |
| 12039 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12040 // for details. All rights reserved. Use of this source code is governed by a | |
| 12041 // BSD-style license that can be found in the LICENSE file. | |
| 12042 | |
| 12043 // WARNING: Do not edit - generated code. | |
| 12044 | |
| 12045 class OListElementWrappingImplementation extends ElementWrappingImplementation i
mplements OListElement { | |
| 12046 OListElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12047 | |
| 12048 bool get compact() { return _ptr.compact; } | |
| 12049 | |
| 12050 void set compact(bool value) { _ptr.compact = value; } | |
| 12051 | |
| 12052 int get start() { return _ptr.start; } | |
| 12053 | |
| 12054 void set start(int value) { _ptr.start = value; } | |
| 12055 | |
| 12056 String get type() { return _ptr.type; } | |
| 12057 | |
| 12058 void set type(String value) { _ptr.type = value; } | |
| 12059 } | |
| 12060 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12061 // for details. All rights reserved. Use of this source code is governed by a | |
| 12062 // BSD-style license that can be found in the LICENSE file. | |
| 12063 | |
| 12064 // WARNING: Do not edit - generated code. | |
| 12065 | |
| 12066 class ObjectElementWrappingImplementation extends ElementWrappingImplementation
implements ObjectElement { | |
| 12067 ObjectElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12068 | |
| 12069 String get align() { return _ptr.align; } | |
| 12070 | |
| 12071 void set align(String value) { _ptr.align = value; } | |
| 12072 | |
| 12073 String get archive() { return _ptr.archive; } | |
| 12074 | |
| 12075 void set archive(String value) { _ptr.archive = value; } | |
| 12076 | |
| 12077 String get border() { return _ptr.border; } | |
| 12078 | |
| 12079 void set border(String value) { _ptr.border = value; } | |
| 12080 | |
| 12081 String get code() { return _ptr.code; } | |
| 12082 | |
| 12083 void set code(String value) { _ptr.code = value; } | |
| 12084 | |
| 12085 String get codeBase() { return _ptr.codeBase; } | |
| 12086 | |
| 12087 void set codeBase(String value) { _ptr.codeBase = value; } | |
| 12088 | |
| 12089 String get codeType() { return _ptr.codeType; } | |
| 12090 | |
| 12091 void set codeType(String value) { _ptr.codeType = value; } | |
| 12092 | |
| 12093 Document get contentDocument() { return LevelDom.wrapDocument(_ptr.contentDocu
ment); } | |
| 12094 | |
| 12095 String get data() { return _ptr.data; } | |
| 12096 | |
| 12097 void set data(String value) { _ptr.data = value; } | |
| 12098 | |
| 12099 bool get declare() { return _ptr.declare; } | |
| 12100 | |
| 12101 void set declare(bool value) { _ptr.declare = value; } | |
| 12102 | |
| 12103 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
| 12104 | |
| 12105 String get height() { return _ptr.height; } | |
| 12106 | |
| 12107 void set height(String value) { _ptr.height = value; } | |
| 12108 | |
| 12109 int get hspace() { return _ptr.hspace; } | |
| 12110 | |
| 12111 void set hspace(int value) { _ptr.hspace = value; } | |
| 12112 | |
| 12113 String get name() { return _ptr.name; } | |
| 12114 | |
| 12115 void set name(String value) { _ptr.name = value; } | |
| 12116 | |
| 12117 String get standby() { return _ptr.standby; } | |
| 12118 | |
| 12119 void set standby(String value) { _ptr.standby = value; } | |
| 12120 | |
| 12121 String get type() { return _ptr.type; } | |
| 12122 | |
| 12123 void set type(String value) { _ptr.type = value; } | |
| 12124 | |
| 12125 String get useMap() { return _ptr.useMap; } | |
| 12126 | |
| 12127 void set useMap(String value) { _ptr.useMap = value; } | |
| 12128 | |
| 12129 String get validationMessage() { return _ptr.validationMessage; } | |
| 12130 | |
| 12131 ValidityState get validity() { return LevelDom.wrapValidityState(_ptr.validity
); } | |
| 12132 | |
| 12133 int get vspace() { return _ptr.vspace; } | |
| 12134 | |
| 12135 void set vspace(int value) { _ptr.vspace = value; } | |
| 12136 | |
| 12137 String get width() { return _ptr.width; } | |
| 12138 | |
| 12139 void set width(String value) { _ptr.width = value; } | |
| 12140 | |
| 12141 bool get willValidate() { return _ptr.willValidate; } | |
| 12142 | |
| 12143 bool checkValidity() { | |
| 12144 return _ptr.checkValidity(); | |
| 12145 } | |
| 12146 | |
| 12147 void setCustomValidity(String error) { | |
| 12148 _ptr.setCustomValidity(error); | |
| 12149 return; | |
| 12150 } | |
| 12151 } | |
| 12152 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12153 // for details. All rights reserved. Use of this source code is governed by a | |
| 12154 // BSD-style license that can be found in the LICENSE file. | |
| 12155 | |
| 12156 // WARNING: Do not edit - generated code. | |
| 12157 | |
| 12158 class OperationNotAllowedExceptionWrappingImplementation extends DOMWrapperBase
implements OperationNotAllowedException { | |
| 12159 OperationNotAllowedExceptionWrappingImplementation._wrap(ptr) : super._wrap(pt
r) {} | |
| 12160 | |
| 12161 int get code() { return _ptr.code; } | |
| 12162 | |
| 12163 String get message() { return _ptr.message; } | |
| 12164 | |
| 12165 String get name() { return _ptr.name; } | |
| 12166 } | |
| 12167 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12168 // for details. All rights reserved. Use of this source code is governed by a | |
| 12169 // BSD-style license that can be found in the LICENSE file. | |
| 12170 | |
| 12171 // WARNING: Do not edit - generated code. | |
| 12172 | |
| 12173 class OptGroupElementWrappingImplementation extends ElementWrappingImplementatio
n implements OptGroupElement { | |
| 12174 OptGroupElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12175 | |
| 12176 bool get disabled() { return _ptr.disabled; } | |
| 12177 | |
| 12178 void set disabled(bool value) { _ptr.disabled = value; } | |
| 12179 | |
| 12180 String get label() { return _ptr.label; } | |
| 12181 | |
| 12182 void set label(String value) { _ptr.label = value; } | |
| 12183 } | |
| 12184 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12185 // for details. All rights reserved. Use of this source code is governed by a | |
| 12186 // BSD-style license that can be found in the LICENSE file. | |
| 12187 | |
| 12188 // WARNING: Do not edit - generated code. | |
| 12189 | |
| 12190 class OptionElementWrappingImplementation extends ElementWrappingImplementation
implements OptionElement { | |
| 12191 OptionElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12192 | |
| 12193 bool get defaultSelected() { return _ptr.defaultSelected; } | |
| 12194 | |
| 12195 void set defaultSelected(bool value) { _ptr.defaultSelected = value; } | |
| 12196 | |
| 12197 bool get disabled() { return _ptr.disabled; } | |
| 12198 | |
| 12199 void set disabled(bool value) { _ptr.disabled = value; } | |
| 12200 | |
| 12201 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
| 12202 | |
| 12203 int get index() { return _ptr.index; } | |
| 12204 | |
| 12205 String get label() { return _ptr.label; } | |
| 12206 | |
| 12207 void set label(String value) { _ptr.label = value; } | |
| 12208 | |
| 12209 bool get selected() { return _ptr.selected; } | |
| 12210 | |
| 12211 void set selected(bool value) { _ptr.selected = value; } | |
| 12212 | |
| 12213 String get text() { return _ptr.text; } | |
| 12214 | |
| 12215 String get value() { return _ptr.value; } | |
| 12216 | |
| 12217 void set value(String value) { _ptr.value = value; } | |
| 12218 } | |
| 12219 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12220 // for details. All rights reserved. Use of this source code is governed by a | |
| 12221 // BSD-style license that can be found in the LICENSE file. | |
| 12222 | |
| 12223 // WARNING: Do not edit - generated code. | |
| 12224 | |
| 12225 class OutputElementWrappingImplementation extends ElementWrappingImplementation
implements OutputElement { | |
| 12226 OutputElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12227 | |
| 12228 String get defaultValue() { return _ptr.defaultValue; } | |
| 12229 | |
| 12230 void set defaultValue(String value) { _ptr.defaultValue = value; } | |
| 12231 | |
| 12232 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
| 12233 | |
| 12234 DOMSettableTokenList get htmlFor() { return LevelDom.wrapDOMSettableTokenList(
_ptr.htmlFor); } | |
| 12235 | |
| 12236 void set htmlFor(DOMSettableTokenList value) { _ptr.htmlFor = LevelDom.unwrap(
value); } | |
| 12237 | |
| 12238 ElementList get labels() { return LevelDom.wrapElementList(_ptr.labels); } | |
| 12239 | |
| 12240 String get name() { return _ptr.name; } | |
| 12241 | |
| 12242 void set name(String value) { _ptr.name = value; } | |
| 12243 | |
| 12244 String get type() { return _ptr.type; } | |
| 12245 | |
| 12246 String get validationMessage() { return _ptr.validationMessage; } | |
| 12247 | |
| 12248 ValidityState get validity() { return LevelDom.wrapValidityState(_ptr.validity
); } | |
| 12249 | |
| 12250 String get value() { return _ptr.value; } | |
| 12251 | |
| 12252 void set value(String value) { _ptr.value = value; } | |
| 12253 | |
| 12254 bool get willValidate() { return _ptr.willValidate; } | |
| 12255 | |
| 12256 bool checkValidity() { | |
| 12257 return _ptr.checkValidity(); | |
| 12258 } | |
| 12259 | |
| 12260 void setCustomValidity(String error) { | |
| 12261 _ptr.setCustomValidity(error); | |
| 12262 return; | |
| 12263 } | |
| 12264 } | |
| 12265 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12266 // for details. All rights reserved. Use of this source code is governed by a | |
| 12267 // BSD-style license that can be found in the LICENSE file. | |
| 12268 | |
| 12269 // WARNING: Do not edit - generated code. | |
| 12270 | |
| 12271 class ParagraphElementWrappingImplementation extends ElementWrappingImplementati
on implements ParagraphElement { | |
| 12272 ParagraphElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12273 | |
| 12274 String get align() { return _ptr.align; } | |
| 12275 | |
| 12276 void set align(String value) { _ptr.align = value; } | |
| 12277 } | |
| 12278 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12279 // for details. All rights reserved. Use of this source code is governed by a | |
| 12280 // BSD-style license that can be found in the LICENSE file. | |
| 12281 | |
| 12282 // WARNING: Do not edit - generated code. | |
| 12283 | |
| 12284 class ParamElementWrappingImplementation extends ElementWrappingImplementation i
mplements ParamElement { | |
| 12285 ParamElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12286 | |
| 12287 String get name() { return _ptr.name; } | |
| 12288 | |
| 12289 void set name(String value) { _ptr.name = value; } | |
| 12290 | |
| 12291 String get type() { return _ptr.type; } | |
| 12292 | |
| 12293 void set type(String value) { _ptr.type = value; } | |
| 12294 | |
| 12295 String get value() { return _ptr.value; } | |
| 12296 | |
| 12297 void set value(String value) { _ptr.value = value; } | |
| 12298 | |
| 12299 String get valueType() { return _ptr.valueType; } | |
| 12300 | |
| 12301 void set valueType(String value) { _ptr.valueType = value; } | |
| 12302 } | |
| 12303 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12304 // for details. All rights reserved. Use of this source code is governed by a | |
| 12305 // BSD-style license that can be found in the LICENSE file. | |
| 12306 | |
| 12307 // WARNING: Do not edit - generated code. | |
| 12308 | |
| 12309 class PointWrappingImplementation extends DOMWrapperBase implements Point { | |
| 12310 PointWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12311 | |
| 12312 num get x() { return _ptr.x; } | |
| 12313 | |
| 12314 void set x(num value) { _ptr.x = value; } | |
| 12315 | |
| 12316 num get y() { return _ptr.y; } | |
| 12317 | |
| 12318 void set y(num value) { _ptr.y = value; } | |
| 12319 } | |
| 12320 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12321 // for details. All rights reserved. Use of this source code is governed by a | |
| 12322 // BSD-style license that can be found in the LICENSE file. | |
| 12323 | |
| 12324 // WARNING: Do not edit - generated code. | |
| 12325 | |
| 12326 class PositionCallbackWrappingImplementation extends DOMWrapperBase implements P
ositionCallback { | |
| 12327 PositionCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12328 | |
| 12329 bool handleEvent(Geoposition position) { | |
| 12330 return _ptr.handleEvent(LevelDom.unwrap(position)); | |
| 12331 } | |
| 12332 } | |
| 12333 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12334 // for details. All rights reserved. Use of this source code is governed by a | |
| 12335 // BSD-style license that can be found in the LICENSE file. | |
| 12336 | |
| 12337 // WARNING: Do not edit - generated code. | |
| 12338 | |
| 12339 class PositionErrorCallbackWrappingImplementation extends DOMWrapperBase impleme
nts PositionErrorCallback { | |
| 12340 PositionErrorCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12341 | |
| 12342 bool handleEvent(PositionError error) { | |
| 12343 return _ptr.handleEvent(LevelDom.unwrap(error)); | |
| 12344 } | |
| 12345 } | |
| 12346 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12347 // for details. All rights reserved. Use of this source code is governed by a | |
| 12348 // BSD-style license that can be found in the LICENSE file. | |
| 12349 | |
| 12350 // WARNING: Do not edit - generated code. | |
| 12351 | |
| 12352 class PositionErrorWrappingImplementation extends DOMWrapperBase implements Posi
tionError { | |
| 12353 PositionErrorWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12354 | |
| 12355 int get code() { return _ptr.code; } | |
| 12356 | |
| 12357 String get message() { return _ptr.message; } | |
| 12358 } | |
| 12359 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12360 // for details. All rights reserved. Use of this source code is governed by a | |
| 12361 // BSD-style license that can be found in the LICENSE file. | |
| 12362 | |
| 12363 // WARNING: Do not edit - generated code. | |
| 12364 | |
| 12365 class PreElementWrappingImplementation extends ElementWrappingImplementation imp
lements PreElement { | |
| 12366 PreElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12367 | |
| 12368 int get width() { return _ptr.width; } | |
| 12369 | |
| 12370 void set width(int value) { _ptr.width = value; } | |
| 12371 | |
| 12372 bool get wrap() { return _ptr.wrap; } | |
| 12373 | |
| 12374 void set wrap(bool value) { _ptr.wrap = value; } | |
| 12375 } | |
| 12376 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12377 // for details. All rights reserved. Use of this source code is governed by a | |
| 12378 // BSD-style license that can be found in the LICENSE file. | |
| 12379 | |
| 12380 // WARNING: Do not edit - generated code. | |
| 12381 | |
| 12382 class ProcessingInstructionWrappingImplementation extends NodeWrappingImplementa
tion implements ProcessingInstruction { | |
| 12383 ProcessingInstructionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12384 | |
| 12385 String get data() { return _ptr.data; } | |
| 12386 | |
| 12387 void set data(String value) { _ptr.data = value; } | |
| 12388 | |
| 12389 StyleSheet get sheet() { return LevelDom.wrapStyleSheet(_ptr.sheet); } | |
| 12390 | |
| 12391 String get target() { return _ptr.target; } | |
| 12392 } | |
| 12393 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12394 // for details. All rights reserved. Use of this source code is governed by a | |
| 12395 // BSD-style license that can be found in the LICENSE file. | |
| 12396 | |
| 12397 // WARNING: Do not edit - generated code. | |
| 12398 | |
| 12399 class ProgressElementWrappingImplementation extends ElementWrappingImplementatio
n implements ProgressElement { | |
| 12400 ProgressElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12401 | |
| 12402 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
| 12403 | |
| 12404 ElementList get labels() { return LevelDom.wrapElementList(_ptr.labels); } | |
| 12405 | |
| 12406 num get max() { return _ptr.max; } | |
| 12407 | |
| 12408 void set max(num value) { _ptr.max = value; } | |
| 12409 | |
| 12410 num get position() { return _ptr.position; } | |
| 12411 | |
| 12412 num get value() { return _ptr.value; } | |
| 12413 | |
| 12414 void set value(num value) { _ptr.value = value; } | |
| 12415 } | |
| 12416 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12417 // for details. All rights reserved. Use of this source code is governed by a | |
| 12418 // BSD-style license that can be found in the LICENSE file. | |
| 12419 | |
| 12420 // WARNING: Do not edit - generated code. | |
| 12421 | |
| 12422 class QuoteElementWrappingImplementation extends ElementWrappingImplementation i
mplements QuoteElement { | |
| 12423 QuoteElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12424 | |
| 12425 String get cite() { return _ptr.cite; } | |
| 12426 | |
| 12427 void set cite(String value) { _ptr.cite = value; } | |
| 12428 } | |
| 12429 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12430 // for details. All rights reserved. Use of this source code is governed by a | |
| 12431 // BSD-style license that can be found in the LICENSE file. | |
| 12432 | |
| 12433 // WARNING: Do not edit - generated code. | |
| 12434 | |
| 12435 class RGBColorWrappingImplementation extends DOMWrapperBase implements RGBColor
{ | |
| 12436 RGBColorWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12437 | |
| 12438 CSSPrimitiveValue get alpha() { return LevelDom.wrapCSSPrimitiveValue(_ptr.alp
ha); } | |
| 12439 | |
| 12440 CSSPrimitiveValue get blue() { return LevelDom.wrapCSSPrimitiveValue(_ptr.blue
); } | |
| 12441 | |
| 12442 CSSPrimitiveValue get green() { return LevelDom.wrapCSSPrimitiveValue(_ptr.gre
en); } | |
| 12443 | |
| 12444 CSSPrimitiveValue get red() { return LevelDom.wrapCSSPrimitiveValue(_ptr.red);
} | |
| 12445 } | |
| 12446 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12447 // for details. All rights reserved. Use of this source code is governed by a | |
| 12448 // BSD-style license that can be found in the LICENSE file. | |
| 12449 | |
| 12450 // WARNING: Do not edit - generated code. | |
| 12451 | |
| 12452 class RangeExceptionWrappingImplementation extends DOMWrapperBase implements Ran
geException { | |
| 12453 RangeExceptionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12454 | |
| 12455 int get code() { return _ptr.code; } | |
| 12456 | |
| 12457 String get message() { return _ptr.message; } | |
| 12458 | |
| 12459 String get name() { return _ptr.name; } | |
| 12460 } | |
| 12461 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12462 // for details. All rights reserved. Use of this source code is governed by a | |
| 12463 // BSD-style license that can be found in the LICENSE file. | |
| 12464 | |
| 12465 // WARNING: Do not edit - generated code. | |
| 12466 | |
| 12467 class RangeWrappingImplementation extends DOMWrapperBase implements Range { | |
| 12468 RangeWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12469 | |
| 12470 bool get collapsed() { return _ptr.collapsed; } | |
| 12471 | |
| 12472 Node get commonAncestorContainer() { return LevelDom.wrapNode(_ptr.commonAnces
torContainer); } | |
| 12473 | |
| 12474 Node get endContainer() { return LevelDom.wrapNode(_ptr.endContainer); } | |
| 12475 | |
| 12476 int get endOffset() { return _ptr.endOffset; } | |
| 12477 | |
| 12478 Node get startContainer() { return LevelDom.wrapNode(_ptr.startContainer); } | |
| 12479 | |
| 12480 int get startOffset() { return _ptr.startOffset; } | |
| 12481 | |
| 12482 String get text() { return _ptr.text; } | |
| 12483 | |
| 12484 DocumentFragment cloneContents() { | |
| 12485 return LevelDom.wrapDocumentFragment(_ptr.cloneContents()); | |
| 12486 } | |
| 12487 | |
| 12488 Range cloneRange() { | |
| 12489 return LevelDom.wrapRange(_ptr.cloneRange()); | |
| 12490 } | |
| 12491 | |
| 12492 void collapse(bool toStart) { | |
| 12493 _ptr.collapse(toStart); | |
| 12494 return; | |
| 12495 } | |
| 12496 | |
| 12497 int compareNode(Node refNode) { | |
| 12498 return _ptr.compareNode(LevelDom.unwrap(refNode)); | |
| 12499 } | |
| 12500 | |
| 12501 int comparePoint(Node refNode, int offset) { | |
| 12502 return _ptr.comparePoint(LevelDom.unwrap(refNode), offset); | |
| 12503 } | |
| 12504 | |
| 12505 DocumentFragment createContextualFragment(String html) { | |
| 12506 return LevelDom.wrapDocumentFragment(_ptr.createContextualFragment(html)); | |
| 12507 } | |
| 12508 | |
| 12509 void deleteContents() { | |
| 12510 _ptr.deleteContents(); | |
| 12511 return; | |
| 12512 } | |
| 12513 | |
| 12514 void detach() { | |
| 12515 _ptr.detach(); | |
| 12516 return; | |
| 12517 } | |
| 12518 | |
| 12519 void expand(String unit) { | |
| 12520 _ptr.expand(unit); | |
| 12521 return; | |
| 12522 } | |
| 12523 | |
| 12524 DocumentFragment extractContents() { | |
| 12525 return LevelDom.wrapDocumentFragment(_ptr.extractContents()); | |
| 12526 } | |
| 12527 | |
| 12528 void insertNode(Node newNode) { | |
| 12529 _ptr.insertNode(LevelDom.unwrap(newNode)); | |
| 12530 return; | |
| 12531 } | |
| 12532 | |
| 12533 bool intersectsNode(Node refNode) { | |
| 12534 return _ptr.intersectsNode(LevelDom.unwrap(refNode)); | |
| 12535 } | |
| 12536 | |
| 12537 bool isPointInRange(Node refNode, int offset) { | |
| 12538 return _ptr.isPointInRange(LevelDom.unwrap(refNode), offset); | |
| 12539 } | |
| 12540 | |
| 12541 void selectNode(Node refNode) { | |
| 12542 _ptr.selectNode(LevelDom.unwrap(refNode)); | |
| 12543 return; | |
| 12544 } | |
| 12545 | |
| 12546 void selectNodeContents(Node refNode) { | |
| 12547 _ptr.selectNodeContents(LevelDom.unwrap(refNode)); | |
| 12548 return; | |
| 12549 } | |
| 12550 | |
| 12551 void setEnd(Node refNode, int offset) { | |
| 12552 _ptr.setEnd(LevelDom.unwrap(refNode), offset); | |
| 12553 return; | |
| 12554 } | |
| 12555 | |
| 12556 void setEndAfter(Node refNode) { | |
| 12557 _ptr.setEndAfter(LevelDom.unwrap(refNode)); | |
| 12558 return; | |
| 12559 } | |
| 12560 | |
| 12561 void setEndBefore(Node refNode) { | |
| 12562 _ptr.setEndBefore(LevelDom.unwrap(refNode)); | |
| 12563 return; | |
| 12564 } | |
| 12565 | |
| 12566 void setStart(Node refNode, int offset) { | |
| 12567 _ptr.setStart(LevelDom.unwrap(refNode), offset); | |
| 12568 return; | |
| 12569 } | |
| 12570 | |
| 12571 void setStartAfter(Node refNode) { | |
| 12572 _ptr.setStartAfter(LevelDom.unwrap(refNode)); | |
| 12573 return; | |
| 12574 } | |
| 12575 | |
| 12576 void setStartBefore(Node refNode) { | |
| 12577 _ptr.setStartBefore(LevelDom.unwrap(refNode)); | |
| 12578 return; | |
| 12579 } | |
| 12580 | |
| 12581 void surroundContents(Node newParent) { | |
| 12582 _ptr.surroundContents(LevelDom.unwrap(newParent)); | |
| 12583 return; | |
| 12584 } | |
| 12585 | |
| 12586 String toString() { | |
| 12587 return _ptr.toString(); | |
| 12588 } | |
| 12589 } | |
| 12590 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12591 // for details. All rights reserved. Use of this source code is governed by a | |
| 12592 // BSD-style license that can be found in the LICENSE file. | |
| 12593 | |
| 12594 // WARNING: Do not edit - generated code. | |
| 12595 | |
| 12596 class RectWrappingImplementation extends DOMWrapperBase implements Rect { | |
| 12597 RectWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12598 | |
| 12599 CSSPrimitiveValue get bottom() { return LevelDom.wrapCSSPrimitiveValue(_ptr.bo
ttom); } | |
| 12600 | |
| 12601 CSSPrimitiveValue get left() { return LevelDom.wrapCSSPrimitiveValue(_ptr.left
); } | |
| 12602 | |
| 12603 CSSPrimitiveValue get right() { return LevelDom.wrapCSSPrimitiveValue(_ptr.rig
ht); } | |
| 12604 | |
| 12605 CSSPrimitiveValue get top() { return LevelDom.wrapCSSPrimitiveValue(_ptr.top);
} | |
| 12606 } | |
| 12607 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12608 // for details. All rights reserved. Use of this source code is governed by a | |
| 12609 // BSD-style license that can be found in the LICENSE file. | |
| 12610 | |
| 12611 // WARNING: Do not edit - generated code. | |
| 12612 | |
| 12613 class ScreenWrappingImplementation extends DOMWrapperBase implements Screen { | |
| 12614 ScreenWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12615 | |
| 12616 int get availHeight() { return _ptr.availHeight; } | |
| 12617 | |
| 12618 int get availLeft() { return _ptr.availLeft; } | |
| 12619 | |
| 12620 int get availTop() { return _ptr.availTop; } | |
| 12621 | |
| 12622 int get availWidth() { return _ptr.availWidth; } | |
| 12623 | |
| 12624 int get colorDepth() { return _ptr.colorDepth; } | |
| 12625 | |
| 12626 int get height() { return _ptr.height; } | |
| 12627 | |
| 12628 int get pixelDepth() { return _ptr.pixelDepth; } | |
| 12629 | |
| 12630 int get width() { return _ptr.width; } | |
| 12631 } | |
| 12632 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12633 // for details. All rights reserved. Use of this source code is governed by a | |
| 12634 // BSD-style license that can be found in the LICENSE file. | |
| 12635 | |
| 12636 // WARNING: Do not edit - generated code. | |
| 12637 | |
| 12638 class ScriptElementWrappingImplementation extends ElementWrappingImplementation
implements ScriptElement { | |
| 12639 ScriptElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12640 | |
| 12641 bool get async() { return _ptr.async; } | |
| 12642 | |
| 12643 void set async(bool value) { _ptr.async = value; } | |
| 12644 | |
| 12645 String get charset() { return _ptr.charset; } | |
| 12646 | |
| 12647 void set charset(String value) { _ptr.charset = value; } | |
| 12648 | |
| 12649 bool get defer() { return _ptr.defer; } | |
| 12650 | |
| 12651 void set defer(bool value) { _ptr.defer = value; } | |
| 12652 | |
| 12653 String get event() { return _ptr.event; } | |
| 12654 | |
| 12655 void set event(String value) { _ptr.event = value; } | |
| 12656 | |
| 12657 String get htmlFor() { return _ptr.htmlFor; } | |
| 12658 | |
| 12659 void set htmlFor(String value) { _ptr.htmlFor = value; } | |
| 12660 | |
| 12661 String get src() { return _ptr.src; } | |
| 12662 | |
| 12663 void set src(String value) { _ptr.src = value; } | |
| 12664 | |
| 12665 String get text() { return _ptr.text; } | |
| 12666 | |
| 12667 void set text(String value) { _ptr.text = value; } | |
| 12668 | |
| 12669 String get type() { return _ptr.type; } | |
| 12670 | |
| 12671 void set type(String value) { _ptr.type = value; } | |
| 12672 } | |
| 12673 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12674 // for details. All rights reserved. Use of this source code is governed by a | |
| 12675 // BSD-style license that can be found in the LICENSE file. | |
| 12676 | |
| 12677 // WARNING: Do not edit - generated code. | |
| 12678 | |
| 12679 class SelectElementWrappingImplementation extends ElementWrappingImplementation
implements SelectElement { | |
| 12680 SelectElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12681 | |
| 12682 bool get autofocus() { return _ptr.autofocus; } | |
| 12683 | |
| 12684 void set autofocus(bool value) { _ptr.autofocus = value; } | |
| 12685 | |
| 12686 bool get disabled() { return _ptr.disabled; } | |
| 12687 | |
| 12688 void set disabled(bool value) { _ptr.disabled = value; } | |
| 12689 | |
| 12690 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
| 12691 | |
| 12692 ElementList get labels() { return LevelDom.wrapElementList(_ptr.labels); } | |
| 12693 | |
| 12694 int get length() { return _ptr.length; } | |
| 12695 | |
| 12696 void set length(int value) { _ptr.length = value; } | |
| 12697 | |
| 12698 bool get multiple() { return _ptr.multiple; } | |
| 12699 | |
| 12700 void set multiple(bool value) { _ptr.multiple = value; } | |
| 12701 | |
| 12702 String get name() { return _ptr.name; } | |
| 12703 | |
| 12704 void set name(String value) { _ptr.name = value; } | |
| 12705 | |
| 12706 ElementList get options() { return LevelDom.wrapElementList(_ptr.options); } | |
| 12707 | |
| 12708 bool get required() { return _ptr.required; } | |
| 12709 | |
| 12710 void set required(bool value) { _ptr.required = value; } | |
| 12711 | |
| 12712 int get selectedIndex() { return _ptr.selectedIndex; } | |
| 12713 | |
| 12714 void set selectedIndex(int value) { _ptr.selectedIndex = value; } | |
| 12715 | |
| 12716 int get size() { return _ptr.size; } | |
| 12717 | |
| 12718 void set size(int value) { _ptr.size = value; } | |
| 12719 | |
| 12720 String get type() { return _ptr.type; } | |
| 12721 | |
| 12722 String get validationMessage() { return _ptr.validationMessage; } | |
| 12723 | |
| 12724 ValidityState get validity() { return LevelDom.wrapValidityState(_ptr.validity
); } | |
| 12725 | |
| 12726 String get value() { return _ptr.value; } | |
| 12727 | |
| 12728 void set value(String value) { _ptr.value = value; } | |
| 12729 | |
| 12730 bool get willValidate() { return _ptr.willValidate; } | |
| 12731 | |
| 12732 void add(Element element, Element before) { | |
| 12733 _ptr.add(LevelDom.unwrap(element), LevelDom.unwrap(before)); | |
| 12734 return; | |
| 12735 } | |
| 12736 | |
| 12737 bool checkValidity() { | |
| 12738 return _ptr.checkValidity(); | |
| 12739 } | |
| 12740 | |
| 12741 Node item(int index) { | |
| 12742 return LevelDom.wrapNode(_ptr.item(index)); | |
| 12743 } | |
| 12744 | |
| 12745 Node namedItem(String name) { | |
| 12746 return LevelDom.wrapNode(_ptr.namedItem(name)); | |
| 12747 } | |
| 12748 | |
| 12749 void setCustomValidity(String error) { | |
| 12750 _ptr.setCustomValidity(error); | |
| 12751 return; | |
| 12752 } | |
| 12753 } | |
| 12754 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12755 // for details. All rights reserved. Use of this source code is governed by a | |
| 12756 // BSD-style license that can be found in the LICENSE file. | |
| 12757 | |
| 12758 // WARNING: Do not edit - generated code. | |
| 12759 | |
| 12760 class SourceElementWrappingImplementation extends ElementWrappingImplementation
implements SourceElement { | |
| 12761 SourceElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12762 | |
| 12763 String get media() { return _ptr.media; } | |
| 12764 | |
| 12765 void set media(String value) { _ptr.media = value; } | |
| 12766 | |
| 12767 String get src() { return _ptr.src; } | |
| 12768 | |
| 12769 void set src(String value) { _ptr.src = value; } | |
| 12770 | |
| 12771 String get type() { return _ptr.type; } | |
| 12772 | |
| 12773 void set type(String value) { _ptr.type = value; } | |
| 12774 } | |
| 12775 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12776 // for details. All rights reserved. Use of this source code is governed by a | |
| 12777 // BSD-style license that can be found in the LICENSE file. | |
| 12778 | |
| 12779 // WARNING: Do not edit - generated code. | |
| 12780 | |
| 12781 class SpanElementWrappingImplementation extends ElementWrappingImplementation im
plements SpanElement { | |
| 12782 SpanElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12783 } | |
| 12784 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12785 // for details. All rights reserved. Use of this source code is governed by a | |
| 12786 // BSD-style license that can be found in the LICENSE file. | |
| 12787 | |
| 12788 // WARNING: Do not edit - generated code. | |
| 12789 | |
| 12790 class SpeechInputEventWrappingImplementation extends EventWrappingImplementation
implements SpeechInputEvent { | |
| 12791 SpeechInputEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12792 | |
| 12793 SpeechInputResultList get results() { return LevelDom.wrapSpeechInputResultLis
t(_ptr.results); } | |
| 12794 } | |
| 12795 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12796 // for details. All rights reserved. Use of this source code is governed by a | |
| 12797 // BSD-style license that can be found in the LICENSE file. | |
| 12798 | |
| 12799 // WARNING: Do not edit - generated code. | |
| 12800 | |
| 12801 class SpeechInputResultListWrappingImplementation extends DOMWrapperBase impleme
nts SpeechInputResultList { | |
| 12802 SpeechInputResultListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12803 | |
| 12804 int get length() { return _ptr.length; } | |
| 12805 | |
| 12806 SpeechInputResult item(int index) { | |
| 12807 return LevelDom.wrapSpeechInputResult(_ptr.item(index)); | |
| 12808 } | |
| 12809 } | |
| 12810 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12811 // for details. All rights reserved. Use of this source code is governed by a | |
| 12812 // BSD-style license that can be found in the LICENSE file. | |
| 12813 | |
| 12814 // WARNING: Do not edit - generated code. | |
| 12815 | |
| 12816 class SpeechInputResultWrappingImplementation extends DOMWrapperBase implements
SpeechInputResult { | |
| 12817 SpeechInputResultWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12818 | |
| 12819 num get confidence() { return _ptr.confidence; } | |
| 12820 | |
| 12821 String get utterance() { return _ptr.utterance; } | |
| 12822 } | |
| 12823 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12824 // for details. All rights reserved. Use of this source code is governed by a | |
| 12825 // BSD-style license that can be found in the LICENSE file. | |
| 12826 | |
| 12827 // WARNING: Do not edit - generated code. | |
| 12828 | |
| 12829 class StorageInfoErrorCallbackWrappingImplementation extends DOMWrapperBase impl
ements StorageInfoErrorCallback { | |
| 12830 StorageInfoErrorCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {
} | |
| 12831 | |
| 12832 bool handleEvent(DOMException error) { | |
| 12833 return _ptr.handleEvent(LevelDom.unwrap(error)); | |
| 12834 } | |
| 12835 } | |
| 12836 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12837 // for details. All rights reserved. Use of this source code is governed by a | |
| 12838 // BSD-style license that can be found in the LICENSE file. | |
| 12839 | |
| 12840 // WARNING: Do not edit - generated code. | |
| 12841 | |
| 12842 class StorageInfoQuotaCallbackWrappingImplementation extends DOMWrapperBase impl
ements StorageInfoQuotaCallback { | |
| 12843 StorageInfoQuotaCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {
} | |
| 12844 | |
| 12845 bool handleEvent(int grantedQuotaInBytes) { | |
| 12846 return _ptr.handleEvent(grantedQuotaInBytes); | |
| 12847 } | |
| 12848 } | |
| 12849 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12850 // for details. All rights reserved. Use of this source code is governed by a | |
| 12851 // BSD-style license that can be found in the LICENSE file. | |
| 12852 | |
| 12853 // WARNING: Do not edit - generated code. | |
| 12854 | |
| 12855 class StorageInfoUsageCallbackWrappingImplementation extends DOMWrapperBase impl
ements StorageInfoUsageCallback { | |
| 12856 StorageInfoUsageCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {
} | |
| 12857 | |
| 12858 bool handleEvent(int currentUsageInBytes, int currentQuotaInBytes) { | |
| 12859 return _ptr.handleEvent(currentUsageInBytes, currentQuotaInBytes); | |
| 12860 } | |
| 12861 } | |
| 12862 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12863 // for details. All rights reserved. Use of this source code is governed by a | |
| 12864 // BSD-style license that can be found in the LICENSE file. | |
| 12865 | |
| 12866 // WARNING: Do not edit - generated code. | |
| 12867 | |
| 12868 class StorageInfoWrappingImplementation extends DOMWrapperBase implements Storag
eInfo { | |
| 12869 StorageInfoWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12870 | |
| 12871 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck = null, StorageInfoErrorCallback errorCallback = null]) { | |
| 12872 if (usageCallback === null) { | |
| 12873 if (errorCallback === null) { | |
| 12874 _ptr.queryUsageAndQuota(storageType); | |
| 12875 return; | |
| 12876 } | |
| 12877 } else { | |
| 12878 if (errorCallback === null) { | |
| 12879 _ptr.queryUsageAndQuota(storageType, LevelDom.unwrap(usageCallback)); | |
| 12880 return; | |
| 12881 } else { | |
| 12882 _ptr.queryUsageAndQuota(storageType, LevelDom.unwrap(usageCallback), Lev
elDom.unwrap(errorCallback)); | |
| 12883 return; | |
| 12884 } | |
| 12885 } | |
| 12886 throw "Incorrect number or type of arguments"; | |
| 12887 } | |
| 12888 | |
| 12889 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback = null, StorageInfoErrorCallback errorCallback = null]) { | |
| 12890 if (quotaCallback === null) { | |
| 12891 if (errorCallback === null) { | |
| 12892 _ptr.requestQuota(storageType, newQuotaInBytes); | |
| 12893 return; | |
| 12894 } | |
| 12895 } else { | |
| 12896 if (errorCallback === null) { | |
| 12897 _ptr.requestQuota(storageType, newQuotaInBytes, LevelDom.unwrap(quotaCal
lback)); | |
| 12898 return; | |
| 12899 } else { | |
| 12900 _ptr.requestQuota(storageType, newQuotaInBytes, LevelDom.unwrap(quotaCal
lback), LevelDom.unwrap(errorCallback)); | |
| 12901 return; | |
| 12902 } | |
| 12903 } | |
| 12904 throw "Incorrect number or type of arguments"; | |
| 12905 } | |
| 12906 } | |
| 12907 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12908 // for details. All rights reserved. Use of this source code is governed by a | |
| 12909 // BSD-style license that can be found in the LICENSE file. | |
| 12910 | |
| 12911 // WARNING: Do not edit - generated code. | |
| 12912 | |
| 12913 class StorageWrappingImplementation extends DOMWrapperBase implements Storage { | |
| 12914 StorageWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12915 | |
| 12916 int get length() { return _ptr.length; } | |
| 12917 | |
| 12918 void clear() { | |
| 12919 _ptr.clear(); | |
| 12920 return; | |
| 12921 } | |
| 12922 | |
| 12923 String getItem(String key) { | |
| 12924 return _ptr.getItem(key); | |
| 12925 } | |
| 12926 | |
| 12927 String key(int index) { | |
| 12928 return _ptr.key(index); | |
| 12929 } | |
| 12930 | |
| 12931 void removeItem(String key) { | |
| 12932 _ptr.removeItem(key); | |
| 12933 return; | |
| 12934 } | |
| 12935 | |
| 12936 void setItem(String key, String data) { | |
| 12937 _ptr.setItem(key, data); | |
| 12938 return; | |
| 12939 } | |
| 12940 } | |
| 12941 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12942 // for details. All rights reserved. Use of this source code is governed by a | |
| 12943 // BSD-style license that can be found in the LICENSE file. | |
| 12944 | |
| 12945 // WARNING: Do not edit - generated code. | |
| 12946 | |
| 12947 class StringCallbackWrappingImplementation extends DOMWrapperBase implements Str
ingCallback { | |
| 12948 StringCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12949 | |
| 12950 bool handleEvent(String data) { | |
| 12951 return _ptr.handleEvent(data); | |
| 12952 } | |
| 12953 } | |
| 12954 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12955 // for details. All rights reserved. Use of this source code is governed by a | |
| 12956 // BSD-style license that can be found in the LICENSE file. | |
| 12957 | |
| 12958 // WARNING: Do not edit - generated code. | |
| 12959 | |
| 12960 class StyleElementWrappingImplementation extends ElementWrappingImplementation i
mplements StyleElement { | |
| 12961 StyleElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12962 | |
| 12963 bool get disabled() { return _ptr.disabled; } | |
| 12964 | |
| 12965 void set disabled(bool value) { _ptr.disabled = value; } | |
| 12966 | |
| 12967 String get media() { return _ptr.media; } | |
| 12968 | |
| 12969 void set media(String value) { _ptr.media = value; } | |
| 12970 | |
| 12971 StyleSheet get sheet() { return LevelDom.wrapStyleSheet(_ptr.sheet); } | |
| 12972 | |
| 12973 String get type() { return _ptr.type; } | |
| 12974 | |
| 12975 void set type(String value) { _ptr.type = value; } | |
| 12976 } | |
| 12977 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12978 // for details. All rights reserved. Use of this source code is governed by a | |
| 12979 // BSD-style license that can be found in the LICENSE file. | |
| 12980 | |
| 12981 // WARNING: Do not edit - generated code. | |
| 12982 | |
| 12983 class StyleMediaWrappingImplementation extends DOMWrapperBase implements StyleMe
dia { | |
| 12984 StyleMediaWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 12985 | |
| 12986 String get type() { return _ptr.type; } | |
| 12987 | |
| 12988 bool matchMedium(String mediaquery) { | |
| 12989 return _ptr.matchMedium(mediaquery); | |
| 12990 } | |
| 12991 } | |
| 12992 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 12993 // for details. All rights reserved. Use of this source code is governed by a | |
| 12994 // BSD-style license that can be found in the LICENSE file. | |
| 12995 | |
| 12996 // WARNING: Do not edit - generated code. | |
| 12997 | |
| 12998 class StyleSheetListWrappingImplementation extends DOMWrapperBase implements Sty
leSheetList { | |
| 12999 StyleSheetListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13000 | |
| 13001 int get length() { return _ptr.length; } | |
| 13002 | |
| 13003 StyleSheet operator[](int index) { | |
| 13004 return item(index); | |
| 13005 } | |
| 13006 | |
| 13007 void operator[]=(int index, StyleSheet value) { | |
| 13008 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
| 13009 } | |
| 13010 | |
| 13011 void add(StyleSheet value) { | |
| 13012 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 13013 } | |
| 13014 | |
| 13015 void addLast(StyleSheet value) { | |
| 13016 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 13017 } | |
| 13018 | |
| 13019 void addAll(Collection<StyleSheet> collection) { | |
| 13020 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 13021 } | |
| 13022 | |
| 13023 void sort(int compare(StyleSheet a, StyleSheet b)) { | |
| 13024 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 13025 } | |
| 13026 | |
| 13027 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | |
| 13028 throw new UnsupportedOperationException("This object is immutable."); | |
| 13029 } | |
| 13030 | |
| 13031 int indexOf(StyleSheet element, [int start = 0]) { | |
| 13032 return _Lists.indexOf(this, element, start, this.length); | |
| 13033 } | |
| 13034 | |
| 13035 int lastIndexOf(StyleSheet element, [int start = null]) { | |
| 13036 if (start == null) start = length - 1; | |
| 13037 return _Lists.lastIndexOf(this, element, start); | |
| 13038 } | |
| 13039 | |
| 13040 int clear() { | |
| 13041 throw new UnsupportedOperationException("Cannot clear immutable List."); | |
| 13042 } | |
| 13043 | |
| 13044 StyleSheet removeLast() { | |
| 13045 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 13046 } | |
| 13047 | |
| 13048 StyleSheet last() { | |
| 13049 return this[length - 1]; | |
| 13050 } | |
| 13051 | |
| 13052 void forEach(void f(StyleSheet element)) { | |
| 13053 _Collections.forEach(this, f); | |
| 13054 } | |
| 13055 | |
| 13056 Collection<StyleSheet> filter(bool f(StyleSheet element)) { | |
| 13057 return _Collections.filter(this, new List<StyleSheet>(), f); | |
| 13058 } | |
| 13059 | |
| 13060 bool every(bool f(StyleSheet element)) { | |
| 13061 return _Collections.every(this, f); | |
| 13062 } | |
| 13063 | |
| 13064 bool some(bool f(StyleSheet element)) { | |
| 13065 return _Collections.some(this, f); | |
| 13066 } | |
| 13067 | |
| 13068 void setRange(int start, int length, List<StyleSheet> from, [int startFrom]) { | |
| 13069 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 13070 } | |
| 13071 | |
| 13072 void removeRange(int start, int length) { | |
| 13073 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 13074 } | |
| 13075 | |
| 13076 void insertRange(int start, int length, [StyleSheet initialValue]) { | |
| 13077 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 13078 } | |
| 13079 | |
| 13080 List<StyleSheet> getRange(int start, int length) { | |
| 13081 throw new NotImplementedException(); | |
| 13082 } | |
| 13083 | |
| 13084 bool isEmpty() { | |
| 13085 return length == 0; | |
| 13086 } | |
| 13087 | |
| 13088 Iterator<StyleSheet> iterator() { | |
| 13089 return new _FixedSizeListIterator<StyleSheet>(this); | |
| 13090 } | |
| 13091 | |
| 13092 StyleSheet item(int index) { | |
| 13093 return LevelDom.wrapStyleSheet(_ptr.item(index)); | |
| 13094 } | |
| 13095 } | |
| 13096 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13097 // for details. All rights reserved. Use of this source code is governed by a | |
| 13098 // BSD-style license that can be found in the LICENSE file. | |
| 13099 | |
| 13100 // WARNING: Do not edit - generated code. | |
| 13101 | |
| 13102 class StyleSheetWrappingImplementation extends DOMWrapperBase implements StyleSh
eet { | |
| 13103 StyleSheetWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13104 | |
| 13105 bool get disabled() { return _ptr.disabled; } | |
| 13106 | |
| 13107 void set disabled(bool value) { _ptr.disabled = value; } | |
| 13108 | |
| 13109 String get href() { return _ptr.href; } | |
| 13110 | |
| 13111 MediaList get media() { return LevelDom.wrapMediaList(_ptr.media); } | |
| 13112 | |
| 13113 Node get ownerNode() { return LevelDom.wrapNode(_ptr.ownerNode); } | |
| 13114 | |
| 13115 StyleSheet get parentStyleSheet() { return LevelDom.wrapStyleSheet(_ptr.parent
StyleSheet); } | |
| 13116 | |
| 13117 String get title() { return _ptr.title; } | |
| 13118 | |
| 13119 String get type() { return _ptr.type; } | |
| 13120 } | |
| 13121 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13122 // for details. All rights reserved. Use of this source code is governed by a | |
| 13123 // BSD-style license that can be found in the LICENSE file. | |
| 13124 | |
| 13125 // WARNING: Do not edit - generated code. | |
| 13126 | |
| 13127 class TableCaptionElementWrappingImplementation extends ElementWrappingImplement
ation implements TableCaptionElement { | |
| 13128 TableCaptionElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13129 | |
| 13130 String get align() { return _ptr.align; } | |
| 13131 | |
| 13132 void set align(String value) { _ptr.align = value; } | |
| 13133 } | |
| 13134 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13135 // for details. All rights reserved. Use of this source code is governed by a | |
| 13136 // BSD-style license that can be found in the LICENSE file. | |
| 13137 | |
| 13138 // WARNING: Do not edit - generated code. | |
| 13139 | |
| 13140 class TableCellElementWrappingImplementation extends ElementWrappingImplementati
on implements TableCellElement { | |
| 13141 TableCellElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13142 | |
| 13143 String get abbr() { return _ptr.abbr; } | |
| 13144 | |
| 13145 void set abbr(String value) { _ptr.abbr = value; } | |
| 13146 | |
| 13147 String get align() { return _ptr.align; } | |
| 13148 | |
| 13149 void set align(String value) { _ptr.align = value; } | |
| 13150 | |
| 13151 String get axis() { return _ptr.axis; } | |
| 13152 | |
| 13153 void set axis(String value) { _ptr.axis = value; } | |
| 13154 | |
| 13155 String get bgColor() { return _ptr.bgColor; } | |
| 13156 | |
| 13157 void set bgColor(String value) { _ptr.bgColor = value; } | |
| 13158 | |
| 13159 int get cellIndex() { return _ptr.cellIndex; } | |
| 13160 | |
| 13161 String get ch() { return _ptr.ch; } | |
| 13162 | |
| 13163 void set ch(String value) { _ptr.ch = value; } | |
| 13164 | |
| 13165 String get chOff() { return _ptr.chOff; } | |
| 13166 | |
| 13167 void set chOff(String value) { _ptr.chOff = value; } | |
| 13168 | |
| 13169 int get colSpan() { return _ptr.colSpan; } | |
| 13170 | |
| 13171 void set colSpan(int value) { _ptr.colSpan = value; } | |
| 13172 | |
| 13173 String get headers() { return _ptr.headers; } | |
| 13174 | |
| 13175 void set headers(String value) { _ptr.headers = value; } | |
| 13176 | |
| 13177 String get height() { return _ptr.height; } | |
| 13178 | |
| 13179 void set height(String value) { _ptr.height = value; } | |
| 13180 | |
| 13181 bool get noWrap() { return _ptr.noWrap; } | |
| 13182 | |
| 13183 void set noWrap(bool value) { _ptr.noWrap = value; } | |
| 13184 | |
| 13185 int get rowSpan() { return _ptr.rowSpan; } | |
| 13186 | |
| 13187 void set rowSpan(int value) { _ptr.rowSpan = value; } | |
| 13188 | |
| 13189 String get scope() { return _ptr.scope; } | |
| 13190 | |
| 13191 void set scope(String value) { _ptr.scope = value; } | |
| 13192 | |
| 13193 String get vAlign() { return _ptr.vAlign; } | |
| 13194 | |
| 13195 void set vAlign(String value) { _ptr.vAlign = value; } | |
| 13196 | |
| 13197 String get width() { return _ptr.width; } | |
| 13198 | |
| 13199 void set width(String value) { _ptr.width = value; } | |
| 13200 } | |
| 13201 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13202 // for details. All rights reserved. Use of this source code is governed by a | |
| 13203 // BSD-style license that can be found in the LICENSE file. | |
| 13204 | |
| 13205 // WARNING: Do not edit - generated code. | |
| 13206 | |
| 13207 class TableColElementWrappingImplementation extends ElementWrappingImplementatio
n implements TableColElement { | |
| 13208 TableColElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13209 | |
| 13210 String get align() { return _ptr.align; } | |
| 13211 | |
| 13212 void set align(String value) { _ptr.align = value; } | |
| 13213 | |
| 13214 String get ch() { return _ptr.ch; } | |
| 13215 | |
| 13216 void set ch(String value) { _ptr.ch = value; } | |
| 13217 | |
| 13218 String get chOff() { return _ptr.chOff; } | |
| 13219 | |
| 13220 void set chOff(String value) { _ptr.chOff = value; } | |
| 13221 | |
| 13222 int get span() { return _ptr.span; } | |
| 13223 | |
| 13224 void set span(int value) { _ptr.span = value; } | |
| 13225 | |
| 13226 String get vAlign() { return _ptr.vAlign; } | |
| 13227 | |
| 13228 void set vAlign(String value) { _ptr.vAlign = value; } | |
| 13229 | |
| 13230 String get width() { return _ptr.width; } | |
| 13231 | |
| 13232 void set width(String value) { _ptr.width = value; } | |
| 13233 } | |
| 13234 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13235 // for details. All rights reserved. Use of this source code is governed by a | |
| 13236 // BSD-style license that can be found in the LICENSE file. | |
| 13237 | |
| 13238 // WARNING: Do not edit - generated code. | |
| 13239 | |
| 13240 class TableElementWrappingImplementation extends ElementWrappingImplementation i
mplements TableElement { | |
| 13241 TableElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13242 | |
| 13243 String get align() { return _ptr.align; } | |
| 13244 | |
| 13245 void set align(String value) { _ptr.align = value; } | |
| 13246 | |
| 13247 String get bgColor() { return _ptr.bgColor; } | |
| 13248 | |
| 13249 void set bgColor(String value) { _ptr.bgColor = value; } | |
| 13250 | |
| 13251 String get border() { return _ptr.border; } | |
| 13252 | |
| 13253 void set border(String value) { _ptr.border = value; } | |
| 13254 | |
| 13255 TableCaptionElement get caption() { return LevelDom.wrapTableCaptionElement(_p
tr.caption); } | |
| 13256 | |
| 13257 void set caption(TableCaptionElement value) { _ptr.caption = LevelDom.unwrap(v
alue); } | |
| 13258 | |
| 13259 String get cellPadding() { return _ptr.cellPadding; } | |
| 13260 | |
| 13261 void set cellPadding(String value) { _ptr.cellPadding = value; } | |
| 13262 | |
| 13263 String get cellSpacing() { return _ptr.cellSpacing; } | |
| 13264 | |
| 13265 void set cellSpacing(String value) { _ptr.cellSpacing = value; } | |
| 13266 | |
| 13267 String get frame() { return _ptr.frame; } | |
| 13268 | |
| 13269 void set frame(String value) { _ptr.frame = value; } | |
| 13270 | |
| 13271 ElementList get rows() { return LevelDom.wrapElementList(_ptr.rows); } | |
| 13272 | |
| 13273 String get rules() { return _ptr.rules; } | |
| 13274 | |
| 13275 void set rules(String value) { _ptr.rules = value; } | |
| 13276 | |
| 13277 String get summary() { return _ptr.summary; } | |
| 13278 | |
| 13279 void set summary(String value) { _ptr.summary = value; } | |
| 13280 | |
| 13281 ElementList get tBodies() { return LevelDom.wrapElementList(_ptr.tBodies); } | |
| 13282 | |
| 13283 TableSectionElement get tFoot() { return LevelDom.wrapTableSectionElement(_ptr
.tFoot); } | |
| 13284 | |
| 13285 void set tFoot(TableSectionElement value) { _ptr.tFoot = LevelDom.unwrap(value
); } | |
| 13286 | |
| 13287 TableSectionElement get tHead() { return LevelDom.wrapTableSectionElement(_ptr
.tHead); } | |
| 13288 | |
| 13289 void set tHead(TableSectionElement value) { _ptr.tHead = LevelDom.unwrap(value
); } | |
| 13290 | |
| 13291 String get width() { return _ptr.width; } | |
| 13292 | |
| 13293 void set width(String value) { _ptr.width = value; } | |
| 13294 | |
| 13295 Element createCaption() { | |
| 13296 return LevelDom.wrapElement(_ptr.createCaption()); | |
| 13297 } | |
| 13298 | |
| 13299 Element createTFoot() { | |
| 13300 return LevelDom.wrapElement(_ptr.createTFoot()); | |
| 13301 } | |
| 13302 | |
| 13303 Element createTHead() { | |
| 13304 return LevelDom.wrapElement(_ptr.createTHead()); | |
| 13305 } | |
| 13306 | |
| 13307 void deleteCaption() { | |
| 13308 _ptr.deleteCaption(); | |
| 13309 return; | |
| 13310 } | |
| 13311 | |
| 13312 void deleteRow(int index) { | |
| 13313 _ptr.deleteRow(index); | |
| 13314 return; | |
| 13315 } | |
| 13316 | |
| 13317 void deleteTFoot() { | |
| 13318 _ptr.deleteTFoot(); | |
| 13319 return; | |
| 13320 } | |
| 13321 | |
| 13322 void deleteTHead() { | |
| 13323 _ptr.deleteTHead(); | |
| 13324 return; | |
| 13325 } | |
| 13326 | |
| 13327 Element insertRow(int index) { | |
| 13328 return LevelDom.wrapElement(_ptr.insertRow(index)); | |
| 13329 } | |
| 13330 } | |
| 13331 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13332 // for details. All rights reserved. Use of this source code is governed by a | |
| 13333 // BSD-style license that can be found in the LICENSE file. | |
| 13334 | |
| 13335 // WARNING: Do not edit - generated code. | |
| 13336 | |
| 13337 class TableRowElementWrappingImplementation extends ElementWrappingImplementatio
n implements TableRowElement { | |
| 13338 TableRowElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13339 | |
| 13340 String get align() { return _ptr.align; } | |
| 13341 | |
| 13342 void set align(String value) { _ptr.align = value; } | |
| 13343 | |
| 13344 String get bgColor() { return _ptr.bgColor; } | |
| 13345 | |
| 13346 void set bgColor(String value) { _ptr.bgColor = value; } | |
| 13347 | |
| 13348 ElementList get cells() { return LevelDom.wrapElementList(_ptr.cells); } | |
| 13349 | |
| 13350 String get ch() { return _ptr.ch; } | |
| 13351 | |
| 13352 void set ch(String value) { _ptr.ch = value; } | |
| 13353 | |
| 13354 String get chOff() { return _ptr.chOff; } | |
| 13355 | |
| 13356 void set chOff(String value) { _ptr.chOff = value; } | |
| 13357 | |
| 13358 int get rowIndex() { return _ptr.rowIndex; } | |
| 13359 | |
| 13360 int get sectionRowIndex() { return _ptr.sectionRowIndex; } | |
| 13361 | |
| 13362 String get vAlign() { return _ptr.vAlign; } | |
| 13363 | |
| 13364 void set vAlign(String value) { _ptr.vAlign = value; } | |
| 13365 | |
| 13366 void deleteCell(int index) { | |
| 13367 _ptr.deleteCell(index); | |
| 13368 return; | |
| 13369 } | |
| 13370 | |
| 13371 Element insertCell(int index) { | |
| 13372 return LevelDom.wrapElement(_ptr.insertCell(index)); | |
| 13373 } | |
| 13374 } | |
| 13375 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13376 // for details. All rights reserved. Use of this source code is governed by a | |
| 13377 // BSD-style license that can be found in the LICENSE file. | |
| 13378 | |
| 13379 // WARNING: Do not edit - generated code. | |
| 13380 | |
| 13381 class TableSectionElementWrappingImplementation extends ElementWrappingImplement
ation implements TableSectionElement { | |
| 13382 TableSectionElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13383 | |
| 13384 String get align() { return _ptr.align; } | |
| 13385 | |
| 13386 void set align(String value) { _ptr.align = value; } | |
| 13387 | |
| 13388 String get ch() { return _ptr.ch; } | |
| 13389 | |
| 13390 void set ch(String value) { _ptr.ch = value; } | |
| 13391 | |
| 13392 String get chOff() { return _ptr.chOff; } | |
| 13393 | |
| 13394 void set chOff(String value) { _ptr.chOff = value; } | |
| 13395 | |
| 13396 ElementList get rows() { return LevelDom.wrapElementList(_ptr.rows); } | |
| 13397 | |
| 13398 String get vAlign() { return _ptr.vAlign; } | |
| 13399 | |
| 13400 void set vAlign(String value) { _ptr.vAlign = value; } | |
| 13401 | |
| 13402 void deleteRow(int index) { | |
| 13403 _ptr.deleteRow(index); | |
| 13404 return; | |
| 13405 } | |
| 13406 | |
| 13407 Element insertRow(int index) { | |
| 13408 return LevelDom.wrapElement(_ptr.insertRow(index)); | |
| 13409 } | |
| 13410 } | |
| 13411 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13412 // for details. All rights reserved. Use of this source code is governed by a | |
| 13413 // BSD-style license that can be found in the LICENSE file. | |
| 13414 | |
| 13415 // WARNING: Do not edit - generated code. | |
| 13416 | |
| 13417 class TextAreaElementWrappingImplementation extends ElementWrappingImplementatio
n implements TextAreaElement { | |
| 13418 TextAreaElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13419 | |
| 13420 String get accessKey() { return _ptr.accessKey; } | |
| 13421 | |
| 13422 void set accessKey(String value) { _ptr.accessKey = value; } | |
| 13423 | |
| 13424 bool get autofocus() { return _ptr.autofocus; } | |
| 13425 | |
| 13426 void set autofocus(bool value) { _ptr.autofocus = value; } | |
| 13427 | |
| 13428 int get cols() { return _ptr.cols; } | |
| 13429 | |
| 13430 void set cols(int value) { _ptr.cols = value; } | |
| 13431 | |
| 13432 String get defaultValue() { return _ptr.defaultValue; } | |
| 13433 | |
| 13434 void set defaultValue(String value) { _ptr.defaultValue = value; } | |
| 13435 | |
| 13436 bool get disabled() { return _ptr.disabled; } | |
| 13437 | |
| 13438 void set disabled(bool value) { _ptr.disabled = value; } | |
| 13439 | |
| 13440 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
| 13441 | |
| 13442 ElementList get labels() { return LevelDom.wrapElementList(_ptr.labels); } | |
| 13443 | |
| 13444 int get maxLength() { return _ptr.maxLength; } | |
| 13445 | |
| 13446 void set maxLength(int value) { _ptr.maxLength = value; } | |
| 13447 | |
| 13448 String get name() { return _ptr.name; } | |
| 13449 | |
| 13450 void set name(String value) { _ptr.name = value; } | |
| 13451 | |
| 13452 String get placeholder() { return _ptr.placeholder; } | |
| 13453 | |
| 13454 void set placeholder(String value) { _ptr.placeholder = value; } | |
| 13455 | |
| 13456 bool get readOnly() { return _ptr.readOnly; } | |
| 13457 | |
| 13458 void set readOnly(bool value) { _ptr.readOnly = value; } | |
| 13459 | |
| 13460 bool get required() { return _ptr.required; } | |
| 13461 | |
| 13462 void set required(bool value) { _ptr.required = value; } | |
| 13463 | |
| 13464 int get rows() { return _ptr.rows; } | |
| 13465 | |
| 13466 void set rows(int value) { _ptr.rows = value; } | |
| 13467 | |
| 13468 String get selectionDirection() { return _ptr.selectionDirection; } | |
| 13469 | |
| 13470 void set selectionDirection(String value) { _ptr.selectionDirection = value; } | |
| 13471 | |
| 13472 int get selectionEnd() { return _ptr.selectionEnd; } | |
| 13473 | |
| 13474 void set selectionEnd(int value) { _ptr.selectionEnd = value; } | |
| 13475 | |
| 13476 int get selectionStart() { return _ptr.selectionStart; } | |
| 13477 | |
| 13478 void set selectionStart(int value) { _ptr.selectionStart = value; } | |
| 13479 | |
| 13480 int get textLength() { return _ptr.textLength; } | |
| 13481 | |
| 13482 String get type() { return _ptr.type; } | |
| 13483 | |
| 13484 String get validationMessage() { return _ptr.validationMessage; } | |
| 13485 | |
| 13486 ValidityState get validity() { return LevelDom.wrapValidityState(_ptr.validity
); } | |
| 13487 | |
| 13488 String get value() { return _ptr.value; } | |
| 13489 | |
| 13490 void set value(String value) { _ptr.value = value; } | |
| 13491 | |
| 13492 bool get willValidate() { return _ptr.willValidate; } | |
| 13493 | |
| 13494 String get wrap() { return _ptr.wrap; } | |
| 13495 | |
| 13496 void set wrap(String value) { _ptr.wrap = value; } | |
| 13497 | |
| 13498 bool checkValidity() { | |
| 13499 return _ptr.checkValidity(); | |
| 13500 } | |
| 13501 | |
| 13502 void select() { | |
| 13503 _ptr.select(); | |
| 13504 return; | |
| 13505 } | |
| 13506 | |
| 13507 void setCustomValidity(String error) { | |
| 13508 _ptr.setCustomValidity(error); | |
| 13509 return; | |
| 13510 } | |
| 13511 | |
| 13512 void setSelectionRange(int start, int end, [String direction = null]) { | |
| 13513 if (direction === null) { | |
| 13514 _ptr.setSelectionRange(start, end); | |
| 13515 return; | |
| 13516 } else { | |
| 13517 _ptr.setSelectionRange(start, end, direction); | |
| 13518 return; | |
| 13519 } | |
| 13520 } | |
| 13521 } | |
| 13522 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13523 // for details. All rights reserved. Use of this source code is governed by a | |
| 13524 // BSD-style license that can be found in the LICENSE file. | |
| 13525 | |
| 13526 // WARNING: Do not edit - generated code. | |
| 13527 | |
| 13528 class TextMetricsWrappingImplementation extends DOMWrapperBase implements TextMe
trics { | |
| 13529 TextMetricsWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13530 | |
| 13531 num get width() { return _ptr.width; } | |
| 13532 } | |
| 13533 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13534 // for details. All rights reserved. Use of this source code is governed by a | |
| 13535 // BSD-style license that can be found in the LICENSE file. | |
| 13536 | |
| 13537 // WARNING: Do not edit - generated code. | |
| 13538 | |
| 13539 class TimeRangesWrappingImplementation extends DOMWrapperBase implements TimeRan
ges { | |
| 13540 TimeRangesWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13541 | |
| 13542 int get length() { return _ptr.length; } | |
| 13543 | |
| 13544 num end(int index) { | |
| 13545 return _ptr.end(index); | |
| 13546 } | |
| 13547 | |
| 13548 num start(int index) { | |
| 13549 return _ptr.start(index); | |
| 13550 } | |
| 13551 } | |
| 13552 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13553 // for details. All rights reserved. Use of this source code is governed by a | |
| 13554 // BSD-style license that can be found in the LICENSE file. | |
| 13555 | |
| 13556 // WARNING: Do not edit - generated code. | |
| 13557 | |
| 13558 class TitleElementWrappingImplementation extends ElementWrappingImplementation i
mplements TitleElement { | |
| 13559 TitleElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13560 | |
| 13561 String get text() { return _ptr.text; } | |
| 13562 | |
| 13563 void set text(String value) { _ptr.text = value; } | |
| 13564 } | |
| 13565 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13566 // for details. All rights reserved. Use of this source code is governed by a | |
| 13567 // BSD-style license that can be found in the LICENSE file. | |
| 13568 | |
| 13569 // WARNING: Do not edit - generated code. | |
| 13570 | |
| 13571 class TouchListWrappingImplementation extends DOMWrapperBase implements TouchLis
t { | |
| 13572 TouchListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13573 | |
| 13574 int get length() { return _ptr.length; } | |
| 13575 | |
| 13576 Touch operator[](int index) { | |
| 13577 return item(index); | |
| 13578 } | |
| 13579 | |
| 13580 void operator[]=(int index, Touch value) { | |
| 13581 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
| 13582 } | |
| 13583 | |
| 13584 void add(Touch value) { | |
| 13585 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 13586 } | |
| 13587 | |
| 13588 void addLast(Touch value) { | |
| 13589 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 13590 } | |
| 13591 | |
| 13592 void addAll(Collection<Touch> collection) { | |
| 13593 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 13594 } | |
| 13595 | |
| 13596 void sort(int compare(Touch a, Touch b)) { | |
| 13597 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 13598 } | |
| 13599 | |
| 13600 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | |
| 13601 throw new UnsupportedOperationException("This object is immutable."); | |
| 13602 } | |
| 13603 | |
| 13604 int indexOf(Touch element, [int start = 0]) { | |
| 13605 return _Lists.indexOf(this, element, start, this.length); | |
| 13606 } | |
| 13607 | |
| 13608 int lastIndexOf(Touch element, [int start = null]) { | |
| 13609 if (start === null) start = length - 1; | |
| 13610 return _Lists.lastIndexOf(this, element, start); | |
| 13611 } | |
| 13612 | |
| 13613 int clear() { | |
| 13614 throw new UnsupportedOperationException("Cannot clear immutable List."); | |
| 13615 } | |
| 13616 | |
| 13617 Touch removeLast() { | |
| 13618 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 13619 } | |
| 13620 | |
| 13621 Touch last() { | |
| 13622 return this[length - 1]; | |
| 13623 } | |
| 13624 | |
| 13625 void forEach(void f(Touch element)) { | |
| 13626 _Collections.forEach(this, f); | |
| 13627 } | |
| 13628 | |
| 13629 Collection<Touch> filter(bool f(Touch element)) { | |
| 13630 return _Collections.filter(this, new List<Touch>(), f); | |
| 13631 } | |
| 13632 | |
| 13633 bool every(bool f(Touch element)) { | |
| 13634 return _Collections.every(this, f); | |
| 13635 } | |
| 13636 | |
| 13637 bool some(bool f(Touch element)) { | |
| 13638 return _Collections.some(this, f); | |
| 13639 } | |
| 13640 | |
| 13641 void setRange(int start, int length, List<Touch> from, [int startFrom]) { | |
| 13642 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 13643 } | |
| 13644 | |
| 13645 void removeRange(int start, int length) { | |
| 13646 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 13647 } | |
| 13648 | |
| 13649 void insertRange(int start, int length, [Touch initialValue]) { | |
| 13650 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 13651 } | |
| 13652 | |
| 13653 List<Touch> getRange(int start, int length) { | |
| 13654 throw new NotImplementedException(); | |
| 13655 } | |
| 13656 | |
| 13657 bool isEmpty() { | |
| 13658 return length == 0; | |
| 13659 } | |
| 13660 | |
| 13661 Iterator<Touch> iterator() { | |
| 13662 return new _FixedSizeListIterator<Touch>(this); | |
| 13663 } | |
| 13664 | |
| 13665 Touch item(int index) { | |
| 13666 return LevelDom.wrapTouch(_ptr.item(index)); | |
| 13667 } | |
| 13668 } | |
| 13669 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13670 // for details. All rights reserved. Use of this source code is governed by a | |
| 13671 // BSD-style license that can be found in the LICENSE file. | |
| 13672 | |
| 13673 // WARNING: Do not edit - generated code. | |
| 13674 | |
| 13675 class TouchWrappingImplementation extends DOMWrapperBase implements Touch { | |
| 13676 TouchWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13677 | |
| 13678 int get clientX() { return _ptr.clientX; } | |
| 13679 | |
| 13680 int get clientY() { return _ptr.clientY; } | |
| 13681 | |
| 13682 int get identifier() { return _ptr.identifier; } | |
| 13683 | |
| 13684 int get pageX() { return _ptr.pageX; } | |
| 13685 | |
| 13686 int get pageY() { return _ptr.pageY; } | |
| 13687 | |
| 13688 int get screenX() { return _ptr.screenX; } | |
| 13689 | |
| 13690 int get screenY() { return _ptr.screenY; } | |
| 13691 | |
| 13692 EventTarget get target() { return LevelDom.wrapEventTarget(_ptr.target); } | |
| 13693 | |
| 13694 num get webkitForce() { return _ptr.webkitForce; } | |
| 13695 | |
| 13696 int get webkitRadiusX() { return _ptr.webkitRadiusX; } | |
| 13697 | |
| 13698 int get webkitRadiusY() { return _ptr.webkitRadiusY; } | |
| 13699 | |
| 13700 num get webkitRotationAngle() { return _ptr.webkitRotationAngle; } | |
| 13701 } | |
| 13702 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13703 // for details. All rights reserved. Use of this source code is governed by a | |
| 13704 // BSD-style license that can be found in the LICENSE file. | |
| 13705 | |
| 13706 // WARNING: Do not edit - generated code. | |
| 13707 | |
| 13708 class TrackElementWrappingImplementation extends ElementWrappingImplementation i
mplements TrackElement { | |
| 13709 TrackElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13710 | |
| 13711 bool get isDefault() { return _ptr.isDefault; } | |
| 13712 | |
| 13713 void set isDefault(bool value) { _ptr.isDefault = value; } | |
| 13714 | |
| 13715 String get kind() { return _ptr.kind; } | |
| 13716 | |
| 13717 void set kind(String value) { _ptr.kind = value; } | |
| 13718 | |
| 13719 String get label() { return _ptr.label; } | |
| 13720 | |
| 13721 void set label(String value) { _ptr.label = value; } | |
| 13722 | |
| 13723 String get src() { return _ptr.src; } | |
| 13724 | |
| 13725 void set src(String value) { _ptr.src = value; } | |
| 13726 | |
| 13727 String get srclang() { return _ptr.srclang; } | |
| 13728 | |
| 13729 void set srclang(String value) { _ptr.srclang = value; } | |
| 13730 } | |
| 13731 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13732 // for details. All rights reserved. Use of this source code is governed by a | |
| 13733 // BSD-style license that can be found in the LICENSE file. | |
| 13734 | |
| 13735 // WARNING: Do not edit - generated code. | |
| 13736 | |
| 13737 class UListElementWrappingImplementation extends ElementWrappingImplementation i
mplements UListElement { | |
| 13738 UListElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13739 | |
| 13740 bool get compact() { return _ptr.compact; } | |
| 13741 | |
| 13742 void set compact(bool value) { _ptr.compact = value; } | |
| 13743 | |
| 13744 String get type() { return _ptr.type; } | |
| 13745 | |
| 13746 void set type(String value) { _ptr.type = value; } | |
| 13747 } | |
| 13748 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13749 // for details. All rights reserved. Use of this source code is governed by a | |
| 13750 // BSD-style license that can be found in the LICENSE file. | |
| 13751 | |
| 13752 // WARNING: Do not edit - generated code. | |
| 13753 | |
| 13754 class Uint16ArrayWrappingImplementation extends ArrayBufferViewWrappingImplement
ation implements Uint16Array { | |
| 13755 Uint16ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13756 | |
| 13757 int get length() { return _ptr.length; } | |
| 13758 | |
| 13759 Uint16Array subarray(int start, [int end = null]) { | |
| 13760 if (end === null) { | |
| 13761 return LevelDom.wrapUint16Array(_ptr.subarray(start)); | |
| 13762 } else { | |
| 13763 return LevelDom.wrapUint16Array(_ptr.subarray(start, end)); | |
| 13764 } | |
| 13765 } | |
| 13766 } | |
| 13767 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13768 // for details. All rights reserved. Use of this source code is governed by a | |
| 13769 // BSD-style license that can be found in the LICENSE file. | |
| 13770 | |
| 13771 // WARNING: Do not edit - generated code. | |
| 13772 | |
| 13773 class Uint32ArrayWrappingImplementation extends ArrayBufferViewWrappingImplement
ation implements Uint32Array { | |
| 13774 Uint32ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13775 | |
| 13776 int get length() { return _ptr.length; } | |
| 13777 | |
| 13778 Uint32Array subarray(int start, [int end = null]) { | |
| 13779 if (end === null) { | |
| 13780 return LevelDom.wrapUint32Array(_ptr.subarray(start)); | |
| 13781 } else { | |
| 13782 return LevelDom.wrapUint32Array(_ptr.subarray(start, end)); | |
| 13783 } | |
| 13784 } | |
| 13785 } | |
| 13786 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13787 // for details. All rights reserved. Use of this source code is governed by a | |
| 13788 // BSD-style license that can be found in the LICENSE file. | |
| 13789 | |
| 13790 // WARNING: Do not edit - generated code. | |
| 13791 | |
| 13792 class Uint8ArrayWrappingImplementation extends ArrayBufferViewWrappingImplementa
tion implements Uint8Array { | |
| 13793 Uint8ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13794 | |
| 13795 int get length() { return _ptr.length; } | |
| 13796 | |
| 13797 Uint8Array subarray(int start, [int end = null]) { | |
| 13798 if (end === null) { | |
| 13799 return LevelDom.wrapUint8Array(_ptr.subarray(start)); | |
| 13800 } else { | |
| 13801 return LevelDom.wrapUint8Array(_ptr.subarray(start, end)); | |
| 13802 } | |
| 13803 } | |
| 13804 } | |
| 13805 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13806 // for details. All rights reserved. Use of this source code is governed by a | |
| 13807 // BSD-style license that can be found in the LICENSE file. | |
| 13808 | |
| 13809 // WARNING: Do not edit - generated code. | |
| 13810 | |
| 13811 class UnknownElementWrappingImplementation extends ElementWrappingImplementation
implements UnknownElement { | |
| 13812 UnknownElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13813 } | |
| 13814 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13815 // for details. All rights reserved. Use of this source code is governed by a | |
| 13816 // BSD-style license that can be found in the LICENSE file. | |
| 13817 | |
| 13818 // WARNING: Do not edit - generated code. | |
| 13819 | |
| 13820 class ValidityStateWrappingImplementation extends DOMWrapperBase implements Vali
dityState { | |
| 13821 ValidityStateWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13822 | |
| 13823 bool get customError() { return _ptr.customError; } | |
| 13824 | |
| 13825 bool get patternMismatch() { return _ptr.patternMismatch; } | |
| 13826 | |
| 13827 bool get rangeOverflow() { return _ptr.rangeOverflow; } | |
| 13828 | |
| 13829 bool get rangeUnderflow() { return _ptr.rangeUnderflow; } | |
| 13830 | |
| 13831 bool get stepMismatch() { return _ptr.stepMismatch; } | |
| 13832 | |
| 13833 bool get tooLong() { return _ptr.tooLong; } | |
| 13834 | |
| 13835 bool get typeMismatch() { return _ptr.typeMismatch; } | |
| 13836 | |
| 13837 bool get valid() { return _ptr.valid; } | |
| 13838 | |
| 13839 bool get valueMissing() { return _ptr.valueMissing; } | |
| 13840 } | |
| 13841 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13842 // for details. All rights reserved. Use of this source code is governed by a | |
| 13843 // BSD-style license that can be found in the LICENSE file. | |
| 13844 | |
| 13845 // WARNING: Do not edit - generated code. | |
| 13846 | |
| 13847 class VideoElementWrappingImplementation extends MediaElementWrappingImplementat
ion implements VideoElement { | |
| 13848 VideoElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13849 | |
| 13850 int get height() { return _ptr.height; } | |
| 13851 | |
| 13852 void set height(int value) { _ptr.height = value; } | |
| 13853 | |
| 13854 String get poster() { return _ptr.poster; } | |
| 13855 | |
| 13856 void set poster(String value) { _ptr.poster = value; } | |
| 13857 | |
| 13858 int get videoHeight() { return _ptr.videoHeight; } | |
| 13859 | |
| 13860 int get videoWidth() { return _ptr.videoWidth; } | |
| 13861 | |
| 13862 int get webkitDecodedFrameCount() { return _ptr.webkitDecodedFrameCount; } | |
| 13863 | |
| 13864 bool get webkitDisplayingFullscreen() { return _ptr.webkitDisplayingFullscreen
; } | |
| 13865 | |
| 13866 int get webkitDroppedFrameCount() { return _ptr.webkitDroppedFrameCount; } | |
| 13867 | |
| 13868 bool get webkitSupportsFullscreen() { return _ptr.webkitSupportsFullscreen; } | |
| 13869 | |
| 13870 int get width() { return _ptr.width; } | |
| 13871 | |
| 13872 void set width(int value) { _ptr.width = value; } | |
| 13873 | |
| 13874 void webkitEnterFullScreen() { | |
| 13875 _ptr.webkitEnterFullScreen(); | |
| 13876 return; | |
| 13877 } | |
| 13878 | |
| 13879 void webkitEnterFullscreen() { | |
| 13880 _ptr.webkitEnterFullscreen(); | |
| 13881 return; | |
| 13882 } | |
| 13883 | |
| 13884 void webkitExitFullScreen() { | |
| 13885 _ptr.webkitExitFullScreen(); | |
| 13886 return; | |
| 13887 } | |
| 13888 | |
| 13889 void webkitExitFullscreen() { | |
| 13890 _ptr.webkitExitFullscreen(); | |
| 13891 return; | |
| 13892 } | |
| 13893 } | |
| 13894 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13895 // for details. All rights reserved. Use of this source code is governed by a | |
| 13896 // BSD-style license that can be found in the LICENSE file. | |
| 13897 | |
| 13898 // WARNING: Do not edit - generated code. | |
| 13899 | |
| 13900 class VoidCallbackWrappingImplementation extends DOMWrapperBase implements VoidC
allback { | |
| 13901 VoidCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13902 | |
| 13903 void handleEvent() { | |
| 13904 _ptr.handleEvent(); | |
| 13905 return; | |
| 13906 } | |
| 13907 } | |
| 13908 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13909 // for details. All rights reserved. Use of this source code is governed by a | |
| 13910 // BSD-style license that can be found in the LICENSE file. | |
| 13911 | |
| 13912 // WARNING: Do not edit - generated code. | |
| 13913 | |
| 13914 class WebGLActiveInfoWrappingImplementation extends DOMWrapperBase implements We
bGLActiveInfo { | |
| 13915 WebGLActiveInfoWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13916 | |
| 13917 String get name() { return _ptr.name; } | |
| 13918 | |
| 13919 int get size() { return _ptr.size; } | |
| 13920 | |
| 13921 int get type() { return _ptr.type; } | |
| 13922 } | |
| 13923 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13924 // for details. All rights reserved. Use of this source code is governed by a | |
| 13925 // BSD-style license that can be found in the LICENSE file. | |
| 13926 | |
| 13927 // WARNING: Do not edit - generated code. | |
| 13928 | |
| 13929 class WebGLBufferWrappingImplementation extends DOMWrapperBase implements WebGLB
uffer { | |
| 13930 WebGLBufferWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13931 } | |
| 13932 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13933 // for details. All rights reserved. Use of this source code is governed by a | |
| 13934 // BSD-style license that can be found in the LICENSE file. | |
| 13935 | |
| 13936 // WARNING: Do not edit - generated code. | |
| 13937 | |
| 13938 class WebGLContextAttributesWrappingImplementation extends DOMWrapperBase implem
ents WebGLContextAttributes { | |
| 13939 WebGLContextAttributesWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13940 | |
| 13941 bool get alpha() { return _ptr.alpha; } | |
| 13942 | |
| 13943 void set alpha(bool value) { _ptr.alpha = value; } | |
| 13944 | |
| 13945 bool get antialias() { return _ptr.antialias; } | |
| 13946 | |
| 13947 void set antialias(bool value) { _ptr.antialias = value; } | |
| 13948 | |
| 13949 bool get depth() { return _ptr.depth; } | |
| 13950 | |
| 13951 void set depth(bool value) { _ptr.depth = value; } | |
| 13952 | |
| 13953 bool get premultipliedAlpha() { return _ptr.premultipliedAlpha; } | |
| 13954 | |
| 13955 void set premultipliedAlpha(bool value) { _ptr.premultipliedAlpha = value; } | |
| 13956 | |
| 13957 bool get preserveDrawingBuffer() { return _ptr.preserveDrawingBuffer; } | |
| 13958 | |
| 13959 void set preserveDrawingBuffer(bool value) { _ptr.preserveDrawingBuffer = valu
e; } | |
| 13960 | |
| 13961 bool get stencil() { return _ptr.stencil; } | |
| 13962 | |
| 13963 void set stencil(bool value) { _ptr.stencil = value; } | |
| 13964 } | |
| 13965 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13966 // for details. All rights reserved. Use of this source code is governed by a | |
| 13967 // BSD-style license that can be found in the LICENSE file. | |
| 13968 | |
| 13969 // WARNING: Do not edit - generated code. | |
| 13970 | |
| 13971 class WebGLContextEventWrappingImplementation extends EventWrappingImplementatio
n implements WebGLContextEvent { | |
| 13972 WebGLContextEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13973 | |
| 13974 String get statusMessage() { return _ptr.statusMessage; } | |
| 13975 } | |
| 13976 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13977 // 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. | |
| 13979 | |
| 13980 // WARNING: Do not edit - generated code. | |
| 13981 | |
| 13982 class WebGLFramebufferWrappingImplementation extends DOMWrapperBase implements W
ebGLFramebuffer { | |
| 13983 WebGLFramebufferWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13984 } | |
| 13985 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13986 // for details. All rights reserved. Use of this source code is governed by a | |
| 13987 // BSD-style license that can be found in the LICENSE file. | |
| 13988 | |
| 13989 // WARNING: Do not edit - generated code. | |
| 13990 | |
| 13991 class WebGLProgramWrappingImplementation extends DOMWrapperBase implements WebGL
Program { | |
| 13992 WebGLProgramWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 13993 } | |
| 13994 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 13995 // for details. All rights reserved. Use of this source code is governed by a | |
| 13996 // BSD-style license that can be found in the LICENSE file. | |
| 13997 | |
| 13998 // WARNING: Do not edit - generated code. | |
| 13999 | |
| 14000 class WebGLRenderbufferWrappingImplementation extends DOMWrapperBase implements
WebGLRenderbuffer { | |
| 14001 WebGLRenderbufferWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 14002 } | |
| 14003 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 14004 // for details. All rights reserved. Use of this source code is governed by a | |
| 14005 // BSD-style license that can be found in the LICENSE file. | |
| 14006 | |
| 14007 // WARNING: Do not edit - generated code. | |
| 14008 | |
| 14009 class WebGLRenderingContextWrappingImplementation extends CanvasRenderingContext
WrappingImplementation implements WebGLRenderingContext { | |
| 14010 WebGLRenderingContextWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 14011 | |
| 14012 int get drawingBufferHeight() { return _ptr.drawingBufferHeight; } | |
| 14013 | |
| 14014 int get drawingBufferWidth() { return _ptr.drawingBufferWidth; } | |
| 14015 | |
| 14016 void activeTexture(int texture) { | |
| 14017 _ptr.activeTexture(texture); | |
| 14018 return; | |
| 14019 } | |
| 14020 | |
| 14021 void attachShader(WebGLProgram program, WebGLShader shader) { | |
| 14022 _ptr.attachShader(LevelDom.unwrap(program), LevelDom.unwrap(shader)); | |
| 14023 return; | |
| 14024 } | |
| 14025 | |
| 14026 void bindAttribLocation(WebGLProgram program, int index, String name) { | |
| 14027 _ptr.bindAttribLocation(LevelDom.unwrap(program), index, name); | |
| 14028 return; | |
| 14029 } | |
| 14030 | |
| 14031 void bindBuffer(int target, WebGLBuffer buffer) { | |
| 14032 _ptr.bindBuffer(target, LevelDom.unwrap(buffer)); | |
| 14033 return; | |
| 14034 } | |
| 14035 | |
| 14036 void bindFramebuffer(int target, WebGLFramebuffer framebuffer) { | |
| 14037 _ptr.bindFramebuffer(target, LevelDom.unwrap(framebuffer)); | |
| 14038 return; | |
| 14039 } | |
| 14040 | |
| 14041 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer) { | |
| 14042 _ptr.bindRenderbuffer(target, LevelDom.unwrap(renderbuffer)); | |
| 14043 return; | |
| 14044 } | |
| 14045 | |
| 14046 void bindTexture(int target, WebGLTexture texture) { | |
| 14047 _ptr.bindTexture(target, LevelDom.unwrap(texture)); | |
| 14048 return; | |
| 14049 } | |
| 14050 | |
| 14051 void blendColor(num red, num green, num blue, num alpha) { | |
| 14052 _ptr.blendColor(red, green, blue, alpha); | |
| 14053 return; | |
| 14054 } | |
| 14055 | |
| 14056 void blendEquation(int mode) { | |
| 14057 _ptr.blendEquation(mode); | |
| 14058 return; | |
| 14059 } | |
| 14060 | |
| 14061 void blendEquationSeparate(int modeRGB, int modeAlpha) { | |
| 14062 _ptr.blendEquationSeparate(modeRGB, modeAlpha); | |
| 14063 return; | |
| 14064 } | |
| 14065 | |
| 14066 void blendFunc(int sfactor, int dfactor) { | |
| 14067 _ptr.blendFunc(sfactor, dfactor); | |
| 14068 return; | |
| 14069 } | |
| 14070 | |
| 14071 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) { | |
| 14072 _ptr.blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha); | |
| 14073 return; | |
| 14074 } | |
| 14075 | |
| 14076 void bufferData(int target, var data_OR_size, int usage) { | |
| 14077 if (data_OR_size is ArrayBuffer) { | |
| 14078 _ptr.bufferData(target, LevelDom.unwrap(data_OR_size), usage); | |
| 14079 return; | |
| 14080 } else { | |
| 14081 if (data_OR_size is ArrayBufferView) { | |
| 14082 _ptr.bufferData(target, LevelDom.unwrap(data_OR_size), usage); | |
| 14083 return; | |
| 14084 } else { | |
| 14085 if (data_OR_size is int) { | |
| 14086 _ptr.bufferData(target, LevelDom.unwrap(data_OR_size), usage); | |
| 14087 return; | |
| 14088 } | |
| 14089 } | |
| 14090 } | |
| 14091 throw "Incorrect number or type of arguments"; | |
| 14092 } | |
| 14093 | |
| 14094 void bufferSubData(int target, int offset, var data) { | |
| 14095 if (data is ArrayBuffer) { | |
| 14096 _ptr.bufferSubData(target, offset, LevelDom.unwrap(data)); | |
| 14097 return; | |
| 14098 } else { | |
| 14099 if (data is ArrayBufferView) { | |
| 14100 _ptr.bufferSubData(target, offset, LevelDom.unwrap(data)); | |
| 14101 return; | |
| 14102 } | |
| 14103 } | |
| 14104 throw "Incorrect number or type of arguments"; | |
| 14105 } | |
| 14106 | |
| 14107 int checkFramebufferStatus(int target) { | |
| 14108 return _ptr.checkFramebufferStatus(target); | |
| 14109 } | |
| 14110 | |
| 14111 void clear(int mask) { | |
| 14112 _ptr.clear(mask); | |
| 14113 return; | |
| 14114 } | |
| 14115 | |
| 14116 void clearColor(num red, num green, num blue, num alpha) { | |
| 14117 _ptr.clearColor(red, green, blue, alpha); | |
| 14118 return; | |
| 14119 } | |
| 14120 | |
| 14121 void clearDepth(num depth) { | |
| 14122 _ptr.clearDepth(depth); | |
| 14123 return; | |
| 14124 } | |
| 14125 | |
| 14126 void clearStencil(int s) { | |
| 14127 _ptr.clearStencil(s); | |
| 14128 return; | |
| 14129 } | |
| 14130 | |
| 14131 void colorMask(bool red, bool green, bool blue, bool alpha) { | |
| 14132 _ptr.colorMask(red, green, blue, alpha); | |
| 14133 return; | |
| 14134 } | |
| 14135 | |
| 14136 void compileShader(WebGLShader shader) { | |
| 14137 _ptr.compileShader(LevelDom.unwrap(shader)); | |
| 14138 return; | |
| 14139 } | |
| 14140 | |
| 14141 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i
nt width, int height, int border) { | |
| 14142 _ptr.copyTexImage2D(target, level, internalformat, x, y, width, height, bord
er); | |
| 14143 return; | |
| 14144 } | |
| 14145 | |
| 14146 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x,
int y, int width, int height) { | |
| 14147 _ptr.copyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height)
; | |
| 14148 return; | |
| 14149 } | |
| 14150 | |
| 14151 WebGLBuffer createBuffer() { | |
| 14152 return LevelDom.wrapWebGLBuffer(_ptr.createBuffer()); | |
| 14153 } | |
| 14154 | |
| 14155 WebGLFramebuffer createFramebuffer() { | |
| 14156 return LevelDom.wrapWebGLFramebuffer(_ptr.createFramebuffer()); | |
| 14157 } | |
| 14158 | |
| 14159 WebGLProgram createProgram() { | |
| 14160 return LevelDom.wrapWebGLProgram(_ptr.createProgram()); | |
| 14161 } | |
| 14162 | |
| 14163 WebGLRenderbuffer createRenderbuffer() { | |
| 14164 return LevelDom.wrapWebGLRenderbuffer(_ptr.createRenderbuffer()); | |
| 14165 } | |
| 14166 | |
| 14167 WebGLShader createShader(int type) { | |
| 14168 return LevelDom.wrapWebGLShader(_ptr.createShader(type)); | |
| 14169 } | |
| 14170 | |
| 14171 WebGLTexture createTexture() { | |
| 14172 return LevelDom.wrapWebGLTexture(_ptr.createTexture()); | |
| 14173 } | |
| 14174 | |
| 14175 void cullFace(int mode) { | |
| 14176 _ptr.cullFace(mode); | |
| 14177 return; | |
| 14178 } | |
| 14179 | |
| 14180 void deleteBuffer(WebGLBuffer buffer) { | |
| 14181 _ptr.deleteBuffer(LevelDom.unwrap(buffer)); | |
| 14182 return; | |
| 14183 } | |
| 14184 | |
| 14185 void deleteFramebuffer(WebGLFramebuffer framebuffer) { | |
| 14186 _ptr.deleteFramebuffer(LevelDom.unwrap(framebuffer)); | |
| 14187 return; | |
| 14188 } | |
| 14189 | |
| 14190 void deleteProgram(WebGLProgram program) { | |
| 14191 _ptr.deleteProgram(LevelDom.unwrap(program)); | |
| 14192 return; | |
| 14193 } | |
| 14194 | |
| 14195 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer) { | |
| 14196 _ptr.deleteRenderbuffer(LevelDom.unwrap(renderbuffer)); | |
| 14197 return; | |
| 14198 } | |
| 14199 | |
| 14200 void deleteShader(WebGLShader shader) { | |
| 14201 _ptr.deleteShader(LevelDom.unwrap(shader)); | |
| 14202 return; | |
| 14203 } | |
| 14204 | |
| 14205 void deleteTexture(WebGLTexture texture) { | |
| 14206 _ptr.deleteTexture(LevelDom.unwrap(texture)); | |
| 14207 return; | |
| 14208 } | |
| 14209 | |
| 14210 void depthFunc(int func) { | |
| 14211 _ptr.depthFunc(func); | |
| 14212 return; | |
| 14213 } | |
| 14214 | |
| 14215 void depthMask(bool flag) { | |
| 14216 _ptr.depthMask(flag); | |
| 14217 return; | |
| 14218 } | |
| 14219 | |
| 14220 void depthRange(num zNear, num zFar) { | |
| 14221 _ptr.depthRange(zNear, zFar); | |
| 14222 return; | |
| 14223 } | |
| 14224 | |
| 14225 void detachShader(WebGLProgram program, WebGLShader shader) { | |
| 14226 _ptr.detachShader(LevelDom.unwrap(program), LevelDom.unwrap(shader)); | |
| 14227 return; | |
| 14228 } | |
| 14229 | |
| 14230 void disable(int cap) { | |
| 14231 _ptr.disable(cap); | |
| 14232 return; | |
| 14233 } | |
| 14234 | |
| 14235 void disableVertexAttribArray(int index) { | |
| 14236 _ptr.disableVertexAttribArray(index); | |
| 14237 return; | |
| 14238 } | |
| 14239 | |
| 14240 void drawArrays(int mode, int first, int count) { | |
| 14241 _ptr.drawArrays(mode, first, count); | |
| 14242 return; | |
| 14243 } | |
| 14244 | |
| 14245 void drawElements(int mode, int count, int type, int offset) { | |
| 14246 _ptr.drawElements(mode, count, type, offset); | |
| 14247 return; | |
| 14248 } | |
| 14249 | |
| 14250 void enable(int cap) { | |
| 14251 _ptr.enable(cap); | |
| 14252 return; | |
| 14253 } | |
| 14254 | |
| 14255 void enableVertexAttribArray(int index) { | |
| 14256 _ptr.enableVertexAttribArray(index); | |
| 14257 return; | |
| 14258 } | |
| 14259 | |
| 14260 void finish() { | |
| 14261 _ptr.finish(); | |
| 14262 return; | |
| 14263 } | |
| 14264 | |
| 14265 void flush() { | |
| 14266 _ptr.flush(); | |
| 14267 return; | |
| 14268 } | |
| 14269 | |
| 14270 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge
t, WebGLRenderbuffer renderbuffer) { | |
| 14271 _ptr.framebufferRenderbuffer(target, attachment, renderbuffertarget, LevelDo
m.unwrap(renderbuffer)); | |
| 14272 return; | |
| 14273 } | |
| 14274 | |
| 14275 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText
ure texture, int level) { | |
| 14276 _ptr.framebufferTexture2D(target, attachment, textarget, LevelDom.unwrap(tex
ture), level); | |
| 14277 return; | |
| 14278 } | |
| 14279 | |
| 14280 void frontFace(int mode) { | |
| 14281 _ptr.frontFace(mode); | |
| 14282 return; | |
| 14283 } | |
| 14284 | |
| 14285 void generateMipmap(int target) { | |
| 14286 _ptr.generateMipmap(target); | |
| 14287 return; | |
| 14288 } | |
| 14289 | |
| 14290 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) { | |
| 14291 return LevelDom.wrapWebGLActiveInfo(_ptr.getActiveAttrib(LevelDom.unwrap(pro
gram), index)); | |
| 14292 } | |
| 14293 | |
| 14294 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) { | |
| 14295 return LevelDom.wrapWebGLActiveInfo(_ptr.getActiveUniform(LevelDom.unwrap(pr
ogram), index)); | |
| 14296 } | |
| 14297 | |
| 14298 void getAttachedShaders(WebGLProgram program) { | |
| 14299 _ptr.getAttachedShaders(LevelDom.unwrap(program)); | |
| 14300 return; | |
| 14301 } | |
| 14302 | |
| 14303 int getAttribLocation(WebGLProgram program, String name) { | |
| 14304 return _ptr.getAttribLocation(LevelDom.unwrap(program), name); | |
| 14305 } | |
| 14306 | |
| 14307 void getBufferParameter() { | |
| 14308 _ptr.getBufferParameter(); | |
| 14309 return; | |
| 14310 } | |
| 14311 | |
| 14312 WebGLContextAttributes getContextAttributes() { | |
| 14313 return LevelDom.wrapWebGLContextAttributes(_ptr.getContextAttributes()); | |
| 14314 } | |
| 14315 | |
| 14316 int getError() { | |
| 14317 return _ptr.getError(); | |
| 14318 } | |
| 14319 | |
| 14320 void getExtension(String name) { | |
| 14321 _ptr.getExtension(name); | |
| 14322 return; | |
| 14323 } | |
| 14324 | |
| 14325 void getFramebufferAttachmentParameter() { | |
| 14326 _ptr.getFramebufferAttachmentParameter(); | |
| 14327 return; | |
| 14328 } | |
| 14329 | |
| 14330 void getParameter() { | |
| 14331 _ptr.getParameter(); | |
| 14332 return; | |
| 14333 } | |
| 14334 | |
| 14335 String getProgramInfoLog(WebGLProgram program) { | |
| 14336 return _ptr.getProgramInfoLog(LevelDom.unwrap(program)); | |
| 14337 } | |
| 14338 | |
| 14339 void getProgramParameter() { | |
| 14340 _ptr.getProgramParameter(); | |
| 14341 return; | |
| 14342 } | |
| 14343 | |
| 14344 void getRenderbufferParameter() { | |
| 14345 _ptr.getRenderbufferParameter(); | |
| 14346 return; | |
| 14347 } | |
| 14348 | |
| 14349 String getShaderInfoLog(WebGLShader shader) { | |
| 14350 return _ptr.getShaderInfoLog(LevelDom.unwrap(shader)); | |
| 14351 } | |
| 14352 | |
| 14353 void getShaderParameter() { | |
| 14354 _ptr.getShaderParameter(); | |
| 14355 return; | |
| 14356 } | |
| 14357 | |
| 14358 String getShaderSource(WebGLShader shader) { | |
| 14359 return _ptr.getShaderSource(LevelDom.unwrap(shader)); | |
| 14360 } | |
| 14361 | |
| 14362 void getSupportedExtensions() { | |
| 14363 _ptr.getSupportedExtensions(); | |
| 14364 return; | |
| 14365 } | |
| 14366 | |
| 14367 void getTexParameter() { | |
| 14368 _ptr.getTexParameter(); | |
| 14369 return; | |
| 14370 } | |
| 14371 | |
| 14372 void getUniform() { | |
| 14373 _ptr.getUniform(); | |
| 14374 return; | |
| 14375 } | |
| 14376 | |
| 14377 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) { | |
| 14378 return LevelDom.wrapWebGLUniformLocation(_ptr.getUniformLocation(LevelDom.un
wrap(program), name)); | |
| 14379 } | |
| 14380 | |
| 14381 void getVertexAttrib() { | |
| 14382 _ptr.getVertexAttrib(); | |
| 14383 return; | |
| 14384 } | |
| 14385 | |
| 14386 int getVertexAttribOffset(int index, int pname) { | |
| 14387 return _ptr.getVertexAttribOffset(index, pname); | |
| 14388 } | |
| 14389 | |
| 14390 void hint(int target, int mode) { | |
| 14391 _ptr.hint(target, mode); | |
| 14392 return; | |
| 14393 } | |
| 14394 | |
| 14395 bool isBuffer(WebGLBuffer buffer) { | |
| 14396 return _ptr.isBuffer(LevelDom.unwrap(buffer)); | |
| 14397 } | |
| 14398 | |
| 14399 bool isContextLost() { | |
| 14400 return _ptr.isContextLost(); | |
| 14401 } | |
| 14402 | |
| 14403 bool isEnabled(int cap) { | |
| 14404 return _ptr.isEnabled(cap); | |
| 14405 } | |
| 14406 | |
| 14407 bool isFramebuffer(WebGLFramebuffer framebuffer) { | |
| 14408 return _ptr.isFramebuffer(LevelDom.unwrap(framebuffer)); | |
| 14409 } | |
| 14410 | |
| 14411 bool isProgram(WebGLProgram program) { | |
| 14412 return _ptr.isProgram(LevelDom.unwrap(program)); | |
| 14413 } | |
| 14414 | |
| 14415 bool isRenderbuffer(WebGLRenderbuffer renderbuffer) { | |
| 14416 return _ptr.isRenderbuffer(LevelDom.unwrap(renderbuffer)); | |
| 14417 } | |
| 14418 | |
| 14419 bool isShader(WebGLShader shader) { | |
| 14420 return _ptr.isShader(LevelDom.unwrap(shader)); | |
| 14421 } | |
| 14422 | |
| 14423 bool isTexture(WebGLTexture texture) { | |
| 14424 return _ptr.isTexture(LevelDom.unwrap(texture)); | |
| 14425 } | |
| 14426 | |
| 14427 void lineWidth(num width) { | |
| 14428 _ptr.lineWidth(width); | |
| 14429 return; | |
| 14430 } | |
| 14431 | |
| 14432 void linkProgram(WebGLProgram program) { | |
| 14433 _ptr.linkProgram(LevelDom.unwrap(program)); | |
| 14434 return; | |
| 14435 } | |
| 14436 | |
| 14437 void pixelStorei(int pname, int param) { | |
| 14438 _ptr.pixelStorei(pname, param); | |
| 14439 return; | |
| 14440 } | |
| 14441 | |
| 14442 void polygonOffset(num factor, num units) { | |
| 14443 _ptr.polygonOffset(factor, units); | |
| 14444 return; | |
| 14445 } | |
| 14446 | |
| 14447 void readPixels(int x, int y, int width, int height, int format, int type, Arr
ayBufferView pixels) { | |
| 14448 _ptr.readPixels(x, y, width, height, format, type, LevelDom.unwrap(pixels)); | |
| 14449 return; | |
| 14450 } | |
| 14451 | |
| 14452 void releaseShaderCompiler() { | |
| 14453 _ptr.releaseShaderCompiler(); | |
| 14454 return; | |
| 14455 } | |
| 14456 | |
| 14457 void renderbufferStorage(int target, int internalformat, int width, int height
) { | |
| 14458 _ptr.renderbufferStorage(target, internalformat, width, height); | |
| 14459 return; | |
| 14460 } | |
| 14461 | |
| 14462 void sampleCoverage(num value, bool invert) { | |
| 14463 _ptr.sampleCoverage(value, invert); | |
| 14464 return; | |
| 14465 } | |
| 14466 | |
| 14467 void scissor(int x, int y, int width, int height) { | |
| 14468 _ptr.scissor(x, y, width, height); | |
| 14469 return; | |
| 14470 } | |
| 14471 | |
| 14472 void shaderSource(WebGLShader shader, String string) { | |
| 14473 _ptr.shaderSource(LevelDom.unwrap(shader), string); | |
| 14474 return; | |
| 14475 } | |
| 14476 | |
| 14477 void stencilFunc(int func, int ref, int mask) { | |
| 14478 _ptr.stencilFunc(func, ref, mask); | |
| 14479 return; | |
| 14480 } | |
| 14481 | |
| 14482 void stencilFuncSeparate(int face, int func, int ref, int mask) { | |
| 14483 _ptr.stencilFuncSeparate(face, func, ref, mask); | |
| 14484 return; | |
| 14485 } | |
| 14486 | |
| 14487 void stencilMask(int mask) { | |
| 14488 _ptr.stencilMask(mask); | |
| 14489 return; | |
| 14490 } | |
| 14491 | |
| 14492 void stencilMaskSeparate(int face, int mask) { | |
| 14493 _ptr.stencilMaskSeparate(face, mask); | |
| 14494 return; | |
| 14495 } | |
| 14496 | |
| 14497 void stencilOp(int fail, int zfail, int zpass) { | |
| 14498 _ptr.stencilOp(fail, zfail, zpass); | |
| 14499 return; | |
| 14500 } | |
| 14501 | |
| 14502 void stencilOpSeparate(int face, int fail, int zfail, int zpass) { | |
| 14503 _ptr.stencilOpSeparate(face, fail, zfail, zpass); | |
| 14504 return; | |
| 14505 } | |
| 14506 | |
| 14507 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]) { | |
| 14508 if (border_OR_canvas_OR_image_OR_pixels is ImageData) { | |
| 14509 if (format === null) { | |
| 14510 if (type === null) { | |
| 14511 if (pixels === null) { | |
| 14512 _ptr.texImage2D(target, level, internalformat, format_OR_width, heig
ht_OR_type, LevelDom.unwrap(border_OR_canvas_OR_image_OR_pixels)); | |
| 14513 return; | |
| 14514 } | |
| 14515 } | |
| 14516 } | |
| 14517 } else { | |
| 14518 if (border_OR_canvas_OR_image_OR_pixels is ImageElement) { | |
| 14519 if (format === null) { | |
| 14520 if (type === null) { | |
| 14521 if (pixels === null) { | |
| 14522 _ptr.texImage2D(target, level, internalformat, format_OR_width, he
ight_OR_type, LevelDom.unwrap(border_OR_canvas_OR_image_OR_pixels)); | |
| 14523 return; | |
| 14524 } | |
| 14525 } | |
| 14526 } | |
| 14527 } else { | |
| 14528 if (border_OR_canvas_OR_image_OR_pixels is CanvasElement) { | |
| 14529 if (format === null) { | |
| 14530 if (type === null) { | |
| 14531 if (pixels === null) { | |
| 14532 _ptr.texImage2D(target, level, internalformat, format_OR_width,
height_OR_type, LevelDom.unwrap(border_OR_canvas_OR_image_OR_pixels)); | |
| 14533 return; | |
| 14534 } | |
| 14535 } | |
| 14536 } | |
| 14537 } else { | |
| 14538 if (border_OR_canvas_OR_image_OR_pixels is int) { | |
| 14539 _ptr.texImage2D(target, level, internalformat, format_OR_width, heig
ht_OR_type, LevelDom.unwrap(border_OR_canvas_OR_image_OR_pixels), format, type,
LevelDom.unwrap(pixels)); | |
| 14540 return; | |
| 14541 } | |
| 14542 } | |
| 14543 } | |
| 14544 } | |
| 14545 throw "Incorrect number or type of arguments"; | |
| 14546 } | |
| 14547 | |
| 14548 void texParameterf(int target, int pname, num param) { | |
| 14549 _ptr.texParameterf(target, pname, param); | |
| 14550 return; | |
| 14551 } | |
| 14552 | |
| 14553 void texParameteri(int target, int pname, int param) { | |
| 14554 _ptr.texParameteri(target, pname, param); | |
| 14555 return; | |
| 14556 } | |
| 14557 | |
| 14558 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]) { | |
| 14559 if (canvas_OR_format_OR_image_OR_pixels is ImageData) { | |
| 14560 if (type === null) { | |
| 14561 if (pixels === null) { | |
| 14562 _ptr.texSubImage2D(target, level, xoffset, yoffset, format_OR_width, h
eight_OR_type, LevelDom.unwrap(canvas_OR_format_OR_image_OR_pixels)); | |
| 14563 return; | |
| 14564 } | |
| 14565 } | |
| 14566 } else { | |
| 14567 if (canvas_OR_format_OR_image_OR_pixels is ImageElement) { | |
| 14568 if (type === null) { | |
| 14569 if (pixels === null) { | |
| 14570 _ptr.texSubImage2D(target, level, xoffset, yoffset, format_OR_width,
height_OR_type, LevelDom.unwrap(canvas_OR_format_OR_image_OR_pixels)); | |
| 14571 return; | |
| 14572 } | |
| 14573 } | |
| 14574 } else { | |
| 14575 if (canvas_OR_format_OR_image_OR_pixels is CanvasElement) { | |
| 14576 if (type === null) { | |
| 14577 if (pixels === null) { | |
| 14578 _ptr.texSubImage2D(target, level, xoffset, yoffset, format_OR_widt
h, height_OR_type, LevelDom.unwrap(canvas_OR_format_OR_image_OR_pixels)); | |
| 14579 return; | |
| 14580 } | |
| 14581 } | |
| 14582 } else { | |
| 14583 if (canvas_OR_format_OR_image_OR_pixels is int) { | |
| 14584 _ptr.texSubImage2D(target, level, xoffset, yoffset, format_OR_width,
height_OR_type, LevelDom.unwrap(canvas_OR_format_OR_image_OR_pixels), type, Lev
elDom.unwrap(pixels)); | |
| 14585 return; | |
| 14586 } | |
| 14587 } | |
| 14588 } | |
| 14589 } | |
| 14590 throw "Incorrect number or type of arguments"; | |
| 14591 } | |
| 14592 | |
| 14593 void uniform1f(WebGLUniformLocation location, num x) { | |
| 14594 _ptr.uniform1f(LevelDom.unwrap(location), x); | |
| 14595 return; | |
| 14596 } | |
| 14597 | |
| 14598 void uniform1fv(WebGLUniformLocation location, Float32Array v) { | |
| 14599 _ptr.uniform1fv(LevelDom.unwrap(location), LevelDom.unwrap(v)); | |
| 14600 return; | |
| 14601 } | |
| 14602 | |
| 14603 void uniform1i(WebGLUniformLocation location, int x) { | |
| 14604 _ptr.uniform1i(LevelDom.unwrap(location), x); | |
| 14605 return; | |
| 14606 } | |
| 14607 | |
| 14608 void uniform1iv(WebGLUniformLocation location, Int32Array v) { | |
| 14609 _ptr.uniform1iv(LevelDom.unwrap(location), LevelDom.unwrap(v)); | |
| 14610 return; | |
| 14611 } | |
| 14612 | |
| 14613 void uniform2f(WebGLUniformLocation location, num x, num y) { | |
| 14614 _ptr.uniform2f(LevelDom.unwrap(location), x, y); | |
| 14615 return; | |
| 14616 } | |
| 14617 | |
| 14618 void uniform2fv(WebGLUniformLocation location, Float32Array v) { | |
| 14619 _ptr.uniform2fv(LevelDom.unwrap(location), LevelDom.unwrap(v)); | |
| 14620 return; | |
| 14621 } | |
| 14622 | |
| 14623 void uniform2i(WebGLUniformLocation location, int x, int y) { | |
| 14624 _ptr.uniform2i(LevelDom.unwrap(location), x, y); | |
| 14625 return; | |
| 14626 } | |
| 14627 | |
| 14628 void uniform2iv(WebGLUniformLocation location, Int32Array v) { | |
| 14629 _ptr.uniform2iv(LevelDom.unwrap(location), LevelDom.unwrap(v)); | |
| 14630 return; | |
| 14631 } | |
| 14632 | |
| 14633 void uniform3f(WebGLUniformLocation location, num x, num y, num z) { | |
| 14634 _ptr.uniform3f(LevelDom.unwrap(location), x, y, z); | |
| 14635 return; | |
| 14636 } | |
| 14637 | |
| 14638 void uniform3fv(WebGLUniformLocation location, Float32Array v) { | |
| 14639 _ptr.uniform3fv(LevelDom.unwrap(location), LevelDom.unwrap(v)); | |
| 14640 return; | |
| 14641 } | |
| 14642 | |
| 14643 void uniform3i(WebGLUniformLocation location, int x, int y, int z) { | |
| 14644 _ptr.uniform3i(LevelDom.unwrap(location), x, y, z); | |
| 14645 return; | |
| 14646 } | |
| 14647 | |
| 14648 void uniform3iv(WebGLUniformLocation location, Int32Array v) { | |
| 14649 _ptr.uniform3iv(LevelDom.unwrap(location), LevelDom.unwrap(v)); | |
| 14650 return; | |
| 14651 } | |
| 14652 | |
| 14653 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w) { | |
| 14654 _ptr.uniform4f(LevelDom.unwrap(location), x, y, z, w); | |
| 14655 return; | |
| 14656 } | |
| 14657 | |
| 14658 void uniform4fv(WebGLUniformLocation location, Float32Array v) { | |
| 14659 _ptr.uniform4fv(LevelDom.unwrap(location), LevelDom.unwrap(v)); | |
| 14660 return; | |
| 14661 } | |
| 14662 | |
| 14663 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w) { | |
| 14664 _ptr.uniform4i(LevelDom.unwrap(location), x, y, z, w); | |
| 14665 return; | |
| 14666 } | |
| 14667 | |
| 14668 void uniform4iv(WebGLUniformLocation location, Int32Array v) { | |
| 14669 _ptr.uniform4iv(LevelDom.unwrap(location), LevelDom.unwrap(v)); | |
| 14670 return; | |
| 14671 } | |
| 14672 | |
| 14673 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) { | |
| 14674 _ptr.uniformMatrix2fv(LevelDom.unwrap(location), transpose, LevelDom.unwrap(
array)); | |
| 14675 return; | |
| 14676 } | |
| 14677 | |
| 14678 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) { | |
| 14679 _ptr.uniformMatrix3fv(LevelDom.unwrap(location), transpose, LevelDom.unwrap(
array)); | |
| 14680 return; | |
| 14681 } | |
| 14682 | |
| 14683 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) { | |
| 14684 _ptr.uniformMatrix4fv(LevelDom.unwrap(location), transpose, LevelDom.unwrap(
array)); | |
| 14685 return; | |
| 14686 } | |
| 14687 | |
| 14688 void useProgram(WebGLProgram program) { | |
| 14689 _ptr.useProgram(LevelDom.unwrap(program)); | |
| 14690 return; | |
| 14691 } | |
| 14692 | |
| 14693 void validateProgram(WebGLProgram program) { | |
| 14694 _ptr.validateProgram(LevelDom.unwrap(program)); | |
| 14695 return; | |
| 14696 } | |
| 14697 | |
| 14698 void vertexAttrib1f(int indx, num x) { | |
| 14699 _ptr.vertexAttrib1f(indx, x); | |
| 14700 return; | |
| 14701 } | |
| 14702 | |
| 14703 void vertexAttrib1fv(int indx, Float32Array values) { | |
| 14704 _ptr.vertexAttrib1fv(indx, LevelDom.unwrap(values)); | |
| 14705 return; | |
| 14706 } | |
| 14707 | |
| 14708 void vertexAttrib2f(int indx, num x, num y) { | |
| 14709 _ptr.vertexAttrib2f(indx, x, y); | |
| 14710 return; | |
| 14711 } | |
| 14712 | |
| 14713 void vertexAttrib2fv(int indx, Float32Array values) { | |
| 14714 _ptr.vertexAttrib2fv(indx, LevelDom.unwrap(values)); | |
| 14715 return; | |
| 14716 } | |
| 14717 | |
| 14718 void vertexAttrib3f(int indx, num x, num y, num z) { | |
| 14719 _ptr.vertexAttrib3f(indx, x, y, z); | |
| 14720 return; | |
| 14721 } | |
| 14722 | |
| 14723 void vertexAttrib3fv(int indx, Float32Array values) { | |
| 14724 _ptr.vertexAttrib3fv(indx, LevelDom.unwrap(values)); | |
| 14725 return; | |
| 14726 } | |
| 14727 | |
| 14728 void vertexAttrib4f(int indx, num x, num y, num z, num w) { | |
| 14729 _ptr.vertexAttrib4f(indx, x, y, z, w); | |
| 14730 return; | |
| 14731 } | |
| 14732 | |
| 14733 void vertexAttrib4fv(int indx, Float32Array values) { | |
| 14734 _ptr.vertexAttrib4fv(indx, LevelDom.unwrap(values)); | |
| 14735 return; | |
| 14736 } | |
| 14737 | |
| 14738 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st
ride, int offset) { | |
| 14739 _ptr.vertexAttribPointer(indx, size, type, normalized, stride, offset); | |
| 14740 return; | |
| 14741 } | |
| 14742 | |
| 14743 void viewport(int x, int y, int width, int height) { | |
| 14744 _ptr.viewport(x, y, width, height); | |
| 14745 return; | |
| 14746 } | |
| 14747 } | |
| 14748 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 14749 // for details. All rights reserved. Use of this source code is governed by a | |
| 14750 // BSD-style license that can be found in the LICENSE file. | |
| 14751 | |
| 14752 // WARNING: Do not edit - generated code. | |
| 14753 | |
| 14754 class WebGLShaderWrappingImplementation extends DOMWrapperBase implements WebGLS
hader { | |
| 14755 WebGLShaderWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 14756 } | |
| 14757 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 14758 // for details. All rights reserved. Use of this source code is governed by a | |
| 14759 // BSD-style license that can be found in the LICENSE file. | |
| 14760 | |
| 14761 // WARNING: Do not edit - generated code. | |
| 14762 | |
| 14763 class WebGLTextureWrappingImplementation extends DOMWrapperBase implements WebGL
Texture { | |
| 14764 WebGLTextureWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 14765 } | |
| 14766 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 14767 // for details. All rights reserved. Use of this source code is governed by a | |
| 14768 // BSD-style license that can be found in the LICENSE file. | |
| 14769 | |
| 14770 // WARNING: Do not edit - generated code. | |
| 14771 | |
| 14772 class WebGLUniformLocationWrappingImplementation extends DOMWrapperBase implemen
ts WebGLUniformLocation { | |
| 14773 WebGLUniformLocationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 14774 } | |
| 14775 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 14776 // for details. All rights reserved. Use of this source code is governed by a | |
| 14777 // BSD-style license that can be found in the LICENSE file. | |
| 14778 | |
| 14779 // WARNING: Do not edit - generated code. | |
| 14780 | |
| 14781 class WebGLVertexArrayObjectOESWrappingImplementation extends DOMWrapperBase imp
lements WebGLVertexArrayObjectOES { | |
| 14782 WebGLVertexArrayObjectOESWrappingImplementation._wrap(ptr) : super._wrap(ptr)
{} | |
| 14783 } | |
| 14784 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 14785 // for details. All rights reserved. Use of this source code is governed by a | |
| 14786 // BSD-style license that can be found in the LICENSE file. | |
| 14787 | |
| 14788 // WARNING: Do not edit - generated code. | |
| 14789 | |
| 14790 class XMLHttpRequestExceptionWrappingImplementation extends DOMWrapperBase imple
ments XMLHttpRequestException { | |
| 14791 XMLHttpRequestExceptionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 14792 | |
| 14793 int get code() { return _ptr.code; } | |
| 14794 | |
| 14795 String get message() { return _ptr.message; } | |
| 14796 | |
| 14797 String get name() { return _ptr.name; } | |
| 14798 } | |
| 14799 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 14800 // for details. All rights reserved. Use of this source code is governed by a | |
| 14801 // BSD-style license that can be found in the LICENSE file. | |
| 14802 | |
| 14803 // WARNING: Do not edit - generated code. | |
| 14804 | |
| 14805 class LevelDom { | |
| 14806 static AnchorElement wrapAnchorElement(raw) { | |
| 14807 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new AnchorElementWrappingImplementation._wrap(raw); | |
| 14808 } | |
| 14809 | |
| 14810 static Animation wrapAnimation(raw) { | |
| 14811 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new AnimationWrappingImplementation._wrap(raw); | |
| 14812 } | |
| 14813 | |
| 14814 static AnimationEvent wrapAnimationEvent(raw) { | |
| 14815 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new AnimationEventWrappingImplementation._wrap(raw); | |
| 14816 } | |
| 14817 | |
| 14818 static AnimationList wrapAnimationList(raw) { | |
| 14819 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new AnimationListWrappingImplementation._wrap(raw); | |
| 14820 } | |
| 14821 | |
| 14822 static AreaElement wrapAreaElement(raw) { | |
| 14823 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new AreaElementWrappingImplementation._wrap(raw); | |
| 14824 } | |
| 14825 | |
| 14826 static ArrayBuffer wrapArrayBuffer(raw) { | |
| 14827 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ArrayBufferWrappingImplementation._wrap(raw); | |
| 14828 } | |
| 14829 | |
| 14830 static ArrayBufferView wrapArrayBufferView(raw) { | |
| 14831 if (raw === null) { return null; } | |
| 14832 if (raw.dartObjectLocalStorage !== null) { | |
| 14833 return raw.dartObjectLocalStorage; | |
| 14834 } | |
| 14835 switch (raw.typeName) { | |
| 14836 case "ArrayBufferView": | |
| 14837 return new ArrayBufferViewWrappingImplementation._wrap(raw); | |
| 14838 case "DataView": | |
| 14839 return new DataViewWrappingImplementation._wrap(raw); | |
| 14840 case "Float32Array": | |
| 14841 return new Float32ArrayWrappingImplementation._wrap(raw); | |
| 14842 case "Float64Array": | |
| 14843 return new Float64ArrayWrappingImplementation._wrap(raw); | |
| 14844 case "Int16Array": | |
| 14845 return new Int16ArrayWrappingImplementation._wrap(raw); | |
| 14846 case "Int32Array": | |
| 14847 return new Int32ArrayWrappingImplementation._wrap(raw); | |
| 14848 case "Int8Array": | |
| 14849 return new Int8ArrayWrappingImplementation._wrap(raw); | |
| 14850 case "Uint16Array": | |
| 14851 return new Uint16ArrayWrappingImplementation._wrap(raw); | |
| 14852 case "Uint32Array": | |
| 14853 return new Uint32ArrayWrappingImplementation._wrap(raw); | |
| 14854 case "Uint8Array": | |
| 14855 return new Uint8ArrayWrappingImplementation._wrap(raw); | |
| 14856 default: | |
| 14857 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 14858 } | |
| 14859 } | |
| 14860 | |
| 14861 static AudioElement wrapAudioElement(raw) { | |
| 14862 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new AudioElementWrappingImplementation._wrap(raw); | |
| 14863 } | |
| 14864 | |
| 14865 static BRElement wrapBRElement(raw) { | |
| 14866 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new BRElementWrappingImplementation._wrap(raw); | |
| 14867 } | |
| 14868 | |
| 14869 static BarInfo wrapBarInfo(raw) { | |
| 14870 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new BarInfoWrappingImplementation._wrap(raw); | |
| 14871 } | |
| 14872 | |
| 14873 static BaseElement wrapBaseElement(raw) { | |
| 14874 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new BaseElementWrappingImplementation._wrap(raw); | |
| 14875 } | |
| 14876 | |
| 14877 static BeforeLoadEvent wrapBeforeLoadEvent(raw) { | |
| 14878 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new BeforeLoadEventWrappingImplementation._wrap(raw); | |
| 14879 } | |
| 14880 | |
| 14881 static Blob wrapBlob(raw) { | |
| 14882 if (raw === null) { return null; } | |
| 14883 if (raw.dartObjectLocalStorage !== null) { | |
| 14884 return raw.dartObjectLocalStorage; | |
| 14885 } | |
| 14886 switch (raw.typeName) { | |
| 14887 case "Blob": | |
| 14888 return new BlobWrappingImplementation._wrap(raw); | |
| 14889 case "File": | |
| 14890 return new FileWrappingImplementation._wrap(raw); | |
| 14891 default: | |
| 14892 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 14893 } | |
| 14894 } | |
| 14895 | |
| 14896 static BlobBuilder wrapBlobBuilder(raw) { | |
| 14897 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new BlobBuilderWrappingImplementation._wrap(raw); | |
| 14898 } | |
| 14899 | |
| 14900 static BodyElement wrapBodyElement(raw) { | |
| 14901 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new BodyElementWrappingImplementation._wrap(raw); | |
| 14902 } | |
| 14903 | |
| 14904 static ButtonElement wrapButtonElement(raw) { | |
| 14905 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ButtonElementWrappingImplementation._wrap(raw); | |
| 14906 } | |
| 14907 | |
| 14908 static CDATASection wrapCDATASection(raw) { | |
| 14909 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CDATASectionWrappingImplementation._wrap(raw); | |
| 14910 } | |
| 14911 | |
| 14912 static CSSCharsetRule wrapCSSCharsetRule(raw) { | |
| 14913 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSCharsetRuleWrappingImplementation._wrap(raw); | |
| 14914 } | |
| 14915 | |
| 14916 static CSSFontFaceRule wrapCSSFontFaceRule(raw) { | |
| 14917 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSFontFaceRuleWrappingImplementation._wrap(raw); | |
| 14918 } | |
| 14919 | |
| 14920 static CSSImportRule wrapCSSImportRule(raw) { | |
| 14921 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSImportRuleWrappingImplementation._wrap(raw); | |
| 14922 } | |
| 14923 | |
| 14924 static CSSKeyframeRule wrapCSSKeyframeRule(raw) { | |
| 14925 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSKeyframeRuleWrappingImplementation._wrap(raw); | |
| 14926 } | |
| 14927 | |
| 14928 static CSSKeyframesRule wrapCSSKeyframesRule(raw) { | |
| 14929 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSKeyframesRuleWrappingImplementation._wrap(raw); | |
| 14930 } | |
| 14931 | |
| 14932 static CSSMatrix wrapCSSMatrix(raw) { | |
| 14933 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSMatrixWrappingImplementation._wrap(raw); | |
| 14934 } | |
| 14935 | |
| 14936 static CSSMediaRule wrapCSSMediaRule(raw) { | |
| 14937 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSMediaRuleWrappingImplementation._wrap(raw); | |
| 14938 } | |
| 14939 | |
| 14940 static CSSPageRule wrapCSSPageRule(raw) { | |
| 14941 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSPageRuleWrappingImplementation._wrap(raw); | |
| 14942 } | |
| 14943 | |
| 14944 static CSSPrimitiveValue wrapCSSPrimitiveValue(raw) { | |
| 14945 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSPrimitiveValueWrappingImplementation._wrap(raw); | |
| 14946 } | |
| 14947 | |
| 14948 static CSSRule wrapCSSRule(raw) { | |
| 14949 if (raw === null) { return null; } | |
| 14950 if (raw.dartObjectLocalStorage !== null) { | |
| 14951 return raw.dartObjectLocalStorage; | |
| 14952 } | |
| 14953 switch (raw.typeName) { | |
| 14954 case "CSSCharsetRule": | |
| 14955 return new CSSCharsetRuleWrappingImplementation._wrap(raw); | |
| 14956 case "CSSFontFaceRule": | |
| 14957 return new CSSFontFaceRuleWrappingImplementation._wrap(raw); | |
| 14958 case "CSSImportRule": | |
| 14959 return new CSSImportRuleWrappingImplementation._wrap(raw); | |
| 14960 case "WebKitCSSKeyframeRule": | |
| 14961 return new CSSKeyframeRuleWrappingImplementation._wrap(raw); | |
| 14962 case "WebKitCSSKeyframesRule": | |
| 14963 return new CSSKeyframesRuleWrappingImplementation._wrap(raw); | |
| 14964 case "CSSMediaRule": | |
| 14965 return new CSSMediaRuleWrappingImplementation._wrap(raw); | |
| 14966 case "CSSPageRule": | |
| 14967 return new CSSPageRuleWrappingImplementation._wrap(raw); | |
| 14968 case "CSSRule": | |
| 14969 return new CSSRuleWrappingImplementation._wrap(raw); | |
| 14970 case "CSSStyleRule": | |
| 14971 return new CSSStyleRuleWrappingImplementation._wrap(raw); | |
| 14972 case "CSSUnknownRule": | |
| 14973 return new CSSUnknownRuleWrappingImplementation._wrap(raw); | |
| 14974 default: | |
| 14975 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 14976 } | |
| 14977 } | |
| 14978 | |
| 14979 static CSSRuleList wrapCSSRuleList(raw) { | |
| 14980 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSRuleListWrappingImplementation._wrap(raw); | |
| 14981 } | |
| 14982 | |
| 14983 static CSSStyleDeclaration wrapCSSStyleDeclaration(raw) { | |
| 14984 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSStyleDeclarationWrappingImplementation._wrap(raw); | |
| 14985 } | |
| 14986 | |
| 14987 static CSSStyleRule wrapCSSStyleRule(raw) { | |
| 14988 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSStyleRuleWrappingImplementation._wrap(raw); | |
| 14989 } | |
| 14990 | |
| 14991 static CSSStyleSheet wrapCSSStyleSheet(raw) { | |
| 14992 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSStyleSheetWrappingImplementation._wrap(raw); | |
| 14993 } | |
| 14994 | |
| 14995 static CSSTransformValue wrapCSSTransformValue(raw) { | |
| 14996 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSTransformValueWrappingImplementation._wrap(raw); | |
| 14997 } | |
| 14998 | |
| 14999 static CSSUnknownRule wrapCSSUnknownRule(raw) { | |
| 15000 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSUnknownRuleWrappingImplementation._wrap(raw); | |
| 15001 } | |
| 15002 | |
| 15003 static CSSValue wrapCSSValue(raw) { | |
| 15004 if (raw === null) { return null; } | |
| 15005 if (raw.dartObjectLocalStorage !== null) { | |
| 15006 return raw.dartObjectLocalStorage; | |
| 15007 } | |
| 15008 switch (raw.typeName) { | |
| 15009 case "CSSPrimitiveValue": | |
| 15010 return new CSSPrimitiveValueWrappingImplementation._wrap(raw); | |
| 15011 case "WebKitCSSTransformValue": | |
| 15012 return new CSSTransformValueWrappingImplementation._wrap(raw); | |
| 15013 case "CSSValue": | |
| 15014 return new CSSValueWrappingImplementation._wrap(raw); | |
| 15015 case "CSSValueList": | |
| 15016 return new CSSValueListWrappingImplementation._wrap(raw); | |
| 15017 default: | |
| 15018 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 15019 } | |
| 15020 } | |
| 15021 | |
| 15022 static CSSValueList wrapCSSValueList(raw) { | |
| 15023 if (raw === null) { return null; } | |
| 15024 if (raw.dartObjectLocalStorage !== null) { | |
| 15025 return raw.dartObjectLocalStorage; | |
| 15026 } | |
| 15027 switch (raw.typeName) { | |
| 15028 case "WebKitCSSTransformValue": | |
| 15029 return new CSSTransformValueWrappingImplementation._wrap(raw); | |
| 15030 case "CSSValueList": | |
| 15031 return new CSSValueListWrappingImplementation._wrap(raw); | |
| 15032 default: | |
| 15033 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 15034 } | |
| 15035 } | |
| 15036 | |
| 15037 static CanvasElement wrapCanvasElement(raw) { | |
| 15038 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CanvasElementWrappingImplementation._wrap(raw); | |
| 15039 } | |
| 15040 | |
| 15041 static CanvasGradient wrapCanvasGradient(raw) { | |
| 15042 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CanvasGradientWrappingImplementation._wrap(raw); | |
| 15043 } | |
| 15044 | |
| 15045 static CanvasPattern wrapCanvasPattern(raw) { | |
| 15046 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CanvasPatternWrappingImplementation._wrap(raw); | |
| 15047 } | |
| 15048 | |
| 15049 static CanvasPixelArray wrapCanvasPixelArray(raw) { | |
| 15050 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CanvasPixelArrayWrappingImplementation._wrap(raw); | |
| 15051 } | |
| 15052 | |
| 15053 static CanvasRenderingContext wrapCanvasRenderingContext(raw) { | |
| 15054 if (raw === null) { return null; } | |
| 15055 if (raw.dartObjectLocalStorage !== null) { | |
| 15056 return raw.dartObjectLocalStorage; | |
| 15057 } | |
| 15058 switch (raw.typeName) { | |
| 15059 case "CanvasRenderingContext": | |
| 15060 return new CanvasRenderingContextWrappingImplementation._wrap(raw); | |
| 15061 case "CanvasRenderingContext2D": | |
| 15062 return new CanvasRenderingContext2DWrappingImplementation._wrap(raw); | |
| 15063 case "WebGLRenderingContext": | |
| 15064 return new WebGLRenderingContextWrappingImplementation._wrap(raw); | |
| 15065 default: | |
| 15066 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 15067 } | |
| 15068 } | |
| 15069 | |
| 15070 static CanvasRenderingContext2D wrapCanvasRenderingContext2D(raw) { | |
| 15071 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CanvasRenderingContext2DWrappingImplementation._wrap(raw
); | |
| 15072 } | |
| 15073 | |
| 15074 static CharacterData wrapCharacterData(raw) { | |
| 15075 if (raw === null) { return null; } | |
| 15076 if (raw.dartObjectLocalStorage !== null) { | |
| 15077 return raw.dartObjectLocalStorage; | |
| 15078 } | |
| 15079 switch (raw.typeName) { | |
| 15080 case "CDATASection": | |
| 15081 return new CDATASectionWrappingImplementation._wrap(raw); | |
| 15082 case "CharacterData": | |
| 15083 return new CharacterDataWrappingImplementation._wrap(raw); | |
| 15084 case "Comment": | |
| 15085 return new CommentWrappingImplementation._wrap(raw); | |
| 15086 case "Text": | |
| 15087 return new TextWrappingImplementation._wrap(raw); | |
| 15088 default: | |
| 15089 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 15090 } | |
| 15091 } | |
| 15092 | |
| 15093 static ClientRect wrapClientRect(raw) { | |
| 15094 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ClientRectWrappingImplementation._wrap(raw); | |
| 15095 } | |
| 15096 | |
| 15097 static Clipboard wrapClipboard(raw) { | |
| 15098 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ClipboardWrappingImplementation._wrap(raw); | |
| 15099 } | |
| 15100 | |
| 15101 static CloseEvent wrapCloseEvent(raw) { | |
| 15102 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CloseEventWrappingImplementation._wrap(raw); | |
| 15103 } | |
| 15104 | |
| 15105 static Comment wrapComment(raw) { | |
| 15106 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CommentWrappingImplementation._wrap(raw); | |
| 15107 } | |
| 15108 | |
| 15109 static CompositionEvent wrapCompositionEvent(raw) { | |
| 15110 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CompositionEventWrappingImplementation._wrap(raw); | |
| 15111 } | |
| 15112 | |
| 15113 static Console wrapConsole(raw) { | |
| 15114 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ConsoleWrappingImplementation._wrap(raw); | |
| 15115 } | |
| 15116 | |
| 15117 static Coordinates wrapCoordinates(raw) { | |
| 15118 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CoordinatesWrappingImplementation._wrap(raw); | |
| 15119 } | |
| 15120 | |
| 15121 static Counter wrapCounter(raw) { | |
| 15122 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CounterWrappingImplementation._wrap(raw); | |
| 15123 } | |
| 15124 | |
| 15125 static Crypto wrapCrypto(raw) { | |
| 15126 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CryptoWrappingImplementation._wrap(raw); | |
| 15127 } | |
| 15128 | |
| 15129 static CustomEvent wrapCustomEvent(raw) { | |
| 15130 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CustomEventWrappingImplementation._wrap(raw); | |
| 15131 } | |
| 15132 | |
| 15133 static DListElement wrapDListElement(raw) { | |
| 15134 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DListElementWrappingImplementation._wrap(raw); | |
| 15135 } | |
| 15136 | |
| 15137 static DOMApplicationCache wrapDOMApplicationCache(raw) { | |
| 15138 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMApplicationCacheWrappingImplementation._wrap(raw); | |
| 15139 } | |
| 15140 | |
| 15141 static DOMException wrapDOMException(raw) { | |
| 15142 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMExceptionWrappingImplementation._wrap(raw); | |
| 15143 } | |
| 15144 | |
| 15145 static DOMFileSystem wrapDOMFileSystem(raw) { | |
| 15146 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMFileSystemWrappingImplementation._wrap(raw); | |
| 15147 } | |
| 15148 | |
| 15149 static DOMFileSystemSync wrapDOMFileSystemSync(raw) { | |
| 15150 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMFileSystemSyncWrappingImplementation._wrap(raw); | |
| 15151 } | |
| 15152 | |
| 15153 static DOMFormData wrapDOMFormData(raw) { | |
| 15154 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMFormDataWrappingImplementation._wrap(raw); | |
| 15155 } | |
| 15156 | |
| 15157 static DOMMimeType wrapDOMMimeType(raw) { | |
| 15158 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMMimeTypeWrappingImplementation._wrap(raw); | |
| 15159 } | |
| 15160 | |
| 15161 static DOMMimeTypeArray wrapDOMMimeTypeArray(raw) { | |
| 15162 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMMimeTypeArrayWrappingImplementation._wrap(raw); | |
| 15163 } | |
| 15164 | |
| 15165 static DOMParser wrapDOMParser(raw) { | |
| 15166 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMParserWrappingImplementation._wrap(raw); | |
| 15167 } | |
| 15168 | |
| 15169 static DOMPlugin wrapDOMPlugin(raw) { | |
| 15170 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMPluginWrappingImplementation._wrap(raw); | |
| 15171 } | |
| 15172 | |
| 15173 static DOMPluginArray wrapDOMPluginArray(raw) { | |
| 15174 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMPluginArrayWrappingImplementation._wrap(raw); | |
| 15175 } | |
| 15176 | |
| 15177 static DOMSelection wrapDOMSelection(raw) { | |
| 15178 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMSelectionWrappingImplementation._wrap(raw); | |
| 15179 } | |
| 15180 | |
| 15181 static DOMSettableTokenList wrapDOMSettableTokenList(raw) { | |
| 15182 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMSettableTokenListWrappingImplementation._wrap(raw); | |
| 15183 } | |
| 15184 | |
| 15185 static DOMTokenList wrapDOMTokenList(raw) { | |
| 15186 if (raw === null) { return null; } | |
| 15187 if (raw.dartObjectLocalStorage !== null) { | |
| 15188 return raw.dartObjectLocalStorage; | |
| 15189 } | |
| 15190 switch (raw.typeName) { | |
| 15191 case "DOMSettableTokenList": | |
| 15192 return new DOMSettableTokenListWrappingImplementation._wrap(raw); | |
| 15193 case "DOMTokenList": | |
| 15194 return new DOMTokenListWrappingImplementation._wrap(raw); | |
| 15195 default: | |
| 15196 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 15197 } | |
| 15198 } | |
| 15199 | |
| 15200 static DOMURL wrapDOMURL(raw) { | |
| 15201 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMURLWrappingImplementation._wrap(raw); | |
| 15202 } | |
| 15203 | |
| 15204 static DataListElement wrapDataListElement(raw) { | |
| 15205 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DataListElementWrappingImplementation._wrap(raw); | |
| 15206 } | |
| 15207 | |
| 15208 static DataTransferItem wrapDataTransferItem(raw) { | |
| 15209 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DataTransferItemWrappingImplementation._wrap(raw); | |
| 15210 } | |
| 15211 | |
| 15212 static DataTransferItems wrapDataTransferItems(raw) { | |
| 15213 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DataTransferItemsWrappingImplementation._wrap(raw); | |
| 15214 } | |
| 15215 | |
| 15216 static DataView wrapDataView(raw) { | |
| 15217 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DataViewWrappingImplementation._wrap(raw); | |
| 15218 } | |
| 15219 | |
| 15220 static DetailsElement wrapDetailsElement(raw) { | |
| 15221 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DetailsElementWrappingImplementation._wrap(raw); | |
| 15222 } | |
| 15223 | |
| 15224 static DeviceMotionEvent wrapDeviceMotionEvent(raw) { | |
| 15225 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DeviceMotionEventWrappingImplementation._wrap(raw); | |
| 15226 } | |
| 15227 | |
| 15228 static DeviceOrientationEvent wrapDeviceOrientationEvent(raw) { | |
| 15229 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DeviceOrientationEventWrappingImplementation._wrap(raw); | |
| 15230 } | |
| 15231 | |
| 15232 static DirectoryEntry wrapDirectoryEntry(raw) { | |
| 15233 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DirectoryEntryWrappingImplementation._wrap(raw); | |
| 15234 } | |
| 15235 | |
| 15236 static DirectoryEntrySync wrapDirectoryEntrySync(raw) { | |
| 15237 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DirectoryEntrySyncWrappingImplementation._wrap(raw); | |
| 15238 } | |
| 15239 | |
| 15240 static DirectoryReader wrapDirectoryReader(raw) { | |
| 15241 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DirectoryReaderWrappingImplementation._wrap(raw); | |
| 15242 } | |
| 15243 | |
| 15244 static DirectoryReaderSync wrapDirectoryReaderSync(raw) { | |
| 15245 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DirectoryReaderSyncWrappingImplementation._wrap(raw); | |
| 15246 } | |
| 15247 | |
| 15248 static DivElement wrapDivElement(raw) { | |
| 15249 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DivElementWrappingImplementation._wrap(raw); | |
| 15250 } | |
| 15251 | |
| 15252 static Document wrapDocument(raw) { | |
| 15253 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DocumentWrappingImplementation._wrap(raw, raw.documentEl
ement); | |
| 15254 } | |
| 15255 | |
| 15256 static DocumentFragment wrapDocumentFragment(raw) { | |
| 15257 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DocumentFragmentWrappingImplementation._wrap(raw); | |
| 15258 } | |
| 15259 | |
| 15260 static Element wrapElement(raw) { | |
| 15261 if (raw === null) { return null; } | |
| 15262 if (raw.dartObjectLocalStorage !== null) { | |
| 15263 return raw.dartObjectLocalStorage; | |
| 15264 } | |
| 15265 switch (raw.typeName) { | |
| 15266 case "HTMLAnchorElement": | |
| 15267 return new AnchorElementWrappingImplementation._wrap(raw); | |
| 15268 /* Skipping HTMLAppletElement*/ | |
| 15269 case "HTMLAreaElement": | |
| 15270 return new AreaElementWrappingImplementation._wrap(raw); | |
| 15271 case "HTMLAudioElement": | |
| 15272 return new AudioElementWrappingImplementation._wrap(raw); | |
| 15273 case "HTMLBRElement": | |
| 15274 return new BRElementWrappingImplementation._wrap(raw); | |
| 15275 case "HTMLBaseElement": | |
| 15276 return new BaseElementWrappingImplementation._wrap(raw); | |
| 15277 /* Skipping HTMLBaseFontElement*/ | |
| 15278 case "HTMLBodyElement": | |
| 15279 return new BodyElementWrappingImplementation._wrap(raw); | |
| 15280 case "HTMLButtonElement": | |
| 15281 return new ButtonElementWrappingImplementation._wrap(raw); | |
| 15282 case "HTMLCanvasElement": | |
| 15283 return new CanvasElementWrappingImplementation._wrap(raw); | |
| 15284 case "HTMLDListElement": | |
| 15285 return new DListElementWrappingImplementation._wrap(raw); | |
| 15286 case "HTMLDataListElement": | |
| 15287 return new DataListElementWrappingImplementation._wrap(raw); | |
| 15288 case "HTMLDetailsElement": | |
| 15289 return new DetailsElementWrappingImplementation._wrap(raw); | |
| 15290 /* Skipping HTMLDirectoryElement*/ | |
| 15291 case "HTMLDivElement": | |
| 15292 return new DivElementWrappingImplementation._wrap(raw); | |
| 15293 case "HTMLElement": | |
| 15294 return new ElementWrappingImplementation._wrap(raw); | |
| 15295 case "HTMLEmbedElement": | |
| 15296 return new EmbedElementWrappingImplementation._wrap(raw); | |
| 15297 case "HTMLFieldSetElement": | |
| 15298 return new FieldSetElementWrappingImplementation._wrap(raw); | |
| 15299 case "HTMLFontElement": | |
| 15300 return new FontElementWrappingImplementation._wrap(raw); | |
| 15301 case "HTMLFormElement": | |
| 15302 return new FormElementWrappingImplementation._wrap(raw); | |
| 15303 /* Skipping HTMLFrameElement*/ | |
| 15304 /* Skipping HTMLFrameSetElement*/ | |
| 15305 case "HTMLHRElement": | |
| 15306 return new HRElementWrappingImplementation._wrap(raw); | |
| 15307 case "HTMLHeadElement": | |
| 15308 return new HeadElementWrappingImplementation._wrap(raw); | |
| 15309 case "HTMLHeadingElement": | |
| 15310 return new HeadingElementWrappingImplementation._wrap(raw); | |
| 15311 case "HTMLHtmlElement": | |
| 15312 return new DocumentWrappingImplementation._wrap(raw.parentNode, raw); | |
| 15313 case "HTMLIFrameElement": | |
| 15314 return new IFrameElementWrappingImplementation._wrap(raw); | |
| 15315 case "HTMLImageElement": | |
| 15316 return new ImageElementWrappingImplementation._wrap(raw); | |
| 15317 case "HTMLInputElement": | |
| 15318 return new InputElementWrappingImplementation._wrap(raw); | |
| 15319 /* Skipping HTMLIsIndexElement*/ | |
| 15320 case "HTMLKeygenElement": | |
| 15321 return new KeygenElementWrappingImplementation._wrap(raw); | |
| 15322 case "HTMLLIElement": | |
| 15323 return new LIElementWrappingImplementation._wrap(raw); | |
| 15324 case "HTMLLabelElement": | |
| 15325 return new LabelElementWrappingImplementation._wrap(raw); | |
| 15326 case "HTMLLegendElement": | |
| 15327 return new LegendElementWrappingImplementation._wrap(raw); | |
| 15328 case "HTMLLinkElement": | |
| 15329 return new LinkElementWrappingImplementation._wrap(raw); | |
| 15330 case "HTMLMapElement": | |
| 15331 return new MapElementWrappingImplementation._wrap(raw); | |
| 15332 case "HTMLMarqueeElement": | |
| 15333 return new MarqueeElementWrappingImplementation._wrap(raw); | |
| 15334 case "HTMLMediaElement": | |
| 15335 return new MediaElementWrappingImplementation._wrap(raw); | |
| 15336 case "HTMLMenuElement": | |
| 15337 return new MenuElementWrappingImplementation._wrap(raw); | |
| 15338 case "HTMLMetaElement": | |
| 15339 return new MetaElementWrappingImplementation._wrap(raw); | |
| 15340 case "HTMLMeterElement": | |
| 15341 return new MeterElementWrappingImplementation._wrap(raw); | |
| 15342 case "HTMLModElement": | |
| 15343 return new ModElementWrappingImplementation._wrap(raw); | |
| 15344 case "HTMLOListElement": | |
| 15345 return new OListElementWrappingImplementation._wrap(raw); | |
| 15346 case "HTMLObjectElement": | |
| 15347 return new ObjectElementWrappingImplementation._wrap(raw); | |
| 15348 case "HTMLOptGroupElement": | |
| 15349 return new OptGroupElementWrappingImplementation._wrap(raw); | |
| 15350 case "HTMLOptionElement": | |
| 15351 return new OptionElementWrappingImplementation._wrap(raw); | |
| 15352 case "HTMLOutputElement": | |
| 15353 return new OutputElementWrappingImplementation._wrap(raw); | |
| 15354 case "HTMLParagraphElement": | |
| 15355 return new ParagraphElementWrappingImplementation._wrap(raw); | |
| 15356 case "HTMLParamElement": | |
| 15357 return new ParamElementWrappingImplementation._wrap(raw); | |
| 15358 case "HTMLPreElement": | |
| 15359 return new PreElementWrappingImplementation._wrap(raw); | |
| 15360 case "HTMLProgressElement": | |
| 15361 return new ProgressElementWrappingImplementation._wrap(raw); | |
| 15362 case "HTMLQuoteElement": | |
| 15363 return new QuoteElementWrappingImplementation._wrap(raw); | |
| 15364 case "HTMLScriptElement": | |
| 15365 return new ScriptElementWrappingImplementation._wrap(raw); | |
| 15366 case "HTMLSelectElement": | |
| 15367 return new SelectElementWrappingImplementation._wrap(raw); | |
| 15368 case "HTMLSourceElement": | |
| 15369 return new SourceElementWrappingImplementation._wrap(raw); | |
| 15370 case "HTMLSpanElement": | |
| 15371 return new SpanElementWrappingImplementation._wrap(raw); | |
| 15372 case "HTMLStyleElement": | |
| 15373 return new StyleElementWrappingImplementation._wrap(raw); | |
| 15374 case "HTMLTableCaptionElement": | |
| 15375 return new TableCaptionElementWrappingImplementation._wrap(raw); | |
| 15376 case "HTMLTableCellElement": | |
| 15377 return new TableCellElementWrappingImplementation._wrap(raw); | |
| 15378 case "HTMLTableColElement": | |
| 15379 return new TableColElementWrappingImplementation._wrap(raw); | |
| 15380 case "HTMLTableElement": | |
| 15381 return new TableElementWrappingImplementation._wrap(raw); | |
| 15382 case "HTMLTableRowElement": | |
| 15383 return new TableRowElementWrappingImplementation._wrap(raw); | |
| 15384 case "HTMLTableSectionElement": | |
| 15385 return new TableSectionElementWrappingImplementation._wrap(raw); | |
| 15386 case "HTMLTextAreaElement": | |
| 15387 return new TextAreaElementWrappingImplementation._wrap(raw); | |
| 15388 case "HTMLTitleElement": | |
| 15389 return new TitleElementWrappingImplementation._wrap(raw); | |
| 15390 case "HTMLTrackElement": | |
| 15391 return new TrackElementWrappingImplementation._wrap(raw); | |
| 15392 case "HTMLUListElement": | |
| 15393 return new UListElementWrappingImplementation._wrap(raw); | |
| 15394 case "HTMLUnknownElement": | |
| 15395 return new UnknownElementWrappingImplementation._wrap(raw); | |
| 15396 case "HTMLVideoElement": | |
| 15397 return new VideoElementWrappingImplementation._wrap(raw); | |
| 15398 default: | |
| 15399 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 15400 } | |
| 15401 } | |
| 15402 | |
| 15403 static ElementList wrapElementList(raw) { | |
| 15404 return raw === null ? null : new FrozenElementList._wrap(raw); | |
| 15405 } | |
| 15406 | |
| 15407 static EmbedElement wrapEmbedElement(raw) { | |
| 15408 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EmbedElementWrappingImplementation._wrap(raw); | |
| 15409 } | |
| 15410 | |
| 15411 static Entity wrapEntity(raw) { | |
| 15412 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EntityWrappingImplementation._wrap(raw); | |
| 15413 } | |
| 15414 | |
| 15415 static EntityReference wrapEntityReference(raw) { | |
| 15416 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EntityReferenceWrappingImplementation._wrap(raw); | |
| 15417 } | |
| 15418 | |
| 15419 static EntriesCallback wrapEntriesCallback(raw) { | |
| 15420 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EntriesCallbackWrappingImplementation._wrap(raw); | |
| 15421 } | |
| 15422 | |
| 15423 static Entry wrapEntry(raw) { | |
| 15424 if (raw === null) { return null; } | |
| 15425 if (raw.dartObjectLocalStorage !== null) { | |
| 15426 return raw.dartObjectLocalStorage; | |
| 15427 } | |
| 15428 switch (raw.typeName) { | |
| 15429 case "DirectoryEntry": | |
| 15430 return new DirectoryEntryWrappingImplementation._wrap(raw); | |
| 15431 case "Entry": | |
| 15432 return new EntryWrappingImplementation._wrap(raw); | |
| 15433 case "FileEntry": | |
| 15434 return new FileEntryWrappingImplementation._wrap(raw); | |
| 15435 default: | |
| 15436 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 15437 } | |
| 15438 } | |
| 15439 | |
| 15440 static EntryArray wrapEntryArray(raw) { | |
| 15441 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EntryArrayWrappingImplementation._wrap(raw); | |
| 15442 } | |
| 15443 | |
| 15444 static EntryArraySync wrapEntryArraySync(raw) { | |
| 15445 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EntryArraySyncWrappingImplementation._wrap(raw); | |
| 15446 } | |
| 15447 | |
| 15448 static EntryCallback wrapEntryCallback(raw) { | |
| 15449 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EntryCallbackWrappingImplementation._wrap(raw); | |
| 15450 } | |
| 15451 | |
| 15452 static EntrySync wrapEntrySync(raw) { | |
| 15453 if (raw === null) { return null; } | |
| 15454 if (raw.dartObjectLocalStorage !== null) { | |
| 15455 return raw.dartObjectLocalStorage; | |
| 15456 } | |
| 15457 switch (raw.typeName) { | |
| 15458 case "DirectoryEntrySync": | |
| 15459 return new DirectoryEntrySyncWrappingImplementation._wrap(raw); | |
| 15460 case "EntrySync": | |
| 15461 return new EntrySyncWrappingImplementation._wrap(raw); | |
| 15462 case "FileEntrySync": | |
| 15463 return new FileEntrySyncWrappingImplementation._wrap(raw); | |
| 15464 default: | |
| 15465 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 15466 } | |
| 15467 } | |
| 15468 | |
| 15469 static ErrorCallback wrapErrorCallback(raw) { | |
| 15470 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ErrorCallbackWrappingImplementation._wrap(raw); | |
| 15471 } | |
| 15472 | |
| 15473 static ErrorEvent wrapErrorEvent(raw) { | |
| 15474 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ErrorEventWrappingImplementation._wrap(raw); | |
| 15475 } | |
| 15476 | |
| 15477 static Event wrapEvent(raw) { | |
| 15478 if (raw === null) { return null; } | |
| 15479 if (raw.dartObjectLocalStorage !== null) { | |
| 15480 return raw.dartObjectLocalStorage; | |
| 15481 } | |
| 15482 switch (raw.typeName) { | |
| 15483 case "WebKitAnimationEvent": | |
| 15484 return new AnimationEventWrappingImplementation._wrap(raw); | |
| 15485 case "BeforeLoadEvent": | |
| 15486 return new BeforeLoadEventWrappingImplementation._wrap(raw); | |
| 15487 case "CloseEvent": | |
| 15488 return new CloseEventWrappingImplementation._wrap(raw); | |
| 15489 case "CompositionEvent": | |
| 15490 return new CompositionEventWrappingImplementation._wrap(raw); | |
| 15491 case "CustomEvent": | |
| 15492 return new CustomEventWrappingImplementation._wrap(raw); | |
| 15493 case "DeviceMotionEvent": | |
| 15494 return new DeviceMotionEventWrappingImplementation._wrap(raw); | |
| 15495 case "DeviceOrientationEvent": | |
| 15496 return new DeviceOrientationEventWrappingImplementation._wrap(raw); | |
| 15497 case "ErrorEvent": | |
| 15498 return new ErrorEventWrappingImplementation._wrap(raw); | |
| 15499 case "Event": | |
| 15500 return new EventWrappingImplementation._wrap(raw); | |
| 15501 case "HashChangeEvent": | |
| 15502 return new HashChangeEventWrappingImplementation._wrap(raw); | |
| 15503 case "IDBVersionChangeEvent": | |
| 15504 return new IDBVersionChangeEventWrappingImplementation._wrap(raw); | |
| 15505 case "KeyboardEvent": | |
| 15506 return new KeyboardEventWrappingImplementation._wrap(raw); | |
| 15507 case "MessageEvent": | |
| 15508 return new MessageEventWrappingImplementation._wrap(raw); | |
| 15509 case "MouseEvent": | |
| 15510 return new MouseEventWrappingImplementation._wrap(raw); | |
| 15511 case "MutationEvent": | |
| 15512 return new MutationEventWrappingImplementation._wrap(raw); | |
| 15513 case "OverflowEvent": | |
| 15514 return new OverflowEventWrappingImplementation._wrap(raw); | |
| 15515 case "PageTransitionEvent": | |
| 15516 return new PageTransitionEventWrappingImplementation._wrap(raw); | |
| 15517 case "PopStateEvent": | |
| 15518 return new PopStateEventWrappingImplementation._wrap(raw); | |
| 15519 case "ProgressEvent": | |
| 15520 return new ProgressEventWrappingImplementation._wrap(raw); | |
| 15521 case "SpeechInputEvent": | |
| 15522 return new SpeechInputEventWrappingImplementation._wrap(raw); | |
| 15523 case "StorageEvent": | |
| 15524 return new StorageEventWrappingImplementation._wrap(raw); | |
| 15525 case "TextEvent": | |
| 15526 return new TextEventWrappingImplementation._wrap(raw); | |
| 15527 case "TouchEvent": | |
| 15528 return new TouchEventWrappingImplementation._wrap(raw); | |
| 15529 case "WebKitTransitionEvent": | |
| 15530 return new TransitionEventWrappingImplementation._wrap(raw); | |
| 15531 case "UIEvent": | |
| 15532 return new UIEventWrappingImplementation._wrap(raw); | |
| 15533 case "WebGLContextEvent": | |
| 15534 return new WebGLContextEventWrappingImplementation._wrap(raw); | |
| 15535 case "WheelEvent": | |
| 15536 return new WheelEventWrappingImplementation._wrap(raw); | |
| 15537 case "XMLHttpRequestProgressEvent": | |
| 15538 return new XMLHttpRequestProgressEventWrappingImplementation._wrap(raw); | |
| 15539 default: | |
| 15540 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 15541 } | |
| 15542 } | |
| 15543 | |
| 15544 static EventException wrapEventException(raw) { | |
| 15545 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EventExceptionWrappingImplementation._wrap(raw); | |
| 15546 } | |
| 15547 | |
| 15548 static Function wrapEventListener(raw) { | |
| 15549 return raw === null ? null : function(evt) { return raw(LevelDom.wrapEvent(e
vt)); }; | |
| 15550 } | |
| 15551 | |
| 15552 static EventSource wrapEventSource(raw) { | |
| 15553 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EventSourceWrappingImplementation._wrap(raw); | |
| 15554 } | |
| 15555 | |
| 15556 static EventTarget wrapEventTarget(raw) { | |
| 15557 if (raw === null) { return null; } | |
| 15558 if (raw.dartObjectLocalStorage !== null) { | |
| 15559 return raw.dartObjectLocalStorage; | |
| 15560 } | |
| 15561 switch (raw.typeName) { | |
| 15562 /* Skipping AbstractWorker*/ | |
| 15563 case "HTMLAnchorElement": | |
| 15564 return new AnchorElementWrappingImplementation._wrap(raw); | |
| 15565 /* Skipping HTMLAppletElement*/ | |
| 15566 case "HTMLAreaElement": | |
| 15567 return new AreaElementWrappingImplementation._wrap(raw); | |
| 15568 /* Skipping Attr*/ | |
| 15569 case "HTMLAudioElement": | |
| 15570 return new AudioElementWrappingImplementation._wrap(raw); | |
| 15571 case "HTMLBRElement": | |
| 15572 return new BRElementWrappingImplementation._wrap(raw); | |
| 15573 case "HTMLBaseElement": | |
| 15574 return new BaseElementWrappingImplementation._wrap(raw); | |
| 15575 /* Skipping HTMLBaseFontElement*/ | |
| 15576 case "HTMLBodyElement": | |
| 15577 return new BodyElementWrappingImplementation._wrap(raw); | |
| 15578 case "HTMLButtonElement": | |
| 15579 return new ButtonElementWrappingImplementation._wrap(raw); | |
| 15580 case "CDATASection": | |
| 15581 return new CDATASectionWrappingImplementation._wrap(raw); | |
| 15582 case "HTMLCanvasElement": | |
| 15583 return new CanvasElementWrappingImplementation._wrap(raw); | |
| 15584 case "CharacterData": | |
| 15585 return new CharacterDataWrappingImplementation._wrap(raw); | |
| 15586 case "Comment": | |
| 15587 return new CommentWrappingImplementation._wrap(raw); | |
| 15588 case "HTMLDListElement": | |
| 15589 return new DListElementWrappingImplementation._wrap(raw); | |
| 15590 case "DOMApplicationCache": | |
| 15591 return new DOMApplicationCacheWrappingImplementation._wrap(raw); | |
| 15592 case "HTMLDataListElement": | |
| 15593 return new DataListElementWrappingImplementation._wrap(raw); | |
| 15594 case "HTMLDetailsElement": | |
| 15595 return new DetailsElementWrappingImplementation._wrap(raw); | |
| 15596 /* Skipping HTMLDirectoryElement*/ | |
| 15597 case "HTMLDivElement": | |
| 15598 return new DivElementWrappingImplementation._wrap(raw); | |
| 15599 case "HTMLDocument": | |
| 15600 return new DocumentWrappingImplementation._wrap(raw, raw.documentElement
); | |
| 15601 case "DocumentFragment": | |
| 15602 return new DocumentFragmentWrappingImplementation._wrap(raw); | |
| 15603 /* Skipping DocumentType*/ | |
| 15604 case "HTMLElement": | |
| 15605 return new ElementWrappingImplementation._wrap(raw); | |
| 15606 case "HTMLEmbedElement": | |
| 15607 return new EmbedElementWrappingImplementation._wrap(raw); | |
| 15608 case "Entity": | |
| 15609 return new EntityWrappingImplementation._wrap(raw); | |
| 15610 case "EntityReference": | |
| 15611 return new EntityReferenceWrappingImplementation._wrap(raw); | |
| 15612 case "EventSource": | |
| 15613 return new EventSourceWrappingImplementation._wrap(raw); | |
| 15614 case "EventTarget": | |
| 15615 return new EventTargetWrappingImplementation._wrap(raw); | |
| 15616 case "HTMLFieldSetElement": | |
| 15617 return new FieldSetElementWrappingImplementation._wrap(raw); | |
| 15618 case "HTMLFontElement": | |
| 15619 return new FontElementWrappingImplementation._wrap(raw); | |
| 15620 case "HTMLFormElement": | |
| 15621 return new FormElementWrappingImplementation._wrap(raw); | |
| 15622 /* Skipping HTMLFrameElement*/ | |
| 15623 /* Skipping HTMLFrameSetElement*/ | |
| 15624 case "HTMLHRElement": | |
| 15625 return new HRElementWrappingImplementation._wrap(raw); | |
| 15626 case "HTMLHeadElement": | |
| 15627 return new HeadElementWrappingImplementation._wrap(raw); | |
| 15628 case "HTMLHeadingElement": | |
| 15629 return new HeadingElementWrappingImplementation._wrap(raw); | |
| 15630 case "HTMLHtmlElement": | |
| 15631 return new DocumentWrappingImplementation._wrap(raw.parentNode, raw); | |
| 15632 case "HTMLIFrameElement": | |
| 15633 return new IFrameElementWrappingImplementation._wrap(raw); | |
| 15634 case "HTMLImageElement": | |
| 15635 return new ImageElementWrappingImplementation._wrap(raw); | |
| 15636 case "HTMLInputElement": | |
| 15637 return new InputElementWrappingImplementation._wrap(raw); | |
| 15638 /* Skipping HTMLIsIndexElement*/ | |
| 15639 case "HTMLKeygenElement": | |
| 15640 return new KeygenElementWrappingImplementation._wrap(raw); | |
| 15641 case "HTMLLIElement": | |
| 15642 return new LIElementWrappingImplementation._wrap(raw); | |
| 15643 case "HTMLLabelElement": | |
| 15644 return new LabelElementWrappingImplementation._wrap(raw); | |
| 15645 case "HTMLLegendElement": | |
| 15646 return new LegendElementWrappingImplementation._wrap(raw); | |
| 15647 case "HTMLLinkElement": | |
| 15648 return new LinkElementWrappingImplementation._wrap(raw); | |
| 15649 case "HTMLMapElement": | |
| 15650 return new MapElementWrappingImplementation._wrap(raw); | |
| 15651 case "HTMLMarqueeElement": | |
| 15652 return new MarqueeElementWrappingImplementation._wrap(raw); | |
| 15653 case "HTMLMediaElement": | |
| 15654 return new MediaElementWrappingImplementation._wrap(raw); | |
| 15655 case "HTMLMenuElement": | |
| 15656 return new MenuElementWrappingImplementation._wrap(raw); | |
| 15657 case "MessagePort": | |
| 15658 return new MessagePortWrappingImplementation._wrap(raw); | |
| 15659 case "HTMLMetaElement": | |
| 15660 return new MetaElementWrappingImplementation._wrap(raw); | |
| 15661 case "HTMLMeterElement": | |
| 15662 return new MeterElementWrappingImplementation._wrap(raw); | |
| 15663 case "HTMLModElement": | |
| 15664 return new ModElementWrappingImplementation._wrap(raw); | |
| 15665 case "Node": | |
| 15666 return new NodeWrappingImplementation._wrap(raw); | |
| 15667 case "Notation": | |
| 15668 return new NotationWrappingImplementation._wrap(raw); | |
| 15669 case "Notification": | |
| 15670 return new NotificationWrappingImplementation._wrap(raw); | |
| 15671 case "HTMLOListElement": | |
| 15672 return new OListElementWrappingImplementation._wrap(raw); | |
| 15673 case "HTMLObjectElement": | |
| 15674 return new ObjectElementWrappingImplementation._wrap(raw); | |
| 15675 case "HTMLOptGroupElement": | |
| 15676 return new OptGroupElementWrappingImplementation._wrap(raw); | |
| 15677 case "HTMLOptionElement": | |
| 15678 return new OptionElementWrappingImplementation._wrap(raw); | |
| 15679 case "HTMLOutputElement": | |
| 15680 return new OutputElementWrappingImplementation._wrap(raw); | |
| 15681 case "HTMLParagraphElement": | |
| 15682 return new ParagraphElementWrappingImplementation._wrap(raw); | |
| 15683 case "HTMLParamElement": | |
| 15684 return new ParamElementWrappingImplementation._wrap(raw); | |
| 15685 case "HTMLPreElement": | |
| 15686 return new PreElementWrappingImplementation._wrap(raw); | |
| 15687 case "ProcessingInstruction": | |
| 15688 return new ProcessingInstructionWrappingImplementation._wrap(raw); | |
| 15689 case "HTMLProgressElement": | |
| 15690 return new ProgressElementWrappingImplementation._wrap(raw); | |
| 15691 case "HTMLQuoteElement": | |
| 15692 return new QuoteElementWrappingImplementation._wrap(raw); | |
| 15693 case "HTMLScriptElement": | |
| 15694 return new ScriptElementWrappingImplementation._wrap(raw); | |
| 15695 case "HTMLSelectElement": | |
| 15696 return new SelectElementWrappingImplementation._wrap(raw); | |
| 15697 case "SharedWorker": | |
| 15698 return new SharedWorkerWrappingImplementation._wrap(raw); | |
| 15699 case "HTMLSourceElement": | |
| 15700 return new SourceElementWrappingImplementation._wrap(raw); | |
| 15701 case "HTMLSpanElement": | |
| 15702 return new SpanElementWrappingImplementation._wrap(raw); | |
| 15703 case "HTMLStyleElement": | |
| 15704 return new StyleElementWrappingImplementation._wrap(raw); | |
| 15705 case "HTMLTableCaptionElement": | |
| 15706 return new TableCaptionElementWrappingImplementation._wrap(raw); | |
| 15707 case "HTMLTableCellElement": | |
| 15708 return new TableCellElementWrappingImplementation._wrap(raw); | |
| 15709 case "HTMLTableColElement": | |
| 15710 return new TableColElementWrappingImplementation._wrap(raw); | |
| 15711 case "HTMLTableElement": | |
| 15712 return new TableElementWrappingImplementation._wrap(raw); | |
| 15713 case "HTMLTableRowElement": | |
| 15714 return new TableRowElementWrappingImplementation._wrap(raw); | |
| 15715 case "HTMLTableSectionElement": | |
| 15716 return new TableSectionElementWrappingImplementation._wrap(raw); | |
| 15717 case "Text": | |
| 15718 return new TextWrappingImplementation._wrap(raw); | |
| 15719 case "HTMLTextAreaElement": | |
| 15720 return new TextAreaElementWrappingImplementation._wrap(raw); | |
| 15721 case "HTMLTitleElement": | |
| 15722 return new TitleElementWrappingImplementation._wrap(raw); | |
| 15723 case "HTMLTrackElement": | |
| 15724 return new TrackElementWrappingImplementation._wrap(raw); | |
| 15725 case "HTMLUListElement": | |
| 15726 return new UListElementWrappingImplementation._wrap(raw); | |
| 15727 case "HTMLUnknownElement": | |
| 15728 return new UnknownElementWrappingImplementation._wrap(raw); | |
| 15729 case "HTMLVideoElement": | |
| 15730 return new VideoElementWrappingImplementation._wrap(raw); | |
| 15731 case "WebSocket": | |
| 15732 return new WebSocketWrappingImplementation._wrap(raw); | |
| 15733 case "Window": | |
| 15734 return new WindowWrappingImplementation._wrap(raw); | |
| 15735 case "Worker": | |
| 15736 return new WorkerWrappingImplementation._wrap(raw); | |
| 15737 case "XMLHttpRequest": | |
| 15738 return new XMLHttpRequestWrappingImplementation._wrap(raw); | |
| 15739 case "XMLHttpRequestUpload": | |
| 15740 return new XMLHttpRequestUploadWrappingImplementation._wrap(raw); | |
| 15741 default: | |
| 15742 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 15743 } | |
| 15744 } | |
| 15745 | |
| 15746 static FieldSetElement wrapFieldSetElement(raw) { | |
| 15747 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FieldSetElementWrappingImplementation._wrap(raw); | |
| 15748 } | |
| 15749 | |
| 15750 static File wrapFile(raw) { | |
| 15751 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileWrappingImplementation._wrap(raw); | |
| 15752 } | |
| 15753 | |
| 15754 static FileCallback wrapFileCallback(raw) { | |
| 15755 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileCallbackWrappingImplementation._wrap(raw); | |
| 15756 } | |
| 15757 | |
| 15758 static FileEntry wrapFileEntry(raw) { | |
| 15759 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileEntryWrappingImplementation._wrap(raw); | |
| 15760 } | |
| 15761 | |
| 15762 static FileEntrySync wrapFileEntrySync(raw) { | |
| 15763 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileEntrySyncWrappingImplementation._wrap(raw); | |
| 15764 } | |
| 15765 | |
| 15766 static FileError wrapFileError(raw) { | |
| 15767 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileErrorWrappingImplementation._wrap(raw); | |
| 15768 } | |
| 15769 | |
| 15770 static FileException wrapFileException(raw) { | |
| 15771 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileExceptionWrappingImplementation._wrap(raw); | |
| 15772 } | |
| 15773 | |
| 15774 static FileList wrapFileList(raw) { | |
| 15775 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileListWrappingImplementation._wrap(raw); | |
| 15776 } | |
| 15777 | |
| 15778 static FileReader wrapFileReader(raw) { | |
| 15779 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileReaderWrappingImplementation._wrap(raw); | |
| 15780 } | |
| 15781 | |
| 15782 static FileReaderSync wrapFileReaderSync(raw) { | |
| 15783 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileReaderSyncWrappingImplementation._wrap(raw); | |
| 15784 } | |
| 15785 | |
| 15786 static FileSystemCallback wrapFileSystemCallback(raw) { | |
| 15787 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileSystemCallbackWrappingImplementation._wrap(raw); | |
| 15788 } | |
| 15789 | |
| 15790 static FileWriter wrapFileWriter(raw) { | |
| 15791 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileWriterWrappingImplementation._wrap(raw); | |
| 15792 } | |
| 15793 | |
| 15794 static FileWriterCallback wrapFileWriterCallback(raw) { | |
| 15795 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileWriterCallbackWrappingImplementation._wrap(raw); | |
| 15796 } | |
| 15797 | |
| 15798 static FileWriterSync wrapFileWriterSync(raw) { | |
| 15799 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileWriterSyncWrappingImplementation._wrap(raw); | |
| 15800 } | |
| 15801 | |
| 15802 static Flags wrapFlags(raw) { | |
| 15803 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FlagsWrappingImplementation._wrap(raw); | |
| 15804 } | |
| 15805 | |
| 15806 static Float32Array wrapFloat32Array(raw) { | |
| 15807 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new Float32ArrayWrappingImplementation._wrap(raw); | |
| 15808 } | |
| 15809 | |
| 15810 static Float64Array wrapFloat64Array(raw) { | |
| 15811 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new Float64ArrayWrappingImplementation._wrap(raw); | |
| 15812 } | |
| 15813 | |
| 15814 static FontElement wrapFontElement(raw) { | |
| 15815 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FontElementWrappingImplementation._wrap(raw); | |
| 15816 } | |
| 15817 | |
| 15818 static FormElement wrapFormElement(raw) { | |
| 15819 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FormElementWrappingImplementation._wrap(raw); | |
| 15820 } | |
| 15821 | |
| 15822 static Geolocation wrapGeolocation(raw) { | |
| 15823 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new GeolocationWrappingImplementation._wrap(raw); | |
| 15824 } | |
| 15825 | |
| 15826 static Geoposition wrapGeoposition(raw) { | |
| 15827 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new GeopositionWrappingImplementation._wrap(raw); | |
| 15828 } | |
| 15829 | |
| 15830 static HRElement wrapHRElement(raw) { | |
| 15831 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new HRElementWrappingImplementation._wrap(raw); | |
| 15832 } | |
| 15833 | |
| 15834 static HTMLAllCollection wrapHTMLAllCollection(raw) { | |
| 15835 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new HTMLAllCollectionWrappingImplementation._wrap(raw); | |
| 15836 } | |
| 15837 | |
| 15838 static HashChangeEvent wrapHashChangeEvent(raw) { | |
| 15839 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new HashChangeEventWrappingImplementation._wrap(raw); | |
| 15840 } | |
| 15841 | |
| 15842 static HeadElement wrapHeadElement(raw) { | |
| 15843 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new HeadElementWrappingImplementation._wrap(raw); | |
| 15844 } | |
| 15845 | |
| 15846 static HeadingElement wrapHeadingElement(raw) { | |
| 15847 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new HeadingElementWrappingImplementation._wrap(raw); | |
| 15848 } | |
| 15849 | |
| 15850 static History wrapHistory(raw) { | |
| 15851 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new HistoryWrappingImplementation._wrap(raw); | |
| 15852 } | |
| 15853 | |
| 15854 static IDBAny wrapIDBAny(raw) { | |
| 15855 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBAnyWrappingImplementation._wrap(raw); | |
| 15856 } | |
| 15857 | |
| 15858 static IDBCursor wrapIDBCursor(raw) { | |
| 15859 if (raw === null) { return null; } | |
| 15860 if (raw.dartObjectLocalStorage !== null) { | |
| 15861 return raw.dartObjectLocalStorage; | |
| 15862 } | |
| 15863 switch (raw.typeName) { | |
| 15864 case "IDBCursor": | |
| 15865 return new IDBCursorWrappingImplementation._wrap(raw); | |
| 15866 case "IDBCursorWithValue": | |
| 15867 return new IDBCursorWithValueWrappingImplementation._wrap(raw); | |
| 15868 default: | |
| 15869 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 15870 } | |
| 15871 } | |
| 15872 | |
| 15873 static IDBCursorWithValue wrapIDBCursorWithValue(raw) { | |
| 15874 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBCursorWithValueWrappingImplementation._wrap(raw); | |
| 15875 } | |
| 15876 | |
| 15877 static IDBDatabase wrapIDBDatabase(raw) { | |
| 15878 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBDatabaseWrappingImplementation._wrap(raw); | |
| 15879 } | |
| 15880 | |
| 15881 static IDBDatabaseError wrapIDBDatabaseError(raw) { | |
| 15882 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBDatabaseErrorWrappingImplementation._wrap(raw); | |
| 15883 } | |
| 15884 | |
| 15885 static IDBDatabaseException wrapIDBDatabaseException(raw) { | |
| 15886 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBDatabaseExceptionWrappingImplementation._wrap(raw); | |
| 15887 } | |
| 15888 | |
| 15889 static IDBFactory wrapIDBFactory(raw) { | |
| 15890 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBFactoryWrappingImplementation._wrap(raw); | |
| 15891 } | |
| 15892 | |
| 15893 static IDBIndex wrapIDBIndex(raw) { | |
| 15894 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBIndexWrappingImplementation._wrap(raw); | |
| 15895 } | |
| 15896 | |
| 15897 static IDBKey wrapIDBKey(raw) { | |
| 15898 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBKeyWrappingImplementation._wrap(raw); | |
| 15899 } | |
| 15900 | |
| 15901 static IDBKeyRange wrapIDBKeyRange(raw) { | |
| 15902 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBKeyRangeWrappingImplementation._wrap(raw); | |
| 15903 } | |
| 15904 | |
| 15905 static IDBObjectStore wrapIDBObjectStore(raw) { | |
| 15906 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBObjectStoreWrappingImplementation._wrap(raw); | |
| 15907 } | |
| 15908 | |
| 15909 static IDBRequest wrapIDBRequest(raw) { | |
| 15910 if (raw === null) { return null; } | |
| 15911 if (raw.dartObjectLocalStorage !== null) { | |
| 15912 return raw.dartObjectLocalStorage; | |
| 15913 } | |
| 15914 switch (raw.typeName) { | |
| 15915 case "IDBRequest": | |
| 15916 return new IDBRequestWrappingImplementation._wrap(raw); | |
| 15917 case "IDBVersionChangeRequest": | |
| 15918 return new IDBVersionChangeRequestWrappingImplementation._wrap(raw); | |
| 15919 default: | |
| 15920 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 15921 } | |
| 15922 } | |
| 15923 | |
| 15924 static IDBTransaction wrapIDBTransaction(raw) { | |
| 15925 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBTransactionWrappingImplementation._wrap(raw); | |
| 15926 } | |
| 15927 | |
| 15928 static IDBVersionChangeEvent wrapIDBVersionChangeEvent(raw) { | |
| 15929 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBVersionChangeEventWrappingImplementation._wrap(raw); | |
| 15930 } | |
| 15931 | |
| 15932 static IDBVersionChangeRequest wrapIDBVersionChangeRequest(raw) { | |
| 15933 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBVersionChangeRequestWrappingImplementation._wrap(raw)
; | |
| 15934 } | |
| 15935 | |
| 15936 static IFrameElement wrapIFrameElement(raw) { | |
| 15937 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IFrameElementWrappingImplementation._wrap(raw); | |
| 15938 } | |
| 15939 | |
| 15940 static ImageData wrapImageData(raw) { | |
| 15941 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ImageDataWrappingImplementation._wrap(raw); | |
| 15942 } | |
| 15943 | |
| 15944 static ImageElement wrapImageElement(raw) { | |
| 15945 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ImageElementWrappingImplementation._wrap(raw); | |
| 15946 } | |
| 15947 | |
| 15948 static InputElement wrapInputElement(raw) { | |
| 15949 if (raw === null) { return null; } | |
| 15950 if (raw.dartObjectLocalStorage !== null) { | |
| 15951 return raw.dartObjectLocalStorage; | |
| 15952 } | |
| 15953 switch (raw.typeName) { | |
| 15954 case "HTMLInputElement": | |
| 15955 return new InputElementWrappingImplementation._wrap(raw); | |
| 15956 /* Skipping HTMLIsIndexElement*/ | |
| 15957 default: | |
| 15958 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 15959 } | |
| 15960 } | |
| 15961 | |
| 15962 static Int16Array wrapInt16Array(raw) { | |
| 15963 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new Int16ArrayWrappingImplementation._wrap(raw); | |
| 15964 } | |
| 15965 | |
| 15966 static Int32Array wrapInt32Array(raw) { | |
| 15967 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new Int32ArrayWrappingImplementation._wrap(raw); | |
| 15968 } | |
| 15969 | |
| 15970 static Int8Array wrapInt8Array(raw) { | |
| 15971 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new Int8ArrayWrappingImplementation._wrap(raw); | |
| 15972 } | |
| 15973 | |
| 15974 static KeyboardEvent wrapKeyboardEvent(raw) { | |
| 15975 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new KeyboardEventWrappingImplementation._wrap(raw); | |
| 15976 } | |
| 15977 | |
| 15978 static KeygenElement wrapKeygenElement(raw) { | |
| 15979 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new KeygenElementWrappingImplementation._wrap(raw); | |
| 15980 } | |
| 15981 | |
| 15982 static LIElement wrapLIElement(raw) { | |
| 15983 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new LIElementWrappingImplementation._wrap(raw); | |
| 15984 } | |
| 15985 | |
| 15986 static LabelElement wrapLabelElement(raw) { | |
| 15987 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new LabelElementWrappingImplementation._wrap(raw); | |
| 15988 } | |
| 15989 | |
| 15990 static LegendElement wrapLegendElement(raw) { | |
| 15991 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new LegendElementWrappingImplementation._wrap(raw); | |
| 15992 } | |
| 15993 | |
| 15994 static LinkElement wrapLinkElement(raw) { | |
| 15995 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new LinkElementWrappingImplementation._wrap(raw); | |
| 15996 } | |
| 15997 | |
| 15998 static LocalMediaStream wrapLocalMediaStream(raw) { | |
| 15999 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new LocalMediaStreamWrappingImplementation._wrap(raw); | |
| 16000 } | |
| 16001 | |
| 16002 static Location wrapLocation(raw) { | |
| 16003 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new LocationWrappingImplementation._wrap(raw); | |
| 16004 } | |
| 16005 | |
| 16006 static LoseContext wrapLoseContext(raw) { | |
| 16007 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new LoseContextWrappingImplementation._wrap(raw); | |
| 16008 } | |
| 16009 | |
| 16010 static MapElement wrapMapElement(raw) { | |
| 16011 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MapElementWrappingImplementation._wrap(raw); | |
| 16012 } | |
| 16013 | |
| 16014 static MarqueeElement wrapMarqueeElement(raw) { | |
| 16015 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MarqueeElementWrappingImplementation._wrap(raw); | |
| 16016 } | |
| 16017 | |
| 16018 static MediaElement wrapMediaElement(raw) { | |
| 16019 if (raw === null) { return null; } | |
| 16020 if (raw.dartObjectLocalStorage !== null) { | |
| 16021 return raw.dartObjectLocalStorage; | |
| 16022 } | |
| 16023 switch (raw.typeName) { | |
| 16024 case "HTMLAudioElement": | |
| 16025 return new AudioElementWrappingImplementation._wrap(raw); | |
| 16026 case "HTMLMediaElement": | |
| 16027 return new MediaElementWrappingImplementation._wrap(raw); | |
| 16028 case "HTMLVideoElement": | |
| 16029 return new VideoElementWrappingImplementation._wrap(raw); | |
| 16030 default: | |
| 16031 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 16032 } | |
| 16033 } | |
| 16034 | |
| 16035 static MediaError wrapMediaError(raw) { | |
| 16036 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MediaErrorWrappingImplementation._wrap(raw); | |
| 16037 } | |
| 16038 | |
| 16039 static MediaList wrapMediaList(raw) { | |
| 16040 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MediaListWrappingImplementation._wrap(raw); | |
| 16041 } | |
| 16042 | |
| 16043 static MediaQueryList wrapMediaQueryList(raw) { | |
| 16044 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MediaQueryListWrappingImplementation._wrap(raw); | |
| 16045 } | |
| 16046 | |
| 16047 static MediaQueryListListener wrapMediaQueryListListener(raw) { | |
| 16048 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MediaQueryListListenerWrappingImplementation._wrap(raw); | |
| 16049 } | |
| 16050 | |
| 16051 static MediaStream wrapMediaStream(raw) { | |
| 16052 if (raw === null) { return null; } | |
| 16053 if (raw.dartObjectLocalStorage !== null) { | |
| 16054 return raw.dartObjectLocalStorage; | |
| 16055 } | |
| 16056 switch (raw.typeName) { | |
| 16057 case "LocalMediaStream": | |
| 16058 return new LocalMediaStreamWrappingImplementation._wrap(raw); | |
| 16059 case "MediaStream": | |
| 16060 return new MediaStreamWrappingImplementation._wrap(raw); | |
| 16061 default: | |
| 16062 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 16063 } | |
| 16064 } | |
| 16065 | |
| 16066 static MediaStreamList wrapMediaStreamList(raw) { | |
| 16067 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MediaStreamListWrappingImplementation._wrap(raw); | |
| 16068 } | |
| 16069 | |
| 16070 static MediaStreamTrack wrapMediaStreamTrack(raw) { | |
| 16071 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MediaStreamTrackWrappingImplementation._wrap(raw); | |
| 16072 } | |
| 16073 | |
| 16074 static MediaStreamTrackList wrapMediaStreamTrackList(raw) { | |
| 16075 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MediaStreamTrackListWrappingImplementation._wrap(raw); | |
| 16076 } | |
| 16077 | |
| 16078 static MenuElement wrapMenuElement(raw) { | |
| 16079 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MenuElementWrappingImplementation._wrap(raw); | |
| 16080 } | |
| 16081 | |
| 16082 static MessageChannel wrapMessageChannel(raw) { | |
| 16083 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MessageChannelWrappingImplementation._wrap(raw); | |
| 16084 } | |
| 16085 | |
| 16086 static MessageEvent wrapMessageEvent(raw) { | |
| 16087 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MessageEventWrappingImplementation._wrap(raw); | |
| 16088 } | |
| 16089 | |
| 16090 static MessagePort wrapMessagePort(raw) { | |
| 16091 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MessagePortWrappingImplementation._wrap(raw); | |
| 16092 } | |
| 16093 | |
| 16094 static MetaElement wrapMetaElement(raw) { | |
| 16095 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MetaElementWrappingImplementation._wrap(raw); | |
| 16096 } | |
| 16097 | |
| 16098 static Metadata wrapMetadata(raw) { | |
| 16099 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MetadataWrappingImplementation._wrap(raw); | |
| 16100 } | |
| 16101 | |
| 16102 static MetadataCallback wrapMetadataCallback(raw) { | |
| 16103 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MetadataCallbackWrappingImplementation._wrap(raw); | |
| 16104 } | |
| 16105 | |
| 16106 static MeterElement wrapMeterElement(raw) { | |
| 16107 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MeterElementWrappingImplementation._wrap(raw); | |
| 16108 } | |
| 16109 | |
| 16110 static ModElement wrapModElement(raw) { | |
| 16111 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ModElementWrappingImplementation._wrap(raw); | |
| 16112 } | |
| 16113 | |
| 16114 static MouseEvent wrapMouseEvent(raw) { | |
| 16115 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MouseEventWrappingImplementation._wrap(raw); | |
| 16116 } | |
| 16117 | |
| 16118 static MutationEvent wrapMutationEvent(raw) { | |
| 16119 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MutationEventWrappingImplementation._wrap(raw); | |
| 16120 } | |
| 16121 | |
| 16122 static MutationRecord wrapMutationRecord(raw) { | |
| 16123 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MutationRecordWrappingImplementation._wrap(raw); | |
| 16124 } | |
| 16125 | |
| 16126 static Navigator wrapNavigator(raw) { | |
| 16127 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new NavigatorWrappingImplementation._wrap(raw); | |
| 16128 } | |
| 16129 | |
| 16130 static NavigatorUserMediaError wrapNavigatorUserMediaError(raw) { | |
| 16131 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new NavigatorUserMediaErrorWrappingImplementation._wrap(raw)
; | |
| 16132 } | |
| 16133 | |
| 16134 static NavigatorUserMediaErrorCallback wrapNavigatorUserMediaErrorCallback(raw
) { | |
| 16135 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new NavigatorUserMediaErrorCallbackWrappingImplementation._w
rap(raw); | |
| 16136 } | |
| 16137 | |
| 16138 static NavigatorUserMediaSuccessCallback wrapNavigatorUserMediaSuccessCallback
(raw) { | |
| 16139 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new NavigatorUserMediaSuccessCallbackWrappingImplementation.
_wrap(raw); | |
| 16140 } | |
| 16141 | |
| 16142 static Node wrapNode(raw) { | |
| 16143 if (raw === null) { return null; } | |
| 16144 if (raw.dartObjectLocalStorage !== null) { | |
| 16145 return raw.dartObjectLocalStorage; | |
| 16146 } | |
| 16147 switch (raw.typeName) { | |
| 16148 case "HTMLAnchorElement": | |
| 16149 return new AnchorElementWrappingImplementation._wrap(raw); | |
| 16150 /* Skipping HTMLAppletElement*/ | |
| 16151 case "HTMLAreaElement": | |
| 16152 return new AreaElementWrappingImplementation._wrap(raw); | |
| 16153 /* Skipping Attr*/ | |
| 16154 case "HTMLAudioElement": | |
| 16155 return new AudioElementWrappingImplementation._wrap(raw); | |
| 16156 case "HTMLBRElement": | |
| 16157 return new BRElementWrappingImplementation._wrap(raw); | |
| 16158 case "HTMLBaseElement": | |
| 16159 return new BaseElementWrappingImplementation._wrap(raw); | |
| 16160 /* Skipping HTMLBaseFontElement*/ | |
| 16161 case "HTMLBodyElement": | |
| 16162 return new BodyElementWrappingImplementation._wrap(raw); | |
| 16163 case "HTMLButtonElement": | |
| 16164 return new ButtonElementWrappingImplementation._wrap(raw); | |
| 16165 case "CDATASection": | |
| 16166 return new CDATASectionWrappingImplementation._wrap(raw); | |
| 16167 case "HTMLCanvasElement": | |
| 16168 return new CanvasElementWrappingImplementation._wrap(raw); | |
| 16169 case "CharacterData": | |
| 16170 return new CharacterDataWrappingImplementation._wrap(raw); | |
| 16171 case "Comment": | |
| 16172 return new CommentWrappingImplementation._wrap(raw); | |
| 16173 case "HTMLDListElement": | |
| 16174 return new DListElementWrappingImplementation._wrap(raw); | |
| 16175 case "HTMLDataListElement": | |
| 16176 return new DataListElementWrappingImplementation._wrap(raw); | |
| 16177 case "HTMLDetailsElement": | |
| 16178 return new DetailsElementWrappingImplementation._wrap(raw); | |
| 16179 /* Skipping HTMLDirectoryElement*/ | |
| 16180 case "HTMLDivElement": | |
| 16181 return new DivElementWrappingImplementation._wrap(raw); | |
| 16182 case "HTMLDocument": | |
| 16183 return new DocumentWrappingImplementation._wrap(raw, raw.documentElement
); | |
| 16184 case "DocumentFragment": | |
| 16185 return new DocumentFragmentWrappingImplementation._wrap(raw); | |
| 16186 /* Skipping DocumentType*/ | |
| 16187 case "HTMLElement": | |
| 16188 return new ElementWrappingImplementation._wrap(raw); | |
| 16189 case "HTMLEmbedElement": | |
| 16190 return new EmbedElementWrappingImplementation._wrap(raw); | |
| 16191 case "Entity": | |
| 16192 return new EntityWrappingImplementation._wrap(raw); | |
| 16193 case "EntityReference": | |
| 16194 return new EntityReferenceWrappingImplementation._wrap(raw); | |
| 16195 case "HTMLFieldSetElement": | |
| 16196 return new FieldSetElementWrappingImplementation._wrap(raw); | |
| 16197 case "HTMLFontElement": | |
| 16198 return new FontElementWrappingImplementation._wrap(raw); | |
| 16199 case "HTMLFormElement": | |
| 16200 return new FormElementWrappingImplementation._wrap(raw); | |
| 16201 /* Skipping HTMLFrameElement*/ | |
| 16202 /* Skipping HTMLFrameSetElement*/ | |
| 16203 case "HTMLHRElement": | |
| 16204 return new HRElementWrappingImplementation._wrap(raw); | |
| 16205 case "HTMLHeadElement": | |
| 16206 return new HeadElementWrappingImplementation._wrap(raw); | |
| 16207 case "HTMLHeadingElement": | |
| 16208 return new HeadingElementWrappingImplementation._wrap(raw); | |
| 16209 case "HTMLHtmlElement": | |
| 16210 return new DocumentWrappingImplementation._wrap(raw.parentNode, raw); | |
| 16211 case "HTMLIFrameElement": | |
| 16212 return new IFrameElementWrappingImplementation._wrap(raw); | |
| 16213 case "HTMLImageElement": | |
| 16214 return new ImageElementWrappingImplementation._wrap(raw); | |
| 16215 case "HTMLInputElement": | |
| 16216 return new InputElementWrappingImplementation._wrap(raw); | |
| 16217 /* Skipping HTMLIsIndexElement*/ | |
| 16218 case "HTMLKeygenElement": | |
| 16219 return new KeygenElementWrappingImplementation._wrap(raw); | |
| 16220 case "HTMLLIElement": | |
| 16221 return new LIElementWrappingImplementation._wrap(raw); | |
| 16222 case "HTMLLabelElement": | |
| 16223 return new LabelElementWrappingImplementation._wrap(raw); | |
| 16224 case "HTMLLegendElement": | |
| 16225 return new LegendElementWrappingImplementation._wrap(raw); | |
| 16226 case "HTMLLinkElement": | |
| 16227 return new LinkElementWrappingImplementation._wrap(raw); | |
| 16228 case "HTMLMapElement": | |
| 16229 return new MapElementWrappingImplementation._wrap(raw); | |
| 16230 case "HTMLMarqueeElement": | |
| 16231 return new MarqueeElementWrappingImplementation._wrap(raw); | |
| 16232 case "HTMLMediaElement": | |
| 16233 return new MediaElementWrappingImplementation._wrap(raw); | |
| 16234 case "HTMLMenuElement": | |
| 16235 return new MenuElementWrappingImplementation._wrap(raw); | |
| 16236 case "HTMLMetaElement": | |
| 16237 return new MetaElementWrappingImplementation._wrap(raw); | |
| 16238 case "HTMLMeterElement": | |
| 16239 return new MeterElementWrappingImplementation._wrap(raw); | |
| 16240 case "HTMLModElement": | |
| 16241 return new ModElementWrappingImplementation._wrap(raw); | |
| 16242 case "Node": | |
| 16243 return new NodeWrappingImplementation._wrap(raw); | |
| 16244 case "Notation": | |
| 16245 return new NotationWrappingImplementation._wrap(raw); | |
| 16246 case "HTMLOListElement": | |
| 16247 return new OListElementWrappingImplementation._wrap(raw); | |
| 16248 case "HTMLObjectElement": | |
| 16249 return new ObjectElementWrappingImplementation._wrap(raw); | |
| 16250 case "HTMLOptGroupElement": | |
| 16251 return new OptGroupElementWrappingImplementation._wrap(raw); | |
| 16252 case "HTMLOptionElement": | |
| 16253 return new OptionElementWrappingImplementation._wrap(raw); | |
| 16254 case "HTMLOutputElement": | |
| 16255 return new OutputElementWrappingImplementation._wrap(raw); | |
| 16256 case "HTMLParagraphElement": | |
| 16257 return new ParagraphElementWrappingImplementation._wrap(raw); | |
| 16258 case "HTMLParamElement": | |
| 16259 return new ParamElementWrappingImplementation._wrap(raw); | |
| 16260 case "HTMLPreElement": | |
| 16261 return new PreElementWrappingImplementation._wrap(raw); | |
| 16262 case "ProcessingInstruction": | |
| 16263 return new ProcessingInstructionWrappingImplementation._wrap(raw); | |
| 16264 case "HTMLProgressElement": | |
| 16265 return new ProgressElementWrappingImplementation._wrap(raw); | |
| 16266 case "HTMLQuoteElement": | |
| 16267 return new QuoteElementWrappingImplementation._wrap(raw); | |
| 16268 case "HTMLScriptElement": | |
| 16269 return new ScriptElementWrappingImplementation._wrap(raw); | |
| 16270 case "HTMLSelectElement": | |
| 16271 return new SelectElementWrappingImplementation._wrap(raw); | |
| 16272 case "HTMLSourceElement": | |
| 16273 return new SourceElementWrappingImplementation._wrap(raw); | |
| 16274 case "HTMLSpanElement": | |
| 16275 return new SpanElementWrappingImplementation._wrap(raw); | |
| 16276 case "HTMLStyleElement": | |
| 16277 return new StyleElementWrappingImplementation._wrap(raw); | |
| 16278 case "HTMLTableCaptionElement": | |
| 16279 return new TableCaptionElementWrappingImplementation._wrap(raw); | |
| 16280 case "HTMLTableCellElement": | |
| 16281 return new TableCellElementWrappingImplementation._wrap(raw); | |
| 16282 case "HTMLTableColElement": | |
| 16283 return new TableColElementWrappingImplementation._wrap(raw); | |
| 16284 case "HTMLTableElement": | |
| 16285 return new TableElementWrappingImplementation._wrap(raw); | |
| 16286 case "HTMLTableRowElement": | |
| 16287 return new TableRowElementWrappingImplementation._wrap(raw); | |
| 16288 case "HTMLTableSectionElement": | |
| 16289 return new TableSectionElementWrappingImplementation._wrap(raw); | |
| 16290 case "Text": | |
| 16291 return new TextWrappingImplementation._wrap(raw); | |
| 16292 case "HTMLTextAreaElement": | |
| 16293 return new TextAreaElementWrappingImplementation._wrap(raw); | |
| 16294 case "HTMLTitleElement": | |
| 16295 return new TitleElementWrappingImplementation._wrap(raw); | |
| 16296 case "HTMLTrackElement": | |
| 16297 return new TrackElementWrappingImplementation._wrap(raw); | |
| 16298 case "HTMLUListElement": | |
| 16299 return new UListElementWrappingImplementation._wrap(raw); | |
| 16300 case "HTMLUnknownElement": | |
| 16301 return new UnknownElementWrappingImplementation._wrap(raw); | |
| 16302 case "HTMLVideoElement": | |
| 16303 return new VideoElementWrappingImplementation._wrap(raw); | |
| 16304 default: | |
| 16305 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 16306 } | |
| 16307 } | |
| 16308 | |
| 16309 static Notation wrapNotation(raw) { | |
| 16310 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new NotationWrappingImplementation._wrap(raw); | |
| 16311 } | |
| 16312 | |
| 16313 static Notification wrapNotification(raw) { | |
| 16314 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new NotificationWrappingImplementation._wrap(raw); | |
| 16315 } | |
| 16316 | |
| 16317 static NotificationCenter wrapNotificationCenter(raw) { | |
| 16318 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new NotificationCenterWrappingImplementation._wrap(raw); | |
| 16319 } | |
| 16320 | |
| 16321 static OESStandardDerivatives wrapOESStandardDerivatives(raw) { | |
| 16322 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OESStandardDerivativesWrappingImplementation._wrap(raw); | |
| 16323 } | |
| 16324 | |
| 16325 static OESTextureFloat wrapOESTextureFloat(raw) { | |
| 16326 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OESTextureFloatWrappingImplementation._wrap(raw); | |
| 16327 } | |
| 16328 | |
| 16329 static OESVertexArrayObject wrapOESVertexArrayObject(raw) { | |
| 16330 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OESVertexArrayObjectWrappingImplementation._wrap(raw); | |
| 16331 } | |
| 16332 | |
| 16333 static OListElement wrapOListElement(raw) { | |
| 16334 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OListElementWrappingImplementation._wrap(raw); | |
| 16335 } | |
| 16336 | |
| 16337 static ObjectElement wrapObjectElement(raw) { | |
| 16338 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ObjectElementWrappingImplementation._wrap(raw); | |
| 16339 } | |
| 16340 | |
| 16341 static OperationNotAllowedException wrapOperationNotAllowedException(raw) { | |
| 16342 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OperationNotAllowedExceptionWrappingImplementation._wrap
(raw); | |
| 16343 } | |
| 16344 | |
| 16345 static OptGroupElement wrapOptGroupElement(raw) { | |
| 16346 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OptGroupElementWrappingImplementation._wrap(raw); | |
| 16347 } | |
| 16348 | |
| 16349 static OptionElement wrapOptionElement(raw) { | |
| 16350 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OptionElementWrappingImplementation._wrap(raw); | |
| 16351 } | |
| 16352 | |
| 16353 static OutputElement wrapOutputElement(raw) { | |
| 16354 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OutputElementWrappingImplementation._wrap(raw); | |
| 16355 } | |
| 16356 | |
| 16357 static OverflowEvent wrapOverflowEvent(raw) { | |
| 16358 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OverflowEventWrappingImplementation._wrap(raw); | |
| 16359 } | |
| 16360 | |
| 16361 static PageTransitionEvent wrapPageTransitionEvent(raw) { | |
| 16362 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new PageTransitionEventWrappingImplementation._wrap(raw); | |
| 16363 } | |
| 16364 | |
| 16365 static ParagraphElement wrapParagraphElement(raw) { | |
| 16366 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ParagraphElementWrappingImplementation._wrap(raw); | |
| 16367 } | |
| 16368 | |
| 16369 static ParamElement wrapParamElement(raw) { | |
| 16370 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ParamElementWrappingImplementation._wrap(raw); | |
| 16371 } | |
| 16372 | |
| 16373 static Point wrapPoint(raw) { | |
| 16374 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new PointWrappingImplementation._wrap(raw); | |
| 16375 } | |
| 16376 | |
| 16377 static PopStateEvent wrapPopStateEvent(raw) { | |
| 16378 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new PopStateEventWrappingImplementation._wrap(raw); | |
| 16379 } | |
| 16380 | |
| 16381 static PositionCallback wrapPositionCallback(raw) { | |
| 16382 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new PositionCallbackWrappingImplementation._wrap(raw); | |
| 16383 } | |
| 16384 | |
| 16385 static PositionError wrapPositionError(raw) { | |
| 16386 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new PositionErrorWrappingImplementation._wrap(raw); | |
| 16387 } | |
| 16388 | |
| 16389 static PositionErrorCallback wrapPositionErrorCallback(raw) { | |
| 16390 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new PositionErrorCallbackWrappingImplementation._wrap(raw); | |
| 16391 } | |
| 16392 | |
| 16393 static PreElement wrapPreElement(raw) { | |
| 16394 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new PreElementWrappingImplementation._wrap(raw); | |
| 16395 } | |
| 16396 | |
| 16397 static ProcessingInstruction wrapProcessingInstruction(raw) { | |
| 16398 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ProcessingInstructionWrappingImplementation._wrap(raw); | |
| 16399 } | |
| 16400 | |
| 16401 static ProgressElement wrapProgressElement(raw) { | |
| 16402 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ProgressElementWrappingImplementation._wrap(raw); | |
| 16403 } | |
| 16404 | |
| 16405 static ProgressEvent wrapProgressEvent(raw) { | |
| 16406 if (raw === null) { return null; } | |
| 16407 if (raw.dartObjectLocalStorage !== null) { | |
| 16408 return raw.dartObjectLocalStorage; | |
| 16409 } | |
| 16410 switch (raw.typeName) { | |
| 16411 case "ProgressEvent": | |
| 16412 return new ProgressEventWrappingImplementation._wrap(raw); | |
| 16413 case "XMLHttpRequestProgressEvent": | |
| 16414 return new XMLHttpRequestProgressEventWrappingImplementation._wrap(raw); | |
| 16415 default: | |
| 16416 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 16417 } | |
| 16418 } | |
| 16419 | |
| 16420 static QuoteElement wrapQuoteElement(raw) { | |
| 16421 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new QuoteElementWrappingImplementation._wrap(raw); | |
| 16422 } | |
| 16423 | |
| 16424 static RGBColor wrapRGBColor(raw) { | |
| 16425 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new RGBColorWrappingImplementation._wrap(raw); | |
| 16426 } | |
| 16427 | |
| 16428 static Range wrapRange(raw) { | |
| 16429 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new RangeWrappingImplementation._wrap(raw); | |
| 16430 } | |
| 16431 | |
| 16432 static RangeException wrapRangeException(raw) { | |
| 16433 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new RangeExceptionWrappingImplementation._wrap(raw); | |
| 16434 } | |
| 16435 | |
| 16436 static Rect wrapRect(raw) { | |
| 16437 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new RectWrappingImplementation._wrap(raw); | |
| 16438 } | |
| 16439 | |
| 16440 static Screen wrapScreen(raw) { | |
| 16441 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ScreenWrappingImplementation._wrap(raw); | |
| 16442 } | |
| 16443 | |
| 16444 static ScriptElement wrapScriptElement(raw) { | |
| 16445 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ScriptElementWrappingImplementation._wrap(raw); | |
| 16446 } | |
| 16447 | |
| 16448 static SelectElement wrapSelectElement(raw) { | |
| 16449 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new SelectElementWrappingImplementation._wrap(raw); | |
| 16450 } | |
| 16451 | |
| 16452 static SharedWorker wrapSharedWorker(raw) { | |
| 16453 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new SharedWorkerWrappingImplementation._wrap(raw); | |
| 16454 } | |
| 16455 | |
| 16456 static SourceElement wrapSourceElement(raw) { | |
| 16457 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new SourceElementWrappingImplementation._wrap(raw); | |
| 16458 } | |
| 16459 | |
| 16460 static SpanElement wrapSpanElement(raw) { | |
| 16461 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new SpanElementWrappingImplementation._wrap(raw); | |
| 16462 } | |
| 16463 | |
| 16464 static SpeechInputEvent wrapSpeechInputEvent(raw) { | |
| 16465 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new SpeechInputEventWrappingImplementation._wrap(raw); | |
| 16466 } | |
| 16467 | |
| 16468 static SpeechInputResult wrapSpeechInputResult(raw) { | |
| 16469 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new SpeechInputResultWrappingImplementation._wrap(raw); | |
| 16470 } | |
| 16471 | |
| 16472 static SpeechInputResultList wrapSpeechInputResultList(raw) { | |
| 16473 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new SpeechInputResultListWrappingImplementation._wrap(raw); | |
| 16474 } | |
| 16475 | |
| 16476 static Storage wrapStorage(raw) { | |
| 16477 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StorageWrappingImplementation._wrap(raw); | |
| 16478 } | |
| 16479 | |
| 16480 static StorageEvent wrapStorageEvent(raw) { | |
| 16481 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StorageEventWrappingImplementation._wrap(raw); | |
| 16482 } | |
| 16483 | |
| 16484 static StorageInfo wrapStorageInfo(raw) { | |
| 16485 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StorageInfoWrappingImplementation._wrap(raw); | |
| 16486 } | |
| 16487 | |
| 16488 static StorageInfoErrorCallback wrapStorageInfoErrorCallback(raw) { | |
| 16489 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StorageInfoErrorCallbackWrappingImplementation._wrap(raw
); | |
| 16490 } | |
| 16491 | |
| 16492 static StorageInfoQuotaCallback wrapStorageInfoQuotaCallback(raw) { | |
| 16493 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StorageInfoQuotaCallbackWrappingImplementation._wrap(raw
); | |
| 16494 } | |
| 16495 | |
| 16496 static StorageInfoUsageCallback wrapStorageInfoUsageCallback(raw) { | |
| 16497 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StorageInfoUsageCallbackWrappingImplementation._wrap(raw
); | |
| 16498 } | |
| 16499 | |
| 16500 static StringCallback wrapStringCallback(raw) { | |
| 16501 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StringCallbackWrappingImplementation._wrap(raw); | |
| 16502 } | |
| 16503 | |
| 16504 static StyleElement wrapStyleElement(raw) { | |
| 16505 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StyleElementWrappingImplementation._wrap(raw); | |
| 16506 } | |
| 16507 | |
| 16508 static StyleMedia wrapStyleMedia(raw) { | |
| 16509 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StyleMediaWrappingImplementation._wrap(raw); | |
| 16510 } | |
| 16511 | |
| 16512 static StyleSheet wrapStyleSheet(raw) { | |
| 16513 if (raw === null) { return null; } | |
| 16514 if (raw.dartObjectLocalStorage !== null) { | |
| 16515 return raw.dartObjectLocalStorage; | |
| 16516 } | |
| 16517 switch (raw.typeName) { | |
| 16518 case "CSSStyleSheet": | |
| 16519 return new CSSStyleSheetWrappingImplementation._wrap(raw); | |
| 16520 case "StyleSheet": | |
| 16521 return new StyleSheetWrappingImplementation._wrap(raw); | |
| 16522 default: | |
| 16523 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 16524 } | |
| 16525 } | |
| 16526 | |
| 16527 static StyleSheetList wrapStyleSheetList(raw) { | |
| 16528 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StyleSheetListWrappingImplementation._wrap(raw); | |
| 16529 } | |
| 16530 | |
| 16531 static TableCaptionElement wrapTableCaptionElement(raw) { | |
| 16532 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TableCaptionElementWrappingImplementation._wrap(raw); | |
| 16533 } | |
| 16534 | |
| 16535 static TableCellElement wrapTableCellElement(raw) { | |
| 16536 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TableCellElementWrappingImplementation._wrap(raw); | |
| 16537 } | |
| 16538 | |
| 16539 static TableColElement wrapTableColElement(raw) { | |
| 16540 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TableColElementWrappingImplementation._wrap(raw); | |
| 16541 } | |
| 16542 | |
| 16543 static TableElement wrapTableElement(raw) { | |
| 16544 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TableElementWrappingImplementation._wrap(raw); | |
| 16545 } | |
| 16546 | |
| 16547 static TableRowElement wrapTableRowElement(raw) { | |
| 16548 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TableRowElementWrappingImplementation._wrap(raw); | |
| 16549 } | |
| 16550 | |
| 16551 static TableSectionElement wrapTableSectionElement(raw) { | |
| 16552 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TableSectionElementWrappingImplementation._wrap(raw); | |
| 16553 } | |
| 16554 | |
| 16555 static Text wrapText(raw) { | |
| 16556 if (raw === null) { return null; } | |
| 16557 if (raw.dartObjectLocalStorage !== null) { | |
| 16558 return raw.dartObjectLocalStorage; | |
| 16559 } | |
| 16560 switch (raw.typeName) { | |
| 16561 case "CDATASection": | |
| 16562 return new CDATASectionWrappingImplementation._wrap(raw); | |
| 16563 case "Text": | |
| 16564 return new TextWrappingImplementation._wrap(raw); | |
| 16565 default: | |
| 16566 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 16567 } | |
| 16568 } | |
| 16569 | |
| 16570 static TextAreaElement wrapTextAreaElement(raw) { | |
| 16571 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TextAreaElementWrappingImplementation._wrap(raw); | |
| 16572 } | |
| 16573 | |
| 16574 static TextEvent wrapTextEvent(raw) { | |
| 16575 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TextEventWrappingImplementation._wrap(raw); | |
| 16576 } | |
| 16577 | |
| 16578 static TextMetrics wrapTextMetrics(raw) { | |
| 16579 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TextMetricsWrappingImplementation._wrap(raw); | |
| 16580 } | |
| 16581 | |
| 16582 static TimeRanges wrapTimeRanges(raw) { | |
| 16583 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TimeRangesWrappingImplementation._wrap(raw); | |
| 16584 } | |
| 16585 | |
| 16586 static TitleElement wrapTitleElement(raw) { | |
| 16587 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TitleElementWrappingImplementation._wrap(raw); | |
| 16588 } | |
| 16589 | |
| 16590 static Touch wrapTouch(raw) { | |
| 16591 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TouchWrappingImplementation._wrap(raw); | |
| 16592 } | |
| 16593 | |
| 16594 static TouchEvent wrapTouchEvent(raw) { | |
| 16595 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TouchEventWrappingImplementation._wrap(raw); | |
| 16596 } | |
| 16597 | |
| 16598 static TouchList wrapTouchList(raw) { | |
| 16599 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TouchListWrappingImplementation._wrap(raw); | |
| 16600 } | |
| 16601 | |
| 16602 static TrackElement wrapTrackElement(raw) { | |
| 16603 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TrackElementWrappingImplementation._wrap(raw); | |
| 16604 } | |
| 16605 | |
| 16606 static TransitionEvent wrapTransitionEvent(raw) { | |
| 16607 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TransitionEventWrappingImplementation._wrap(raw); | |
| 16608 } | |
| 16609 | |
| 16610 static UIEvent wrapUIEvent(raw) { | |
| 16611 if (raw === null) { return null; } | |
| 16612 if (raw.dartObjectLocalStorage !== null) { | |
| 16613 return raw.dartObjectLocalStorage; | |
| 16614 } | |
| 16615 switch (raw.typeName) { | |
| 16616 case "CompositionEvent": | |
| 16617 return new CompositionEventWrappingImplementation._wrap(raw); | |
| 16618 case "KeyboardEvent": | |
| 16619 return new KeyboardEventWrappingImplementation._wrap(raw); | |
| 16620 case "MouseEvent": | |
| 16621 return new MouseEventWrappingImplementation._wrap(raw); | |
| 16622 case "TextEvent": | |
| 16623 return new TextEventWrappingImplementation._wrap(raw); | |
| 16624 case "TouchEvent": | |
| 16625 return new TouchEventWrappingImplementation._wrap(raw); | |
| 16626 case "UIEvent": | |
| 16627 return new UIEventWrappingImplementation._wrap(raw); | |
| 16628 case "WheelEvent": | |
| 16629 return new WheelEventWrappingImplementation._wrap(raw); | |
| 16630 default: | |
| 16631 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
| 16632 } | |
| 16633 } | |
| 16634 | |
| 16635 static UListElement wrapUListElement(raw) { | |
| 16636 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new UListElementWrappingImplementation._wrap(raw); | |
| 16637 } | |
| 16638 | |
| 16639 static Uint16Array wrapUint16Array(raw) { | |
| 16640 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new Uint16ArrayWrappingImplementation._wrap(raw); | |
| 16641 } | |
| 16642 | |
| 16643 static Uint32Array wrapUint32Array(raw) { | |
| 16644 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new Uint32ArrayWrappingImplementation._wrap(raw); | |
| 16645 } | |
| 16646 | |
| 16647 static Uint8Array wrapUint8Array(raw) { | |
| 16648 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new Uint8ArrayWrappingImplementation._wrap(raw); | |
| 16649 } | |
| 16650 | |
| 16651 static UnknownElement wrapUnknownElement(raw) { | |
| 16652 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new UnknownElementWrappingImplementation._wrap(raw); | |
| 16653 } | |
| 16654 | |
| 16655 static ValidityState wrapValidityState(raw) { | |
| 16656 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ValidityStateWrappingImplementation._wrap(raw); | |
| 16657 } | |
| 16658 | |
| 16659 static VideoElement wrapVideoElement(raw) { | |
| 16660 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new VideoElementWrappingImplementation._wrap(raw); | |
| 16661 } | |
| 16662 | |
| 16663 static VoidCallback wrapVoidCallback(raw) { | |
| 16664 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new VoidCallbackWrappingImplementation._wrap(raw); | |
| 16665 } | |
| 16666 | |
| 16667 static WebGLActiveInfo wrapWebGLActiveInfo(raw) { | |
| 16668 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLActiveInfoWrappingImplementation._wrap(raw); | |
| 16669 } | |
| 16670 | |
| 16671 static WebGLBuffer wrapWebGLBuffer(raw) { | |
| 16672 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLBufferWrappingImplementation._wrap(raw); | |
| 16673 } | |
| 16674 | |
| 16675 static WebGLContextAttributes wrapWebGLContextAttributes(raw) { | |
| 16676 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLContextAttributesWrappingImplementation._wrap(raw); | |
| 16677 } | |
| 16678 | |
| 16679 static WebGLContextEvent wrapWebGLContextEvent(raw) { | |
| 16680 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLContextEventWrappingImplementation._wrap(raw); | |
| 16681 } | |
| 16682 | |
| 16683 static WebGLFramebuffer wrapWebGLFramebuffer(raw) { | |
| 16684 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLFramebufferWrappingImplementation._wrap(raw); | |
| 16685 } | |
| 16686 | |
| 16687 static WebGLProgram wrapWebGLProgram(raw) { | |
| 16688 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLProgramWrappingImplementation._wrap(raw); | |
| 16689 } | |
| 16690 | |
| 16691 static WebGLRenderbuffer wrapWebGLRenderbuffer(raw) { | |
| 16692 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLRenderbufferWrappingImplementation._wrap(raw); | |
| 16693 } | |
| 16694 | |
| 16695 static WebGLRenderingContext wrapWebGLRenderingContext(raw) { | |
| 16696 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLRenderingContextWrappingImplementation._wrap(raw); | |
| 16697 } | |
| 16698 | |
| 16699 static WebGLShader wrapWebGLShader(raw) { | |
| 16700 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLShaderWrappingImplementation._wrap(raw); | |
| 16701 } | |
| 16702 | |
| 16703 static WebGLTexture wrapWebGLTexture(raw) { | |
| 16704 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLTextureWrappingImplementation._wrap(raw); | |
| 16705 } | |
| 16706 | |
| 16707 static WebGLUniformLocation wrapWebGLUniformLocation(raw) { | |
| 16708 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLUniformLocationWrappingImplementation._wrap(raw); | |
| 16709 } | |
| 16710 | |
| 16711 static WebGLVertexArrayObjectOES wrapWebGLVertexArrayObjectOES(raw) { | |
| 16712 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLVertexArrayObjectOESWrappingImplementation._wrap(ra
w); | |
| 16713 } | |
| 16714 | |
| 16715 static WebSocket wrapWebSocket(raw) { | |
| 16716 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebSocketWrappingImplementation._wrap(raw); | |
| 16717 } | |
| 16718 | |
| 16719 static WheelEvent wrapWheelEvent(raw) { | |
| 16720 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WheelEventWrappingImplementation._wrap(raw); | |
| 16721 } | |
| 16722 | |
| 16723 static Window wrapWindow(raw) { | |
| 16724 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WindowWrappingImplementation._wrap(raw); | |
| 16725 } | |
| 16726 | |
| 16727 static Worker wrapWorker(raw) { | |
| 16728 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WorkerWrappingImplementation._wrap(raw); | |
| 16729 } | |
| 16730 | |
| 16731 static XMLHttpRequest wrapXMLHttpRequest(raw) { | |
| 16732 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new XMLHttpRequestWrappingImplementation._wrap(raw); | |
| 16733 } | |
| 16734 | |
| 16735 static XMLHttpRequestException wrapXMLHttpRequestException(raw) { | |
| 16736 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new XMLHttpRequestExceptionWrappingImplementation._wrap(raw)
; | |
| 16737 } | |
| 16738 | |
| 16739 static XMLHttpRequestProgressEvent wrapXMLHttpRequestProgressEvent(raw) { | |
| 16740 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new XMLHttpRequestProgressEventWrappingImplementation._wrap(
raw); | |
| 16741 } | |
| 16742 | |
| 16743 static XMLHttpRequestUpload wrapXMLHttpRequestUpload(raw) { | |
| 16744 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new XMLHttpRequestUploadWrappingImplementation._wrap(raw); | |
| 16745 } | |
| 16746 | |
| 16747 static unwrapMaybePrimitive(raw) { | |
| 16748 return raw is DOMWrapperBase ? raw._ptr : raw; | |
| 16749 } | |
| 16750 | |
| 16751 static unwrap(raw) { | |
| 16752 return raw === null ? null : raw._ptr; | |
| 16753 } | |
| 16754 | |
| 16755 | |
| 16756 static void initialize(var rawWindow) { | |
| 16757 secretWindow = wrapWindow(rawWindow); | |
| 16758 secretDocument = wrapDocument(rawWindow.document); | |
| 16759 } | |
| 16760 | |
| 16761 } | |
| 16762 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 16763 // for details. All rights reserved. Use of this source code is governed by a | |
| 16764 // BSD-style license that can be found in the LICENSE file. | |
| 16765 | |
| 16766 /** | |
| 16767 * The [Collections] class implements static methods useful when | |
| 16768 * writing a class that implements [Collection] and the [iterator] | |
| 16769 * method. | |
| 16770 */ | |
| 16771 class _Collections { | |
| 16772 static void forEach(Iterable<Object> iterable, void f(Object o)) { | |
| 16773 for (final e in iterable) { | |
| 16774 f(e); | |
| 16775 } | |
| 16776 } | |
| 16777 | |
| 16778 static bool some(Iterable<Object> iterable, bool f(Object o)) { | |
| 16779 for (final e in iterable) { | |
| 16780 if (f(e)) return true; | |
| 16781 } | |
| 16782 return false; | |
| 16783 } | |
| 16784 | |
| 16785 static bool every(Iterable<Object> iterable, bool f(Object o)) { | |
| 16786 for (final e in iterable) { | |
| 16787 if (!f(e)) return false; | |
| 16788 } | |
| 16789 return true; | |
| 16790 } | |
| 16791 | |
| 16792 static List filter(Iterable<Object> source, | |
| 16793 List<Object> destination, | |
| 16794 bool f(o)) { | |
| 16795 for (final e in source) { | |
| 16796 if (f(e)) destination.add(e); | |
| 16797 } | |
| 16798 return destination; | |
| 16799 } | |
| 16800 | |
| 16801 static bool isEmpty(Iterable<Object> iterable) { | |
| 16802 return !iterable.iterator().hasNext(); | |
| 16803 } | |
| 16804 } | |
| 16805 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 16806 // for details. All rights reserved. Use of this source code is governed by a | |
| 16807 // BSD-style license that can be found in the LICENSE file. | |
| 16808 | |
| 16809 | |
| 16810 // These factory methods could all live in one factory provider class but dartc | |
| 16811 // has a bug (5399939) preventing that. | |
| 16812 | |
| 16813 class _FileReaderFactoryProvider { | |
| 16814 | |
| 16815 factory FileReader() { | |
| 16816 return new dom.FileReader(); | |
| 16817 } | |
| 16818 } | |
| 16819 | |
| 16820 class _CSSMatrixFactoryProvider { | |
| 16821 | |
| 16822 factory CSSMatrix([String spec = '']) { | |
| 16823 return new CSSMatrixWrappingImplementation._wrap( | |
| 16824 new dom.WebKitCSSMatrix(spec)); | |
| 16825 } | |
| 16826 } | |
| 16827 | |
| 16828 class _PointFactoryProvider { | |
| 16829 | |
| 16830 /** @domName Window.createWebKitPoint */ | |
| 16831 factory Point(num x, num y) { | |
| 16832 return new PointWrappingImplementation._wrap(new dom.WebKitPoint(x, y)); | |
| 16833 } | |
| 16834 } | |
| 16835 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 16836 // for details. All rights reserved. Use of this source code is governed by a | |
| 16837 // BSD-style license that can be found in the LICENSE file. | |
| 16838 | |
| 16839 // Iterator for lists with fixed size. | |
| 16840 class _FixedSizeListIterator<T> extends _VariableSizeListIterator<T> { | |
| 16841 _FixedSizeListIterator(List<T> list) | |
| 16842 : super(list), | |
| 16843 _length = list.length; | |
| 16844 | |
| 16845 bool hasNext() => _length > _pos; | |
| 16846 | |
| 16847 final int _length; // Cache list length for faster access. | |
| 16848 } | |
| 16849 | |
| 16850 // Iterator for lists with variable size. | |
| 16851 class _VariableSizeListIterator<T> implements Iterator<T> { | |
| 16852 _VariableSizeListIterator(List<T> list) | |
| 16853 : _list = list, | |
| 16854 _pos = 0; | |
| 16855 | |
| 16856 bool hasNext() => _list.length > _pos; | |
| 16857 | |
| 16858 T next() { | |
| 16859 if (!hasNext()) { | |
| 16860 throw const NoMoreElementsException(); | |
| 16861 } | |
| 16862 return _list[_pos++]; | |
| 16863 } | |
| 16864 | |
| 16865 final List<T> _list; | |
| 16866 int _pos; | |
| 16867 } | |
| 16868 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 16869 // for details. All rights reserved. Use of this source code is governed by a | |
| 16870 // BSD-style license that can be found in the LICENSE file. | |
| 16871 | |
| 16872 // TODO(jacobr): move into a core library or at least merge with the copy | |
| 16873 // in client/dom/src | |
| 16874 class _Lists { | |
| 16875 | |
| 16876 /** | |
| 16877 * Returns the index in the array [a] of the given [element], starting | |
| 16878 * the search at index [startIndex] to [endIndex] (exclusive). | |
| 16879 * Returns -1 if [element] is not found. | |
| 16880 */ | |
| 16881 static int indexOf(List a, | |
| 16882 Object element, | |
| 16883 int startIndex, | |
| 16884 int endIndex) { | |
| 16885 if (startIndex >= a.length) { | |
| 16886 return -1; | |
| 16887 } | |
| 16888 if (startIndex < 0) { | |
| 16889 startIndex = 0; | |
| 16890 } | |
| 16891 for (int i = startIndex; i < endIndex; i++) { | |
| 16892 if (a[i] == element) { | |
| 16893 return i; | |
| 16894 } | |
| 16895 } | |
| 16896 return -1; | |
| 16897 } | |
| 16898 | |
| 16899 /** | |
| 16900 * Returns the last index in the array [a] of the given [element], starting | |
| 16901 * the search at index [startIndex] to 0. | |
| 16902 * Returns -1 if [element] is not found. | |
| 16903 */ | |
| 16904 static int lastIndexOf(List a, Object element, int startIndex) { | |
| 16905 if (startIndex < 0) { | |
| 16906 return -1; | |
| 16907 } | |
| 16908 if (startIndex >= a.length) { | |
| 16909 startIndex = a.length - 1; | |
| 16910 } | |
| 16911 for (int i = startIndex; i >= 0; i--) { | |
| 16912 if (a[i] == element) { | |
| 16913 return i; | |
| 16914 } | |
| 16915 } | |
| 16916 return -1; | |
| 16917 } | |
| 16918 } | |
| 16919 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 16920 // for details. All rights reserved. Use of this source code is governed by a | |
| 16921 // BSD-style license that can be found in the LICENSE file. | |
| 16922 | |
| 16923 interface AbstractWorkerEvents extends Events { | 6437 interface AbstractWorkerEvents extends Events { |
| 16924 EventListenerList get error(); | 6438 EventListenerList get error(); |
| 16925 } | 6439 } |
| 16926 | 6440 |
| 16927 interface AbstractWorker extends EventTarget { | 6441 interface AbstractWorker extends EventTarget { |
| 16928 AbstractWorkerEvents get on(); | 6442 AbstractWorkerEvents get on(); |
| 16929 } | 6443 } |
| 16930 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 6444 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 16931 // for details. All rights reserved. Use of this source code is governed by a | 6445 // for details. All rights reserved. Use of this source code is governed by a |
| 16932 // BSD-style license that can be found in the LICENSE file. | 6446 // BSD-style license that can be found in the LICENSE file. |
| 16933 | 6447 |
| 16934 class AbstractWorkerEventsImplementation extends EventsImplementation implements
AbstractWorkerEvents { | |
| 16935 AbstractWorkerEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
| 16936 | |
| 16937 EventListenerList get error() => _get('error'); | |
| 16938 } | |
| 16939 | |
| 16940 class AbstractWorkerWrappingImplementation extends EventTargetWrappingImplementa
tion implements AbstractWorker { | |
| 16941 AbstractWorkerWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 16942 | |
| 16943 AbstractWorkerEvents get on() { | |
| 16944 if (_on === null) { | |
| 16945 _on = new AbstractWorkerEventsImplementation._wrap(_ptr); | |
| 16946 } | |
| 16947 return _on; | |
| 16948 } | |
| 16949 } | |
| 16950 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 16951 // for details. All rights reserved. Use of this source code is governed by a | |
| 16952 // BSD-style license that can be found in the LICENSE file. | |
| 16953 | |
| 16954 interface AnimationEvent extends Event factory AnimationEventWrappingImplementat
ion { | 6448 interface AnimationEvent extends Event factory AnimationEventWrappingImplementat
ion { |
| 16955 | 6449 |
| 16956 AnimationEvent(String type, String propertyName, double elapsedTime, | 6450 AnimationEvent(String type, String propertyName, double elapsedTime, |
| 16957 [bool canBubble, bool cancelable]); | 6451 [bool canBubble, bool cancelable]); |
| 16958 | 6452 |
| 16959 String get animationName(); | 6453 String get animationName(); |
| 16960 | 6454 |
| 16961 num get elapsedTime(); | 6455 num get elapsedTime(); |
| 16962 } | 6456 } |
| 16963 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 6457 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 16964 // for details. All rights reserved. Use of this source code is governed by a | 6458 // for details. All rights reserved. Use of this source code is governed by a |
| 16965 // BSD-style license that can be found in the LICENSE file. | 6459 // BSD-style license that can be found in the LICENSE file. |
| 16966 | 6460 |
| 16967 class AnimationEventWrappingImplementation extends EventWrappingImplementation i
mplements AnimationEvent { | |
| 16968 static String _name; | |
| 16969 | |
| 16970 AnimationEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 16971 | |
| 16972 static String get _eventName() { | |
| 16973 if (_name != null) return _name; | |
| 16974 | |
| 16975 try { | |
| 16976 dom.document.createEvent("WebKitAnimationEvent"); | |
| 16977 _name = "WebKitAnimationEvent"; | |
| 16978 } catch (var e) { | |
| 16979 _name = "AnimationEvent"; | |
| 16980 } | |
| 16981 return _name; | |
| 16982 } | |
| 16983 | |
| 16984 factory AnimationEventWrappingImplementation(String type, String propertyName, | |
| 16985 double elapsedTime, [bool canBubble = true, bool cancelable = true]) { | |
| 16986 final e = dom.document.createEvent(_eventName); | |
| 16987 e.initWebKitAnimationEvent( | |
| 16988 type, canBubble, cancelable, propertyName, elapsedTime); | |
| 16989 return LevelDom.wrapAnimationEvent(e); | |
| 16990 } | |
| 16991 | |
| 16992 String get animationName() => _ptr.animationName; | |
| 16993 | |
| 16994 num get elapsedTime() => _ptr.elapsedTime; | |
| 16995 } | |
| 16996 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 16997 // for details. All rights reserved. Use of this source code is governed by a | |
| 16998 // BSD-style license that can be found in the LICENSE file. | |
| 16999 | |
| 17000 interface BeforeLoadEvent extends Event factory BeforeLoadEventWrappingImplement
ation { | 6461 interface BeforeLoadEvent extends Event factory BeforeLoadEventWrappingImplement
ation { |
| 17001 | 6462 |
| 17002 BeforeLoadEvent(String type, String url, [bool canBubble, bool cancelable]); | 6463 BeforeLoadEvent(String type, String url, [bool canBubble, bool cancelable]); |
| 17003 | 6464 |
| 17004 String get url(); | 6465 String get url(); |
| 17005 } | 6466 } |
| 17006 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 6467 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 17007 // for details. All rights reserved. Use of this source code is governed by a | 6468 // for details. All rights reserved. Use of this source code is governed by a |
| 17008 // BSD-style license that can be found in the LICENSE file. | 6469 // BSD-style license that can be found in the LICENSE file. |
| 17009 | 6470 |
| 17010 class BeforeLoadEventWrappingImplementation extends EventWrappingImplementation
implements BeforeLoadEvent { | |
| 17011 BeforeLoadEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 17012 | |
| 17013 factory BeforeLoadEventWrappingImplementation(String type, String url, | |
| 17014 [bool canBubble = true, bool cancelable = true]) { | |
| 17015 final e = dom.document.createEvent("BeforeLoadEvent"); | |
| 17016 e.initBeforeLoadEvent(type, canBubble, cancelable, url); | |
| 17017 return LevelDom.wrapBeforeLoadEvent(e); | |
| 17018 } | |
| 17019 | |
| 17020 String get url() => _ptr.url; | |
| 17021 } | |
| 17022 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 17023 // for details. All rights reserved. Use of this source code is governed by a | |
| 17024 // BSD-style license that can be found in the LICENSE file. | |
| 17025 | |
| 17026 interface BodyElementEvents extends ElementEvents { | 6471 interface BodyElementEvents extends ElementEvents { |
| 17027 EventListenerList get beforeUnload(); | 6472 EventListenerList get beforeUnload(); |
| 17028 EventListenerList get hashChange(); | 6473 EventListenerList get hashChange(); |
| 17029 EventListenerList get message(); | 6474 EventListenerList get message(); |
| 17030 EventListenerList get offline(); | 6475 EventListenerList get offline(); |
| 17031 EventListenerList get online(); | 6476 EventListenerList get online(); |
| 17032 EventListenerList get orientationChange(); | 6477 EventListenerList get orientationChange(); |
| 17033 EventListenerList get popState(); | 6478 EventListenerList get popState(); |
| 17034 EventListenerList get resize(); | 6479 EventListenerList get resize(); |
| 17035 EventListenerList get storage(); | 6480 EventListenerList get storage(); |
| 17036 EventListenerList get unLoad(); | 6481 EventListenerList get unLoad(); |
| 17037 } | 6482 } |
| 17038 | 6483 |
| 17039 interface BodyElement extends Element { | 6484 interface BodyElement extends Element { |
| 17040 BodyElementEvents get on(); | 6485 BodyElementEvents get on(); |
| 17041 } | 6486 } |
| 17042 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 6487 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 17043 // for details. All rights reserved. Use of this source code is governed by a | 6488 // for details. All rights reserved. Use of this source code is governed by a |
| 17044 // BSD-style license that can be found in the LICENSE file. | 6489 // BSD-style license that can be found in the LICENSE file. |
| 17045 | 6490 |
| 17046 class BodyElementEventsImplementation | |
| 17047 extends ElementEventsImplementation implements BodyElementEvents { | |
| 17048 | |
| 17049 BodyElementEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
| 17050 | |
| 17051 EventListenerList get beforeUnload() => _get('beforeunload'); | |
| 17052 EventListenerList get hashChange() => _get('hashchange'); | |
| 17053 EventListenerList get message() => _get('message'); | |
| 17054 EventListenerList get offline() => _get('offline'); | |
| 17055 EventListenerList get online() => _get('online'); | |
| 17056 EventListenerList get orientationChange() => _get('orientationchange'); | |
| 17057 EventListenerList get popState() => _get('popstate'); | |
| 17058 EventListenerList get resize() => _get('resize'); | |
| 17059 EventListenerList get storage() => _get('storage'); | |
| 17060 EventListenerList get unLoad() => _get('unload'); | |
| 17061 } | |
| 17062 | |
| 17063 class BodyElementWrappingImplementation | |
| 17064 extends ElementWrappingImplementation implements BodyElement { | |
| 17065 | |
| 17066 BodyElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 17067 | |
| 17068 BodyElementEvents get on() { | |
| 17069 if (_on === null) { | |
| 17070 _on = new BodyElementEventsImplementation._wrap(_ptr); | |
| 17071 } | |
| 17072 return _on; | |
| 17073 } | |
| 17074 } | |
| 17075 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 17076 // for details. All rights reserved. Use of this source code is governed by a | |
| 17077 // BSD-style license that can be found in the LICENSE file. | |
| 17078 | |
| 17079 interface CloseEvent extends Event factory CloseEventWrappingImplementation { | 6491 interface CloseEvent extends Event factory CloseEventWrappingImplementation { |
| 17080 | 6492 |
| 17081 CloseEvent(String type, int code, String reason, | 6493 CloseEvent(String type, int code, String reason, |
| 17082 [bool canBubble, bool cancelable, bool wasClean]); | 6494 [bool canBubble, bool cancelable, bool wasClean]); |
| 17083 | 6495 |
| 17084 int get code(); | 6496 int get code(); |
| 17085 | 6497 |
| 17086 String get reason(); | 6498 String get reason(); |
| 17087 | 6499 |
| 17088 bool get wasClean(); | 6500 bool get wasClean(); |
| 17089 } | 6501 } |
| 17090 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 6502 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 17091 // for details. All rights reserved. Use of this source code is governed by a | 6503 // for details. All rights reserved. Use of this source code is governed by a |
| 17092 // BSD-style license that can be found in the LICENSE file. | 6504 // BSD-style license that can be found in the LICENSE file. |
| 17093 | 6505 |
| 17094 class CloseEventWrappingImplementation extends EventWrappingImplementation imple
ments CloseEvent { | |
| 17095 CloseEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 17096 | |
| 17097 factory CloseEventWrappingImplementation(String type, int code, String reason, | |
| 17098 [bool canBubble = true, bool cancelable = true, bool wasClean = true]) { | |
| 17099 final e = dom.document.createEvent("CloseEvent"); | |
| 17100 e.initCloseEvent(type, canBubble, cancelable, wasClean, code, reason); | |
| 17101 return LevelDom.wrapCloseEvent(e); | |
| 17102 } | |
| 17103 | |
| 17104 int get code() => _ptr.code; | |
| 17105 | |
| 17106 String get reason() => _ptr.reason; | |
| 17107 | |
| 17108 bool get wasClean() => _ptr.wasClean; | |
| 17109 } | |
| 17110 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 17111 // for details. All rights reserved. Use of this source code is governed by a | |
| 17112 // BSD-style license that can be found in the LICENSE file. | |
| 17113 | |
| 17114 interface CompositionEvent extends UIEvent factory CompositionEventWrappingImple
mentation { | 6506 interface CompositionEvent extends UIEvent factory CompositionEventWrappingImple
mentation { |
| 17115 | 6507 |
| 17116 CompositionEvent(String type, Window view, String data, [bool canBubble, | 6508 CompositionEvent(String type, Window view, String data, [bool canBubble, |
| 17117 bool cancelable]); | 6509 bool cancelable]); |
| 17118 | 6510 |
| 17119 String get data(); | 6511 String get data(); |
| 17120 } | 6512 } |
| 17121 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 6513 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 17122 // for details. All rights reserved. Use of this source code is governed by a | 6514 // for details. All rights reserved. Use of this source code is governed by a |
| 17123 // BSD-style license that can be found in the LICENSE file. | 6515 // BSD-style license that can be found in the LICENSE file. |
| 17124 | 6516 |
| 17125 class CompositionEventWrappingImplementation extends UIEventWrappingImplementati
on implements CompositionEvent { | |
| 17126 CompositionEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 17127 | |
| 17128 factory CompositionEventWrappingImplementation(String type, Window view, | |
| 17129 String data, [bool canBubble = true, bool cancelable = true]) { | |
| 17130 final e = dom.document.createEvent("CompositionEvent"); | |
| 17131 e.initCompositionEvent(type, canBubble, cancelable, LevelDom.unwrap(view), | |
| 17132 data); | |
| 17133 return LevelDom.wrapCompositionEvent(e); | |
| 17134 } | |
| 17135 | |
| 17136 String get data() => _ptr.data; | |
| 17137 } | |
| 17138 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 17139 // for details. All rights reserved. Use of this source code is governed by a | |
| 17140 // BSD-style license that can be found in the LICENSE file. | |
| 17141 | |
| 17142 // TODO - figure out whether classList exists, and if so use that | 6517 // TODO - figure out whether classList exists, and if so use that |
| 17143 // rather than the className property that is being used here. | 6518 // rather than the className property that is being used here. |
| 17144 | 6519 |
| 17145 class _CssClassSet implements Set<String> { | 6520 class _CssClassSet implements Set<String> { |
| 17146 | 6521 |
| 17147 final _element; | 6522 final _element; |
| 17148 | 6523 |
| 17149 _CssClassSet(this._element); | 6524 _CssClassSet(this._element); |
| 17150 | 6525 |
| 17151 String toString() { | 6526 String toString() { |
| (...skipping 2005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19157 String get zoom(); | 8532 String get zoom(); |
| 19158 | 8533 |
| 19159 /** Sets the value of "zoom" */ | 8534 /** Sets the value of "zoom" */ |
| 19160 void set zoom(String value); | 8535 void set zoom(String value); |
| 19161 | 8536 |
| 19162 } | 8537 } |
| 19163 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 8538 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 19164 // for details. All rights reserved. Use of this source code is governed by a | 8539 // for details. All rights reserved. Use of this source code is governed by a |
| 19165 // BSD-style license that can be found in the LICENSE file. | 8540 // BSD-style license that can be found in the LICENSE file. |
| 19166 | 8541 |
| 19167 // WARNING: Do not edit. | |
| 19168 // This file was generated by html/scripts/css_code_generator.py | |
| 19169 | |
| 19170 // Source of CSS properties: | |
| 19171 // Source/WebCore/css/CSSPropertyNames.in | |
| 19172 | |
| 19173 // TODO(jacobr): add versions that take numeric values in px, miliseconds, etc. | |
| 19174 | |
| 19175 class CSSStyleDeclarationWrappingImplementation extends DOMWrapperBase implement
s CSSStyleDeclaration { | |
| 19176 static String _cachedBrowserPrefix; | |
| 19177 | |
| 19178 CSSStyleDeclarationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 19179 | |
| 19180 factory CSSStyleDeclarationWrappingImplementation.css(String css) { | |
| 19181 var style = new Element.tag('div').style; | |
| 19182 style.cssText = css; | |
| 19183 return style; | |
| 19184 } | |
| 19185 | |
| 19186 factory CSSStyleDeclarationWrappingImplementation() { | |
| 19187 return new CSSStyleDeclarationWrappingImplementation.css(''); | |
| 19188 } | |
| 19189 | |
| 19190 static String get _browserPrefix() { | |
| 19191 if (_cachedBrowserPrefix === null) { | |
| 19192 if (_Device.isFirefox) { | |
| 19193 _cachedBrowserPrefix = '-moz-'; | |
| 19194 } else { | |
| 19195 _cachedBrowserPrefix = '-webkit-'; | |
| 19196 } | |
| 19197 // TODO(jacobr): support IE 9.0 and Opera as well. | |
| 19198 } | |
| 19199 return _cachedBrowserPrefix; | |
| 19200 } | |
| 19201 | |
| 19202 String get cssText() { return _ptr.cssText; } | |
| 19203 | |
| 19204 void set cssText(String value) { _ptr.cssText = value; } | |
| 19205 | |
| 19206 int get length() { return _ptr.length; } | |
| 19207 | |
| 19208 CSSRule get parentRule() { return LevelDom.wrapCSSRule(_ptr.parentRule); } | |
| 19209 | |
| 19210 CSSValue getPropertyCSSValue(String propertyName) { | |
| 19211 return LevelDom.wrapCSSValue(_ptr.getPropertyCSSValue(propertyName)); | |
| 19212 } | |
| 19213 | |
| 19214 String getPropertyPriority(String propertyName) { | |
| 19215 return _ptr.getPropertyPriority(propertyName); | |
| 19216 } | |
| 19217 | |
| 19218 String getPropertyShorthand(String propertyName) { | |
| 19219 return _ptr.getPropertyShorthand(propertyName); | |
| 19220 } | |
| 19221 | |
| 19222 String getPropertyValue(String propertyName) { | |
| 19223 return _ptr.getPropertyValue(propertyName); | |
| 19224 } | |
| 19225 | |
| 19226 bool isPropertyImplicit(String propertyName) { | |
| 19227 return _ptr.isPropertyImplicit(propertyName); | |
| 19228 } | |
| 19229 | |
| 19230 String item(int index) { | |
| 19231 return _ptr.item(index); | |
| 19232 } | |
| 19233 | |
| 19234 String removeProperty(String propertyName) { | |
| 19235 return _ptr.removeProperty(propertyName); | |
| 19236 } | |
| 19237 | |
| 19238 void setProperty(String propertyName, String value, [String priority = '']) { | |
| 19239 _ptr.setProperty(propertyName, value, priority); | |
| 19240 } | |
| 19241 | |
| 19242 String get typeName() { return "CSSStyleDeclaration"; } | |
| 19243 | |
| 19244 | |
| 19245 /** Gets the value of "animation" */ | |
| 19246 String get animation() => | |
| 19247 getPropertyValue('${_browserPrefix}animation'); | |
| 19248 | |
| 19249 /** Sets the value of "animation" */ | |
| 19250 void set animation(String value) { | |
| 19251 setProperty('${_browserPrefix}animation', value, ''); | |
| 19252 } | |
| 19253 | |
| 19254 /** Gets the value of "animation-delay" */ | |
| 19255 String get animationDelay() => | |
| 19256 getPropertyValue('${_browserPrefix}animation-delay'); | |
| 19257 | |
| 19258 /** Sets the value of "animation-delay" */ | |
| 19259 void set animationDelay(String value) { | |
| 19260 setProperty('${_browserPrefix}animation-delay', value, ''); | |
| 19261 } | |
| 19262 | |
| 19263 /** Gets the value of "animation-direction" */ | |
| 19264 String get animationDirection() => | |
| 19265 getPropertyValue('${_browserPrefix}animation-direction'); | |
| 19266 | |
| 19267 /** Sets the value of "animation-direction" */ | |
| 19268 void set animationDirection(String value) { | |
| 19269 setProperty('${_browserPrefix}animation-direction', value, ''); | |
| 19270 } | |
| 19271 | |
| 19272 /** Gets the value of "animation-duration" */ | |
| 19273 String get animationDuration() => | |
| 19274 getPropertyValue('${_browserPrefix}animation-duration'); | |
| 19275 | |
| 19276 /** Sets the value of "animation-duration" */ | |
| 19277 void set animationDuration(String value) { | |
| 19278 setProperty('${_browserPrefix}animation-duration', value, ''); | |
| 19279 } | |
| 19280 | |
| 19281 /** Gets the value of "animation-fill-mode" */ | |
| 19282 String get animationFillMode() => | |
| 19283 getPropertyValue('${_browserPrefix}animation-fill-mode'); | |
| 19284 | |
| 19285 /** Sets the value of "animation-fill-mode" */ | |
| 19286 void set animationFillMode(String value) { | |
| 19287 setProperty('${_browserPrefix}animation-fill-mode', value, ''); | |
| 19288 } | |
| 19289 | |
| 19290 /** Gets the value of "animation-iteration-count" */ | |
| 19291 String get animationIterationCount() => | |
| 19292 getPropertyValue('${_browserPrefix}animation-iteration-count'); | |
| 19293 | |
| 19294 /** Sets the value of "animation-iteration-count" */ | |
| 19295 void set animationIterationCount(String value) { | |
| 19296 setProperty('${_browserPrefix}animation-iteration-count', value, ''); | |
| 19297 } | |
| 19298 | |
| 19299 /** Gets the value of "animation-name" */ | |
| 19300 String get animationName() => | |
| 19301 getPropertyValue('${_browserPrefix}animation-name'); | |
| 19302 | |
| 19303 /** Sets the value of "animation-name" */ | |
| 19304 void set animationName(String value) { | |
| 19305 setProperty('${_browserPrefix}animation-name', value, ''); | |
| 19306 } | |
| 19307 | |
| 19308 /** Gets the value of "animation-play-state" */ | |
| 19309 String get animationPlayState() => | |
| 19310 getPropertyValue('${_browserPrefix}animation-play-state'); | |
| 19311 | |
| 19312 /** Sets the value of "animation-play-state" */ | |
| 19313 void set animationPlayState(String value) { | |
| 19314 setProperty('${_browserPrefix}animation-play-state', value, ''); | |
| 19315 } | |
| 19316 | |
| 19317 /** Gets the value of "animation-timing-function" */ | |
| 19318 String get animationTimingFunction() => | |
| 19319 getPropertyValue('${_browserPrefix}animation-timing-function'); | |
| 19320 | |
| 19321 /** Sets the value of "animation-timing-function" */ | |
| 19322 void set animationTimingFunction(String value) { | |
| 19323 setProperty('${_browserPrefix}animation-timing-function', value, ''); | |
| 19324 } | |
| 19325 | |
| 19326 /** Gets the value of "appearance" */ | |
| 19327 String get appearance() => | |
| 19328 getPropertyValue('${_browserPrefix}appearance'); | |
| 19329 | |
| 19330 /** Sets the value of "appearance" */ | |
| 19331 void set appearance(String value) { | |
| 19332 setProperty('${_browserPrefix}appearance', value, ''); | |
| 19333 } | |
| 19334 | |
| 19335 /** Gets the value of "backface-visibility" */ | |
| 19336 String get backfaceVisibility() => | |
| 19337 getPropertyValue('${_browserPrefix}backface-visibility'); | |
| 19338 | |
| 19339 /** Sets the value of "backface-visibility" */ | |
| 19340 void set backfaceVisibility(String value) { | |
| 19341 setProperty('${_browserPrefix}backface-visibility', value, ''); | |
| 19342 } | |
| 19343 | |
| 19344 /** Gets the value of "background" */ | |
| 19345 String get background() => | |
| 19346 getPropertyValue('background'); | |
| 19347 | |
| 19348 /** Sets the value of "background" */ | |
| 19349 void set background(String value) { | |
| 19350 setProperty('background', value, ''); | |
| 19351 } | |
| 19352 | |
| 19353 /** Gets the value of "background-attachment" */ | |
| 19354 String get backgroundAttachment() => | |
| 19355 getPropertyValue('background-attachment'); | |
| 19356 | |
| 19357 /** Sets the value of "background-attachment" */ | |
| 19358 void set backgroundAttachment(String value) { | |
| 19359 setProperty('background-attachment', value, ''); | |
| 19360 } | |
| 19361 | |
| 19362 /** Gets the value of "background-clip" */ | |
| 19363 String get backgroundClip() => | |
| 19364 getPropertyValue('background-clip'); | |
| 19365 | |
| 19366 /** Sets the value of "background-clip" */ | |
| 19367 void set backgroundClip(String value) { | |
| 19368 setProperty('background-clip', value, ''); | |
| 19369 } | |
| 19370 | |
| 19371 /** Gets the value of "background-color" */ | |
| 19372 String get backgroundColor() => | |
| 19373 getPropertyValue('background-color'); | |
| 19374 | |
| 19375 /** Sets the value of "background-color" */ | |
| 19376 void set backgroundColor(String value) { | |
| 19377 setProperty('background-color', value, ''); | |
| 19378 } | |
| 19379 | |
| 19380 /** Gets the value of "background-composite" */ | |
| 19381 String get backgroundComposite() => | |
| 19382 getPropertyValue('${_browserPrefix}background-composite'); | |
| 19383 | |
| 19384 /** Sets the value of "background-composite" */ | |
| 19385 void set backgroundComposite(String value) { | |
| 19386 setProperty('${_browserPrefix}background-composite', value, ''); | |
| 19387 } | |
| 19388 | |
| 19389 /** Gets the value of "background-image" */ | |
| 19390 String get backgroundImage() => | |
| 19391 getPropertyValue('background-image'); | |
| 19392 | |
| 19393 /** Sets the value of "background-image" */ | |
| 19394 void set backgroundImage(String value) { | |
| 19395 setProperty('background-image', value, ''); | |
| 19396 } | |
| 19397 | |
| 19398 /** Gets the value of "background-origin" */ | |
| 19399 String get backgroundOrigin() => | |
| 19400 getPropertyValue('background-origin'); | |
| 19401 | |
| 19402 /** Sets the value of "background-origin" */ | |
| 19403 void set backgroundOrigin(String value) { | |
| 19404 setProperty('background-origin', value, ''); | |
| 19405 } | |
| 19406 | |
| 19407 /** Gets the value of "background-position" */ | |
| 19408 String get backgroundPosition() => | |
| 19409 getPropertyValue('background-position'); | |
| 19410 | |
| 19411 /** Sets the value of "background-position" */ | |
| 19412 void set backgroundPosition(String value) { | |
| 19413 setProperty('background-position', value, ''); | |
| 19414 } | |
| 19415 | |
| 19416 /** Gets the value of "background-position-x" */ | |
| 19417 String get backgroundPositionX() => | |
| 19418 getPropertyValue('background-position-x'); | |
| 19419 | |
| 19420 /** Sets the value of "background-position-x" */ | |
| 19421 void set backgroundPositionX(String value) { | |
| 19422 setProperty('background-position-x', value, ''); | |
| 19423 } | |
| 19424 | |
| 19425 /** Gets the value of "background-position-y" */ | |
| 19426 String get backgroundPositionY() => | |
| 19427 getPropertyValue('background-position-y'); | |
| 19428 | |
| 19429 /** Sets the value of "background-position-y" */ | |
| 19430 void set backgroundPositionY(String value) { | |
| 19431 setProperty('background-position-y', value, ''); | |
| 19432 } | |
| 19433 | |
| 19434 /** Gets the value of "background-repeat" */ | |
| 19435 String get backgroundRepeat() => | |
| 19436 getPropertyValue('background-repeat'); | |
| 19437 | |
| 19438 /** Sets the value of "background-repeat" */ | |
| 19439 void set backgroundRepeat(String value) { | |
| 19440 setProperty('background-repeat', value, ''); | |
| 19441 } | |
| 19442 | |
| 19443 /** Gets the value of "background-repeat-x" */ | |
| 19444 String get backgroundRepeatX() => | |
| 19445 getPropertyValue('background-repeat-x'); | |
| 19446 | |
| 19447 /** Sets the value of "background-repeat-x" */ | |
| 19448 void set backgroundRepeatX(String value) { | |
| 19449 setProperty('background-repeat-x', value, ''); | |
| 19450 } | |
| 19451 | |
| 19452 /** Gets the value of "background-repeat-y" */ | |
| 19453 String get backgroundRepeatY() => | |
| 19454 getPropertyValue('background-repeat-y'); | |
| 19455 | |
| 19456 /** Sets the value of "background-repeat-y" */ | |
| 19457 void set backgroundRepeatY(String value) { | |
| 19458 setProperty('background-repeat-y', value, ''); | |
| 19459 } | |
| 19460 | |
| 19461 /** Gets the value of "background-size" */ | |
| 19462 String get backgroundSize() => | |
| 19463 getPropertyValue('background-size'); | |
| 19464 | |
| 19465 /** Sets the value of "background-size" */ | |
| 19466 void set backgroundSize(String value) { | |
| 19467 setProperty('background-size', value, ''); | |
| 19468 } | |
| 19469 | |
| 19470 /** Gets the value of "border" */ | |
| 19471 String get border() => | |
| 19472 getPropertyValue('border'); | |
| 19473 | |
| 19474 /** Sets the value of "border" */ | |
| 19475 void set border(String value) { | |
| 19476 setProperty('border', value, ''); | |
| 19477 } | |
| 19478 | |
| 19479 /** Gets the value of "border-after" */ | |
| 19480 String get borderAfter() => | |
| 19481 getPropertyValue('${_browserPrefix}border-after'); | |
| 19482 | |
| 19483 /** Sets the value of "border-after" */ | |
| 19484 void set borderAfter(String value) { | |
| 19485 setProperty('${_browserPrefix}border-after', value, ''); | |
| 19486 } | |
| 19487 | |
| 19488 /** Gets the value of "border-after-color" */ | |
| 19489 String get borderAfterColor() => | |
| 19490 getPropertyValue('${_browserPrefix}border-after-color'); | |
| 19491 | |
| 19492 /** Sets the value of "border-after-color" */ | |
| 19493 void set borderAfterColor(String value) { | |
| 19494 setProperty('${_browserPrefix}border-after-color', value, ''); | |
| 19495 } | |
| 19496 | |
| 19497 /** Gets the value of "border-after-style" */ | |
| 19498 String get borderAfterStyle() => | |
| 19499 getPropertyValue('${_browserPrefix}border-after-style'); | |
| 19500 | |
| 19501 /** Sets the value of "border-after-style" */ | |
| 19502 void set borderAfterStyle(String value) { | |
| 19503 setProperty('${_browserPrefix}border-after-style', value, ''); | |
| 19504 } | |
| 19505 | |
| 19506 /** Gets the value of "border-after-width" */ | |
| 19507 String get borderAfterWidth() => | |
| 19508 getPropertyValue('${_browserPrefix}border-after-width'); | |
| 19509 | |
| 19510 /** Sets the value of "border-after-width" */ | |
| 19511 void set borderAfterWidth(String value) { | |
| 19512 setProperty('${_browserPrefix}border-after-width', value, ''); | |
| 19513 } | |
| 19514 | |
| 19515 /** Gets the value of "border-before" */ | |
| 19516 String get borderBefore() => | |
| 19517 getPropertyValue('${_browserPrefix}border-before'); | |
| 19518 | |
| 19519 /** Sets the value of "border-before" */ | |
| 19520 void set borderBefore(String value) { | |
| 19521 setProperty('${_browserPrefix}border-before', value, ''); | |
| 19522 } | |
| 19523 | |
| 19524 /** Gets the value of "border-before-color" */ | |
| 19525 String get borderBeforeColor() => | |
| 19526 getPropertyValue('${_browserPrefix}border-before-color'); | |
| 19527 | |
| 19528 /** Sets the value of "border-before-color" */ | |
| 19529 void set borderBeforeColor(String value) { | |
| 19530 setProperty('${_browserPrefix}border-before-color', value, ''); | |
| 19531 } | |
| 19532 | |
| 19533 /** Gets the value of "border-before-style" */ | |
| 19534 String get borderBeforeStyle() => | |
| 19535 getPropertyValue('${_browserPrefix}border-before-style'); | |
| 19536 | |
| 19537 /** Sets the value of "border-before-style" */ | |
| 19538 void set borderBeforeStyle(String value) { | |
| 19539 setProperty('${_browserPrefix}border-before-style', value, ''); | |
| 19540 } | |
| 19541 | |
| 19542 /** Gets the value of "border-before-width" */ | |
| 19543 String get borderBeforeWidth() => | |
| 19544 getPropertyValue('${_browserPrefix}border-before-width'); | |
| 19545 | |
| 19546 /** Sets the value of "border-before-width" */ | |
| 19547 void set borderBeforeWidth(String value) { | |
| 19548 setProperty('${_browserPrefix}border-before-width', value, ''); | |
| 19549 } | |
| 19550 | |
| 19551 /** Gets the value of "border-bottom" */ | |
| 19552 String get borderBottom() => | |
| 19553 getPropertyValue('border-bottom'); | |
| 19554 | |
| 19555 /** Sets the value of "border-bottom" */ | |
| 19556 void set borderBottom(String value) { | |
| 19557 setProperty('border-bottom', value, ''); | |
| 19558 } | |
| 19559 | |
| 19560 /** Gets the value of "border-bottom-color" */ | |
| 19561 String get borderBottomColor() => | |
| 19562 getPropertyValue('border-bottom-color'); | |
| 19563 | |
| 19564 /** Sets the value of "border-bottom-color" */ | |
| 19565 void set borderBottomColor(String value) { | |
| 19566 setProperty('border-bottom-color', value, ''); | |
| 19567 } | |
| 19568 | |
| 19569 /** Gets the value of "border-bottom-left-radius" */ | |
| 19570 String get borderBottomLeftRadius() => | |
| 19571 getPropertyValue('border-bottom-left-radius'); | |
| 19572 | |
| 19573 /** Sets the value of "border-bottom-left-radius" */ | |
| 19574 void set borderBottomLeftRadius(String value) { | |
| 19575 setProperty('border-bottom-left-radius', value, ''); | |
| 19576 } | |
| 19577 | |
| 19578 /** Gets the value of "border-bottom-right-radius" */ | |
| 19579 String get borderBottomRightRadius() => | |
| 19580 getPropertyValue('border-bottom-right-radius'); | |
| 19581 | |
| 19582 /** Sets the value of "border-bottom-right-radius" */ | |
| 19583 void set borderBottomRightRadius(String value) { | |
| 19584 setProperty('border-bottom-right-radius', value, ''); | |
| 19585 } | |
| 19586 | |
| 19587 /** Gets the value of "border-bottom-style" */ | |
| 19588 String get borderBottomStyle() => | |
| 19589 getPropertyValue('border-bottom-style'); | |
| 19590 | |
| 19591 /** Sets the value of "border-bottom-style" */ | |
| 19592 void set borderBottomStyle(String value) { | |
| 19593 setProperty('border-bottom-style', value, ''); | |
| 19594 } | |
| 19595 | |
| 19596 /** Gets the value of "border-bottom-width" */ | |
| 19597 String get borderBottomWidth() => | |
| 19598 getPropertyValue('border-bottom-width'); | |
| 19599 | |
| 19600 /** Sets the value of "border-bottom-width" */ | |
| 19601 void set borderBottomWidth(String value) { | |
| 19602 setProperty('border-bottom-width', value, ''); | |
| 19603 } | |
| 19604 | |
| 19605 /** Gets the value of "border-collapse" */ | |
| 19606 String get borderCollapse() => | |
| 19607 getPropertyValue('border-collapse'); | |
| 19608 | |
| 19609 /** Sets the value of "border-collapse" */ | |
| 19610 void set borderCollapse(String value) { | |
| 19611 setProperty('border-collapse', value, ''); | |
| 19612 } | |
| 19613 | |
| 19614 /** Gets the value of "border-color" */ | |
| 19615 String get borderColor() => | |
| 19616 getPropertyValue('border-color'); | |
| 19617 | |
| 19618 /** Sets the value of "border-color" */ | |
| 19619 void set borderColor(String value) { | |
| 19620 setProperty('border-color', value, ''); | |
| 19621 } | |
| 19622 | |
| 19623 /** Gets the value of "border-end" */ | |
| 19624 String get borderEnd() => | |
| 19625 getPropertyValue('${_browserPrefix}border-end'); | |
| 19626 | |
| 19627 /** Sets the value of "border-end" */ | |
| 19628 void set borderEnd(String value) { | |
| 19629 setProperty('${_browserPrefix}border-end', value, ''); | |
| 19630 } | |
| 19631 | |
| 19632 /** Gets the value of "border-end-color" */ | |
| 19633 String get borderEndColor() => | |
| 19634 getPropertyValue('${_browserPrefix}border-end-color'); | |
| 19635 | |
| 19636 /** Sets the value of "border-end-color" */ | |
| 19637 void set borderEndColor(String value) { | |
| 19638 setProperty('${_browserPrefix}border-end-color', value, ''); | |
| 19639 } | |
| 19640 | |
| 19641 /** Gets the value of "border-end-style" */ | |
| 19642 String get borderEndStyle() => | |
| 19643 getPropertyValue('${_browserPrefix}border-end-style'); | |
| 19644 | |
| 19645 /** Sets the value of "border-end-style" */ | |
| 19646 void set borderEndStyle(String value) { | |
| 19647 setProperty('${_browserPrefix}border-end-style', value, ''); | |
| 19648 } | |
| 19649 | |
| 19650 /** Gets the value of "border-end-width" */ | |
| 19651 String get borderEndWidth() => | |
| 19652 getPropertyValue('${_browserPrefix}border-end-width'); | |
| 19653 | |
| 19654 /** Sets the value of "border-end-width" */ | |
| 19655 void set borderEndWidth(String value) { | |
| 19656 setProperty('${_browserPrefix}border-end-width', value, ''); | |
| 19657 } | |
| 19658 | |
| 19659 /** Gets the value of "border-fit" */ | |
| 19660 String get borderFit() => | |
| 19661 getPropertyValue('${_browserPrefix}border-fit'); | |
| 19662 | |
| 19663 /** Sets the value of "border-fit" */ | |
| 19664 void set borderFit(String value) { | |
| 19665 setProperty('${_browserPrefix}border-fit', value, ''); | |
| 19666 } | |
| 19667 | |
| 19668 /** Gets the value of "border-horizontal-spacing" */ | |
| 19669 String get borderHorizontalSpacing() => | |
| 19670 getPropertyValue('${_browserPrefix}border-horizontal-spacing'); | |
| 19671 | |
| 19672 /** Sets the value of "border-horizontal-spacing" */ | |
| 19673 void set borderHorizontalSpacing(String value) { | |
| 19674 setProperty('${_browserPrefix}border-horizontal-spacing', value, ''); | |
| 19675 } | |
| 19676 | |
| 19677 /** Gets the value of "border-image" */ | |
| 19678 String get borderImage() => | |
| 19679 getPropertyValue('border-image'); | |
| 19680 | |
| 19681 /** Sets the value of "border-image" */ | |
| 19682 void set borderImage(String value) { | |
| 19683 setProperty('border-image', value, ''); | |
| 19684 } | |
| 19685 | |
| 19686 /** Gets the value of "border-image-outset" */ | |
| 19687 String get borderImageOutset() => | |
| 19688 getPropertyValue('border-image-outset'); | |
| 19689 | |
| 19690 /** Sets the value of "border-image-outset" */ | |
| 19691 void set borderImageOutset(String value) { | |
| 19692 setProperty('border-image-outset', value, ''); | |
| 19693 } | |
| 19694 | |
| 19695 /** Gets the value of "border-image-repeat" */ | |
| 19696 String get borderImageRepeat() => | |
| 19697 getPropertyValue('border-image-repeat'); | |
| 19698 | |
| 19699 /** Sets the value of "border-image-repeat" */ | |
| 19700 void set borderImageRepeat(String value) { | |
| 19701 setProperty('border-image-repeat', value, ''); | |
| 19702 } | |
| 19703 | |
| 19704 /** Gets the value of "border-image-slice" */ | |
| 19705 String get borderImageSlice() => | |
| 19706 getPropertyValue('border-image-slice'); | |
| 19707 | |
| 19708 /** Sets the value of "border-image-slice" */ | |
| 19709 void set borderImageSlice(String value) { | |
| 19710 setProperty('border-image-slice', value, ''); | |
| 19711 } | |
| 19712 | |
| 19713 /** Gets the value of "border-image-source" */ | |
| 19714 String get borderImageSource() => | |
| 19715 getPropertyValue('border-image-source'); | |
| 19716 | |
| 19717 /** Sets the value of "border-image-source" */ | |
| 19718 void set borderImageSource(String value) { | |
| 19719 setProperty('border-image-source', value, ''); | |
| 19720 } | |
| 19721 | |
| 19722 /** Gets the value of "border-image-width" */ | |
| 19723 String get borderImageWidth() => | |
| 19724 getPropertyValue('border-image-width'); | |
| 19725 | |
| 19726 /** Sets the value of "border-image-width" */ | |
| 19727 void set borderImageWidth(String value) { | |
| 19728 setProperty('border-image-width', value, ''); | |
| 19729 } | |
| 19730 | |
| 19731 /** Gets the value of "border-left" */ | |
| 19732 String get borderLeft() => | |
| 19733 getPropertyValue('border-left'); | |
| 19734 | |
| 19735 /** Sets the value of "border-left" */ | |
| 19736 void set borderLeft(String value) { | |
| 19737 setProperty('border-left', value, ''); | |
| 19738 } | |
| 19739 | |
| 19740 /** Gets the value of "border-left-color" */ | |
| 19741 String get borderLeftColor() => | |
| 19742 getPropertyValue('border-left-color'); | |
| 19743 | |
| 19744 /** Sets the value of "border-left-color" */ | |
| 19745 void set borderLeftColor(String value) { | |
| 19746 setProperty('border-left-color', value, ''); | |
| 19747 } | |
| 19748 | |
| 19749 /** Gets the value of "border-left-style" */ | |
| 19750 String get borderLeftStyle() => | |
| 19751 getPropertyValue('border-left-style'); | |
| 19752 | |
| 19753 /** Sets the value of "border-left-style" */ | |
| 19754 void set borderLeftStyle(String value) { | |
| 19755 setProperty('border-left-style', value, ''); | |
| 19756 } | |
| 19757 | |
| 19758 /** Gets the value of "border-left-width" */ | |
| 19759 String get borderLeftWidth() => | |
| 19760 getPropertyValue('border-left-width'); | |
| 19761 | |
| 19762 /** Sets the value of "border-left-width" */ | |
| 19763 void set borderLeftWidth(String value) { | |
| 19764 setProperty('border-left-width', value, ''); | |
| 19765 } | |
| 19766 | |
| 19767 /** Gets the value of "border-radius" */ | |
| 19768 String get borderRadius() => | |
| 19769 getPropertyValue('border-radius'); | |
| 19770 | |
| 19771 /** Sets the value of "border-radius" */ | |
| 19772 void set borderRadius(String value) { | |
| 19773 setProperty('border-radius', value, ''); | |
| 19774 } | |
| 19775 | |
| 19776 /** Gets the value of "border-right" */ | |
| 19777 String get borderRight() => | |
| 19778 getPropertyValue('border-right'); | |
| 19779 | |
| 19780 /** Sets the value of "border-right" */ | |
| 19781 void set borderRight(String value) { | |
| 19782 setProperty('border-right', value, ''); | |
| 19783 } | |
| 19784 | |
| 19785 /** Gets the value of "border-right-color" */ | |
| 19786 String get borderRightColor() => | |
| 19787 getPropertyValue('border-right-color'); | |
| 19788 | |
| 19789 /** Sets the value of "border-right-color" */ | |
| 19790 void set borderRightColor(String value) { | |
| 19791 setProperty('border-right-color', value, ''); | |
| 19792 } | |
| 19793 | |
| 19794 /** Gets the value of "border-right-style" */ | |
| 19795 String get borderRightStyle() => | |
| 19796 getPropertyValue('border-right-style'); | |
| 19797 | |
| 19798 /** Sets the value of "border-right-style" */ | |
| 19799 void set borderRightStyle(String value) { | |
| 19800 setProperty('border-right-style', value, ''); | |
| 19801 } | |
| 19802 | |
| 19803 /** Gets the value of "border-right-width" */ | |
| 19804 String get borderRightWidth() => | |
| 19805 getPropertyValue('border-right-width'); | |
| 19806 | |
| 19807 /** Sets the value of "border-right-width" */ | |
| 19808 void set borderRightWidth(String value) { | |
| 19809 setProperty('border-right-width', value, ''); | |
| 19810 } | |
| 19811 | |
| 19812 /** Gets the value of "border-spacing" */ | |
| 19813 String get borderSpacing() => | |
| 19814 getPropertyValue('border-spacing'); | |
| 19815 | |
| 19816 /** Sets the value of "border-spacing" */ | |
| 19817 void set borderSpacing(String value) { | |
| 19818 setProperty('border-spacing', value, ''); | |
| 19819 } | |
| 19820 | |
| 19821 /** Gets the value of "border-start" */ | |
| 19822 String get borderStart() => | |
| 19823 getPropertyValue('${_browserPrefix}border-start'); | |
| 19824 | |
| 19825 /** Sets the value of "border-start" */ | |
| 19826 void set borderStart(String value) { | |
| 19827 setProperty('${_browserPrefix}border-start', value, ''); | |
| 19828 } | |
| 19829 | |
| 19830 /** Gets the value of "border-start-color" */ | |
| 19831 String get borderStartColor() => | |
| 19832 getPropertyValue('${_browserPrefix}border-start-color'); | |
| 19833 | |
| 19834 /** Sets the value of "border-start-color" */ | |
| 19835 void set borderStartColor(String value) { | |
| 19836 setProperty('${_browserPrefix}border-start-color', value, ''); | |
| 19837 } | |
| 19838 | |
| 19839 /** Gets the value of "border-start-style" */ | |
| 19840 String get borderStartStyle() => | |
| 19841 getPropertyValue('${_browserPrefix}border-start-style'); | |
| 19842 | |
| 19843 /** Sets the value of "border-start-style" */ | |
| 19844 void set borderStartStyle(String value) { | |
| 19845 setProperty('${_browserPrefix}border-start-style', value, ''); | |
| 19846 } | |
| 19847 | |
| 19848 /** Gets the value of "border-start-width" */ | |
| 19849 String get borderStartWidth() => | |
| 19850 getPropertyValue('${_browserPrefix}border-start-width'); | |
| 19851 | |
| 19852 /** Sets the value of "border-start-width" */ | |
| 19853 void set borderStartWidth(String value) { | |
| 19854 setProperty('${_browserPrefix}border-start-width', value, ''); | |
| 19855 } | |
| 19856 | |
| 19857 /** Gets the value of "border-style" */ | |
| 19858 String get borderStyle() => | |
| 19859 getPropertyValue('border-style'); | |
| 19860 | |
| 19861 /** Sets the value of "border-style" */ | |
| 19862 void set borderStyle(String value) { | |
| 19863 setProperty('border-style', value, ''); | |
| 19864 } | |
| 19865 | |
| 19866 /** Gets the value of "border-top" */ | |
| 19867 String get borderTop() => | |
| 19868 getPropertyValue('border-top'); | |
| 19869 | |
| 19870 /** Sets the value of "border-top" */ | |
| 19871 void set borderTop(String value) { | |
| 19872 setProperty('border-top', value, ''); | |
| 19873 } | |
| 19874 | |
| 19875 /** Gets the value of "border-top-color" */ | |
| 19876 String get borderTopColor() => | |
| 19877 getPropertyValue('border-top-color'); | |
| 19878 | |
| 19879 /** Sets the value of "border-top-color" */ | |
| 19880 void set borderTopColor(String value) { | |
| 19881 setProperty('border-top-color', value, ''); | |
| 19882 } | |
| 19883 | |
| 19884 /** Gets the value of "border-top-left-radius" */ | |
| 19885 String get borderTopLeftRadius() => | |
| 19886 getPropertyValue('border-top-left-radius'); | |
| 19887 | |
| 19888 /** Sets the value of "border-top-left-radius" */ | |
| 19889 void set borderTopLeftRadius(String value) { | |
| 19890 setProperty('border-top-left-radius', value, ''); | |
| 19891 } | |
| 19892 | |
| 19893 /** Gets the value of "border-top-right-radius" */ | |
| 19894 String get borderTopRightRadius() => | |
| 19895 getPropertyValue('border-top-right-radius'); | |
| 19896 | |
| 19897 /** Sets the value of "border-top-right-radius" */ | |
| 19898 void set borderTopRightRadius(String value) { | |
| 19899 setProperty('border-top-right-radius', value, ''); | |
| 19900 } | |
| 19901 | |
| 19902 /** Gets the value of "border-top-style" */ | |
| 19903 String get borderTopStyle() => | |
| 19904 getPropertyValue('border-top-style'); | |
| 19905 | |
| 19906 /** Sets the value of "border-top-style" */ | |
| 19907 void set borderTopStyle(String value) { | |
| 19908 setProperty('border-top-style', value, ''); | |
| 19909 } | |
| 19910 | |
| 19911 /** Gets the value of "border-top-width" */ | |
| 19912 String get borderTopWidth() => | |
| 19913 getPropertyValue('border-top-width'); | |
| 19914 | |
| 19915 /** Sets the value of "border-top-width" */ | |
| 19916 void set borderTopWidth(String value) { | |
| 19917 setProperty('border-top-width', value, ''); | |
| 19918 } | |
| 19919 | |
| 19920 /** Gets the value of "border-vertical-spacing" */ | |
| 19921 String get borderVerticalSpacing() => | |
| 19922 getPropertyValue('${_browserPrefix}border-vertical-spacing'); | |
| 19923 | |
| 19924 /** Sets the value of "border-vertical-spacing" */ | |
| 19925 void set borderVerticalSpacing(String value) { | |
| 19926 setProperty('${_browserPrefix}border-vertical-spacing', value, ''); | |
| 19927 } | |
| 19928 | |
| 19929 /** Gets the value of "border-width" */ | |
| 19930 String get borderWidth() => | |
| 19931 getPropertyValue('border-width'); | |
| 19932 | |
| 19933 /** Sets the value of "border-width" */ | |
| 19934 void set borderWidth(String value) { | |
| 19935 setProperty('border-width', value, ''); | |
| 19936 } | |
| 19937 | |
| 19938 /** Gets the value of "bottom" */ | |
| 19939 String get bottom() => | |
| 19940 getPropertyValue('bottom'); | |
| 19941 | |
| 19942 /** Sets the value of "bottom" */ | |
| 19943 void set bottom(String value) { | |
| 19944 setProperty('bottom', value, ''); | |
| 19945 } | |
| 19946 | |
| 19947 /** Gets the value of "box-align" */ | |
| 19948 String get boxAlign() => | |
| 19949 getPropertyValue('${_browserPrefix}box-align'); | |
| 19950 | |
| 19951 /** Sets the value of "box-align" */ | |
| 19952 void set boxAlign(String value) { | |
| 19953 setProperty('${_browserPrefix}box-align', value, ''); | |
| 19954 } | |
| 19955 | |
| 19956 /** Gets the value of "box-direction" */ | |
| 19957 String get boxDirection() => | |
| 19958 getPropertyValue('${_browserPrefix}box-direction'); | |
| 19959 | |
| 19960 /** Sets the value of "box-direction" */ | |
| 19961 void set boxDirection(String value) { | |
| 19962 setProperty('${_browserPrefix}box-direction', value, ''); | |
| 19963 } | |
| 19964 | |
| 19965 /** Gets the value of "box-flex" */ | |
| 19966 String get boxFlex() => | |
| 19967 getPropertyValue('${_browserPrefix}box-flex'); | |
| 19968 | |
| 19969 /** Sets the value of "box-flex" */ | |
| 19970 void set boxFlex(String value) { | |
| 19971 setProperty('${_browserPrefix}box-flex', value, ''); | |
| 19972 } | |
| 19973 | |
| 19974 /** Gets the value of "box-flex-group" */ | |
| 19975 String get boxFlexGroup() => | |
| 19976 getPropertyValue('${_browserPrefix}box-flex-group'); | |
| 19977 | |
| 19978 /** Sets the value of "box-flex-group" */ | |
| 19979 void set boxFlexGroup(String value) { | |
| 19980 setProperty('${_browserPrefix}box-flex-group', value, ''); | |
| 19981 } | |
| 19982 | |
| 19983 /** Gets the value of "box-lines" */ | |
| 19984 String get boxLines() => | |
| 19985 getPropertyValue('${_browserPrefix}box-lines'); | |
| 19986 | |
| 19987 /** Sets the value of "box-lines" */ | |
| 19988 void set boxLines(String value) { | |
| 19989 setProperty('${_browserPrefix}box-lines', value, ''); | |
| 19990 } | |
| 19991 | |
| 19992 /** Gets the value of "box-ordinal-group" */ | |
| 19993 String get boxOrdinalGroup() => | |
| 19994 getPropertyValue('${_browserPrefix}box-ordinal-group'); | |
| 19995 | |
| 19996 /** Sets the value of "box-ordinal-group" */ | |
| 19997 void set boxOrdinalGroup(String value) { | |
| 19998 setProperty('${_browserPrefix}box-ordinal-group', value, ''); | |
| 19999 } | |
| 20000 | |
| 20001 /** Gets the value of "box-orient" */ | |
| 20002 String get boxOrient() => | |
| 20003 getPropertyValue('${_browserPrefix}box-orient'); | |
| 20004 | |
| 20005 /** Sets the value of "box-orient" */ | |
| 20006 void set boxOrient(String value) { | |
| 20007 setProperty('${_browserPrefix}box-orient', value, ''); | |
| 20008 } | |
| 20009 | |
| 20010 /** Gets the value of "box-pack" */ | |
| 20011 String get boxPack() => | |
| 20012 getPropertyValue('${_browserPrefix}box-pack'); | |
| 20013 | |
| 20014 /** Sets the value of "box-pack" */ | |
| 20015 void set boxPack(String value) { | |
| 20016 setProperty('${_browserPrefix}box-pack', value, ''); | |
| 20017 } | |
| 20018 | |
| 20019 /** Gets the value of "box-reflect" */ | |
| 20020 String get boxReflect() => | |
| 20021 getPropertyValue('${_browserPrefix}box-reflect'); | |
| 20022 | |
| 20023 /** Sets the value of "box-reflect" */ | |
| 20024 void set boxReflect(String value) { | |
| 20025 setProperty('${_browserPrefix}box-reflect', value, ''); | |
| 20026 } | |
| 20027 | |
| 20028 /** Gets the value of "box-shadow" */ | |
| 20029 String get boxShadow() => | |
| 20030 getPropertyValue('box-shadow'); | |
| 20031 | |
| 20032 /** Sets the value of "box-shadow" */ | |
| 20033 void set boxShadow(String value) { | |
| 20034 setProperty('box-shadow', value, ''); | |
| 20035 } | |
| 20036 | |
| 20037 /** Gets the value of "box-sizing" */ | |
| 20038 String get boxSizing() => | |
| 20039 getPropertyValue('box-sizing'); | |
| 20040 | |
| 20041 /** Sets the value of "box-sizing" */ | |
| 20042 void set boxSizing(String value) { | |
| 20043 setProperty('box-sizing', value, ''); | |
| 20044 } | |
| 20045 | |
| 20046 /** Gets the value of "caption-side" */ | |
| 20047 String get captionSide() => | |
| 20048 getPropertyValue('caption-side'); | |
| 20049 | |
| 20050 /** Sets the value of "caption-side" */ | |
| 20051 void set captionSide(String value) { | |
| 20052 setProperty('caption-side', value, ''); | |
| 20053 } | |
| 20054 | |
| 20055 /** Gets the value of "clear" */ | |
| 20056 String get clear() => | |
| 20057 getPropertyValue('clear'); | |
| 20058 | |
| 20059 /** Sets the value of "clear" */ | |
| 20060 void set clear(String value) { | |
| 20061 setProperty('clear', value, ''); | |
| 20062 } | |
| 20063 | |
| 20064 /** Gets the value of "clip" */ | |
| 20065 String get clip() => | |
| 20066 getPropertyValue('clip'); | |
| 20067 | |
| 20068 /** Sets the value of "clip" */ | |
| 20069 void set clip(String value) { | |
| 20070 setProperty('clip', value, ''); | |
| 20071 } | |
| 20072 | |
| 20073 /** Gets the value of "color" */ | |
| 20074 String get color() => | |
| 20075 getPropertyValue('color'); | |
| 20076 | |
| 20077 /** Sets the value of "color" */ | |
| 20078 void set color(String value) { | |
| 20079 setProperty('color', value, ''); | |
| 20080 } | |
| 20081 | |
| 20082 /** Gets the value of "color-correction" */ | |
| 20083 String get colorCorrection() => | |
| 20084 getPropertyValue('${_browserPrefix}color-correction'); | |
| 20085 | |
| 20086 /** Sets the value of "color-correction" */ | |
| 20087 void set colorCorrection(String value) { | |
| 20088 setProperty('${_browserPrefix}color-correction', value, ''); | |
| 20089 } | |
| 20090 | |
| 20091 /** Gets the value of "column-break-after" */ | |
| 20092 String get columnBreakAfter() => | |
| 20093 getPropertyValue('${_browserPrefix}column-break-after'); | |
| 20094 | |
| 20095 /** Sets the value of "column-break-after" */ | |
| 20096 void set columnBreakAfter(String value) { | |
| 20097 setProperty('${_browserPrefix}column-break-after', value, ''); | |
| 20098 } | |
| 20099 | |
| 20100 /** Gets the value of "column-break-before" */ | |
| 20101 String get columnBreakBefore() => | |
| 20102 getPropertyValue('${_browserPrefix}column-break-before'); | |
| 20103 | |
| 20104 /** Sets the value of "column-break-before" */ | |
| 20105 void set columnBreakBefore(String value) { | |
| 20106 setProperty('${_browserPrefix}column-break-before', value, ''); | |
| 20107 } | |
| 20108 | |
| 20109 /** Gets the value of "column-break-inside" */ | |
| 20110 String get columnBreakInside() => | |
| 20111 getPropertyValue('${_browserPrefix}column-break-inside'); | |
| 20112 | |
| 20113 /** Sets the value of "column-break-inside" */ | |
| 20114 void set columnBreakInside(String value) { | |
| 20115 setProperty('${_browserPrefix}column-break-inside', value, ''); | |
| 20116 } | |
| 20117 | |
| 20118 /** Gets the value of "column-count" */ | |
| 20119 String get columnCount() => | |
| 20120 getPropertyValue('${_browserPrefix}column-count'); | |
| 20121 | |
| 20122 /** Sets the value of "column-count" */ | |
| 20123 void set columnCount(String value) { | |
| 20124 setProperty('${_browserPrefix}column-count', value, ''); | |
| 20125 } | |
| 20126 | |
| 20127 /** Gets the value of "column-gap" */ | |
| 20128 String get columnGap() => | |
| 20129 getPropertyValue('${_browserPrefix}column-gap'); | |
| 20130 | |
| 20131 /** Sets the value of "column-gap" */ | |
| 20132 void set columnGap(String value) { | |
| 20133 setProperty('${_browserPrefix}column-gap', value, ''); | |
| 20134 } | |
| 20135 | |
| 20136 /** Gets the value of "column-rule" */ | |
| 20137 String get columnRule() => | |
| 20138 getPropertyValue('${_browserPrefix}column-rule'); | |
| 20139 | |
| 20140 /** Sets the value of "column-rule" */ | |
| 20141 void set columnRule(String value) { | |
| 20142 setProperty('${_browserPrefix}column-rule', value, ''); | |
| 20143 } | |
| 20144 | |
| 20145 /** Gets the value of "column-rule-color" */ | |
| 20146 String get columnRuleColor() => | |
| 20147 getPropertyValue('${_browserPrefix}column-rule-color'); | |
| 20148 | |
| 20149 /** Sets the value of "column-rule-color" */ | |
| 20150 void set columnRuleColor(String value) { | |
| 20151 setProperty('${_browserPrefix}column-rule-color', value, ''); | |
| 20152 } | |
| 20153 | |
| 20154 /** Gets the value of "column-rule-style" */ | |
| 20155 String get columnRuleStyle() => | |
| 20156 getPropertyValue('${_browserPrefix}column-rule-style'); | |
| 20157 | |
| 20158 /** Sets the value of "column-rule-style" */ | |
| 20159 void set columnRuleStyle(String value) { | |
| 20160 setProperty('${_browserPrefix}column-rule-style', value, ''); | |
| 20161 } | |
| 20162 | |
| 20163 /** Gets the value of "column-rule-width" */ | |
| 20164 String get columnRuleWidth() => | |
| 20165 getPropertyValue('${_browserPrefix}column-rule-width'); | |
| 20166 | |
| 20167 /** Sets the value of "column-rule-width" */ | |
| 20168 void set columnRuleWidth(String value) { | |
| 20169 setProperty('${_browserPrefix}column-rule-width', value, ''); | |
| 20170 } | |
| 20171 | |
| 20172 /** Gets the value of "column-span" */ | |
| 20173 String get columnSpan() => | |
| 20174 getPropertyValue('${_browserPrefix}column-span'); | |
| 20175 | |
| 20176 /** Sets the value of "column-span" */ | |
| 20177 void set columnSpan(String value) { | |
| 20178 setProperty('${_browserPrefix}column-span', value, ''); | |
| 20179 } | |
| 20180 | |
| 20181 /** Gets the value of "column-width" */ | |
| 20182 String get columnWidth() => | |
| 20183 getPropertyValue('${_browserPrefix}column-width'); | |
| 20184 | |
| 20185 /** Sets the value of "column-width" */ | |
| 20186 void set columnWidth(String value) { | |
| 20187 setProperty('${_browserPrefix}column-width', value, ''); | |
| 20188 } | |
| 20189 | |
| 20190 /** Gets the value of "columns" */ | |
| 20191 String get columns() => | |
| 20192 getPropertyValue('${_browserPrefix}columns'); | |
| 20193 | |
| 20194 /** Sets the value of "columns" */ | |
| 20195 void set columns(String value) { | |
| 20196 setProperty('${_browserPrefix}columns', value, ''); | |
| 20197 } | |
| 20198 | |
| 20199 /** Gets the value of "content" */ | |
| 20200 String get content() => | |
| 20201 getPropertyValue('content'); | |
| 20202 | |
| 20203 /** Sets the value of "content" */ | |
| 20204 void set content(String value) { | |
| 20205 setProperty('content', value, ''); | |
| 20206 } | |
| 20207 | |
| 20208 /** Gets the value of "counter-increment" */ | |
| 20209 String get counterIncrement() => | |
| 20210 getPropertyValue('counter-increment'); | |
| 20211 | |
| 20212 /** Sets the value of "counter-increment" */ | |
| 20213 void set counterIncrement(String value) { | |
| 20214 setProperty('counter-increment', value, ''); | |
| 20215 } | |
| 20216 | |
| 20217 /** Gets the value of "counter-reset" */ | |
| 20218 String get counterReset() => | |
| 20219 getPropertyValue('counter-reset'); | |
| 20220 | |
| 20221 /** Sets the value of "counter-reset" */ | |
| 20222 void set counterReset(String value) { | |
| 20223 setProperty('counter-reset', value, ''); | |
| 20224 } | |
| 20225 | |
| 20226 /** Gets the value of "cursor" */ | |
| 20227 String get cursor() => | |
| 20228 getPropertyValue('cursor'); | |
| 20229 | |
| 20230 /** Sets the value of "cursor" */ | |
| 20231 void set cursor(String value) { | |
| 20232 setProperty('cursor', value, ''); | |
| 20233 } | |
| 20234 | |
| 20235 /** Gets the value of "direction" */ | |
| 20236 String get direction() => | |
| 20237 getPropertyValue('direction'); | |
| 20238 | |
| 20239 /** Sets the value of "direction" */ | |
| 20240 void set direction(String value) { | |
| 20241 setProperty('direction', value, ''); | |
| 20242 } | |
| 20243 | |
| 20244 /** Gets the value of "display" */ | |
| 20245 String get display() => | |
| 20246 getPropertyValue('display'); | |
| 20247 | |
| 20248 /** Sets the value of "display" */ | |
| 20249 void set display(String value) { | |
| 20250 setProperty('display', value, ''); | |
| 20251 } | |
| 20252 | |
| 20253 /** Gets the value of "empty-cells" */ | |
| 20254 String get emptyCells() => | |
| 20255 getPropertyValue('empty-cells'); | |
| 20256 | |
| 20257 /** Sets the value of "empty-cells" */ | |
| 20258 void set emptyCells(String value) { | |
| 20259 setProperty('empty-cells', value, ''); | |
| 20260 } | |
| 20261 | |
| 20262 /** Gets the value of "filter" */ | |
| 20263 String get filter() => | |
| 20264 getPropertyValue('${_browserPrefix}filter'); | |
| 20265 | |
| 20266 /** Sets the value of "filter" */ | |
| 20267 void set filter(String value) { | |
| 20268 setProperty('${_browserPrefix}filter', value, ''); | |
| 20269 } | |
| 20270 | |
| 20271 /** Gets the value of "flex-align" */ | |
| 20272 String get flexAlign() => | |
| 20273 getPropertyValue('${_browserPrefix}flex-align'); | |
| 20274 | |
| 20275 /** Sets the value of "flex-align" */ | |
| 20276 void set flexAlign(String value) { | |
| 20277 setProperty('${_browserPrefix}flex-align', value, ''); | |
| 20278 } | |
| 20279 | |
| 20280 /** Gets the value of "flex-flow" */ | |
| 20281 String get flexFlow() => | |
| 20282 getPropertyValue('${_browserPrefix}flex-flow'); | |
| 20283 | |
| 20284 /** Sets the value of "flex-flow" */ | |
| 20285 void set flexFlow(String value) { | |
| 20286 setProperty('${_browserPrefix}flex-flow', value, ''); | |
| 20287 } | |
| 20288 | |
| 20289 /** Gets the value of "flex-order" */ | |
| 20290 String get flexOrder() => | |
| 20291 getPropertyValue('${_browserPrefix}flex-order'); | |
| 20292 | |
| 20293 /** Sets the value of "flex-order" */ | |
| 20294 void set flexOrder(String value) { | |
| 20295 setProperty('${_browserPrefix}flex-order', value, ''); | |
| 20296 } | |
| 20297 | |
| 20298 /** Gets the value of "flex-pack" */ | |
| 20299 String get flexPack() => | |
| 20300 getPropertyValue('${_browserPrefix}flex-pack'); | |
| 20301 | |
| 20302 /** Sets the value of "flex-pack" */ | |
| 20303 void set flexPack(String value) { | |
| 20304 setProperty('${_browserPrefix}flex-pack', value, ''); | |
| 20305 } | |
| 20306 | |
| 20307 /** Gets the value of "float" */ | |
| 20308 String get float() => | |
| 20309 getPropertyValue('float'); | |
| 20310 | |
| 20311 /** Sets the value of "float" */ | |
| 20312 void set float(String value) { | |
| 20313 setProperty('float', value, ''); | |
| 20314 } | |
| 20315 | |
| 20316 /** Gets the value of "flow-from" */ | |
| 20317 String get flowFrom() => | |
| 20318 getPropertyValue('${_browserPrefix}flow-from'); | |
| 20319 | |
| 20320 /** Sets the value of "flow-from" */ | |
| 20321 void set flowFrom(String value) { | |
| 20322 setProperty('${_browserPrefix}flow-from', value, ''); | |
| 20323 } | |
| 20324 | |
| 20325 /** Gets the value of "flow-into" */ | |
| 20326 String get flowInto() => | |
| 20327 getPropertyValue('${_browserPrefix}flow-into'); | |
| 20328 | |
| 20329 /** Sets the value of "flow-into" */ | |
| 20330 void set flowInto(String value) { | |
| 20331 setProperty('${_browserPrefix}flow-into', value, ''); | |
| 20332 } | |
| 20333 | |
| 20334 /** Gets the value of "font" */ | |
| 20335 String get font() => | |
| 20336 getPropertyValue('font'); | |
| 20337 | |
| 20338 /** Sets the value of "font" */ | |
| 20339 void set font(String value) { | |
| 20340 setProperty('font', value, ''); | |
| 20341 } | |
| 20342 | |
| 20343 /** Gets the value of "font-family" */ | |
| 20344 String get fontFamily() => | |
| 20345 getPropertyValue('font-family'); | |
| 20346 | |
| 20347 /** Sets the value of "font-family" */ | |
| 20348 void set fontFamily(String value) { | |
| 20349 setProperty('font-family', value, ''); | |
| 20350 } | |
| 20351 | |
| 20352 /** Gets the value of "font-feature-settings" */ | |
| 20353 String get fontFeatureSettings() => | |
| 20354 getPropertyValue('${_browserPrefix}font-feature-settings'); | |
| 20355 | |
| 20356 /** Sets the value of "font-feature-settings" */ | |
| 20357 void set fontFeatureSettings(String value) { | |
| 20358 setProperty('${_browserPrefix}font-feature-settings', value, ''); | |
| 20359 } | |
| 20360 | |
| 20361 /** Gets the value of "font-size" */ | |
| 20362 String get fontSize() => | |
| 20363 getPropertyValue('font-size'); | |
| 20364 | |
| 20365 /** Sets the value of "font-size" */ | |
| 20366 void set fontSize(String value) { | |
| 20367 setProperty('font-size', value, ''); | |
| 20368 } | |
| 20369 | |
| 20370 /** Gets the value of "font-size-delta" */ | |
| 20371 String get fontSizeDelta() => | |
| 20372 getPropertyValue('${_browserPrefix}font-size-delta'); | |
| 20373 | |
| 20374 /** Sets the value of "font-size-delta" */ | |
| 20375 void set fontSizeDelta(String value) { | |
| 20376 setProperty('${_browserPrefix}font-size-delta', value, ''); | |
| 20377 } | |
| 20378 | |
| 20379 /** Gets the value of "font-smoothing" */ | |
| 20380 String get fontSmoothing() => | |
| 20381 getPropertyValue('${_browserPrefix}font-smoothing'); | |
| 20382 | |
| 20383 /** Sets the value of "font-smoothing" */ | |
| 20384 void set fontSmoothing(String value) { | |
| 20385 setProperty('${_browserPrefix}font-smoothing', value, ''); | |
| 20386 } | |
| 20387 | |
| 20388 /** Gets the value of "font-stretch" */ | |
| 20389 String get fontStretch() => | |
| 20390 getPropertyValue('font-stretch'); | |
| 20391 | |
| 20392 /** Sets the value of "font-stretch" */ | |
| 20393 void set fontStretch(String value) { | |
| 20394 setProperty('font-stretch', value, ''); | |
| 20395 } | |
| 20396 | |
| 20397 /** Gets the value of "font-style" */ | |
| 20398 String get fontStyle() => | |
| 20399 getPropertyValue('font-style'); | |
| 20400 | |
| 20401 /** Sets the value of "font-style" */ | |
| 20402 void set fontStyle(String value) { | |
| 20403 setProperty('font-style', value, ''); | |
| 20404 } | |
| 20405 | |
| 20406 /** Gets the value of "font-variant" */ | |
| 20407 String get fontVariant() => | |
| 20408 getPropertyValue('font-variant'); | |
| 20409 | |
| 20410 /** Sets the value of "font-variant" */ | |
| 20411 void set fontVariant(String value) { | |
| 20412 setProperty('font-variant', value, ''); | |
| 20413 } | |
| 20414 | |
| 20415 /** Gets the value of "font-weight" */ | |
| 20416 String get fontWeight() => | |
| 20417 getPropertyValue('font-weight'); | |
| 20418 | |
| 20419 /** Sets the value of "font-weight" */ | |
| 20420 void set fontWeight(String value) { | |
| 20421 setProperty('font-weight', value, ''); | |
| 20422 } | |
| 20423 | |
| 20424 /** Gets the value of "height" */ | |
| 20425 String get height() => | |
| 20426 getPropertyValue('height'); | |
| 20427 | |
| 20428 /** Sets the value of "height" */ | |
| 20429 void set height(String value) { | |
| 20430 setProperty('height', value, ''); | |
| 20431 } | |
| 20432 | |
| 20433 /** Gets the value of "highlight" */ | |
| 20434 String get highlight() => | |
| 20435 getPropertyValue('${_browserPrefix}highlight'); | |
| 20436 | |
| 20437 /** Sets the value of "highlight" */ | |
| 20438 void set highlight(String value) { | |
| 20439 setProperty('${_browserPrefix}highlight', value, ''); | |
| 20440 } | |
| 20441 | |
| 20442 /** Gets the value of "hyphenate-character" */ | |
| 20443 String get hyphenateCharacter() => | |
| 20444 getPropertyValue('${_browserPrefix}hyphenate-character'); | |
| 20445 | |
| 20446 /** Sets the value of "hyphenate-character" */ | |
| 20447 void set hyphenateCharacter(String value) { | |
| 20448 setProperty('${_browserPrefix}hyphenate-character', value, ''); | |
| 20449 } | |
| 20450 | |
| 20451 /** Gets the value of "hyphenate-limit-after" */ | |
| 20452 String get hyphenateLimitAfter() => | |
| 20453 getPropertyValue('${_browserPrefix}hyphenate-limit-after'); | |
| 20454 | |
| 20455 /** Sets the value of "hyphenate-limit-after" */ | |
| 20456 void set hyphenateLimitAfter(String value) { | |
| 20457 setProperty('${_browserPrefix}hyphenate-limit-after', value, ''); | |
| 20458 } | |
| 20459 | |
| 20460 /** Gets the value of "hyphenate-limit-before" */ | |
| 20461 String get hyphenateLimitBefore() => | |
| 20462 getPropertyValue('${_browserPrefix}hyphenate-limit-before'); | |
| 20463 | |
| 20464 /** Sets the value of "hyphenate-limit-before" */ | |
| 20465 void set hyphenateLimitBefore(String value) { | |
| 20466 setProperty('${_browserPrefix}hyphenate-limit-before', value, ''); | |
| 20467 } | |
| 20468 | |
| 20469 /** Gets the value of "hyphenate-limit-lines" */ | |
| 20470 String get hyphenateLimitLines() => | |
| 20471 getPropertyValue('${_browserPrefix}hyphenate-limit-lines'); | |
| 20472 | |
| 20473 /** Sets the value of "hyphenate-limit-lines" */ | |
| 20474 void set hyphenateLimitLines(String value) { | |
| 20475 setProperty('${_browserPrefix}hyphenate-limit-lines', value, ''); | |
| 20476 } | |
| 20477 | |
| 20478 /** Gets the value of "hyphens" */ | |
| 20479 String get hyphens() => | |
| 20480 getPropertyValue('${_browserPrefix}hyphens'); | |
| 20481 | |
| 20482 /** Sets the value of "hyphens" */ | |
| 20483 void set hyphens(String value) { | |
| 20484 setProperty('${_browserPrefix}hyphens', value, ''); | |
| 20485 } | |
| 20486 | |
| 20487 /** Gets the value of "image-rendering" */ | |
| 20488 String get imageRendering() => | |
| 20489 getPropertyValue('image-rendering'); | |
| 20490 | |
| 20491 /** Sets the value of "image-rendering" */ | |
| 20492 void set imageRendering(String value) { | |
| 20493 setProperty('image-rendering', value, ''); | |
| 20494 } | |
| 20495 | |
| 20496 /** Gets the value of "left" */ | |
| 20497 String get left() => | |
| 20498 getPropertyValue('left'); | |
| 20499 | |
| 20500 /** Sets the value of "left" */ | |
| 20501 void set left(String value) { | |
| 20502 setProperty('left', value, ''); | |
| 20503 } | |
| 20504 | |
| 20505 /** Gets the value of "letter-spacing" */ | |
| 20506 String get letterSpacing() => | |
| 20507 getPropertyValue('letter-spacing'); | |
| 20508 | |
| 20509 /** Sets the value of "letter-spacing" */ | |
| 20510 void set letterSpacing(String value) { | |
| 20511 setProperty('letter-spacing', value, ''); | |
| 20512 } | |
| 20513 | |
| 20514 /** Gets the value of "line-box-contain" */ | |
| 20515 String get lineBoxContain() => | |
| 20516 getPropertyValue('${_browserPrefix}line-box-contain'); | |
| 20517 | |
| 20518 /** Sets the value of "line-box-contain" */ | |
| 20519 void set lineBoxContain(String value) { | |
| 20520 setProperty('${_browserPrefix}line-box-contain', value, ''); | |
| 20521 } | |
| 20522 | |
| 20523 /** Gets the value of "line-break" */ | |
| 20524 String get lineBreak() => | |
| 20525 getPropertyValue('${_browserPrefix}line-break'); | |
| 20526 | |
| 20527 /** Sets the value of "line-break" */ | |
| 20528 void set lineBreak(String value) { | |
| 20529 setProperty('${_browserPrefix}line-break', value, ''); | |
| 20530 } | |
| 20531 | |
| 20532 /** Gets the value of "line-clamp" */ | |
| 20533 String get lineClamp() => | |
| 20534 getPropertyValue('${_browserPrefix}line-clamp'); | |
| 20535 | |
| 20536 /** Sets the value of "line-clamp" */ | |
| 20537 void set lineClamp(String value) { | |
| 20538 setProperty('${_browserPrefix}line-clamp', value, ''); | |
| 20539 } | |
| 20540 | |
| 20541 /** Gets the value of "line-height" */ | |
| 20542 String get lineHeight() => | |
| 20543 getPropertyValue('line-height'); | |
| 20544 | |
| 20545 /** Sets the value of "line-height" */ | |
| 20546 void set lineHeight(String value) { | |
| 20547 setProperty('line-height', value, ''); | |
| 20548 } | |
| 20549 | |
| 20550 /** Gets the value of "list-style" */ | |
| 20551 String get listStyle() => | |
| 20552 getPropertyValue('list-style'); | |
| 20553 | |
| 20554 /** Sets the value of "list-style" */ | |
| 20555 void set listStyle(String value) { | |
| 20556 setProperty('list-style', value, ''); | |
| 20557 } | |
| 20558 | |
| 20559 /** Gets the value of "list-style-image" */ | |
| 20560 String get listStyleImage() => | |
| 20561 getPropertyValue('list-style-image'); | |
| 20562 | |
| 20563 /** Sets the value of "list-style-image" */ | |
| 20564 void set listStyleImage(String value) { | |
| 20565 setProperty('list-style-image', value, ''); | |
| 20566 } | |
| 20567 | |
| 20568 /** Gets the value of "list-style-position" */ | |
| 20569 String get listStylePosition() => | |
| 20570 getPropertyValue('list-style-position'); | |
| 20571 | |
| 20572 /** Sets the value of "list-style-position" */ | |
| 20573 void set listStylePosition(String value) { | |
| 20574 setProperty('list-style-position', value, ''); | |
| 20575 } | |
| 20576 | |
| 20577 /** Gets the value of "list-style-type" */ | |
| 20578 String get listStyleType() => | |
| 20579 getPropertyValue('list-style-type'); | |
| 20580 | |
| 20581 /** Sets the value of "list-style-type" */ | |
| 20582 void set listStyleType(String value) { | |
| 20583 setProperty('list-style-type', value, ''); | |
| 20584 } | |
| 20585 | |
| 20586 /** Gets the value of "locale" */ | |
| 20587 String get locale() => | |
| 20588 getPropertyValue('${_browserPrefix}locale'); | |
| 20589 | |
| 20590 /** Sets the value of "locale" */ | |
| 20591 void set locale(String value) { | |
| 20592 setProperty('${_browserPrefix}locale', value, ''); | |
| 20593 } | |
| 20594 | |
| 20595 /** Gets the value of "logical-height" */ | |
| 20596 String get logicalHeight() => | |
| 20597 getPropertyValue('${_browserPrefix}logical-height'); | |
| 20598 | |
| 20599 /** Sets the value of "logical-height" */ | |
| 20600 void set logicalHeight(String value) { | |
| 20601 setProperty('${_browserPrefix}logical-height', value, ''); | |
| 20602 } | |
| 20603 | |
| 20604 /** Gets the value of "logical-width" */ | |
| 20605 String get logicalWidth() => | |
| 20606 getPropertyValue('${_browserPrefix}logical-width'); | |
| 20607 | |
| 20608 /** Sets the value of "logical-width" */ | |
| 20609 void set logicalWidth(String value) { | |
| 20610 setProperty('${_browserPrefix}logical-width', value, ''); | |
| 20611 } | |
| 20612 | |
| 20613 /** Gets the value of "margin" */ | |
| 20614 String get margin() => | |
| 20615 getPropertyValue('margin'); | |
| 20616 | |
| 20617 /** Sets the value of "margin" */ | |
| 20618 void set margin(String value) { | |
| 20619 setProperty('margin', value, ''); | |
| 20620 } | |
| 20621 | |
| 20622 /** Gets the value of "margin-after" */ | |
| 20623 String get marginAfter() => | |
| 20624 getPropertyValue('${_browserPrefix}margin-after'); | |
| 20625 | |
| 20626 /** Sets the value of "margin-after" */ | |
| 20627 void set marginAfter(String value) { | |
| 20628 setProperty('${_browserPrefix}margin-after', value, ''); | |
| 20629 } | |
| 20630 | |
| 20631 /** Gets the value of "margin-after-collapse" */ | |
| 20632 String get marginAfterCollapse() => | |
| 20633 getPropertyValue('${_browserPrefix}margin-after-collapse'); | |
| 20634 | |
| 20635 /** Sets the value of "margin-after-collapse" */ | |
| 20636 void set marginAfterCollapse(String value) { | |
| 20637 setProperty('${_browserPrefix}margin-after-collapse', value, ''); | |
| 20638 } | |
| 20639 | |
| 20640 /** Gets the value of "margin-before" */ | |
| 20641 String get marginBefore() => | |
| 20642 getPropertyValue('${_browserPrefix}margin-before'); | |
| 20643 | |
| 20644 /** Sets the value of "margin-before" */ | |
| 20645 void set marginBefore(String value) { | |
| 20646 setProperty('${_browserPrefix}margin-before', value, ''); | |
| 20647 } | |
| 20648 | |
| 20649 /** Gets the value of "margin-before-collapse" */ | |
| 20650 String get marginBeforeCollapse() => | |
| 20651 getPropertyValue('${_browserPrefix}margin-before-collapse'); | |
| 20652 | |
| 20653 /** Sets the value of "margin-before-collapse" */ | |
| 20654 void set marginBeforeCollapse(String value) { | |
| 20655 setProperty('${_browserPrefix}margin-before-collapse', value, ''); | |
| 20656 } | |
| 20657 | |
| 20658 /** Gets the value of "margin-bottom" */ | |
| 20659 String get marginBottom() => | |
| 20660 getPropertyValue('margin-bottom'); | |
| 20661 | |
| 20662 /** Sets the value of "margin-bottom" */ | |
| 20663 void set marginBottom(String value) { | |
| 20664 setProperty('margin-bottom', value, ''); | |
| 20665 } | |
| 20666 | |
| 20667 /** Gets the value of "margin-bottom-collapse" */ | |
| 20668 String get marginBottomCollapse() => | |
| 20669 getPropertyValue('${_browserPrefix}margin-bottom-collapse'); | |
| 20670 | |
| 20671 /** Sets the value of "margin-bottom-collapse" */ | |
| 20672 void set marginBottomCollapse(String value) { | |
| 20673 setProperty('${_browserPrefix}margin-bottom-collapse', value, ''); | |
| 20674 } | |
| 20675 | |
| 20676 /** Gets the value of "margin-collapse" */ | |
| 20677 String get marginCollapse() => | |
| 20678 getPropertyValue('${_browserPrefix}margin-collapse'); | |
| 20679 | |
| 20680 /** Sets the value of "margin-collapse" */ | |
| 20681 void set marginCollapse(String value) { | |
| 20682 setProperty('${_browserPrefix}margin-collapse', value, ''); | |
| 20683 } | |
| 20684 | |
| 20685 /** Gets the value of "margin-end" */ | |
| 20686 String get marginEnd() => | |
| 20687 getPropertyValue('${_browserPrefix}margin-end'); | |
| 20688 | |
| 20689 /** Sets the value of "margin-end" */ | |
| 20690 void set marginEnd(String value) { | |
| 20691 setProperty('${_browserPrefix}margin-end', value, ''); | |
| 20692 } | |
| 20693 | |
| 20694 /** Gets the value of "margin-left" */ | |
| 20695 String get marginLeft() => | |
| 20696 getPropertyValue('margin-left'); | |
| 20697 | |
| 20698 /** Sets the value of "margin-left" */ | |
| 20699 void set marginLeft(String value) { | |
| 20700 setProperty('margin-left', value, ''); | |
| 20701 } | |
| 20702 | |
| 20703 /** Gets the value of "margin-right" */ | |
| 20704 String get marginRight() => | |
| 20705 getPropertyValue('margin-right'); | |
| 20706 | |
| 20707 /** Sets the value of "margin-right" */ | |
| 20708 void set marginRight(String value) { | |
| 20709 setProperty('margin-right', value, ''); | |
| 20710 } | |
| 20711 | |
| 20712 /** Gets the value of "margin-start" */ | |
| 20713 String get marginStart() => | |
| 20714 getPropertyValue('${_browserPrefix}margin-start'); | |
| 20715 | |
| 20716 /** Sets the value of "margin-start" */ | |
| 20717 void set marginStart(String value) { | |
| 20718 setProperty('${_browserPrefix}margin-start', value, ''); | |
| 20719 } | |
| 20720 | |
| 20721 /** Gets the value of "margin-top" */ | |
| 20722 String get marginTop() => | |
| 20723 getPropertyValue('margin-top'); | |
| 20724 | |
| 20725 /** Sets the value of "margin-top" */ | |
| 20726 void set marginTop(String value) { | |
| 20727 setProperty('margin-top', value, ''); | |
| 20728 } | |
| 20729 | |
| 20730 /** Gets the value of "margin-top-collapse" */ | |
| 20731 String get marginTopCollapse() => | |
| 20732 getPropertyValue('${_browserPrefix}margin-top-collapse'); | |
| 20733 | |
| 20734 /** Sets the value of "margin-top-collapse" */ | |
| 20735 void set marginTopCollapse(String value) { | |
| 20736 setProperty('${_browserPrefix}margin-top-collapse', value, ''); | |
| 20737 } | |
| 20738 | |
| 20739 /** Gets the value of "marquee" */ | |
| 20740 String get marquee() => | |
| 20741 getPropertyValue('${_browserPrefix}marquee'); | |
| 20742 | |
| 20743 /** Sets the value of "marquee" */ | |
| 20744 void set marquee(String value) { | |
| 20745 setProperty('${_browserPrefix}marquee', value, ''); | |
| 20746 } | |
| 20747 | |
| 20748 /** Gets the value of "marquee-direction" */ | |
| 20749 String get marqueeDirection() => | |
| 20750 getPropertyValue('${_browserPrefix}marquee-direction'); | |
| 20751 | |
| 20752 /** Sets the value of "marquee-direction" */ | |
| 20753 void set marqueeDirection(String value) { | |
| 20754 setProperty('${_browserPrefix}marquee-direction', value, ''); | |
| 20755 } | |
| 20756 | |
| 20757 /** Gets the value of "marquee-increment" */ | |
| 20758 String get marqueeIncrement() => | |
| 20759 getPropertyValue('${_browserPrefix}marquee-increment'); | |
| 20760 | |
| 20761 /** Sets the value of "marquee-increment" */ | |
| 20762 void set marqueeIncrement(String value) { | |
| 20763 setProperty('${_browserPrefix}marquee-increment', value, ''); | |
| 20764 } | |
| 20765 | |
| 20766 /** Gets the value of "marquee-repetition" */ | |
| 20767 String get marqueeRepetition() => | |
| 20768 getPropertyValue('${_browserPrefix}marquee-repetition'); | |
| 20769 | |
| 20770 /** Sets the value of "marquee-repetition" */ | |
| 20771 void set marqueeRepetition(String value) { | |
| 20772 setProperty('${_browserPrefix}marquee-repetition', value, ''); | |
| 20773 } | |
| 20774 | |
| 20775 /** Gets the value of "marquee-speed" */ | |
| 20776 String get marqueeSpeed() => | |
| 20777 getPropertyValue('${_browserPrefix}marquee-speed'); | |
| 20778 | |
| 20779 /** Sets the value of "marquee-speed" */ | |
| 20780 void set marqueeSpeed(String value) { | |
| 20781 setProperty('${_browserPrefix}marquee-speed', value, ''); | |
| 20782 } | |
| 20783 | |
| 20784 /** Gets the value of "marquee-style" */ | |
| 20785 String get marqueeStyle() => | |
| 20786 getPropertyValue('${_browserPrefix}marquee-style'); | |
| 20787 | |
| 20788 /** Sets the value of "marquee-style" */ | |
| 20789 void set marqueeStyle(String value) { | |
| 20790 setProperty('${_browserPrefix}marquee-style', value, ''); | |
| 20791 } | |
| 20792 | |
| 20793 /** Gets the value of "mask" */ | |
| 20794 String get mask() => | |
| 20795 getPropertyValue('${_browserPrefix}mask'); | |
| 20796 | |
| 20797 /** Sets the value of "mask" */ | |
| 20798 void set mask(String value) { | |
| 20799 setProperty('${_browserPrefix}mask', value, ''); | |
| 20800 } | |
| 20801 | |
| 20802 /** Gets the value of "mask-attachment" */ | |
| 20803 String get maskAttachment() => | |
| 20804 getPropertyValue('${_browserPrefix}mask-attachment'); | |
| 20805 | |
| 20806 /** Sets the value of "mask-attachment" */ | |
| 20807 void set maskAttachment(String value) { | |
| 20808 setProperty('${_browserPrefix}mask-attachment', value, ''); | |
| 20809 } | |
| 20810 | |
| 20811 /** Gets the value of "mask-box-image" */ | |
| 20812 String get maskBoxImage() => | |
| 20813 getPropertyValue('${_browserPrefix}mask-box-image'); | |
| 20814 | |
| 20815 /** Sets the value of "mask-box-image" */ | |
| 20816 void set maskBoxImage(String value) { | |
| 20817 setProperty('${_browserPrefix}mask-box-image', value, ''); | |
| 20818 } | |
| 20819 | |
| 20820 /** Gets the value of "mask-box-image-outset" */ | |
| 20821 String get maskBoxImageOutset() => | |
| 20822 getPropertyValue('${_browserPrefix}mask-box-image-outset'); | |
| 20823 | |
| 20824 /** Sets the value of "mask-box-image-outset" */ | |
| 20825 void set maskBoxImageOutset(String value) { | |
| 20826 setProperty('${_browserPrefix}mask-box-image-outset', value, ''); | |
| 20827 } | |
| 20828 | |
| 20829 /** Gets the value of "mask-box-image-repeat" */ | |
| 20830 String get maskBoxImageRepeat() => | |
| 20831 getPropertyValue('${_browserPrefix}mask-box-image-repeat'); | |
| 20832 | |
| 20833 /** Sets the value of "mask-box-image-repeat" */ | |
| 20834 void set maskBoxImageRepeat(String value) { | |
| 20835 setProperty('${_browserPrefix}mask-box-image-repeat', value, ''); | |
| 20836 } | |
| 20837 | |
| 20838 /** Gets the value of "mask-box-image-slice" */ | |
| 20839 String get maskBoxImageSlice() => | |
| 20840 getPropertyValue('${_browserPrefix}mask-box-image-slice'); | |
| 20841 | |
| 20842 /** Sets the value of "mask-box-image-slice" */ | |
| 20843 void set maskBoxImageSlice(String value) { | |
| 20844 setProperty('${_browserPrefix}mask-box-image-slice', value, ''); | |
| 20845 } | |
| 20846 | |
| 20847 /** Gets the value of "mask-box-image-source" */ | |
| 20848 String get maskBoxImageSource() => | |
| 20849 getPropertyValue('${_browserPrefix}mask-box-image-source'); | |
| 20850 | |
| 20851 /** Sets the value of "mask-box-image-source" */ | |
| 20852 void set maskBoxImageSource(String value) { | |
| 20853 setProperty('${_browserPrefix}mask-box-image-source', value, ''); | |
| 20854 } | |
| 20855 | |
| 20856 /** Gets the value of "mask-box-image-width" */ | |
| 20857 String get maskBoxImageWidth() => | |
| 20858 getPropertyValue('${_browserPrefix}mask-box-image-width'); | |
| 20859 | |
| 20860 /** Sets the value of "mask-box-image-width" */ | |
| 20861 void set maskBoxImageWidth(String value) { | |
| 20862 setProperty('${_browserPrefix}mask-box-image-width', value, ''); | |
| 20863 } | |
| 20864 | |
| 20865 /** Gets the value of "mask-clip" */ | |
| 20866 String get maskClip() => | |
| 20867 getPropertyValue('${_browserPrefix}mask-clip'); | |
| 20868 | |
| 20869 /** Sets the value of "mask-clip" */ | |
| 20870 void set maskClip(String value) { | |
| 20871 setProperty('${_browserPrefix}mask-clip', value, ''); | |
| 20872 } | |
| 20873 | |
| 20874 /** Gets the value of "mask-composite" */ | |
| 20875 String get maskComposite() => | |
| 20876 getPropertyValue('${_browserPrefix}mask-composite'); | |
| 20877 | |
| 20878 /** Sets the value of "mask-composite" */ | |
| 20879 void set maskComposite(String value) { | |
| 20880 setProperty('${_browserPrefix}mask-composite', value, ''); | |
| 20881 } | |
| 20882 | |
| 20883 /** Gets the value of "mask-image" */ | |
| 20884 String get maskImage() => | |
| 20885 getPropertyValue('${_browserPrefix}mask-image'); | |
| 20886 | |
| 20887 /** Sets the value of "mask-image" */ | |
| 20888 void set maskImage(String value) { | |
| 20889 setProperty('${_browserPrefix}mask-image', value, ''); | |
| 20890 } | |
| 20891 | |
| 20892 /** Gets the value of "mask-origin" */ | |
| 20893 String get maskOrigin() => | |
| 20894 getPropertyValue('${_browserPrefix}mask-origin'); | |
| 20895 | |
| 20896 /** Sets the value of "mask-origin" */ | |
| 20897 void set maskOrigin(String value) { | |
| 20898 setProperty('${_browserPrefix}mask-origin', value, ''); | |
| 20899 } | |
| 20900 | |
| 20901 /** Gets the value of "mask-position" */ | |
| 20902 String get maskPosition() => | |
| 20903 getPropertyValue('${_browserPrefix}mask-position'); | |
| 20904 | |
| 20905 /** Sets the value of "mask-position" */ | |
| 20906 void set maskPosition(String value) { | |
| 20907 setProperty('${_browserPrefix}mask-position', value, ''); | |
| 20908 } | |
| 20909 | |
| 20910 /** Gets the value of "mask-position-x" */ | |
| 20911 String get maskPositionX() => | |
| 20912 getPropertyValue('${_browserPrefix}mask-position-x'); | |
| 20913 | |
| 20914 /** Sets the value of "mask-position-x" */ | |
| 20915 void set maskPositionX(String value) { | |
| 20916 setProperty('${_browserPrefix}mask-position-x', value, ''); | |
| 20917 } | |
| 20918 | |
| 20919 /** Gets the value of "mask-position-y" */ | |
| 20920 String get maskPositionY() => | |
| 20921 getPropertyValue('${_browserPrefix}mask-position-y'); | |
| 20922 | |
| 20923 /** Sets the value of "mask-position-y" */ | |
| 20924 void set maskPositionY(String value) { | |
| 20925 setProperty('${_browserPrefix}mask-position-y', value, ''); | |
| 20926 } | |
| 20927 | |
| 20928 /** Gets the value of "mask-repeat" */ | |
| 20929 String get maskRepeat() => | |
| 20930 getPropertyValue('${_browserPrefix}mask-repeat'); | |
| 20931 | |
| 20932 /** Sets the value of "mask-repeat" */ | |
| 20933 void set maskRepeat(String value) { | |
| 20934 setProperty('${_browserPrefix}mask-repeat', value, ''); | |
| 20935 } | |
| 20936 | |
| 20937 /** Gets the value of "mask-repeat-x" */ | |
| 20938 String get maskRepeatX() => | |
| 20939 getPropertyValue('${_browserPrefix}mask-repeat-x'); | |
| 20940 | |
| 20941 /** Sets the value of "mask-repeat-x" */ | |
| 20942 void set maskRepeatX(String value) { | |
| 20943 setProperty('${_browserPrefix}mask-repeat-x', value, ''); | |
| 20944 } | |
| 20945 | |
| 20946 /** Gets the value of "mask-repeat-y" */ | |
| 20947 String get maskRepeatY() => | |
| 20948 getPropertyValue('${_browserPrefix}mask-repeat-y'); | |
| 20949 | |
| 20950 /** Sets the value of "mask-repeat-y" */ | |
| 20951 void set maskRepeatY(String value) { | |
| 20952 setProperty('${_browserPrefix}mask-repeat-y', value, ''); | |
| 20953 } | |
| 20954 | |
| 20955 /** Gets the value of "mask-size" */ | |
| 20956 String get maskSize() => | |
| 20957 getPropertyValue('${_browserPrefix}mask-size'); | |
| 20958 | |
| 20959 /** Sets the value of "mask-size" */ | |
| 20960 void set maskSize(String value) { | |
| 20961 setProperty('${_browserPrefix}mask-size', value, ''); | |
| 20962 } | |
| 20963 | |
| 20964 /** Gets the value of "match-nearest-mail-blockquote-color" */ | |
| 20965 String get matchNearestMailBlockquoteColor() => | |
| 20966 getPropertyValue('${_browserPrefix}match-nearest-mail-blockquote-color'); | |
| 20967 | |
| 20968 /** Sets the value of "match-nearest-mail-blockquote-color" */ | |
| 20969 void set matchNearestMailBlockquoteColor(String value) { | |
| 20970 setProperty('${_browserPrefix}match-nearest-mail-blockquote-color', value, '
'); | |
| 20971 } | |
| 20972 | |
| 20973 /** Gets the value of "max-height" */ | |
| 20974 String get maxHeight() => | |
| 20975 getPropertyValue('max-height'); | |
| 20976 | |
| 20977 /** Sets the value of "max-height" */ | |
| 20978 void set maxHeight(String value) { | |
| 20979 setProperty('max-height', value, ''); | |
| 20980 } | |
| 20981 | |
| 20982 /** Gets the value of "max-logical-height" */ | |
| 20983 String get maxLogicalHeight() => | |
| 20984 getPropertyValue('${_browserPrefix}max-logical-height'); | |
| 20985 | |
| 20986 /** Sets the value of "max-logical-height" */ | |
| 20987 void set maxLogicalHeight(String value) { | |
| 20988 setProperty('${_browserPrefix}max-logical-height', value, ''); | |
| 20989 } | |
| 20990 | |
| 20991 /** Gets the value of "max-logical-width" */ | |
| 20992 String get maxLogicalWidth() => | |
| 20993 getPropertyValue('${_browserPrefix}max-logical-width'); | |
| 20994 | |
| 20995 /** Sets the value of "max-logical-width" */ | |
| 20996 void set maxLogicalWidth(String value) { | |
| 20997 setProperty('${_browserPrefix}max-logical-width', value, ''); | |
| 20998 } | |
| 20999 | |
| 21000 /** Gets the value of "max-width" */ | |
| 21001 String get maxWidth() => | |
| 21002 getPropertyValue('max-width'); | |
| 21003 | |
| 21004 /** Sets the value of "max-width" */ | |
| 21005 void set maxWidth(String value) { | |
| 21006 setProperty('max-width', value, ''); | |
| 21007 } | |
| 21008 | |
| 21009 /** Gets the value of "min-height" */ | |
| 21010 String get minHeight() => | |
| 21011 getPropertyValue('min-height'); | |
| 21012 | |
| 21013 /** Sets the value of "min-height" */ | |
| 21014 void set minHeight(String value) { | |
| 21015 setProperty('min-height', value, ''); | |
| 21016 } | |
| 21017 | |
| 21018 /** Gets the value of "min-logical-height" */ | |
| 21019 String get minLogicalHeight() => | |
| 21020 getPropertyValue('${_browserPrefix}min-logical-height'); | |
| 21021 | |
| 21022 /** Sets the value of "min-logical-height" */ | |
| 21023 void set minLogicalHeight(String value) { | |
| 21024 setProperty('${_browserPrefix}min-logical-height', value, ''); | |
| 21025 } | |
| 21026 | |
| 21027 /** Gets the value of "min-logical-width" */ | |
| 21028 String get minLogicalWidth() => | |
| 21029 getPropertyValue('${_browserPrefix}min-logical-width'); | |
| 21030 | |
| 21031 /** Sets the value of "min-logical-width" */ | |
| 21032 void set minLogicalWidth(String value) { | |
| 21033 setProperty('${_browserPrefix}min-logical-width', value, ''); | |
| 21034 } | |
| 21035 | |
| 21036 /** Gets the value of "min-width" */ | |
| 21037 String get minWidth() => | |
| 21038 getPropertyValue('min-width'); | |
| 21039 | |
| 21040 /** Sets the value of "min-width" */ | |
| 21041 void set minWidth(String value) { | |
| 21042 setProperty('min-width', value, ''); | |
| 21043 } | |
| 21044 | |
| 21045 /** Gets the value of "nbsp-mode" */ | |
| 21046 String get nbspMode() => | |
| 21047 getPropertyValue('${_browserPrefix}nbsp-mode'); | |
| 21048 | |
| 21049 /** Sets the value of "nbsp-mode" */ | |
| 21050 void set nbspMode(String value) { | |
| 21051 setProperty('${_browserPrefix}nbsp-mode', value, ''); | |
| 21052 } | |
| 21053 | |
| 21054 /** Gets the value of "opacity" */ | |
| 21055 String get opacity() => | |
| 21056 getPropertyValue('opacity'); | |
| 21057 | |
| 21058 /** Sets the value of "opacity" */ | |
| 21059 void set opacity(String value) { | |
| 21060 setProperty('opacity', value, ''); | |
| 21061 } | |
| 21062 | |
| 21063 /** Gets the value of "orphans" */ | |
| 21064 String get orphans() => | |
| 21065 getPropertyValue('orphans'); | |
| 21066 | |
| 21067 /** Sets the value of "orphans" */ | |
| 21068 void set orphans(String value) { | |
| 21069 setProperty('orphans', value, ''); | |
| 21070 } | |
| 21071 | |
| 21072 /** Gets the value of "outline" */ | |
| 21073 String get outline() => | |
| 21074 getPropertyValue('outline'); | |
| 21075 | |
| 21076 /** Sets the value of "outline" */ | |
| 21077 void set outline(String value) { | |
| 21078 setProperty('outline', value, ''); | |
| 21079 } | |
| 21080 | |
| 21081 /** Gets the value of "outline-color" */ | |
| 21082 String get outlineColor() => | |
| 21083 getPropertyValue('outline-color'); | |
| 21084 | |
| 21085 /** Sets the value of "outline-color" */ | |
| 21086 void set outlineColor(String value) { | |
| 21087 setProperty('outline-color', value, ''); | |
| 21088 } | |
| 21089 | |
| 21090 /** Gets the value of "outline-offset" */ | |
| 21091 String get outlineOffset() => | |
| 21092 getPropertyValue('outline-offset'); | |
| 21093 | |
| 21094 /** Sets the value of "outline-offset" */ | |
| 21095 void set outlineOffset(String value) { | |
| 21096 setProperty('outline-offset', value, ''); | |
| 21097 } | |
| 21098 | |
| 21099 /** Gets the value of "outline-style" */ | |
| 21100 String get outlineStyle() => | |
| 21101 getPropertyValue('outline-style'); | |
| 21102 | |
| 21103 /** Sets the value of "outline-style" */ | |
| 21104 void set outlineStyle(String value) { | |
| 21105 setProperty('outline-style', value, ''); | |
| 21106 } | |
| 21107 | |
| 21108 /** Gets the value of "outline-width" */ | |
| 21109 String get outlineWidth() => | |
| 21110 getPropertyValue('outline-width'); | |
| 21111 | |
| 21112 /** Sets the value of "outline-width" */ | |
| 21113 void set outlineWidth(String value) { | |
| 21114 setProperty('outline-width', value, ''); | |
| 21115 } | |
| 21116 | |
| 21117 /** Gets the value of "overflow" */ | |
| 21118 String get overflow() => | |
| 21119 getPropertyValue('overflow'); | |
| 21120 | |
| 21121 /** Sets the value of "overflow" */ | |
| 21122 void set overflow(String value) { | |
| 21123 setProperty('overflow', value, ''); | |
| 21124 } | |
| 21125 | |
| 21126 /** Gets the value of "overflow-x" */ | |
| 21127 String get overflowX() => | |
| 21128 getPropertyValue('overflow-x'); | |
| 21129 | |
| 21130 /** Sets the value of "overflow-x" */ | |
| 21131 void set overflowX(String value) { | |
| 21132 setProperty('overflow-x', value, ''); | |
| 21133 } | |
| 21134 | |
| 21135 /** Gets the value of "overflow-y" */ | |
| 21136 String get overflowY() => | |
| 21137 getPropertyValue('overflow-y'); | |
| 21138 | |
| 21139 /** Sets the value of "overflow-y" */ | |
| 21140 void set overflowY(String value) { | |
| 21141 setProperty('overflow-y', value, ''); | |
| 21142 } | |
| 21143 | |
| 21144 /** Gets the value of "padding" */ | |
| 21145 String get padding() => | |
| 21146 getPropertyValue('padding'); | |
| 21147 | |
| 21148 /** Sets the value of "padding" */ | |
| 21149 void set padding(String value) { | |
| 21150 setProperty('padding', value, ''); | |
| 21151 } | |
| 21152 | |
| 21153 /** Gets the value of "padding-after" */ | |
| 21154 String get paddingAfter() => | |
| 21155 getPropertyValue('${_browserPrefix}padding-after'); | |
| 21156 | |
| 21157 /** Sets the value of "padding-after" */ | |
| 21158 void set paddingAfter(String value) { | |
| 21159 setProperty('${_browserPrefix}padding-after', value, ''); | |
| 21160 } | |
| 21161 | |
| 21162 /** Gets the value of "padding-before" */ | |
| 21163 String get paddingBefore() => | |
| 21164 getPropertyValue('${_browserPrefix}padding-before'); | |
| 21165 | |
| 21166 /** Sets the value of "padding-before" */ | |
| 21167 void set paddingBefore(String value) { | |
| 21168 setProperty('${_browserPrefix}padding-before', value, ''); | |
| 21169 } | |
| 21170 | |
| 21171 /** Gets the value of "padding-bottom" */ | |
| 21172 String get paddingBottom() => | |
| 21173 getPropertyValue('padding-bottom'); | |
| 21174 | |
| 21175 /** Sets the value of "padding-bottom" */ | |
| 21176 void set paddingBottom(String value) { | |
| 21177 setProperty('padding-bottom', value, ''); | |
| 21178 } | |
| 21179 | |
| 21180 /** Gets the value of "padding-end" */ | |
| 21181 String get paddingEnd() => | |
| 21182 getPropertyValue('${_browserPrefix}padding-end'); | |
| 21183 | |
| 21184 /** Sets the value of "padding-end" */ | |
| 21185 void set paddingEnd(String value) { | |
| 21186 setProperty('${_browserPrefix}padding-end', value, ''); | |
| 21187 } | |
| 21188 | |
| 21189 /** Gets the value of "padding-left" */ | |
| 21190 String get paddingLeft() => | |
| 21191 getPropertyValue('padding-left'); | |
| 21192 | |
| 21193 /** Sets the value of "padding-left" */ | |
| 21194 void set paddingLeft(String value) { | |
| 21195 setProperty('padding-left', value, ''); | |
| 21196 } | |
| 21197 | |
| 21198 /** Gets the value of "padding-right" */ | |
| 21199 String get paddingRight() => | |
| 21200 getPropertyValue('padding-right'); | |
| 21201 | |
| 21202 /** Sets the value of "padding-right" */ | |
| 21203 void set paddingRight(String value) { | |
| 21204 setProperty('padding-right', value, ''); | |
| 21205 } | |
| 21206 | |
| 21207 /** Gets the value of "padding-start" */ | |
| 21208 String get paddingStart() => | |
| 21209 getPropertyValue('${_browserPrefix}padding-start'); | |
| 21210 | |
| 21211 /** Sets the value of "padding-start" */ | |
| 21212 void set paddingStart(String value) { | |
| 21213 setProperty('${_browserPrefix}padding-start', value, ''); | |
| 21214 } | |
| 21215 | |
| 21216 /** Gets the value of "padding-top" */ | |
| 21217 String get paddingTop() => | |
| 21218 getPropertyValue('padding-top'); | |
| 21219 | |
| 21220 /** Sets the value of "padding-top" */ | |
| 21221 void set paddingTop(String value) { | |
| 21222 setProperty('padding-top', value, ''); | |
| 21223 } | |
| 21224 | |
| 21225 /** Gets the value of "page" */ | |
| 21226 String get page() => | |
| 21227 getPropertyValue('page'); | |
| 21228 | |
| 21229 /** Sets the value of "page" */ | |
| 21230 void set page(String value) { | |
| 21231 setProperty('page', value, ''); | |
| 21232 } | |
| 21233 | |
| 21234 /** Gets the value of "page-break-after" */ | |
| 21235 String get pageBreakAfter() => | |
| 21236 getPropertyValue('page-break-after'); | |
| 21237 | |
| 21238 /** Sets the value of "page-break-after" */ | |
| 21239 void set pageBreakAfter(String value) { | |
| 21240 setProperty('page-break-after', value, ''); | |
| 21241 } | |
| 21242 | |
| 21243 /** Gets the value of "page-break-before" */ | |
| 21244 String get pageBreakBefore() => | |
| 21245 getPropertyValue('page-break-before'); | |
| 21246 | |
| 21247 /** Sets the value of "page-break-before" */ | |
| 21248 void set pageBreakBefore(String value) { | |
| 21249 setProperty('page-break-before', value, ''); | |
| 21250 } | |
| 21251 | |
| 21252 /** Gets the value of "page-break-inside" */ | |
| 21253 String get pageBreakInside() => | |
| 21254 getPropertyValue('page-break-inside'); | |
| 21255 | |
| 21256 /** Sets the value of "page-break-inside" */ | |
| 21257 void set pageBreakInside(String value) { | |
| 21258 setProperty('page-break-inside', value, ''); | |
| 21259 } | |
| 21260 | |
| 21261 /** Gets the value of "perspective" */ | |
| 21262 String get perspective() => | |
| 21263 getPropertyValue('${_browserPrefix}perspective'); | |
| 21264 | |
| 21265 /** Sets the value of "perspective" */ | |
| 21266 void set perspective(String value) { | |
| 21267 setProperty('${_browserPrefix}perspective', value, ''); | |
| 21268 } | |
| 21269 | |
| 21270 /** Gets the value of "perspective-origin" */ | |
| 21271 String get perspectiveOrigin() => | |
| 21272 getPropertyValue('${_browserPrefix}perspective-origin'); | |
| 21273 | |
| 21274 /** Sets the value of "perspective-origin" */ | |
| 21275 void set perspectiveOrigin(String value) { | |
| 21276 setProperty('${_browserPrefix}perspective-origin', value, ''); | |
| 21277 } | |
| 21278 | |
| 21279 /** Gets the value of "perspective-origin-x" */ | |
| 21280 String get perspectiveOriginX() => | |
| 21281 getPropertyValue('${_browserPrefix}perspective-origin-x'); | |
| 21282 | |
| 21283 /** Sets the value of "perspective-origin-x" */ | |
| 21284 void set perspectiveOriginX(String value) { | |
| 21285 setProperty('${_browserPrefix}perspective-origin-x', value, ''); | |
| 21286 } | |
| 21287 | |
| 21288 /** Gets the value of "perspective-origin-y" */ | |
| 21289 String get perspectiveOriginY() => | |
| 21290 getPropertyValue('${_browserPrefix}perspective-origin-y'); | |
| 21291 | |
| 21292 /** Sets the value of "perspective-origin-y" */ | |
| 21293 void set perspectiveOriginY(String value) { | |
| 21294 setProperty('${_browserPrefix}perspective-origin-y', value, ''); | |
| 21295 } | |
| 21296 | |
| 21297 /** Gets the value of "pointer-events" */ | |
| 21298 String get pointerEvents() => | |
| 21299 getPropertyValue('pointer-events'); | |
| 21300 | |
| 21301 /** Sets the value of "pointer-events" */ | |
| 21302 void set pointerEvents(String value) { | |
| 21303 setProperty('pointer-events', value, ''); | |
| 21304 } | |
| 21305 | |
| 21306 /** Gets the value of "position" */ | |
| 21307 String get position() => | |
| 21308 getPropertyValue('position'); | |
| 21309 | |
| 21310 /** Sets the value of "position" */ | |
| 21311 void set position(String value) { | |
| 21312 setProperty('position', value, ''); | |
| 21313 } | |
| 21314 | |
| 21315 /** Gets the value of "quotes" */ | |
| 21316 String get quotes() => | |
| 21317 getPropertyValue('quotes'); | |
| 21318 | |
| 21319 /** Sets the value of "quotes" */ | |
| 21320 void set quotes(String value) { | |
| 21321 setProperty('quotes', value, ''); | |
| 21322 } | |
| 21323 | |
| 21324 /** Gets the value of "region-break-after" */ | |
| 21325 String get regionBreakAfter() => | |
| 21326 getPropertyValue('${_browserPrefix}region-break-after'); | |
| 21327 | |
| 21328 /** Sets the value of "region-break-after" */ | |
| 21329 void set regionBreakAfter(String value) { | |
| 21330 setProperty('${_browserPrefix}region-break-after', value, ''); | |
| 21331 } | |
| 21332 | |
| 21333 /** Gets the value of "region-break-before" */ | |
| 21334 String get regionBreakBefore() => | |
| 21335 getPropertyValue('${_browserPrefix}region-break-before'); | |
| 21336 | |
| 21337 /** Sets the value of "region-break-before" */ | |
| 21338 void set regionBreakBefore(String value) { | |
| 21339 setProperty('${_browserPrefix}region-break-before', value, ''); | |
| 21340 } | |
| 21341 | |
| 21342 /** Gets the value of "region-break-inside" */ | |
| 21343 String get regionBreakInside() => | |
| 21344 getPropertyValue('${_browserPrefix}region-break-inside'); | |
| 21345 | |
| 21346 /** Sets the value of "region-break-inside" */ | |
| 21347 void set regionBreakInside(String value) { | |
| 21348 setProperty('${_browserPrefix}region-break-inside', value, ''); | |
| 21349 } | |
| 21350 | |
| 21351 /** Gets the value of "region-overflow" */ | |
| 21352 String get regionOverflow() => | |
| 21353 getPropertyValue('${_browserPrefix}region-overflow'); | |
| 21354 | |
| 21355 /** Sets the value of "region-overflow" */ | |
| 21356 void set regionOverflow(String value) { | |
| 21357 setProperty('${_browserPrefix}region-overflow', value, ''); | |
| 21358 } | |
| 21359 | |
| 21360 /** Gets the value of "resize" */ | |
| 21361 String get resize() => | |
| 21362 getPropertyValue('resize'); | |
| 21363 | |
| 21364 /** Sets the value of "resize" */ | |
| 21365 void set resize(String value) { | |
| 21366 setProperty('resize', value, ''); | |
| 21367 } | |
| 21368 | |
| 21369 /** Gets the value of "right" */ | |
| 21370 String get right() => | |
| 21371 getPropertyValue('right'); | |
| 21372 | |
| 21373 /** Sets the value of "right" */ | |
| 21374 void set right(String value) { | |
| 21375 setProperty('right', value, ''); | |
| 21376 } | |
| 21377 | |
| 21378 /** Gets the value of "rtl-ordering" */ | |
| 21379 String get rtlOrdering() => | |
| 21380 getPropertyValue('${_browserPrefix}rtl-ordering'); | |
| 21381 | |
| 21382 /** Sets the value of "rtl-ordering" */ | |
| 21383 void set rtlOrdering(String value) { | |
| 21384 setProperty('${_browserPrefix}rtl-ordering', value, ''); | |
| 21385 } | |
| 21386 | |
| 21387 /** Gets the value of "size" */ | |
| 21388 String get size() => | |
| 21389 getPropertyValue('size'); | |
| 21390 | |
| 21391 /** Sets the value of "size" */ | |
| 21392 void set size(String value) { | |
| 21393 setProperty('size', value, ''); | |
| 21394 } | |
| 21395 | |
| 21396 /** Gets the value of "speak" */ | |
| 21397 String get speak() => | |
| 21398 getPropertyValue('speak'); | |
| 21399 | |
| 21400 /** Sets the value of "speak" */ | |
| 21401 void set speak(String value) { | |
| 21402 setProperty('speak', value, ''); | |
| 21403 } | |
| 21404 | |
| 21405 /** Gets the value of "src" */ | |
| 21406 String get src() => | |
| 21407 getPropertyValue('src'); | |
| 21408 | |
| 21409 /** Sets the value of "src" */ | |
| 21410 void set src(String value) { | |
| 21411 setProperty('src', value, ''); | |
| 21412 } | |
| 21413 | |
| 21414 /** Gets the value of "table-layout" */ | |
| 21415 String get tableLayout() => | |
| 21416 getPropertyValue('table-layout'); | |
| 21417 | |
| 21418 /** Sets the value of "table-layout" */ | |
| 21419 void set tableLayout(String value) { | |
| 21420 setProperty('table-layout', value, ''); | |
| 21421 } | |
| 21422 | |
| 21423 /** Gets the value of "tap-highlight-color" */ | |
| 21424 String get tapHighlightColor() => | |
| 21425 getPropertyValue('${_browserPrefix}tap-highlight-color'); | |
| 21426 | |
| 21427 /** Sets the value of "tap-highlight-color" */ | |
| 21428 void set tapHighlightColor(String value) { | |
| 21429 setProperty('${_browserPrefix}tap-highlight-color', value, ''); | |
| 21430 } | |
| 21431 | |
| 21432 /** Gets the value of "text-align" */ | |
| 21433 String get textAlign() => | |
| 21434 getPropertyValue('text-align'); | |
| 21435 | |
| 21436 /** Sets the value of "text-align" */ | |
| 21437 void set textAlign(String value) { | |
| 21438 setProperty('text-align', value, ''); | |
| 21439 } | |
| 21440 | |
| 21441 /** Gets the value of "text-combine" */ | |
| 21442 String get textCombine() => | |
| 21443 getPropertyValue('${_browserPrefix}text-combine'); | |
| 21444 | |
| 21445 /** Sets the value of "text-combine" */ | |
| 21446 void set textCombine(String value) { | |
| 21447 setProperty('${_browserPrefix}text-combine', value, ''); | |
| 21448 } | |
| 21449 | |
| 21450 /** Gets the value of "text-decoration" */ | |
| 21451 String get textDecoration() => | |
| 21452 getPropertyValue('text-decoration'); | |
| 21453 | |
| 21454 /** Sets the value of "text-decoration" */ | |
| 21455 void set textDecoration(String value) { | |
| 21456 setProperty('text-decoration', value, ''); | |
| 21457 } | |
| 21458 | |
| 21459 /** Gets the value of "text-decorations-in-effect" */ | |
| 21460 String get textDecorationsInEffect() => | |
| 21461 getPropertyValue('${_browserPrefix}text-decorations-in-effect'); | |
| 21462 | |
| 21463 /** Sets the value of "text-decorations-in-effect" */ | |
| 21464 void set textDecorationsInEffect(String value) { | |
| 21465 setProperty('${_browserPrefix}text-decorations-in-effect', value, ''); | |
| 21466 } | |
| 21467 | |
| 21468 /** Gets the value of "text-emphasis" */ | |
| 21469 String get textEmphasis() => | |
| 21470 getPropertyValue('${_browserPrefix}text-emphasis'); | |
| 21471 | |
| 21472 /** Sets the value of "text-emphasis" */ | |
| 21473 void set textEmphasis(String value) { | |
| 21474 setProperty('${_browserPrefix}text-emphasis', value, ''); | |
| 21475 } | |
| 21476 | |
| 21477 /** Gets the value of "text-emphasis-color" */ | |
| 21478 String get textEmphasisColor() => | |
| 21479 getPropertyValue('${_browserPrefix}text-emphasis-color'); | |
| 21480 | |
| 21481 /** Sets the value of "text-emphasis-color" */ | |
| 21482 void set textEmphasisColor(String value) { | |
| 21483 setProperty('${_browserPrefix}text-emphasis-color', value, ''); | |
| 21484 } | |
| 21485 | |
| 21486 /** Gets the value of "text-emphasis-position" */ | |
| 21487 String get textEmphasisPosition() => | |
| 21488 getPropertyValue('${_browserPrefix}text-emphasis-position'); | |
| 21489 | |
| 21490 /** Sets the value of "text-emphasis-position" */ | |
| 21491 void set textEmphasisPosition(String value) { | |
| 21492 setProperty('${_browserPrefix}text-emphasis-position', value, ''); | |
| 21493 } | |
| 21494 | |
| 21495 /** Gets the value of "text-emphasis-style" */ | |
| 21496 String get textEmphasisStyle() => | |
| 21497 getPropertyValue('${_browserPrefix}text-emphasis-style'); | |
| 21498 | |
| 21499 /** Sets the value of "text-emphasis-style" */ | |
| 21500 void set textEmphasisStyle(String value) { | |
| 21501 setProperty('${_browserPrefix}text-emphasis-style', value, ''); | |
| 21502 } | |
| 21503 | |
| 21504 /** Gets the value of "text-fill-color" */ | |
| 21505 String get textFillColor() => | |
| 21506 getPropertyValue('${_browserPrefix}text-fill-color'); | |
| 21507 | |
| 21508 /** Sets the value of "text-fill-color" */ | |
| 21509 void set textFillColor(String value) { | |
| 21510 setProperty('${_browserPrefix}text-fill-color', value, ''); | |
| 21511 } | |
| 21512 | |
| 21513 /** Gets the value of "text-indent" */ | |
| 21514 String get textIndent() => | |
| 21515 getPropertyValue('text-indent'); | |
| 21516 | |
| 21517 /** Sets the value of "text-indent" */ | |
| 21518 void set textIndent(String value) { | |
| 21519 setProperty('text-indent', value, ''); | |
| 21520 } | |
| 21521 | |
| 21522 /** Gets the value of "text-line-through" */ | |
| 21523 String get textLineThrough() => | |
| 21524 getPropertyValue('text-line-through'); | |
| 21525 | |
| 21526 /** Sets the value of "text-line-through" */ | |
| 21527 void set textLineThrough(String value) { | |
| 21528 setProperty('text-line-through', value, ''); | |
| 21529 } | |
| 21530 | |
| 21531 /** Gets the value of "text-line-through-color" */ | |
| 21532 String get textLineThroughColor() => | |
| 21533 getPropertyValue('text-line-through-color'); | |
| 21534 | |
| 21535 /** Sets the value of "text-line-through-color" */ | |
| 21536 void set textLineThroughColor(String value) { | |
| 21537 setProperty('text-line-through-color', value, ''); | |
| 21538 } | |
| 21539 | |
| 21540 /** Gets the value of "text-line-through-mode" */ | |
| 21541 String get textLineThroughMode() => | |
| 21542 getPropertyValue('text-line-through-mode'); | |
| 21543 | |
| 21544 /** Sets the value of "text-line-through-mode" */ | |
| 21545 void set textLineThroughMode(String value) { | |
| 21546 setProperty('text-line-through-mode', value, ''); | |
| 21547 } | |
| 21548 | |
| 21549 /** Gets the value of "text-line-through-style" */ | |
| 21550 String get textLineThroughStyle() => | |
| 21551 getPropertyValue('text-line-through-style'); | |
| 21552 | |
| 21553 /** Sets the value of "text-line-through-style" */ | |
| 21554 void set textLineThroughStyle(String value) { | |
| 21555 setProperty('text-line-through-style', value, ''); | |
| 21556 } | |
| 21557 | |
| 21558 /** Gets the value of "text-line-through-width" */ | |
| 21559 String get textLineThroughWidth() => | |
| 21560 getPropertyValue('text-line-through-width'); | |
| 21561 | |
| 21562 /** Sets the value of "text-line-through-width" */ | |
| 21563 void set textLineThroughWidth(String value) { | |
| 21564 setProperty('text-line-through-width', value, ''); | |
| 21565 } | |
| 21566 | |
| 21567 /** Gets the value of "text-orientation" */ | |
| 21568 String get textOrientation() => | |
| 21569 getPropertyValue('${_browserPrefix}text-orientation'); | |
| 21570 | |
| 21571 /** Sets the value of "text-orientation" */ | |
| 21572 void set textOrientation(String value) { | |
| 21573 setProperty('${_browserPrefix}text-orientation', value, ''); | |
| 21574 } | |
| 21575 | |
| 21576 /** Gets the value of "text-overflow" */ | |
| 21577 String get textOverflow() => | |
| 21578 getPropertyValue('text-overflow'); | |
| 21579 | |
| 21580 /** Sets the value of "text-overflow" */ | |
| 21581 void set textOverflow(String value) { | |
| 21582 setProperty('text-overflow', value, ''); | |
| 21583 } | |
| 21584 | |
| 21585 /** Gets the value of "text-overline" */ | |
| 21586 String get textOverline() => | |
| 21587 getPropertyValue('text-overline'); | |
| 21588 | |
| 21589 /** Sets the value of "text-overline" */ | |
| 21590 void set textOverline(String value) { | |
| 21591 setProperty('text-overline', value, ''); | |
| 21592 } | |
| 21593 | |
| 21594 /** Gets the value of "text-overline-color" */ | |
| 21595 String get textOverlineColor() => | |
| 21596 getPropertyValue('text-overline-color'); | |
| 21597 | |
| 21598 /** Sets the value of "text-overline-color" */ | |
| 21599 void set textOverlineColor(String value) { | |
| 21600 setProperty('text-overline-color', value, ''); | |
| 21601 } | |
| 21602 | |
| 21603 /** Gets the value of "text-overline-mode" */ | |
| 21604 String get textOverlineMode() => | |
| 21605 getPropertyValue('text-overline-mode'); | |
| 21606 | |
| 21607 /** Sets the value of "text-overline-mode" */ | |
| 21608 void set textOverlineMode(String value) { | |
| 21609 setProperty('text-overline-mode', value, ''); | |
| 21610 } | |
| 21611 | |
| 21612 /** Gets the value of "text-overline-style" */ | |
| 21613 String get textOverlineStyle() => | |
| 21614 getPropertyValue('text-overline-style'); | |
| 21615 | |
| 21616 /** Sets the value of "text-overline-style" */ | |
| 21617 void set textOverlineStyle(String value) { | |
| 21618 setProperty('text-overline-style', value, ''); | |
| 21619 } | |
| 21620 | |
| 21621 /** Gets the value of "text-overline-width" */ | |
| 21622 String get textOverlineWidth() => | |
| 21623 getPropertyValue('text-overline-width'); | |
| 21624 | |
| 21625 /** Sets the value of "text-overline-width" */ | |
| 21626 void set textOverlineWidth(String value) { | |
| 21627 setProperty('text-overline-width', value, ''); | |
| 21628 } | |
| 21629 | |
| 21630 /** Gets the value of "text-rendering" */ | |
| 21631 String get textRendering() => | |
| 21632 getPropertyValue('text-rendering'); | |
| 21633 | |
| 21634 /** Sets the value of "text-rendering" */ | |
| 21635 void set textRendering(String value) { | |
| 21636 setProperty('text-rendering', value, ''); | |
| 21637 } | |
| 21638 | |
| 21639 /** Gets the value of "text-security" */ | |
| 21640 String get textSecurity() => | |
| 21641 getPropertyValue('${_browserPrefix}text-security'); | |
| 21642 | |
| 21643 /** Sets the value of "text-security" */ | |
| 21644 void set textSecurity(String value) { | |
| 21645 setProperty('${_browserPrefix}text-security', value, ''); | |
| 21646 } | |
| 21647 | |
| 21648 /** Gets the value of "text-shadow" */ | |
| 21649 String get textShadow() => | |
| 21650 getPropertyValue('text-shadow'); | |
| 21651 | |
| 21652 /** Sets the value of "text-shadow" */ | |
| 21653 void set textShadow(String value) { | |
| 21654 setProperty('text-shadow', value, ''); | |
| 21655 } | |
| 21656 | |
| 21657 /** Gets the value of "text-size-adjust" */ | |
| 21658 String get textSizeAdjust() => | |
| 21659 getPropertyValue('${_browserPrefix}text-size-adjust'); | |
| 21660 | |
| 21661 /** Sets the value of "text-size-adjust" */ | |
| 21662 void set textSizeAdjust(String value) { | |
| 21663 setProperty('${_browserPrefix}text-size-adjust', value, ''); | |
| 21664 } | |
| 21665 | |
| 21666 /** Gets the value of "text-stroke" */ | |
| 21667 String get textStroke() => | |
| 21668 getPropertyValue('${_browserPrefix}text-stroke'); | |
| 21669 | |
| 21670 /** Sets the value of "text-stroke" */ | |
| 21671 void set textStroke(String value) { | |
| 21672 setProperty('${_browserPrefix}text-stroke', value, ''); | |
| 21673 } | |
| 21674 | |
| 21675 /** Gets the value of "text-stroke-color" */ | |
| 21676 String get textStrokeColor() => | |
| 21677 getPropertyValue('${_browserPrefix}text-stroke-color'); | |
| 21678 | |
| 21679 /** Sets the value of "text-stroke-color" */ | |
| 21680 void set textStrokeColor(String value) { | |
| 21681 setProperty('${_browserPrefix}text-stroke-color', value, ''); | |
| 21682 } | |
| 21683 | |
| 21684 /** Gets the value of "text-stroke-width" */ | |
| 21685 String get textStrokeWidth() => | |
| 21686 getPropertyValue('${_browserPrefix}text-stroke-width'); | |
| 21687 | |
| 21688 /** Sets the value of "text-stroke-width" */ | |
| 21689 void set textStrokeWidth(String value) { | |
| 21690 setProperty('${_browserPrefix}text-stroke-width', value, ''); | |
| 21691 } | |
| 21692 | |
| 21693 /** Gets the value of "text-transform" */ | |
| 21694 String get textTransform() => | |
| 21695 getPropertyValue('text-transform'); | |
| 21696 | |
| 21697 /** Sets the value of "text-transform" */ | |
| 21698 void set textTransform(String value) { | |
| 21699 setProperty('text-transform', value, ''); | |
| 21700 } | |
| 21701 | |
| 21702 /** Gets the value of "text-underline" */ | |
| 21703 String get textUnderline() => | |
| 21704 getPropertyValue('text-underline'); | |
| 21705 | |
| 21706 /** Sets the value of "text-underline" */ | |
| 21707 void set textUnderline(String value) { | |
| 21708 setProperty('text-underline', value, ''); | |
| 21709 } | |
| 21710 | |
| 21711 /** Gets the value of "text-underline-color" */ | |
| 21712 String get textUnderlineColor() => | |
| 21713 getPropertyValue('text-underline-color'); | |
| 21714 | |
| 21715 /** Sets the value of "text-underline-color" */ | |
| 21716 void set textUnderlineColor(String value) { | |
| 21717 setProperty('text-underline-color', value, ''); | |
| 21718 } | |
| 21719 | |
| 21720 /** Gets the value of "text-underline-mode" */ | |
| 21721 String get textUnderlineMode() => | |
| 21722 getPropertyValue('text-underline-mode'); | |
| 21723 | |
| 21724 /** Sets the value of "text-underline-mode" */ | |
| 21725 void set textUnderlineMode(String value) { | |
| 21726 setProperty('text-underline-mode', value, ''); | |
| 21727 } | |
| 21728 | |
| 21729 /** Gets the value of "text-underline-style" */ | |
| 21730 String get textUnderlineStyle() => | |
| 21731 getPropertyValue('text-underline-style'); | |
| 21732 | |
| 21733 /** Sets the value of "text-underline-style" */ | |
| 21734 void set textUnderlineStyle(String value) { | |
| 21735 setProperty('text-underline-style', value, ''); | |
| 21736 } | |
| 21737 | |
| 21738 /** Gets the value of "text-underline-width" */ | |
| 21739 String get textUnderlineWidth() => | |
| 21740 getPropertyValue('text-underline-width'); | |
| 21741 | |
| 21742 /** Sets the value of "text-underline-width" */ | |
| 21743 void set textUnderlineWidth(String value) { | |
| 21744 setProperty('text-underline-width', value, ''); | |
| 21745 } | |
| 21746 | |
| 21747 /** Gets the value of "top" */ | |
| 21748 String get top() => | |
| 21749 getPropertyValue('top'); | |
| 21750 | |
| 21751 /** Sets the value of "top" */ | |
| 21752 void set top(String value) { | |
| 21753 setProperty('top', value, ''); | |
| 21754 } | |
| 21755 | |
| 21756 /** Gets the value of "transform" */ | |
| 21757 String get transform() => | |
| 21758 getPropertyValue('${_browserPrefix}transform'); | |
| 21759 | |
| 21760 /** Sets the value of "transform" */ | |
| 21761 void set transform(String value) { | |
| 21762 setProperty('${_browserPrefix}transform', value, ''); | |
| 21763 } | |
| 21764 | |
| 21765 /** Gets the value of "transform-origin" */ | |
| 21766 String get transformOrigin() => | |
| 21767 getPropertyValue('${_browserPrefix}transform-origin'); | |
| 21768 | |
| 21769 /** Sets the value of "transform-origin" */ | |
| 21770 void set transformOrigin(String value) { | |
| 21771 setProperty('${_browserPrefix}transform-origin', value, ''); | |
| 21772 } | |
| 21773 | |
| 21774 /** Gets the value of "transform-origin-x" */ | |
| 21775 String get transformOriginX() => | |
| 21776 getPropertyValue('${_browserPrefix}transform-origin-x'); | |
| 21777 | |
| 21778 /** Sets the value of "transform-origin-x" */ | |
| 21779 void set transformOriginX(String value) { | |
| 21780 setProperty('${_browserPrefix}transform-origin-x', value, ''); | |
| 21781 } | |
| 21782 | |
| 21783 /** Gets the value of "transform-origin-y" */ | |
| 21784 String get transformOriginY() => | |
| 21785 getPropertyValue('${_browserPrefix}transform-origin-y'); | |
| 21786 | |
| 21787 /** Sets the value of "transform-origin-y" */ | |
| 21788 void set transformOriginY(String value) { | |
| 21789 setProperty('${_browserPrefix}transform-origin-y', value, ''); | |
| 21790 } | |
| 21791 | |
| 21792 /** Gets the value of "transform-origin-z" */ | |
| 21793 String get transformOriginZ() => | |
| 21794 getPropertyValue('${_browserPrefix}transform-origin-z'); | |
| 21795 | |
| 21796 /** Sets the value of "transform-origin-z" */ | |
| 21797 void set transformOriginZ(String value) { | |
| 21798 setProperty('${_browserPrefix}transform-origin-z', value, ''); | |
| 21799 } | |
| 21800 | |
| 21801 /** Gets the value of "transform-style" */ | |
| 21802 String get transformStyle() => | |
| 21803 getPropertyValue('${_browserPrefix}transform-style'); | |
| 21804 | |
| 21805 /** Sets the value of "transform-style" */ | |
| 21806 void set transformStyle(String value) { | |
| 21807 setProperty('${_browserPrefix}transform-style', value, ''); | |
| 21808 } | |
| 21809 | |
| 21810 /** Gets the value of "transition" */ | |
| 21811 String get transition() => | |
| 21812 getPropertyValue('${_browserPrefix}transition'); | |
| 21813 | |
| 21814 /** Sets the value of "transition" */ | |
| 21815 void set transition(String value) { | |
| 21816 setProperty('${_browserPrefix}transition', value, ''); | |
| 21817 } | |
| 21818 | |
| 21819 /** Gets the value of "transition-delay" */ | |
| 21820 String get transitionDelay() => | |
| 21821 getPropertyValue('${_browserPrefix}transition-delay'); | |
| 21822 | |
| 21823 /** Sets the value of "transition-delay" */ | |
| 21824 void set transitionDelay(String value) { | |
| 21825 setProperty('${_browserPrefix}transition-delay', value, ''); | |
| 21826 } | |
| 21827 | |
| 21828 /** Gets the value of "transition-duration" */ | |
| 21829 String get transitionDuration() => | |
| 21830 getPropertyValue('${_browserPrefix}transition-duration'); | |
| 21831 | |
| 21832 /** Sets the value of "transition-duration" */ | |
| 21833 void set transitionDuration(String value) { | |
| 21834 setProperty('${_browserPrefix}transition-duration', value, ''); | |
| 21835 } | |
| 21836 | |
| 21837 /** Gets the value of "transition-property" */ | |
| 21838 String get transitionProperty() => | |
| 21839 getPropertyValue('${_browserPrefix}transition-property'); | |
| 21840 | |
| 21841 /** Sets the value of "transition-property" */ | |
| 21842 void set transitionProperty(String value) { | |
| 21843 setProperty('${_browserPrefix}transition-property', value, ''); | |
| 21844 } | |
| 21845 | |
| 21846 /** Gets the value of "transition-timing-function" */ | |
| 21847 String get transitionTimingFunction() => | |
| 21848 getPropertyValue('${_browserPrefix}transition-timing-function'); | |
| 21849 | |
| 21850 /** Sets the value of "transition-timing-function" */ | |
| 21851 void set transitionTimingFunction(String value) { | |
| 21852 setProperty('${_browserPrefix}transition-timing-function', value, ''); | |
| 21853 } | |
| 21854 | |
| 21855 /** Gets the value of "unicode-bidi" */ | |
| 21856 String get unicodeBidi() => | |
| 21857 getPropertyValue('unicode-bidi'); | |
| 21858 | |
| 21859 /** Sets the value of "unicode-bidi" */ | |
| 21860 void set unicodeBidi(String value) { | |
| 21861 setProperty('unicode-bidi', value, ''); | |
| 21862 } | |
| 21863 | |
| 21864 /** Gets the value of "unicode-range" */ | |
| 21865 String get unicodeRange() => | |
| 21866 getPropertyValue('unicode-range'); | |
| 21867 | |
| 21868 /** Sets the value of "unicode-range" */ | |
| 21869 void set unicodeRange(String value) { | |
| 21870 setProperty('unicode-range', value, ''); | |
| 21871 } | |
| 21872 | |
| 21873 /** Gets the value of "user-drag" */ | |
| 21874 String get userDrag() => | |
| 21875 getPropertyValue('${_browserPrefix}user-drag'); | |
| 21876 | |
| 21877 /** Sets the value of "user-drag" */ | |
| 21878 void set userDrag(String value) { | |
| 21879 setProperty('${_browserPrefix}user-drag', value, ''); | |
| 21880 } | |
| 21881 | |
| 21882 /** Gets the value of "user-modify" */ | |
| 21883 String get userModify() => | |
| 21884 getPropertyValue('${_browserPrefix}user-modify'); | |
| 21885 | |
| 21886 /** Sets the value of "user-modify" */ | |
| 21887 void set userModify(String value) { | |
| 21888 setProperty('${_browserPrefix}user-modify', value, ''); | |
| 21889 } | |
| 21890 | |
| 21891 /** Gets the value of "user-select" */ | |
| 21892 String get userSelect() => | |
| 21893 getPropertyValue('${_browserPrefix}user-select'); | |
| 21894 | |
| 21895 /** Sets the value of "user-select" */ | |
| 21896 void set userSelect(String value) { | |
| 21897 setProperty('${_browserPrefix}user-select', value, ''); | |
| 21898 } | |
| 21899 | |
| 21900 /** Gets the value of "vertical-align" */ | |
| 21901 String get verticalAlign() => | |
| 21902 getPropertyValue('vertical-align'); | |
| 21903 | |
| 21904 /** Sets the value of "vertical-align" */ | |
| 21905 void set verticalAlign(String value) { | |
| 21906 setProperty('vertical-align', value, ''); | |
| 21907 } | |
| 21908 | |
| 21909 /** Gets the value of "visibility" */ | |
| 21910 String get visibility() => | |
| 21911 getPropertyValue('visibility'); | |
| 21912 | |
| 21913 /** Sets the value of "visibility" */ | |
| 21914 void set visibility(String value) { | |
| 21915 setProperty('visibility', value, ''); | |
| 21916 } | |
| 21917 | |
| 21918 /** Gets the value of "white-space" */ | |
| 21919 String get whiteSpace() => | |
| 21920 getPropertyValue('white-space'); | |
| 21921 | |
| 21922 /** Sets the value of "white-space" */ | |
| 21923 void set whiteSpace(String value) { | |
| 21924 setProperty('white-space', value, ''); | |
| 21925 } | |
| 21926 | |
| 21927 /** Gets the value of "widows" */ | |
| 21928 String get widows() => | |
| 21929 getPropertyValue('widows'); | |
| 21930 | |
| 21931 /** Sets the value of "widows" */ | |
| 21932 void set widows(String value) { | |
| 21933 setProperty('widows', value, ''); | |
| 21934 } | |
| 21935 | |
| 21936 /** Gets the value of "width" */ | |
| 21937 String get width() => | |
| 21938 getPropertyValue('width'); | |
| 21939 | |
| 21940 /** Sets the value of "width" */ | |
| 21941 void set width(String value) { | |
| 21942 setProperty('width', value, ''); | |
| 21943 } | |
| 21944 | |
| 21945 /** Gets the value of "word-break" */ | |
| 21946 String get wordBreak() => | |
| 21947 getPropertyValue('word-break'); | |
| 21948 | |
| 21949 /** Sets the value of "word-break" */ | |
| 21950 void set wordBreak(String value) { | |
| 21951 setProperty('word-break', value, ''); | |
| 21952 } | |
| 21953 | |
| 21954 /** Gets the value of "word-spacing" */ | |
| 21955 String get wordSpacing() => | |
| 21956 getPropertyValue('word-spacing'); | |
| 21957 | |
| 21958 /** Sets the value of "word-spacing" */ | |
| 21959 void set wordSpacing(String value) { | |
| 21960 setProperty('word-spacing', value, ''); | |
| 21961 } | |
| 21962 | |
| 21963 /** Gets the value of "word-wrap" */ | |
| 21964 String get wordWrap() => | |
| 21965 getPropertyValue('word-wrap'); | |
| 21966 | |
| 21967 /** Sets the value of "word-wrap" */ | |
| 21968 void set wordWrap(String value) { | |
| 21969 setProperty('word-wrap', value, ''); | |
| 21970 } | |
| 21971 | |
| 21972 /** Gets the value of "wrap-shape" */ | |
| 21973 String get wrapShape() => | |
| 21974 getPropertyValue('${_browserPrefix}wrap-shape'); | |
| 21975 | |
| 21976 /** Sets the value of "wrap-shape" */ | |
| 21977 void set wrapShape(String value) { | |
| 21978 setProperty('${_browserPrefix}wrap-shape', value, ''); | |
| 21979 } | |
| 21980 | |
| 21981 /** Gets the value of "writing-mode" */ | |
| 21982 String get writingMode() => | |
| 21983 getPropertyValue('${_browserPrefix}writing-mode'); | |
| 21984 | |
| 21985 /** Sets the value of "writing-mode" */ | |
| 21986 void set writingMode(String value) { | |
| 21987 setProperty('${_browserPrefix}writing-mode', value, ''); | |
| 21988 } | |
| 21989 | |
| 21990 /** Gets the value of "z-index" */ | |
| 21991 String get zIndex() => | |
| 21992 getPropertyValue('z-index'); | |
| 21993 | |
| 21994 /** Sets the value of "z-index" */ | |
| 21995 void set zIndex(String value) { | |
| 21996 setProperty('z-index', value, ''); | |
| 21997 } | |
| 21998 | |
| 21999 /** Gets the value of "zoom" */ | |
| 22000 String get zoom() => | |
| 22001 getPropertyValue('zoom'); | |
| 22002 | |
| 22003 /** Sets the value of "zoom" */ | |
| 22004 void set zoom(String value) { | |
| 22005 setProperty('zoom', value, ''); | |
| 22006 } | |
| 22007 } | |
| 22008 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 22009 // for details. All rights reserved. Use of this source code is governed by a | |
| 22010 // BSD-style license that can be found in the LICENSE file. | |
| 22011 | |
| 22012 interface CustomEvent extends Event factory CustomEventWrappingImplementation { | 8542 interface CustomEvent extends Event factory CustomEventWrappingImplementation { |
| 22013 | 8543 |
| 22014 CustomEvent(String type, [bool canBubble, bool cancelable, Object detail]); | 8544 CustomEvent(String type, [bool canBubble, bool cancelable, Object detail]); |
| 22015 | 8545 |
| 22016 String get detail(); | 8546 String get detail(); |
| 22017 } | 8547 } |
| 22018 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 8548 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 22019 // for details. All rights reserved. Use of this source code is governed by a | 8549 // for details. All rights reserved. Use of this source code is governed by a |
| 22020 // BSD-style license that can be found in the LICENSE file. | 8550 // BSD-style license that can be found in the LICENSE file. |
| 22021 | 8551 |
| 22022 class CustomEventWrappingImplementation extends EventWrappingImplementation impl
ements CustomEvent { | |
| 22023 CustomEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 22024 | |
| 22025 factory CustomEventWrappingImplementation(String type, | |
| 22026 [bool canBubble = true, bool cancelable = true, Object detail = null]) { | |
| 22027 final e = dom.document.createEvent("CustomEvent"); | |
| 22028 e.initCustomEvent(type, canBubble, cancelable, detail); | |
| 22029 return LevelDom.wrapCustomEvent(e); | |
| 22030 } | |
| 22031 | |
| 22032 String get detail() => _ptr.detail; | |
| 22033 } | |
| 22034 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 22035 // for details. All rights reserved. Use of this source code is governed by a | |
| 22036 // BSD-style license that can be found in the LICENSE file. | |
| 22037 | |
| 22038 /** | |
| 22039 * Provides a Map abstraction on top of data-* attributes, similar to the | |
| 22040 * dataSet in the old DOM. | |
| 22041 */ | |
| 22042 class _DataAttributeMap implements Map<String, String> { | |
| 22043 | |
| 22044 final Map<String, String> _attributes; | |
| 22045 | |
| 22046 _DataAttributeMap(this._attributes); | |
| 22047 | |
| 22048 // interface Map | |
| 22049 | |
| 22050 // TODO: Use lazy iterator when it is available on Map. | |
| 22051 bool containsValue(String value) => getValues().some((v) => v == value); | |
| 22052 | |
| 22053 bool containsKey(String key) => _attributes.containsKey(_attr(key)); | |
| 22054 | |
| 22055 String operator [](String key) => _attributes[_attr(key)]; | |
| 22056 | |
| 22057 void operator []=(String key, String value) { | |
| 22058 _attributes[_attr(key)] = value; | |
| 22059 } | |
| 22060 | |
| 22061 String putIfAbsent(String key, String ifAbsent()) { | |
| 22062 if (!containsKey(key)) { | |
| 22063 return this[key] = ifAbsent(); | |
| 22064 } | |
| 22065 return this[key]; | |
| 22066 } | |
| 22067 | |
| 22068 String remove(String key) => _attributes.remove(_attr(key)); | |
| 22069 | |
| 22070 void clear() { | |
| 22071 // Needs to operate on a snapshot since we are mutatiting the collection. | |
| 22072 for (String key in getKeys()) { | |
| 22073 remove(key); | |
| 22074 } | |
| 22075 } | |
| 22076 | |
| 22077 void forEach(void f(String key, String value)) { | |
| 22078 _attributes.forEach((String key, String value) { | |
| 22079 if (_matches(key)) { | |
| 22080 f(_strip(key), value); | |
| 22081 } | |
| 22082 }); | |
| 22083 } | |
| 22084 | |
| 22085 Collection<String> getKeys() { | |
| 22086 final keys = new List<String>(); | |
| 22087 _attributes.forEach((String key, String value) { | |
| 22088 if (_matches(key)) { | |
| 22089 keys.add(_strip(key)); | |
| 22090 } | |
| 22091 }); | |
| 22092 return keys; | |
| 22093 } | |
| 22094 | |
| 22095 Collection<String> getValues() { | |
| 22096 final values = new List<String>(); | |
| 22097 _attributes.forEach((String key, String value) { | |
| 22098 if (_matches(key)) { | |
| 22099 values.add(value); | |
| 22100 } | |
| 22101 }); | |
| 22102 return values; | |
| 22103 } | |
| 22104 | |
| 22105 int get length() => getKeys().length; | |
| 22106 | |
| 22107 // TODO: Use lazy iterator when it is available on Map. | |
| 22108 bool isEmpty() => length == 0; | |
| 22109 | |
| 22110 // Helpers. | |
| 22111 String _attr(String key) => 'data-$key'; | |
| 22112 bool _matches(String key) => key.startsWith('data-'); | |
| 22113 String _strip(String key) => key.substring(5); | |
| 22114 } | |
| 22115 | |
| 22116 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 22117 // for details. All rights reserved. Use of this source code is governed by a | |
| 22118 // BSD-style license that can be found in the LICENSE file. | |
| 22119 | |
| 22120 /** | |
| 22121 * Utils for device detection. | |
| 22122 */ | |
| 22123 class _Device { | |
| 22124 /** | |
| 22125 * Gets the browser's user agent. Using this function allows tests to inject | |
| 22126 * the user agent. | |
| 22127 * Returns the user agent. | |
| 22128 */ | |
| 22129 static String get userAgent() => dom.window.navigator.userAgent; | |
| 22130 | |
| 22131 /** | |
| 22132 * Determines if the current device is running Firefox. | |
| 22133 */ | |
| 22134 static bool get isFirefox() => userAgent.contains("Firefox", 0); | |
| 22135 } | |
| 22136 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 22137 // for details. All rights reserved. Use of this source code is governed by a | |
| 22138 // BSD-style license that can be found in the LICENSE file. | |
| 22139 | |
| 22140 interface DeviceMotionEvent extends Event factory DeviceMotionEventWrappingImple
mentation { | 8552 interface DeviceMotionEvent extends Event factory DeviceMotionEventWrappingImple
mentation { |
| 22141 | 8553 |
| 22142 // TODO(nweiz): Add more arguments to the constructor when we support | 8554 // TODO(nweiz): Add more arguments to the constructor when we support |
| 22143 // DeviceMotionEvent more thoroughly. | 8555 // DeviceMotionEvent more thoroughly. |
| 22144 DeviceMotionEvent(String type, [bool canBubble, bool cancelable]); | 8556 DeviceMotionEvent(String type, [bool canBubble, bool cancelable]); |
| 22145 | 8557 |
| 22146 num get interval(); | 8558 num get interval(); |
| 22147 } | 8559 } |
| 22148 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 8560 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 22149 // for details. All rights reserved. Use of this source code is governed by a | 8561 // for details. All rights reserved. Use of this source code is governed by a |
| 22150 // BSD-style license that can be found in the LICENSE file. | 8562 // BSD-style license that can be found in the LICENSE file. |
| 22151 | 8563 |
| 22152 class DeviceMotionEventWrappingImplementation extends EventWrappingImplementatio
n implements DeviceMotionEvent { | |
| 22153 DeviceMotionEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 22154 | |
| 22155 factory DeviceMotionEventWrappingImplementation(String type, | |
| 22156 [bool canBubble = true, bool cancelable = true]) { | |
| 22157 final e = dom.document.createEvent("DeviceMotionEvent"); | |
| 22158 e.initEvent(type, canBubble, cancelable); | |
| 22159 return LevelDom.wrapDeviceMotionEvent(e); | |
| 22160 } | |
| 22161 | |
| 22162 num get interval() => _ptr.interval; | |
| 22163 } | |
| 22164 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 22165 // for details. All rights reserved. Use of this source code is governed by a | |
| 22166 // BSD-style license that can be found in the LICENSE file. | |
| 22167 | |
| 22168 interface DeviceOrientationEvent extends Event factory DeviceOrientationEventWra
ppingImplementation { | 8564 interface DeviceOrientationEvent extends Event factory DeviceOrientationEventWra
ppingImplementation { |
| 22169 | 8565 |
| 22170 DeviceOrientationEvent(String type, double alpha, double beta, double gamma, | 8566 DeviceOrientationEvent(String type, double alpha, double beta, double gamma, |
| 22171 [bool canBubble, bool cancelable]); | 8567 [bool canBubble, bool cancelable]); |
| 22172 | 8568 |
| 22173 num get alpha(); | 8569 num get alpha(); |
| 22174 | 8570 |
| 22175 num get beta(); | 8571 num get beta(); |
| 22176 | 8572 |
| 22177 num get gamma(); | 8573 num get gamma(); |
| 22178 } | 8574 } |
| 22179 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 8575 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 22180 // for details. All rights reserved. Use of this source code is governed by a | 8576 // for details. All rights reserved. Use of this source code is governed by a |
| 22181 // BSD-style license that can be found in the LICENSE file. | 8577 // BSD-style license that can be found in the LICENSE file. |
| 22182 | 8578 |
| 22183 class DeviceOrientationEventWrappingImplementation extends EventWrappingImplemen
tation implements DeviceOrientationEvent { | |
| 22184 DeviceOrientationEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 22185 | |
| 22186 factory DeviceOrientationEventWrappingImplementation(String type, | |
| 22187 double alpha, double beta, double gamma, [bool canBubble = true, | |
| 22188 bool cancelable = true]) { | |
| 22189 final e = dom.document.createEvent("DeviceOrientationEvent"); | |
| 22190 e.initDeviceOrientationEvent( | |
| 22191 type, canBubble, cancelable, alpha, beta, gamma); | |
| 22192 return LevelDom.wrapDeviceOrientationEvent(e); | |
| 22193 } | |
| 22194 | |
| 22195 num get alpha() => _ptr.alpha; | |
| 22196 | |
| 22197 num get beta() => _ptr.beta; | |
| 22198 | |
| 22199 num get gamma() => _ptr.gamma; | |
| 22200 } | |
| 22201 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 22202 // for details. All rights reserved. Use of this source code is governed by a | |
| 22203 // BSD-style license that can be found in the LICENSE file. | |
| 22204 | |
| 22205 interface DocumentEvents extends ElementEvents { | 8579 interface DocumentEvents extends ElementEvents { |
| 22206 EventListenerList get readyStateChange(); | 8580 EventListenerList get readyStateChange(); |
| 22207 EventListenerList get selectionChange(); | 8581 EventListenerList get selectionChange(); |
| 22208 EventListenerList get contentLoaded(); | 8582 EventListenerList get contentLoaded(); |
| 22209 } | 8583 } |
| 22210 | 8584 |
| 22211 // TODO(jacobr): add DocumentFragment ctor | 8585 // TODO(jacobr): add DocumentFragment ctor |
| 22212 // add something smarted for document.domain | 8586 // add something smarted for document.domain |
| 22213 interface Document extends Element /*, common.NodeSelector */ { | 8587 interface Document extends Element /*, common.NodeSelector */ { |
| 22214 | 8588 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22297 interface DocumentFragment extends Element factory DocumentFragmentWrappingImple
mentation { | 8671 interface DocumentFragment extends Element factory DocumentFragmentWrappingImple
mentation { |
| 22298 | 8672 |
| 22299 DocumentFragment(); | 8673 DocumentFragment(); |
| 22300 | 8674 |
| 22301 DocumentFragment.html(String html); | 8675 DocumentFragment.html(String html); |
| 22302 } | 8676 } |
| 22303 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 8677 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 22304 // for details. All rights reserved. Use of this source code is governed by a | 8678 // for details. All rights reserved. Use of this source code is governed by a |
| 22305 // BSD-style license that can be found in the LICENSE file. | 8679 // BSD-style license that can be found in the LICENSE file. |
| 22306 | 8680 |
| 22307 class FilteredElementList implements ElementList { | |
| 22308 final Node _node; | |
| 22309 final NodeList _childNodes; | |
| 22310 | |
| 22311 FilteredElementList(Node node): _childNodes = node.nodes, _node = node; | |
| 22312 | |
| 22313 // We can't memoize this, since it's possible that children will be messed | |
| 22314 // with externally to this class. | |
| 22315 // | |
| 22316 // TODO(nweiz): Do we really need to copy the list to make the types work out? | |
| 22317 List<Element> get _filtered() => | |
| 22318 new List.from(_childNodes.filter((n) => n is Element)); | |
| 22319 | |
| 22320 // Don't use _filtered.first so we can short-circuit once we find an element. | |
| 22321 Element get first() { | |
| 22322 for (var node in _childNodes) { | |
| 22323 if (node is Element) { | |
| 22324 return node; | |
| 22325 } | |
| 22326 } | |
| 22327 return null; | |
| 22328 } | |
| 22329 | |
| 22330 void forEach(void f(Element element)) { | |
| 22331 _filtered.forEach(f); | |
| 22332 } | |
| 22333 | |
| 22334 void operator []=(int index, Element value) { | |
| 22335 this[index].replaceWith(value); | |
| 22336 } | |
| 22337 | |
| 22338 void set length(int newLength) { | |
| 22339 var len = this.length; | |
| 22340 if (newLength >= len) { | |
| 22341 return; | |
| 22342 } else if (newLength < 0) { | |
| 22343 throw const IllegalArgumentException("Invalid list length"); | |
| 22344 } | |
| 22345 | |
| 22346 removeRange(newLength - 1, len - newLength); | |
| 22347 } | |
| 22348 | |
| 22349 void add(Element value) { | |
| 22350 _childNodes.add(value); | |
| 22351 } | |
| 22352 | |
| 22353 void addAll(Collection<Element> collection) { | |
| 22354 collection.forEach(add); | |
| 22355 } | |
| 22356 | |
| 22357 void addLast(Element value) { | |
| 22358 add(value); | |
| 22359 } | |
| 22360 | |
| 22361 void sort(int compare(Element a, Element b)) { | |
| 22362 throw const UnsupportedOperationException('TODO(jacobr): should we impl?'); | |
| 22363 } | |
| 22364 | |
| 22365 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | |
| 22366 throw const NotImplementedException(); | |
| 22367 } | |
| 22368 | |
| 22369 void setRange(int start, int length, List from, [int startFrom = 0]) { | |
| 22370 throw const NotImplementedException(); | |
| 22371 } | |
| 22372 | |
| 22373 void removeRange(int start, int length) { | |
| 22374 _filtered.getRange(start, length).forEach((el) => el.remove()); | |
| 22375 } | |
| 22376 | |
| 22377 void insertRange(int start, int length, [initialValue = null]) { | |
| 22378 throw const NotImplementedException(); | |
| 22379 } | |
| 22380 | |
| 22381 void clear() { | |
| 22382 // Currently, ElementList#clear clears even non-element nodes, so we follow | |
| 22383 // that behavior. | |
| 22384 _childNodes.clear(); | |
| 22385 } | |
| 22386 | |
| 22387 Element removeLast() { | |
| 22388 var last = this.last(); | |
| 22389 if (last != null) { | |
| 22390 last.remove(); | |
| 22391 } | |
| 22392 return last; | |
| 22393 } | |
| 22394 | |
| 22395 Collection<Element> filter(bool f(Element element)) => _filtered.filter(f); | |
| 22396 bool every(bool f(Element element)) => _filtered.every(f); | |
| 22397 bool some(bool f(Element element)) => _filtered.some(f); | |
| 22398 bool isEmpty() => _filtered.isEmpty(); | |
| 22399 int get length() => _filtered.length; | |
| 22400 Element operator [](int index) => _filtered[index]; | |
| 22401 Iterator<Element> iterator() => _filtered.iterator(); | |
| 22402 List<Element> getRange(int start, int length) => | |
| 22403 _filtered.getRange(start, length); | |
| 22404 int indexOf(Element element, [int start = 0]) => | |
| 22405 _filtered.indexOf(element, start); | |
| 22406 | |
| 22407 int lastIndexOf(Element element, [int start = null]) { | |
| 22408 if (start === null) start = length - 1; | |
| 22409 return _filtered.lastIndexOf(element, start); | |
| 22410 } | |
| 22411 | |
| 22412 Element last() => _filtered.last(); | |
| 22413 } | |
| 22414 | |
| 22415 class EmptyStyleDeclaration extends CSSStyleDeclarationWrappingImplementation { | |
| 22416 // This can't call super(), since that's a factory constructor | |
| 22417 EmptyStyleDeclaration() | |
| 22418 : super._wrap(dom.document.createElement('div').style); | |
| 22419 | |
| 22420 void set cssText(String value) { | |
| 22421 throw new UnsupportedOperationException( | |
| 22422 "Can't modify a frozen style declaration."); | |
| 22423 } | |
| 22424 | |
| 22425 String removeProperty(String propertyName) { | |
| 22426 throw new UnsupportedOperationException( | |
| 22427 "Can't modify a frozen style declaration."); | |
| 22428 } | |
| 22429 | |
| 22430 void setProperty(String propertyName, String value, [String priority]) { | |
| 22431 throw new UnsupportedOperationException( | |
| 22432 "Can't modify a frozen style declaration."); | |
| 22433 } | |
| 22434 } | |
| 22435 | |
| 22436 Future<CSSStyleDeclaration> _emptyStyleFuture() { | |
| 22437 return _createMeasurementFuture(() => new EmptyStyleDeclaration(), | |
| 22438 new Completer<CSSStyleDeclaration>()); | |
| 22439 } | |
| 22440 | |
| 22441 class EmptyElementRect implements ElementRect { | |
| 22442 final ClientRect client = const SimpleClientRect(0, 0, 0, 0); | |
| 22443 final ClientRect offset = const SimpleClientRect(0, 0, 0, 0); | |
| 22444 final ClientRect scroll = const SimpleClientRect(0, 0, 0, 0); | |
| 22445 final ClientRect bounding = const SimpleClientRect(0, 0, 0, 0); | |
| 22446 final List<ClientRect> clientRects = const <ClientRect>[]; | |
| 22447 | |
| 22448 const EmptyElementRect(); | |
| 22449 } | |
| 22450 | |
| 22451 class DocumentFragmentWrappingImplementation extends NodeWrappingImplementation
implements DocumentFragment { | |
| 22452 ElementList _elements; | |
| 22453 | |
| 22454 DocumentFragmentWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 22455 | |
| 22456 /** @domName Document.createDocumentFragment */ | |
| 22457 factory DocumentFragmentWrappingImplementation() { | |
| 22458 return new DocumentFragmentWrappingImplementation._wrap( | |
| 22459 dom.document.createDocumentFragment()); | |
| 22460 } | |
| 22461 | |
| 22462 factory DocumentFragmentWrappingImplementation.html(String html) { | |
| 22463 var fragment = new DocumentFragment(); | |
| 22464 fragment.innerHTML = html; | |
| 22465 return fragment; | |
| 22466 } | |
| 22467 | |
| 22468 ElementList get elements() { | |
| 22469 if (_elements == null) { | |
| 22470 _elements = new FilteredElementList(this); | |
| 22471 } | |
| 22472 return _elements; | |
| 22473 } | |
| 22474 | |
| 22475 // TODO: The type of value should be Collection<Element>. See http://b/5392897 | |
| 22476 void set elements(value) { | |
| 22477 // Copy list first since we don't want liveness during iteration. | |
| 22478 List copy = new List.from(value); | |
| 22479 final elements = this.elements; | |
| 22480 elements.clear(); | |
| 22481 elements.addAll(copy); | |
| 22482 } | |
| 22483 | |
| 22484 String get innerHTML() { | |
| 22485 var e = new Element.tag("div"); | |
| 22486 e.nodes.add(this.clone(true)); | |
| 22487 return e.innerHTML; | |
| 22488 } | |
| 22489 | |
| 22490 String get outerHTML() => innerHTML; | |
| 22491 | |
| 22492 void set innerHTML(String value) { | |
| 22493 this.nodes.clear(); | |
| 22494 | |
| 22495 var e = new Element.tag("div"); | |
| 22496 e.innerHTML = value; | |
| 22497 | |
| 22498 // Copy list first since we don't want liveness during iteration. | |
| 22499 List nodes = new List.from(e.nodes); | |
| 22500 this.nodes.addAll(nodes); | |
| 22501 } | |
| 22502 | |
| 22503 Node _insertAdjacentNode(String where, Node node) { | |
| 22504 switch (where.toLowerCase()) { | |
| 22505 case "beforebegin": return null; | |
| 22506 case "afterend": return null; | |
| 22507 case "afterbegin": | |
| 22508 this.insertBefore(node, nodes.first); | |
| 22509 return node; | |
| 22510 case "beforeend": | |
| 22511 this.nodes.add(node); | |
| 22512 return node; | |
| 22513 default: | |
| 22514 throw new IllegalArgumentException("Invalid position ${where}"); | |
| 22515 } | |
| 22516 } | |
| 22517 | |
| 22518 Element insertAdjacentElement([String where = null, Element element = null]) | |
| 22519 => this._insertAdjacentNode(where, element); | |
| 22520 | |
| 22521 void insertAdjacentText([String where = null, String text = null]) { | |
| 22522 this._insertAdjacentNode(where, new Text(text)); | |
| 22523 } | |
| 22524 | |
| 22525 void insertAdjacentHTML( | |
| 22526 [String position_OR_where = null, String text = null]) { | |
| 22527 this._insertAdjacentNode( | |
| 22528 position_OR_where, new DocumentFragment.html(text)); | |
| 22529 } | |
| 22530 | |
| 22531 ElementEvents get on() { | |
| 22532 if (_on === null) { | |
| 22533 _on = new ElementEventsImplementation._wrap(_ptr); | |
| 22534 } | |
| 22535 return _on; | |
| 22536 } | |
| 22537 | |
| 22538 Future<ElementRect> get rect() { | |
| 22539 return _createMeasurementFuture(() => const EmptyElementRect(), | |
| 22540 new Completer<ElementRect>()); | |
| 22541 } | |
| 22542 | |
| 22543 Element query(String selectors) => | |
| 22544 LevelDom.wrapElement(_ptr.querySelector(selectors)); | |
| 22545 | |
| 22546 ElementList queryAll(String selectors) => | |
| 22547 LevelDom.wrapElementList(_ptr.querySelectorAll(selectors)); | |
| 22548 | |
| 22549 // If we can come up with a semi-reasonable default value for an Element | |
| 22550 // getter, we'll use it. In general, these return the same values as an | |
| 22551 // element that has no parent. | |
| 22552 String get contentEditable() => "false"; | |
| 22553 bool get isContentEditable() => false; | |
| 22554 bool get draggable() => false; | |
| 22555 bool get hidden() => false; | |
| 22556 bool get spellcheck() => false; | |
| 22557 int get tabIndex() => -1; | |
| 22558 String get id() => ""; | |
| 22559 String get title() => ""; | |
| 22560 String get tagName() => ""; | |
| 22561 String get webkitdropzone() => ""; | |
| 22562 Element get firstElementChild() => elements.first(); | |
| 22563 Element get lastElementChild() => elements.last(); | |
| 22564 Element get nextElementSibling() => null; | |
| 22565 Element get previousElementSibling() => null; | |
| 22566 Element get offsetParent() => null; | |
| 22567 Element get parent() => null; | |
| 22568 Map<String, String> get attributes() => const {}; | |
| 22569 // Issue 174: this should be a const set. | |
| 22570 Set<String> get classes() => new Set<String>(); | |
| 22571 Map<String, String> get dataAttributes() => const {}; | |
| 22572 CSSStyleDeclaration get style() => new EmptyStyleDeclaration(); | |
| 22573 Future<CSSStyleDeclaration> get computedStyle() => | |
| 22574 _emptyStyleFuture(); | |
| 22575 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) => | |
| 22576 _emptyStyleFuture(); | |
| 22577 bool matchesSelector([String selectors]) => false; | |
| 22578 | |
| 22579 // Imperative Element methods are made into no-ops, as they are on parentless | |
| 22580 // elements. | |
| 22581 void blur() {} | |
| 22582 void focus() {} | |
| 22583 void scrollByLines([int lines]) {} | |
| 22584 void scrollByPages([int pages]) {} | |
| 22585 void scrollIntoView([bool centerIfNeeded]) {} | |
| 22586 | |
| 22587 // Setters throw errors rather than being no-ops because we aren't going to | |
| 22588 // retain the values that were set, and erroring out seems clearer. | |
| 22589 void set attributes(Map<String, String> value) { | |
| 22590 throw new UnsupportedOperationException( | |
| 22591 "Attributes can't be set for document fragments."); | |
| 22592 } | |
| 22593 | |
| 22594 void set classes(Collection<String> value) { | |
| 22595 throw new UnsupportedOperationException( | |
| 22596 "Classes can't be set for document fragments."); | |
| 22597 } | |
| 22598 | |
| 22599 void set dataAttributes(Map<String, String> value) { | |
| 22600 throw new UnsupportedOperationException( | |
| 22601 "Data attributes can't be set for document fragments."); | |
| 22602 } | |
| 22603 | |
| 22604 void set contentEditable(String value) { | |
| 22605 throw new UnsupportedOperationException( | |
| 22606 "Content editable can't be set for document fragments."); | |
| 22607 } | |
| 22608 | |
| 22609 String get dir() { | |
| 22610 throw new UnsupportedOperationException( | |
| 22611 "Document fragments don't support text direction."); | |
| 22612 } | |
| 22613 | |
| 22614 void set dir(String value) { | |
| 22615 throw new UnsupportedOperationException( | |
| 22616 "Document fragments don't support text direction."); | |
| 22617 } | |
| 22618 | |
| 22619 void set draggable(bool value) { | |
| 22620 throw new UnsupportedOperationException( | |
| 22621 "Draggable can't be set for document fragments."); | |
| 22622 } | |
| 22623 | |
| 22624 void set hidden(bool value) { | |
| 22625 throw new UnsupportedOperationException( | |
| 22626 "Hidden can't be set for document fragments."); | |
| 22627 } | |
| 22628 | |
| 22629 void set id(String value) { | |
| 22630 throw new UnsupportedOperationException( | |
| 22631 "ID can't be set for document fragments."); | |
| 22632 } | |
| 22633 | |
| 22634 String get lang() { | |
| 22635 throw new UnsupportedOperationException( | |
| 22636 "Document fragments don't support language."); | |
| 22637 } | |
| 22638 | |
| 22639 void set lang(String value) { | |
| 22640 throw new UnsupportedOperationException( | |
| 22641 "Document fragments don't support language."); | |
| 22642 } | |
| 22643 | |
| 22644 void set scrollLeft(int value) { | |
| 22645 throw new UnsupportedOperationException( | |
| 22646 "Document fragments don't support scrolling."); | |
| 22647 } | |
| 22648 | |
| 22649 void set scrollTop(int value) { | |
| 22650 throw new UnsupportedOperationException( | |
| 22651 "Document fragments don't support scrolling."); | |
| 22652 } | |
| 22653 | |
| 22654 void set spellcheck(bool value) { | |
| 22655 throw new UnsupportedOperationException( | |
| 22656 "Spellcheck can't be set for document fragments."); | |
| 22657 } | |
| 22658 | |
| 22659 void set tabIndex(int value) { | |
| 22660 throw new UnsupportedOperationException( | |
| 22661 "Tab index can't be set for document fragments."); | |
| 22662 } | |
| 22663 | |
| 22664 void set title(String value) { | |
| 22665 throw new UnsupportedOperationException( | |
| 22666 "Title can't be set for document fragments."); | |
| 22667 } | |
| 22668 | |
| 22669 void set webkitdropzone(String value) { | |
| 22670 throw new UnsupportedOperationException( | |
| 22671 "WebKit drop zone can't be set for document fragments."); | |
| 22672 } | |
| 22673 } | |
| 22674 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 22675 // for details. All rights reserved. Use of this source code is governed by a | |
| 22676 // BSD-style license that can be found in the LICENSE file. | |
| 22677 | |
| 22678 class DocumentEventsImplementation extends ElementEventsImplementation | |
| 22679 implements DocumentEvents { | |
| 22680 | |
| 22681 DocumentEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
| 22682 | |
| 22683 EventListenerList get readyStateChange() => _get('readystatechange'); | |
| 22684 | |
| 22685 EventListenerList get selectionChange() => _get('selectionchange'); | |
| 22686 | |
| 22687 EventListenerList get contentLoaded() => _get('DOMContentLoaded'); | |
| 22688 } | |
| 22689 | |
| 22690 class DocumentWrappingImplementation extends ElementWrappingImplementation imple
ments Document { | |
| 22691 | |
| 22692 final _documentPtr; | |
| 22693 | |
| 22694 DocumentWrappingImplementation._wrap(this._documentPtr, ptr) : super._wrap(ptr
) { | |
| 22695 // We have to set the back ptr on the document as well as the documentElemen
t | |
| 22696 // so that it is always simple to detect when an existing wrapper exists. | |
| 22697 _documentPtr.dartObjectLocalStorage = this; | |
| 22698 } | |
| 22699 | |
| 22700 /** @domName HTMLDocument.activeElement */ | |
| 22701 Element get activeElement() => LevelDom.wrapElement(_documentPtr.activeElement
); | |
| 22702 | |
| 22703 Node get parent() => null; | |
| 22704 | |
| 22705 /** @domName Document.body */ | |
| 22706 Element get body() => LevelDom.wrapElement(_documentPtr.body); | |
| 22707 | |
| 22708 /** @domName Document.body */ | |
| 22709 void set body(Element value) { _documentPtr.body = LevelDom.unwrap(value); } | |
| 22710 | |
| 22711 /** @domName Document.charset */ | |
| 22712 String get charset() => _documentPtr.charset; | |
| 22713 | |
| 22714 /** @domName Document.charset */ | |
| 22715 void set charset(String value) { _documentPtr.charset = value; } | |
| 22716 | |
| 22717 /** @domName Document.cookie */ | |
| 22718 String get cookie() => _documentPtr.cookie; | |
| 22719 | |
| 22720 /** @domName Document.cookie */ | |
| 22721 void set cookie(String value) { _documentPtr.cookie = value; } | |
| 22722 | |
| 22723 /** @domName Document.defaultView */ | |
| 22724 Window get window() => LevelDom.wrapWindow(_documentPtr.defaultView); | |
| 22725 | |
| 22726 /** @domName HTMLDocument.designMode */ | |
| 22727 void set designMode(String value) { _documentPtr.designMode = value; } | |
| 22728 | |
| 22729 /** @domName Document.domain */ | |
| 22730 String get domain() => _documentPtr.domain; | |
| 22731 | |
| 22732 /** @domName Document.head */ | |
| 22733 HeadElement get head() => LevelDom.wrapHeadElement(_documentPtr.head); | |
| 22734 | |
| 22735 /** @domName Document.lastModified */ | |
| 22736 String get lastModified() => _documentPtr.lastModified; | |
| 22737 | |
| 22738 /** @domName Document.readyState */ | |
| 22739 String get readyState() => _documentPtr.readyState; | |
| 22740 | |
| 22741 /** @domName Document.referrer */ | |
| 22742 String get referrer() => _documentPtr.referrer; | |
| 22743 | |
| 22744 /** @domName Document.styleSheets */ | |
| 22745 StyleSheetList get styleSheets() => LevelDom.wrapStyleSheetList(_documentPtr.s
tyleSheets); | |
| 22746 | |
| 22747 /** @domName Document.title */ | |
| 22748 String get title() => _documentPtr.title; | |
| 22749 | |
| 22750 /** @domName Document.title */ | |
| 22751 void set title(String value) { _documentPtr.title = value; } | |
| 22752 | |
| 22753 /** @domName Document.webkitHidden */ | |
| 22754 bool get webkitHidden() => _documentPtr.webkitHidden; | |
| 22755 | |
| 22756 /** @domName Document.webkitVisibilityState */ | |
| 22757 String get webkitVisibilityState() => _documentPtr.webkitVisibilityState; | |
| 22758 | |
| 22759 /** @domName Document.caretRangeFromPoint */ | |
| 22760 Future<Range> caretRangeFromPoint([int x = null, int y = null]) { | |
| 22761 return _createMeasurementFuture( | |
| 22762 () => LevelDom.wrapRange(_documentPtr.caretRangeFromPoint(x, y)), | |
| 22763 new Completer<Range>()); | |
| 22764 } | |
| 22765 | |
| 22766 /** @domName Document.createElement */ | |
| 22767 Element createElement([String tagName = null]) { | |
| 22768 return LevelDom.wrapElement(_documentPtr.createElement(tagName)); | |
| 22769 } | |
| 22770 | |
| 22771 /** @domName Document.createEvent */ | |
| 22772 Event createEvent([String eventType = null]) { | |
| 22773 return LevelDom.wrapEvent(_documentPtr.createEvent(eventType)); | |
| 22774 } | |
| 22775 | |
| 22776 /** @domName Document.elementFromPoint */ | |
| 22777 Future<Element> elementFromPoint([int x = null, int y = null]) { | |
| 22778 return _createMeasurementFuture( | |
| 22779 () => LevelDom.wrapElement(_documentPtr.elementFromPoint(x, y)), | |
| 22780 new Completer<Element>()); | |
| 22781 } | |
| 22782 | |
| 22783 /** @domName Document.execCommand */ | |
| 22784 bool execCommand([String command = null, bool userInterface = null, String val
ue = null]) { | |
| 22785 return _documentPtr.execCommand(command, userInterface, value); | |
| 22786 } | |
| 22787 | |
| 22788 /** @domName Document.getCSSCanvasContext */ | |
| 22789 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, | |
| 22790 int width, int height) { | |
| 22791 return LevelDom.wrapCanvasRenderingContext(_documentPtr.getCSSCanvasContext(
contextId, name, width, height)); | |
| 22792 } | |
| 22793 | |
| 22794 /** @domName Document.queryCommandEnabled */ | |
| 22795 bool queryCommandEnabled([String command = null]) { | |
| 22796 return _documentPtr.queryCommandEnabled(command); | |
| 22797 } | |
| 22798 | |
| 22799 /** @domName Document.queryCommandIndeterm */ | |
| 22800 bool queryCommandIndeterm([String command = null]) { | |
| 22801 return _documentPtr.queryCommandIndeterm(command); | |
| 22802 } | |
| 22803 | |
| 22804 /** @domName Document.queryCommandState */ | |
| 22805 bool queryCommandState([String command = null]) { | |
| 22806 return _documentPtr.queryCommandState(command); | |
| 22807 } | |
| 22808 | |
| 22809 /** @domName Document.queryCommandSupported */ | |
| 22810 bool queryCommandSupported([String command = null]) { | |
| 22811 return _documentPtr.queryCommandSupported(command); | |
| 22812 } | |
| 22813 | |
| 22814 /** @domName Document.queryCommandValue */ | |
| 22815 String queryCommandValue([String command = null]) { | |
| 22816 return _documentPtr.queryCommandValue(command); | |
| 22817 } | |
| 22818 | |
| 22819 String get manifest() => _ptr.manifest; | |
| 22820 | |
| 22821 void set manifest(String value) { _ptr.manifest = value; } | |
| 22822 | |
| 22823 DocumentEvents get on() { | |
| 22824 if (_on === null) { | |
| 22825 _on = new DocumentEventsImplementation._wrap(_ptr); | |
| 22826 } | |
| 22827 return _on; | |
| 22828 } | |
| 22829 } | |
| 22830 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 22831 // for details. All rights reserved. Use of this source code is governed by a | |
| 22832 // BSD-style license that can be found in the LICENSE file. | |
| 22833 | |
| 22834 interface DOMApplicationCacheEvents extends Events { | 8681 interface DOMApplicationCacheEvents extends Events { |
| 22835 EventListenerList get cached(); | 8682 EventListenerList get cached(); |
| 22836 EventListenerList get checking(); | 8683 EventListenerList get checking(); |
| 22837 EventListenerList get downloading(); | 8684 EventListenerList get downloading(); |
| 22838 EventListenerList get error(); | 8685 EventListenerList get error(); |
| 22839 EventListenerList get noUpdate(); | 8686 EventListenerList get noUpdate(); |
| 22840 EventListenerList get obsolete(); | 8687 EventListenerList get obsolete(); |
| 22841 EventListenerList get progress(); | 8688 EventListenerList get progress(); |
| 22842 EventListenerList get updateReady(); | 8689 EventListenerList get updateReady(); |
| 22843 } | 8690 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 22861 void swapCache(); | 8708 void swapCache(); |
| 22862 | 8709 |
| 22863 void update(); | 8710 void update(); |
| 22864 | 8711 |
| 22865 DOMApplicationCacheEvents get on(); | 8712 DOMApplicationCacheEvents get on(); |
| 22866 } | 8713 } |
| 22867 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 8714 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 22868 // for details. All rights reserved. Use of this source code is governed by a | 8715 // for details. All rights reserved. Use of this source code is governed by a |
| 22869 // BSD-style license that can be found in the LICENSE file. | 8716 // BSD-style license that can be found in the LICENSE file. |
| 22870 | 8717 |
| 22871 class DOMApplicationCacheEventsImplementation extends EventsImplementation | |
| 22872 implements DOMApplicationCacheEvents { | |
| 22873 DOMApplicationCacheEventsImplementation._wrap(ptr) : super._wrap(ptr); | |
| 22874 | |
| 22875 EventListenerList get cached() => _get('cached'); | |
| 22876 EventListenerList get checking() => _get('checking'); | |
| 22877 EventListenerList get downloading() => _get('downloading'); | |
| 22878 EventListenerList get error() => _get('error'); | |
| 22879 EventListenerList get noUpdate() => _get('noupdate'); | |
| 22880 EventListenerList get obsolete() => _get('obsolete'); | |
| 22881 EventListenerList get progress() => _get('progress'); | |
| 22882 EventListenerList get updateReady() => _get('updateready'); | |
| 22883 } | |
| 22884 | |
| 22885 class DOMApplicationCacheWrappingImplementation extends EventTargetWrappingImple
mentation implements DOMApplicationCache { | |
| 22886 DOMApplicationCacheWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 22887 | |
| 22888 int get status() => _ptr.status; | |
| 22889 | |
| 22890 void swapCache() { | |
| 22891 _ptr.swapCache(); | |
| 22892 } | |
| 22893 | |
| 22894 void update() { | |
| 22895 _ptr.update(); | |
| 22896 } | |
| 22897 | |
| 22898 DOMApplicationCacheEvents get on() { | |
| 22899 if (_on === null) { | |
| 22900 _on = new DOMApplicationCacheEventsImplementation._wrap(_ptr); | |
| 22901 } | |
| 22902 return _on; | |
| 22903 } | |
| 22904 } | |
| 22905 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 22906 // for details. All rights reserved. Use of this source code is governed by a | |
| 22907 // BSD-style license that can be found in the LICENSE file. | |
| 22908 | |
| 22909 class DOMWrapperBase { | |
| 22910 final _ptr; | |
| 22911 | |
| 22912 DOMWrapperBase._wrap(this._ptr) { | |
| 22913 // We should never be creating duplicate wrappers. | |
| 22914 assert(_ptr.dartObjectLocalStorage === null); | |
| 22915 _ptr.dartObjectLocalStorage = this; | |
| 22916 } | |
| 22917 } | |
| 22918 | |
| 22919 /** This function is provided for unittest purposes only. */ | |
| 22920 unwrapDomObject(DOMWrapperBase wrapper) { | |
| 22921 return wrapper._ptr; | |
| 22922 }// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 22923 // for details. All rights reserved. Use of this source code is governed by a | |
| 22924 // BSD-style license that can be found in the LICENSE file. | |
| 22925 | |
| 22926 interface ElementList extends List<Element> { | 8718 interface ElementList extends List<Element> { |
| 22927 // TODO(jacobr): add element batch manipulation methods. | 8719 // TODO(jacobr): add element batch manipulation methods. |
| 22928 Element get first(); | 8720 Element get first(); |
| 22929 // TODO(jacobr): add insertAt | 8721 // TODO(jacobr): add insertAt |
| 22930 } | 8722 } |
| 22931 | 8723 |
| 22932 class DeferredElementRect { | 8724 class DeferredElementRect { |
| 22933 // TODO(jacobr) | 8725 // TODO(jacobr) |
| 22934 } | 8726 } |
| 22935 | 8727 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23111 Future<CSSStyleDeclaration> get computedStyle(); | 8903 Future<CSSStyleDeclaration> get computedStyle(); |
| 23112 | 8904 |
| 23113 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); | 8905 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); |
| 23114 | 8906 |
| 23115 ElementEvents get on(); | 8907 ElementEvents get on(); |
| 23116 } | 8908 } |
| 23117 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 8909 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 23118 // for details. All rights reserved. Use of this source code is governed by a | 8910 // for details. All rights reserved. Use of this source code is governed by a |
| 23119 // BSD-style license that can be found in the LICENSE file. | 8911 // BSD-style license that can be found in the LICENSE file. |
| 23120 | 8912 |
| 23121 // TODO(jacobr): use Lists.dart to remove some of the duplicated functionality. | |
| 23122 class _ChildrenElementList implements ElementList { | |
| 23123 // Raw Element. | |
| 23124 final _element; | |
| 23125 final _childElements; | |
| 23126 | |
| 23127 _ChildrenElementList._wrap(var element) | |
| 23128 : _childElements = element.children, | |
| 23129 _element = element; | |
| 23130 | |
| 23131 List<Element> _toList() { | |
| 23132 final output = new List(_childElements.length); | |
| 23133 for (int i = 0, len = _childElements.length; i < len; i++) { | |
| 23134 output[i] = LevelDom.wrapElement(_childElements[i]); | |
| 23135 } | |
| 23136 return output; | |
| 23137 } | |
| 23138 | |
| 23139 Element get first() { | |
| 23140 return LevelDom.wrapElement(_element.firstElementChild); | |
| 23141 } | |
| 23142 | |
| 23143 void forEach(void f(Element element)) { | |
| 23144 for (var element in _childElements) { | |
| 23145 f(LevelDom.wrapElement(element)); | |
| 23146 } | |
| 23147 } | |
| 23148 | |
| 23149 Collection<Element> filter(bool f(Element element)) { | |
| 23150 List<Element> output = new List<Element>(); | |
| 23151 forEach((Element element) { | |
| 23152 if (f(element)) { | |
| 23153 output.add(element); | |
| 23154 } | |
| 23155 }); | |
| 23156 return output; | |
| 23157 } | |
| 23158 | |
| 23159 bool every(bool f(Element element)) { | |
| 23160 for(Element element in this) { | |
| 23161 if (!f(element)) { | |
| 23162 return false; | |
| 23163 } | |
| 23164 }; | |
| 23165 return true; | |
| 23166 } | |
| 23167 | |
| 23168 bool some(bool f(Element element)) { | |
| 23169 for(Element element in this) { | |
| 23170 if (f(element)) { | |
| 23171 return true; | |
| 23172 } | |
| 23173 }; | |
| 23174 return false; | |
| 23175 } | |
| 23176 | |
| 23177 bool isEmpty() { | |
| 23178 return _element.firstElementChild !== null; | |
| 23179 } | |
| 23180 | |
| 23181 int get length() { | |
| 23182 return _childElements.length; | |
| 23183 } | |
| 23184 | |
| 23185 Element operator [](int index) { | |
| 23186 return LevelDom.wrapElement(_childElements[index]); | |
| 23187 } | |
| 23188 | |
| 23189 void operator []=(int index, Element value) { | |
| 23190 _element.replaceChild(LevelDom.unwrap(value), _childElements.item(index)); | |
| 23191 } | |
| 23192 | |
| 23193 void set length(int newLength) { | |
| 23194 // TODO(jacobr): remove children when length is reduced. | |
| 23195 throw const UnsupportedOperationException(''); | |
| 23196 } | |
| 23197 | |
| 23198 Element add(Element value) { | |
| 23199 _element.appendChild(LevelDom.unwrap(value)); | |
| 23200 return value; | |
| 23201 } | |
| 23202 | |
| 23203 Element addLast(Element value) => add(value); | |
| 23204 | |
| 23205 Iterator<Element> iterator() => _toList().iterator(); | |
| 23206 | |
| 23207 void addAll(Collection<Element> collection) { | |
| 23208 for (Element element in collection) { | |
| 23209 _element.appendChild(LevelDom.unwrap(element)); | |
| 23210 } | |
| 23211 } | |
| 23212 | |
| 23213 void sort(int compare(Element a, Element b)) { | |
| 23214 throw const UnsupportedOperationException('TODO(jacobr): should we impl?'); | |
| 23215 } | |
| 23216 | |
| 23217 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | |
| 23218 throw 'Not impl yet. todo(jacobr)'; | |
| 23219 } | |
| 23220 | |
| 23221 void setRange(int start, int length, List from, [int startFrom = 0]) { | |
| 23222 throw const NotImplementedException(); | |
| 23223 } | |
| 23224 | |
| 23225 void removeRange(int start, int length) { | |
| 23226 throw const NotImplementedException(); | |
| 23227 } | |
| 23228 | |
| 23229 void insertRange(int start, int length, [initialValue = null]) { | |
| 23230 throw const NotImplementedException(); | |
| 23231 } | |
| 23232 | |
| 23233 List getRange(int start, int length) { | |
| 23234 throw const NotImplementedException(); | |
| 23235 } | |
| 23236 | |
| 23237 int indexOf(Element element, [int start = 0]) { | |
| 23238 return _Lists.indexOf(this, element, start, this.length); | |
| 23239 } | |
| 23240 | |
| 23241 int lastIndexOf(Element element, [int start = null]) { | |
| 23242 if (start === null) start = length - 1; | |
| 23243 return _Lists.lastIndexOf(this, element, start); | |
| 23244 } | |
| 23245 | |
| 23246 void clear() { | |
| 23247 // It is unclear if we want to keep non element nodes? | |
| 23248 _element.textContent = ''; | |
| 23249 } | |
| 23250 | |
| 23251 Element removeLast() { | |
| 23252 final last = this.last(); | |
| 23253 if (last != null) { | |
| 23254 _element.removeChild(LevelDom.unwrap(last)); | |
| 23255 } | |
| 23256 return last; | |
| 23257 } | |
| 23258 | |
| 23259 Element last() { | |
| 23260 return LevelDom.wrapElement(_element.lastElementChild); | |
| 23261 } | |
| 23262 } | |
| 23263 | |
| 23264 class FrozenElementList implements ElementList { | |
| 23265 final _ptr; | |
| 23266 | |
| 23267 FrozenElementList._wrap(this._ptr); | |
| 23268 | |
| 23269 Element get first() { | |
| 23270 return this[0]; | |
| 23271 } | |
| 23272 | |
| 23273 void forEach(void f(Element element)) { | |
| 23274 for (var element in _ptr) { | |
| 23275 f(LevelDom.wrapElement(element)); | |
| 23276 } | |
| 23277 } | |
| 23278 | |
| 23279 Collection<Element> filter(bool f(Element element)) { | |
| 23280 throw 'Not impl yet. todo(jacobr)'; | |
| 23281 } | |
| 23282 | |
| 23283 bool every(bool f(Element element)) { | |
| 23284 throw 'Not impl yet. todo(jacobr)'; | |
| 23285 } | |
| 23286 | |
| 23287 bool some(bool f(Element element)) { | |
| 23288 throw 'Not impl yet. todo(jacobr)'; | |
| 23289 } | |
| 23290 | |
| 23291 bool isEmpty() { | |
| 23292 return _ptr.length == 0; | |
| 23293 } | |
| 23294 | |
| 23295 int get length() { | |
| 23296 return _ptr.length; | |
| 23297 } | |
| 23298 | |
| 23299 Element operator [](int index) { | |
| 23300 return LevelDom.wrapElement(_ptr[index]); | |
| 23301 } | |
| 23302 | |
| 23303 void operator []=(int index, Element value) { | |
| 23304 throw const UnsupportedOperationException(''); | |
| 23305 } | |
| 23306 | |
| 23307 void set length(int newLength) { | |
| 23308 throw const UnsupportedOperationException(''); | |
| 23309 } | |
| 23310 | |
| 23311 void add(Element value) { | |
| 23312 throw const UnsupportedOperationException(''); | |
| 23313 } | |
| 23314 | |
| 23315 | |
| 23316 void addLast(Element value) { | |
| 23317 throw const UnsupportedOperationException(''); | |
| 23318 } | |
| 23319 | |
| 23320 Iterator<Element> iterator() => new FrozenElementListIterator(this); | |
| 23321 | |
| 23322 void addAll(Collection<Element> collection) { | |
| 23323 throw const UnsupportedOperationException(''); | |
| 23324 } | |
| 23325 | |
| 23326 void sort(int compare(Element a, Element b)) { | |
| 23327 throw const UnsupportedOperationException(''); | |
| 23328 } | |
| 23329 | |
| 23330 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | |
| 23331 throw 'Not impl yet. todo(jacobr)'; | |
| 23332 } | |
| 23333 | |
| 23334 void setRange(int start, int length, List from, [int startFrom = 0]) { | |
| 23335 throw const NotImplementedException(); | |
| 23336 } | |
| 23337 | |
| 23338 void removeRange(int start, int length) { | |
| 23339 throw const NotImplementedException(); | |
| 23340 } | |
| 23341 | |
| 23342 void insertRange(int start, int length, [initialValue = null]) { | |
| 23343 throw const NotImplementedException(); | |
| 23344 } | |
| 23345 | |
| 23346 List getRange(int start, int length) { | |
| 23347 throw const NotImplementedException(); | |
| 23348 } | |
| 23349 | |
| 23350 int indexOf(Element element, [int start = 0]) { | |
| 23351 throw 'Not impl yet. todo(jacobr)'; | |
| 23352 } | |
| 23353 | |
| 23354 int lastIndexOf(Element element, [int start = null]) { | |
| 23355 throw 'Not impl yet. todo(jacobr)'; | |
| 23356 } | |
| 23357 | |
| 23358 void clear() { | |
| 23359 throw 'Not impl yet. todo(jacobr)'; | |
| 23360 } | |
| 23361 | |
| 23362 Element removeLast() { | |
| 23363 throw 'Not impl yet. todo(jacobr)'; | |
| 23364 } | |
| 23365 | |
| 23366 Element last() { | |
| 23367 return this[length-1]; | |
| 23368 } | |
| 23369 } | |
| 23370 | |
| 23371 class FrozenElementListIterator implements Iterator<Element> { | |
| 23372 final FrozenElementList _list; | |
| 23373 int _index = 0; | |
| 23374 | |
| 23375 FrozenElementListIterator(this._list); | |
| 23376 | |
| 23377 /** | |
| 23378 * Gets the next element in the iteration. Throws a | |
| 23379 * [NoMoreElementsException] if no element is left. | |
| 23380 */ | |
| 23381 Element next() { | |
| 23382 if (!hasNext()) { | |
| 23383 throw const NoMoreElementsException(); | |
| 23384 } | |
| 23385 | |
| 23386 return _list[_index++]; | |
| 23387 } | |
| 23388 | |
| 23389 /** | |
| 23390 * Returns whether the [Iterator] has elements left. | |
| 23391 */ | |
| 23392 bool hasNext() => _index < _list.length; | |
| 23393 } | |
| 23394 | |
| 23395 class ElementAttributeMap implements Map<String, String> { | |
| 23396 | |
| 23397 final _element; | |
| 23398 | |
| 23399 ElementAttributeMap._wrap(this._element); | |
| 23400 | |
| 23401 bool containsValue(String value) { | |
| 23402 final attributes = _element.attributes; | |
| 23403 for (int i = 0, len = attributes.length; i < len; i++) { | |
| 23404 if(value == attributes.item(i).value) { | |
| 23405 return true; | |
| 23406 } | |
| 23407 } | |
| 23408 return false; | |
| 23409 } | |
| 23410 | |
| 23411 /** @domName Element.hasAttribute */ | |
| 23412 bool containsKey(String key) { | |
| 23413 return _element.hasAttribute(key); | |
| 23414 } | |
| 23415 | |
| 23416 /** @domName Element.getAttribute */ | |
| 23417 String operator [](String key) { | |
| 23418 return _element.getAttribute(key); | |
| 23419 } | |
| 23420 | |
| 23421 /** @domName Element.setAttribute */ | |
| 23422 void operator []=(String key, String value) { | |
| 23423 _element.setAttribute(key, value); | |
| 23424 } | |
| 23425 | |
| 23426 String putIfAbsent(String key, String ifAbsent()) { | |
| 23427 if (!containsKey(key)) { | |
| 23428 this[key] = ifAbsent(); | |
| 23429 } | |
| 23430 } | |
| 23431 | |
| 23432 /** @domName Element.removeAttribute */ | |
| 23433 String remove(String key) { | |
| 23434 _element.removeAttribute(key); | |
| 23435 } | |
| 23436 | |
| 23437 void clear() { | |
| 23438 final attributes = _element.attributes; | |
| 23439 for (int i = attributes.length - 1; i >= 0; i--) { | |
| 23440 _element.removeAttribute(attributes.item(i).name); | |
| 23441 } | |
| 23442 } | |
| 23443 | |
| 23444 void forEach(void f(String key, String value)) { | |
| 23445 final attributes = _element.attributes; | |
| 23446 for (int i = 0, len = attributes.length; i < len; i++) { | |
| 23447 final item = attributes.item(i); | |
| 23448 f(item.name, item.value); | |
| 23449 } | |
| 23450 } | |
| 23451 | |
| 23452 Collection<String> getKeys() { | |
| 23453 // TODO(jacobr): generate a lazy collection instead. | |
| 23454 final attributes = _element.attributes; | |
| 23455 final keys = new List<String>(attributes.length); | |
| 23456 for (int i = 0, len = attributes.length; i < len; i++) { | |
| 23457 keys[i] = attributes.item(i).name; | |
| 23458 } | |
| 23459 return keys; | |
| 23460 } | |
| 23461 | |
| 23462 Collection<String> getValues() { | |
| 23463 // TODO(jacobr): generate a lazy collection instead. | |
| 23464 final attributes = _element.attributes; | |
| 23465 final values = new List<String>(attributes.length); | |
| 23466 for (int i = 0, len = attributes.length; i < len; i++) { | |
| 23467 values[i] = attributes.item(i).value; | |
| 23468 } | |
| 23469 return values; | |
| 23470 } | |
| 23471 | |
| 23472 /** | |
| 23473 * The number of {key, value} pairs in the map. | |
| 23474 */ | |
| 23475 int get length() { | |
| 23476 return _element.attributes.length; | |
| 23477 } | |
| 23478 | |
| 23479 /** | |
| 23480 * Returns true if there is no {key, value} pair in the map. | |
| 23481 */ | |
| 23482 bool isEmpty() { | |
| 23483 return !_element.hasAttributes(); | |
| 23484 } | |
| 23485 } | |
| 23486 | |
| 23487 class ElementEventsImplementation extends EventsImplementation implements Elemen
tEvents { | |
| 23488 ElementEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
| 23489 | |
| 23490 EventListenerList get abort() => _get("abort"); | |
| 23491 EventListenerList get beforeCopy() => _get("beforecopy"); | |
| 23492 EventListenerList get beforeCut() => _get("beforecut"); | |
| 23493 EventListenerList get beforePaste() => _get("beforepaste"); | |
| 23494 EventListenerList get blur() => _get("blur"); | |
| 23495 EventListenerList get change() => _get("change"); | |
| 23496 EventListenerList get click() => _get("click"); | |
| 23497 EventListenerList get contextMenu() => _get("contextmenu"); | |
| 23498 EventListenerList get copy() => _get("copy"); | |
| 23499 EventListenerList get cut() => _get("cut"); | |
| 23500 EventListenerList get dblClick() => _get("dblclick"); | |
| 23501 EventListenerList get drag() => _get("drag"); | |
| 23502 EventListenerList get dragEnd() => _get("dragend"); | |
| 23503 EventListenerList get dragEnter() => _get("dragenter"); | |
| 23504 EventListenerList get dragLeave() => _get("dragleave"); | |
| 23505 EventListenerList get dragOver() => _get("dragover"); | |
| 23506 EventListenerList get dragStart() => _get("dragstart"); | |
| 23507 EventListenerList get drop() => _get("drop"); | |
| 23508 EventListenerList get error() => _get("error"); | |
| 23509 EventListenerList get focus() => _get("focus"); | |
| 23510 EventListenerList get input() => _get("input"); | |
| 23511 EventListenerList get invalid() => _get("invalid"); | |
| 23512 EventListenerList get keyDown() => _get("keydown"); | |
| 23513 EventListenerList get keyPress() => _get("keypress"); | |
| 23514 EventListenerList get keyUp() => _get("keyup"); | |
| 23515 EventListenerList get load() => _get("load"); | |
| 23516 EventListenerList get mouseDown() => _get("mousedown"); | |
| 23517 EventListenerList get mouseMove() => _get("mousemove"); | |
| 23518 EventListenerList get mouseOut() => _get("mouseout"); | |
| 23519 EventListenerList get mouseOver() => _get("mouseover"); | |
| 23520 EventListenerList get mouseUp() => _get("mouseup"); | |
| 23521 EventListenerList get mouseWheel() => _get("mousewheel"); | |
| 23522 EventListenerList get paste() => _get("paste"); | |
| 23523 EventListenerList get reset() => _get("reset"); | |
| 23524 EventListenerList get scroll() => _get("scroll"); | |
| 23525 EventListenerList get search() => _get("search"); | |
| 23526 EventListenerList get select() => _get("select"); | |
| 23527 EventListenerList get selectStart() => _get("selectstart"); | |
| 23528 EventListenerList get submit() => _get("submit"); | |
| 23529 EventListenerList get touchCancel() => _get("touchcancel"); | |
| 23530 EventListenerList get touchEnd() => _get("touchend"); | |
| 23531 EventListenerList get touchLeave() => _get("touchleave"); | |
| 23532 EventListenerList get touchMove() => _get("touchmove"); | |
| 23533 EventListenerList get touchStart() => _get("touchstart"); | |
| 23534 EventListenerList get transitionEnd() => _get("webkitTransitionEnd"); | |
| 23535 EventListenerList get fullscreenChange() => _get("webkitfullscreenchange"); | |
| 23536 } | |
| 23537 | |
| 23538 class SimpleClientRect implements ClientRect { | |
| 23539 final num left; | |
| 23540 final num top; | |
| 23541 final num width; | |
| 23542 final num height; | |
| 23543 num get right() => left + width; | |
| 23544 num get bottom() => top + height; | |
| 23545 | |
| 23546 const SimpleClientRect(this.left, this.top, this.width, this.height); | |
| 23547 | |
| 23548 bool operator ==(ClientRect other) { | |
| 23549 return other !== null && left == other.left && top == other.top | |
| 23550 && width == other.width && height == other.height; | |
| 23551 } | |
| 23552 | |
| 23553 String toString() => "($left, $top, $width, $height)"; | |
| 23554 } | |
| 23555 | |
| 23556 // TODO(jacobr): we cannot currently be lazy about calculating the client | |
| 23557 // rects as we must perform all measurement queries at a safe point to avoid | |
| 23558 // triggering unneeded layouts. | |
| 23559 /** | |
| 23560 * All your element measurement needs in one place | |
| 23561 * @domName none | |
| 23562 */ | |
| 23563 class ElementRectWrappingImplementation implements ElementRect { | |
| 23564 final ClientRect client; | |
| 23565 final ClientRect offset; | |
| 23566 final ClientRect scroll; | |
| 23567 | |
| 23568 // TODO(jacobr): should we move these outside of ElementRect to avoid the | |
| 23569 // overhead of computing them every time even though they are rarely used. | |
| 23570 // This should be type dom.ClientRect but that fails on dartium. b/5522629 | |
| 23571 final _boundingClientRect; | |
| 23572 // an exception due to a dartium bug. | |
| 23573 final dom.ClientRectList _clientRects; | |
| 23574 | |
| 23575 ElementRectWrappingImplementation(dom.HTMLElement element) : | |
| 23576 client = new SimpleClientRect(element.clientLeft, | |
| 23577 element.clientTop, | |
| 23578 element.clientWidth, | |
| 23579 element.clientHeight), | |
| 23580 offset = new SimpleClientRect(element.offsetLeft, | |
| 23581 element.offsetTop, | |
| 23582 element.offsetWidth, | |
| 23583 element.offsetHeight), | |
| 23584 scroll = new SimpleClientRect(element.scrollLeft, | |
| 23585 element.scrollTop, | |
| 23586 element.scrollWidth, | |
| 23587 element.scrollHeight), | |
| 23588 _boundingClientRect = element.getBoundingClientRect(), | |
| 23589 _clientRects = element.getClientRects(); | |
| 23590 | |
| 23591 ClientRect get bounding() => | |
| 23592 LevelDom.wrapClientRect(_boundingClientRect); | |
| 23593 | |
| 23594 List<ClientRect> get clientRects() { | |
| 23595 final out = new List(_clientRects.length); | |
| 23596 for (num i = 0; i < _clientRects.length; i++) { | |
| 23597 out[i] = LevelDom.wrapClientRect(_clientRects.item(i)); | |
| 23598 } | |
| 23599 return out; | |
| 23600 } | |
| 23601 } | |
| 23602 | |
| 23603 class ElementWrappingImplementation extends NodeWrappingImplementation implement
s Element { | |
| 23604 | |
| 23605 static final _START_TAG_REGEXP = const RegExp('<(\\w+)'); | |
| 23606 static final _CUSTOM_PARENT_TAG_MAP = const { | |
| 23607 'body' : 'html', | |
| 23608 'head' : 'html', | |
| 23609 'caption' : 'table', | |
| 23610 'td': 'tr', | |
| 23611 'tbody': 'table', | |
| 23612 'colgroup': 'table', | |
| 23613 'col' : 'colgroup', | |
| 23614 'tr' : 'tbody', | |
| 23615 'tbody' : 'table', | |
| 23616 'tfoot' : 'table', | |
| 23617 'thead' : 'table', | |
| 23618 'track' : 'audio', | |
| 23619 }; | |
| 23620 | |
| 23621 factory ElementWrappingImplementation.html(String html) { | |
| 23622 // TODO(jacobr): this method can be made more robust and performant. | |
| 23623 // 1) Cache the dummy parent elements required to use innerHTML rather than | |
| 23624 // creating them every call. | |
| 23625 // 2) Verify that the html does not contain leading or trailing text nodes. | |
| 23626 // 3) Verify that the html does not contain both <head> and <body> tags. | |
| 23627 // 4) Detatch the created element from its dummy parent. | |
| 23628 String parentTag = 'div'; | |
| 23629 String tag; | |
| 23630 final match = _START_TAG_REGEXP.firstMatch(html); | |
| 23631 if (match !== null) { | |
| 23632 tag = match.group(1).toLowerCase(); | |
| 23633 if (_CUSTOM_PARENT_TAG_MAP.containsKey(tag)) { | |
| 23634 parentTag = _CUSTOM_PARENT_TAG_MAP[tag]; | |
| 23635 } | |
| 23636 } | |
| 23637 final temp = dom.document.createElement(parentTag); | |
| 23638 temp.innerHTML = html; | |
| 23639 | |
| 23640 if (temp.childElementCount == 1) { | |
| 23641 return LevelDom.wrapElement(temp.firstElementChild); | |
| 23642 } else if (parentTag == 'html' && temp.childElementCount == 2) { | |
| 23643 // Work around for edge case in WebKit and possibly other browsers where | |
| 23644 // both body and head elements are created even though the inner html | |
| 23645 // only contains a head or body element. | |
| 23646 return LevelDom.wrapElement(temp.children.item(tag == 'head' ? 0 : 1)); | |
| 23647 } else { | |
| 23648 throw 'HTML had ${temp.childElementCount} top level elements but 1 expecte
d'; | |
| 23649 } | |
| 23650 } | |
| 23651 | |
| 23652 factory ElementWrappingImplementation.tag(String tag) { | |
| 23653 return LevelDom.wrapElement(dom.document.createElement(tag)); | |
| 23654 } | |
| 23655 | |
| 23656 ElementWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 23657 | |
| 23658 ElementAttributeMap _elementAttributeMap; | |
| 23659 ElementList _elements; | |
| 23660 _CssClassSet _cssClassSet; | |
| 23661 _DataAttributeMap _dataAttributes; | |
| 23662 | |
| 23663 Map<String, String> get attributes() { | |
| 23664 if (_elementAttributeMap === null) { | |
| 23665 _elementAttributeMap = new ElementAttributeMap._wrap(_ptr); | |
| 23666 } | |
| 23667 return _elementAttributeMap; | |
| 23668 } | |
| 23669 | |
| 23670 void set attributes(Map<String, String> value) { | |
| 23671 Map<String, String> attributes = this.attributes; | |
| 23672 attributes.clear(); | |
| 23673 for (String key in value.getKeys()) { | |
| 23674 attributes[key] = value[key]; | |
| 23675 } | |
| 23676 } | |
| 23677 | |
| 23678 void set elements(Collection<Element> value) { | |
| 23679 // Copy list first since we don't want liveness during iteration. | |
| 23680 List copy = new List.from(value); | |
| 23681 final elements = this.elements; | |
| 23682 elements.clear(); | |
| 23683 elements.addAll(copy); | |
| 23684 } | |
| 23685 | |
| 23686 ElementList get elements() { | |
| 23687 if (_elements == null) { | |
| 23688 _elements = new _ChildrenElementList._wrap(_ptr); | |
| 23689 } | |
| 23690 return _elements; | |
| 23691 } | |
| 23692 | |
| 23693 Set<String> get classes() { | |
| 23694 if (_cssClassSet === null) { | |
| 23695 _cssClassSet = new _CssClassSet(_ptr); | |
| 23696 } | |
| 23697 return _cssClassSet; | |
| 23698 } | |
| 23699 | |
| 23700 void set classes(Collection<String> value) { | |
| 23701 _CssClassSet classSet = classes; | |
| 23702 classSet.clear(); | |
| 23703 classSet.addAll(value); | |
| 23704 } | |
| 23705 | |
| 23706 Map<String, String> get dataAttributes() { | |
| 23707 if (_dataAttributes === null) { | |
| 23708 _dataAttributes = new _DataAttributeMap(attributes); | |
| 23709 } | |
| 23710 return _dataAttributes; | |
| 23711 } | |
| 23712 | |
| 23713 void set dataAttributes(Map<String, String> value) { | |
| 23714 Map<String, String> dataAttributes = this.dataAttributes; | |
| 23715 dataAttributes.clear(); | |
| 23716 for (String key in value.getKeys()) { | |
| 23717 dataAttributes[key] = value[key]; | |
| 23718 } | |
| 23719 } | |
| 23720 | |
| 23721 String get contentEditable() => _ptr.contentEditable; | |
| 23722 | |
| 23723 void set contentEditable(String value) { _ptr.contentEditable = value; } | |
| 23724 | |
| 23725 String get dir() => _ptr.dir; | |
| 23726 | |
| 23727 void set dir(String value) { _ptr.dir = value; } | |
| 23728 | |
| 23729 bool get draggable() => _ptr.draggable; | |
| 23730 | |
| 23731 void set draggable(bool value) { _ptr.draggable = value; } | |
| 23732 | |
| 23733 Element get firstElementChild() => LevelDom.wrapElement(_ptr.firstElementChild
); | |
| 23734 | |
| 23735 bool get hidden() => _ptr.hidden; | |
| 23736 | |
| 23737 void set hidden(bool value) { _ptr.hidden = value; } | |
| 23738 | |
| 23739 String get id() => _ptr.id; | |
| 23740 | |
| 23741 void set id(String value) { _ptr.id = value; } | |
| 23742 | |
| 23743 String get innerHTML() => _ptr.innerHTML; | |
| 23744 | |
| 23745 void set innerHTML(String value) { _ptr.innerHTML = value; } | |
| 23746 | |
| 23747 bool get isContentEditable() => _ptr.isContentEditable; | |
| 23748 | |
| 23749 String get lang() => _ptr.lang; | |
| 23750 | |
| 23751 void set lang(String value) { _ptr.lang = value; } | |
| 23752 | |
| 23753 Element get lastElementChild() => LevelDom.wrapElement(_ptr.lastElementChild); | |
| 23754 | |
| 23755 Element get nextElementSibling() => LevelDom.wrapElement(_ptr.nextElementSibli
ng); | |
| 23756 | |
| 23757 Element get offsetParent() => LevelDom.wrapElement(_ptr.offsetParent); | |
| 23758 | |
| 23759 String get outerHTML() => _ptr.outerHTML; | |
| 23760 | |
| 23761 Element get previousElementSibling() => LevelDom.wrapElement(_ptr.previousElem
entSibling); | |
| 23762 | |
| 23763 bool get spellcheck() => _ptr.spellcheck; | |
| 23764 | |
| 23765 void set spellcheck(bool value) { _ptr.spellcheck = value; } | |
| 23766 | |
| 23767 CSSStyleDeclaration get style() => LevelDom.wrapCSSStyleDeclaration(_ptr.style
); | |
| 23768 | |
| 23769 int get tabIndex() => _ptr.tabIndex; | |
| 23770 | |
| 23771 void set tabIndex(int value) { _ptr.tabIndex = value; } | |
| 23772 | |
| 23773 String get tagName() => _ptr.tagName; | |
| 23774 | |
| 23775 String get title() => _ptr.title; | |
| 23776 | |
| 23777 void set title(String value) { _ptr.title = value; } | |
| 23778 | |
| 23779 String get webkitdropzone() => _ptr.webkitdropzone; | |
| 23780 | |
| 23781 void set webkitdropzone(String value) { _ptr.webkitdropzone = value; } | |
| 23782 | |
| 23783 void blur() { | |
| 23784 _ptr.blur(); | |
| 23785 } | |
| 23786 | |
| 23787 bool contains(Node element) { | |
| 23788 return _ptr.contains(LevelDom.unwrap(element)); | |
| 23789 } | |
| 23790 | |
| 23791 void focus() { | |
| 23792 _ptr.focus(); | |
| 23793 } | |
| 23794 | |
| 23795 /** @domName HTMLElement.insertAdjacentElement */ | |
| 23796 Element insertAdjacentElement([String where = null, Element element = null]) { | |
| 23797 return LevelDom.wrapElement(_ptr.insertAdjacentElement(where, LevelDom.unwra
p(element))); | |
| 23798 } | |
| 23799 | |
| 23800 /** @domName HTMLElement.insertAdjacentHTML */ | |
| 23801 void insertAdjacentHTML([String position_OR_where = null, String text = null])
{ | |
| 23802 _ptr.insertAdjacentHTML(position_OR_where, text); | |
| 23803 } | |
| 23804 | |
| 23805 /** @domName HTMLElement.insertAdjacentText */ | |
| 23806 void insertAdjacentText([String where = null, String text = null]) { | |
| 23807 _ptr.insertAdjacentText(where, text); | |
| 23808 } | |
| 23809 | |
| 23810 Element query(String selectors) { | |
| 23811 // TODO(jacobr): scope fix. | |
| 23812 return LevelDom.wrapElement(_ptr.querySelector(selectors)); | |
| 23813 } | |
| 23814 | |
| 23815 ElementList queryAll(String selectors) { | |
| 23816 // TODO(jacobr): scope fix. | |
| 23817 return new FrozenElementList._wrap(_ptr.querySelectorAll(selectors)); | |
| 23818 } | |
| 23819 | |
| 23820 void scrollByLines([int lines = null]) { | |
| 23821 _ptr.scrollByLines(lines); | |
| 23822 } | |
| 23823 | |
| 23824 void scrollByPages([int pages = null]) { | |
| 23825 _ptr.scrollByPages(pages); | |
| 23826 } | |
| 23827 | |
| 23828 void scrollIntoView([bool centerIfNeeded = null]) { | |
| 23829 _ptr.scrollIntoViewIfNeeded(centerIfNeeded); | |
| 23830 } | |
| 23831 | |
| 23832 bool matchesSelector([String selectors = null]) { | |
| 23833 return _ptr.webkitMatchesSelector(selectors); | |
| 23834 } | |
| 23835 | |
| 23836 void set scrollLeft(int value) { _ptr.scrollLeft = value; } | |
| 23837 | |
| 23838 void set scrollTop(int value) { _ptr.scrollTop = value; } | |
| 23839 | |
| 23840 /** @domName getClientRects */ | |
| 23841 Future<ElementRect> get rect() { | |
| 23842 return _createMeasurementFuture( | |
| 23843 () => new ElementRectWrappingImplementation(_ptr), | |
| 23844 new Completer<ElementRect>()); | |
| 23845 } | |
| 23846 | |
| 23847 Future<CSSStyleDeclaration> get computedStyle() { | |
| 23848 // TODO(jacobr): last param should be null, see b/5045788 | |
| 23849 return getComputedStyle(''); | |
| 23850 } | |
| 23851 | |
| 23852 /** @domName Window.getComputedStyle */ | |
| 23853 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) { | |
| 23854 return _createMeasurementFuture(() => | |
| 23855 LevelDom.wrapCSSStyleDeclaration( | |
| 23856 dom.window.getComputedStyle(_ptr, pseudoElement)), | |
| 23857 new Completer<CSSStyleDeclaration>()); | |
| 23858 } | |
| 23859 | |
| 23860 ElementEvents get on() { | |
| 23861 if (_on === null) { | |
| 23862 _on = new ElementEventsImplementation._wrap(_ptr); | |
| 23863 } | |
| 23864 return _on; | |
| 23865 } | |
| 23866 } | |
| 23867 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 23868 // for details. All rights reserved. Use of this source code is governed by a | |
| 23869 // BSD-style license that can be found in the LICENSE file. | |
| 23870 | |
| 23871 interface ErrorEvent extends Event factory ErrorEventWrappingImplementation { | 8913 interface ErrorEvent extends Event factory ErrorEventWrappingImplementation { |
| 23872 | 8914 |
| 23873 ErrorEvent(String type, String message, String filename, int lineNo, | 8915 ErrorEvent(String type, String message, String filename, int lineNo, |
| 23874 [bool canBubble, bool cancelable]); | 8916 [bool canBubble, bool cancelable]); |
| 23875 | 8917 |
| 23876 String get filename(); | 8918 String get filename(); |
| 23877 | 8919 |
| 23878 int get lineno(); | 8920 int get lineno(); |
| 23879 | 8921 |
| 23880 String get message(); | 8922 String get message(); |
| 23881 } | 8923 } |
| 23882 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 8924 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 23883 // for details. All rights reserved. Use of this source code is governed by a | 8925 // for details. All rights reserved. Use of this source code is governed by a |
| 23884 // BSD-style license that can be found in the LICENSE file. | 8926 // BSD-style license that can be found in the LICENSE file. |
| 23885 | 8927 |
| 23886 class ErrorEventWrappingImplementation extends EventWrappingImplementation imple
ments ErrorEvent { | |
| 23887 ErrorEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 23888 | |
| 23889 factory ErrorEventWrappingImplementation(String type, String message, | |
| 23890 String filename, int lineNo, [bool canBubble = true, | |
| 23891 bool cancelable = true]) { | |
| 23892 final e = dom.document.createEvent("ErrorEvent"); | |
| 23893 e.initErrorEvent(type, canBubble, cancelable, message, filename, lineNo); | |
| 23894 return LevelDom.wrapErrorEvent(e); | |
| 23895 } | |
| 23896 | |
| 23897 String get filename() => _ptr.filename; | |
| 23898 | |
| 23899 int get lineno() => _ptr.lineno; | |
| 23900 | |
| 23901 String get message() => _ptr.message; | |
| 23902 } | |
| 23903 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 23904 // for details. All rights reserved. Use of this source code is governed by a | |
| 23905 // BSD-style license that can be found in the LICENSE file. | |
| 23906 | |
| 23907 interface Event factory EventWrappingImplementation { | 8928 interface Event factory EventWrappingImplementation { |
| 23908 | 8929 |
| 23909 static final int AT_TARGET = 2; | 8930 static final int AT_TARGET = 2; |
| 23910 | 8931 |
| 23911 static final int BLUR = 8192; | 8932 static final int BLUR = 8192; |
| 23912 | 8933 |
| 23913 static final int BUBBLING_PHASE = 3; | 8934 static final int BUBBLING_PHASE = 3; |
| 23914 | 8935 |
| 23915 static final int CAPTURING_PHASE = 1; | 8936 static final int CAPTURING_PHASE = 1; |
| 23916 | 8937 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24012 int get readyState(); | 9033 int get readyState(); |
| 24013 | 9034 |
| 24014 void close(); | 9035 void close(); |
| 24015 | 9036 |
| 24016 EventSourceEvents get on(); | 9037 EventSourceEvents get on(); |
| 24017 } | 9038 } |
| 24018 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9039 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 24019 // for details. All rights reserved. Use of this source code is governed by a | 9040 // for details. All rights reserved. Use of this source code is governed by a |
| 24020 // BSD-style license that can be found in the LICENSE file. | 9041 // BSD-style license that can be found in the LICENSE file. |
| 24021 | 9042 |
| 24022 class EventSourceEventsImplementation extends EventsImplementation implements Ev
entSourceEvents { | |
| 24023 EventSourceEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
| 24024 | |
| 24025 EventListenerList get error() => _get('error'); | |
| 24026 EventListenerList get message() => _get('message'); | |
| 24027 EventListenerList get open() => _get('open'); | |
| 24028 } | |
| 24029 | |
| 24030 class EventSourceWrappingImplementation extends EventTargetWrappingImplementatio
n implements EventSource { | |
| 24031 EventSourceWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 24032 | |
| 24033 String get URL() => _ptr.URL; | |
| 24034 | |
| 24035 int get readyState() => _ptr.readyState; | |
| 24036 | |
| 24037 void close() { | |
| 24038 _ptr.close(); | |
| 24039 } | |
| 24040 | |
| 24041 EventSourceEvents get on() { | |
| 24042 if (_on === null) { | |
| 24043 _on = new EventSourceEventsImplementation._wrap(_ptr); | |
| 24044 } | |
| 24045 return _on; | |
| 24046 } | |
| 24047 } | |
| 24048 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 24049 // for details. All rights reserved. Use of this source code is governed by a | |
| 24050 // BSD-style license that can be found in the LICENSE file. | |
| 24051 | |
| 24052 interface EventListenerList { | 9043 interface EventListenerList { |
| 24053 EventListenerList add(EventListener handler, [bool useCapture]); | 9044 EventListenerList add(EventListener handler, [bool useCapture]); |
| 24054 | 9045 |
| 24055 EventListenerList remove(EventListener handler, [bool useCapture]); | 9046 EventListenerList remove(EventListener handler, [bool useCapture]); |
| 24056 | 9047 |
| 24057 bool dispatch(Event evt); | 9048 bool dispatch(Event evt); |
| 24058 } | 9049 } |
| 24059 | 9050 |
| 24060 interface Events { | 9051 interface Events { |
| 24061 EventListenerList operator [](String type); | 9052 EventListenerList operator [](String type); |
| 24062 } | 9053 } |
| 24063 | 9054 |
| 24064 interface EventTarget { | 9055 interface EventTarget { |
| 24065 Events get on(); | 9056 Events get on(); |
| 24066 } | 9057 } |
| 24067 | 9058 |
| 24068 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9059 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 24069 // for details. All rights reserved. Use of this source code is governed by a | 9060 // for details. All rights reserved. Use of this source code is governed by a |
| 24070 // BSD-style license that can be found in the LICENSE file. | 9061 // BSD-style license that can be found in the LICENSE file. |
| 24071 | 9062 |
| 24072 class EventsImplementation implements Events { | |
| 24073 /* Raw event target. */ | |
| 24074 var _ptr; | |
| 24075 | |
| 24076 Map<String, EventListenerList> _listenerMap; | |
| 24077 | |
| 24078 EventsImplementation._wrap(this._ptr) { | |
| 24079 _listenerMap = <String, EventListenerList>{}; | |
| 24080 } | |
| 24081 | |
| 24082 EventListenerList operator [](String type) { | |
| 24083 return _get(type.toLowerCase()); | |
| 24084 } | |
| 24085 | |
| 24086 EventListenerList _get(String type) { | |
| 24087 return _listenerMap.putIfAbsent(type, | |
| 24088 () => new EventListenerListImplementation(_ptr, type)); | |
| 24089 } | |
| 24090 } | |
| 24091 | |
| 24092 class _EventListenerWrapper { | |
| 24093 final EventListener raw; | |
| 24094 final Function wrapped; | |
| 24095 final bool useCapture; | |
| 24096 _EventListenerWrapper(this.raw, this.wrapped, this.useCapture); | |
| 24097 } | |
| 24098 | |
| 24099 class EventListenerListImplementation implements EventListenerList { | |
| 24100 final _ptr; | |
| 24101 final String _type; | |
| 24102 List<_EventListenerWrapper> _wrappers; | |
| 24103 | |
| 24104 EventListenerListImplementation(this._ptr, this._type) : | |
| 24105 // TODO(jacobr): switch to <_EventListenerWrapper>[] when the VM allow it. | |
| 24106 _wrappers = new List<_EventListenerWrapper>(); | |
| 24107 | |
| 24108 EventListenerList add(EventListener listener, [bool useCapture = false]) { | |
| 24109 _add(listener, useCapture); | |
| 24110 return this; | |
| 24111 } | |
| 24112 | |
| 24113 EventListenerList remove(EventListener listener, [bool useCapture = false]) { | |
| 24114 _remove(listener, useCapture); | |
| 24115 return this; | |
| 24116 } | |
| 24117 | |
| 24118 bool dispatch(Event evt) { | |
| 24119 // TODO(jacobr): what is the correct behavior here. We could alternately | |
| 24120 // force the event to have the expected type. | |
| 24121 assert(evt.type == _type); | |
| 24122 return _ptr.dispatchEvent(LevelDom.unwrap(evt)); | |
| 24123 } | |
| 24124 | |
| 24125 void _add(EventListener listener, bool useCapture) { | |
| 24126 _ptr.addEventListener(_type, | |
| 24127 _findOrAddWrapper(listener, useCapture), | |
| 24128 useCapture); | |
| 24129 } | |
| 24130 | |
| 24131 void _remove(EventListener listener, bool useCapture) { | |
| 24132 Function wrapper = _removeWrapper(listener, useCapture); | |
| 24133 if (wrapper !== null) { | |
| 24134 _ptr.removeEventListener(_type, wrapper, useCapture); | |
| 24135 } | |
| 24136 } | |
| 24137 | |
| 24138 Function _removeWrapper(EventListener listener, bool useCapture) { | |
| 24139 if (_wrappers === null) { | |
| 24140 return null; | |
| 24141 } | |
| 24142 for (int i = 0; i < _wrappers.length; i++) { | |
| 24143 _EventListenerWrapper wrapper = _wrappers[i]; | |
| 24144 if (wrapper.raw === listener && wrapper.useCapture == useCapture) { | |
| 24145 // Order doesn't matter so we swap with the last element instead of | |
| 24146 // performing a more expensive remove from the middle of the list. | |
| 24147 if (i + 1 != _wrappers.length) { | |
| 24148 _wrappers[i] = _wrappers.removeLast(); | |
| 24149 } else { | |
| 24150 _wrappers.removeLast(); | |
| 24151 } | |
| 24152 return wrapper.wrapped; | |
| 24153 } | |
| 24154 } | |
| 24155 return null; | |
| 24156 } | |
| 24157 | |
| 24158 Function _findOrAddWrapper(EventListener listener, bool useCapture) { | |
| 24159 if (_wrappers === null) { | |
| 24160 _wrappers = <_EventListenerWrapper>[]; | |
| 24161 } else { | |
| 24162 for (_EventListenerWrapper wrapper in _wrappers) { | |
| 24163 if (wrapper.raw === listener && wrapper.useCapture == useCapture) { | |
| 24164 return wrapper.wrapped; | |
| 24165 } | |
| 24166 } | |
| 24167 } | |
| 24168 final wrapped = (e) { listener(LevelDom.wrapEvent(e)); }; | |
| 24169 _wrappers.add(new _EventListenerWrapper(listener, wrapped, useCapture)); | |
| 24170 return wrapped; | |
| 24171 } | |
| 24172 } | |
| 24173 | |
| 24174 class EventTargetWrappingImplementation extends DOMWrapperBase implements EventT
arget { | |
| 24175 Events _on; | |
| 24176 | |
| 24177 EventTargetWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 24178 | |
| 24179 Events get on() { | |
| 24180 if (_on === null) { | |
| 24181 _on = new EventsImplementation._wrap(_ptr); | |
| 24182 } | |
| 24183 return _on; | |
| 24184 } | |
| 24185 } | |
| 24186 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 24187 // for details. All rights reserved. Use of this source code is governed by a | |
| 24188 // BSD-style license that can be found in the LICENSE file. | |
| 24189 | |
| 24190 class EventWrappingImplementation extends DOMWrapperBase implements Event { | |
| 24191 EventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 24192 | |
| 24193 factory EventWrappingImplementation(String type, [bool canBubble = true, | |
| 24194 bool cancelable = true]) { | |
| 24195 final e = dom.document.createEvent("Event"); | |
| 24196 e.initEvent(type, canBubble, cancelable); | |
| 24197 return LevelDom.wrapEvent(e); | |
| 24198 } | |
| 24199 | |
| 24200 bool get bubbles() => _ptr.bubbles; | |
| 24201 | |
| 24202 bool get cancelBubble() => _ptr.cancelBubble; | |
| 24203 | |
| 24204 void set cancelBubble(bool value) { _ptr.cancelBubble = value; } | |
| 24205 | |
| 24206 bool get cancelable() => _ptr.cancelable; | |
| 24207 | |
| 24208 EventTarget get currentTarget() => LevelDom.wrapEventTarget(_ptr.currentTarget
); | |
| 24209 | |
| 24210 bool get defaultPrevented() => _ptr.defaultPrevented; | |
| 24211 | |
| 24212 int get eventPhase() => _ptr.eventPhase; | |
| 24213 | |
| 24214 bool get returnValue() => _ptr.returnValue; | |
| 24215 | |
| 24216 void set returnValue(bool value) { _ptr.returnValue = value; } | |
| 24217 | |
| 24218 EventTarget get srcElement() => LevelDom.wrapEventTarget(_ptr.srcElement); | |
| 24219 | |
| 24220 EventTarget get target() => LevelDom.wrapEventTarget(_ptr.target); | |
| 24221 | |
| 24222 int get timeStamp() => _ptr.timeStamp; | |
| 24223 | |
| 24224 String get type() => _ptr.type; | |
| 24225 | |
| 24226 void preventDefault() { | |
| 24227 _ptr.preventDefault(); | |
| 24228 return; | |
| 24229 } | |
| 24230 | |
| 24231 void stopImmediatePropagation() { | |
| 24232 _ptr.stopImmediatePropagation(); | |
| 24233 return; | |
| 24234 } | |
| 24235 | |
| 24236 void stopPropagation() { | |
| 24237 _ptr.stopPropagation(); | |
| 24238 return; | |
| 24239 } | |
| 24240 } | |
| 24241 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 24242 // for details. All rights reserved. Use of this source code is governed by a | |
| 24243 // BSD-style license that can be found in the LICENSE file. | |
| 24244 | |
| 24245 var secretWindow; | 9063 var secretWindow; |
| 24246 var secretDocument; | 9064 var secretDocument; |
| 24247 | 9065 |
| 24248 Window get window() { | 9066 Window get window() { |
| 24249 if (secretWindow === null) { | 9067 if (secretWindow === null) { |
| 24250 LevelDom.initialize(dom.window); | 9068 LevelDom.initialize(dom.window); |
| 24251 } | 9069 } |
| 24252 return secretWindow; | 9070 return secretWindow; |
| 24253 } | 9071 } |
| 24254 | 9072 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24268 bool cancelable]); | 9086 bool cancelable]); |
| 24269 | 9087 |
| 24270 String get newURL(); | 9088 String get newURL(); |
| 24271 | 9089 |
| 24272 String get oldURL(); | 9090 String get oldURL(); |
| 24273 } | 9091 } |
| 24274 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9092 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 24275 // for details. All rights reserved. Use of this source code is governed by a | 9093 // for details. All rights reserved. Use of this source code is governed by a |
| 24276 // BSD-style license that can be found in the LICENSE file. | 9094 // BSD-style license that can be found in the LICENSE file. |
| 24277 | 9095 |
| 24278 class HashChangeEventWrappingImplementation extends EventWrappingImplementation
implements HashChangeEvent { | |
| 24279 HashChangeEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 24280 | |
| 24281 factory HashChangeEventWrappingImplementation(String type, String oldURL, | |
| 24282 String newURL, [bool canBubble = true, bool cancelable = true]) { | |
| 24283 final e = dom.document.createEvent("HashChangeEvent"); | |
| 24284 e.initHashChangeEvent(type, canBubble, cancelable, oldURL, newURL); | |
| 24285 return LevelDom.wrapHashChangeEvent(e); | |
| 24286 } | |
| 24287 | |
| 24288 String get newURL() => _ptr.newURL; | |
| 24289 | |
| 24290 String get oldURL() => _ptr.oldURL; | |
| 24291 } | |
| 24292 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 24293 // for details. All rights reserved. Use of this source code is governed by a | |
| 24294 // BSD-style license that can be found in the LICENSE file. | |
| 24295 | |
| 24296 interface KeyboardEvent extends UIEvent factory KeyboardEventWrappingImplementat
ion { | 9096 interface KeyboardEvent extends UIEvent factory KeyboardEventWrappingImplementat
ion { |
| 24297 | 9097 |
| 24298 static final int KEY_LOCATION_LEFT = 0x01; | 9098 static final int KEY_LOCATION_LEFT = 0x01; |
| 24299 | 9099 |
| 24300 static final int KEY_LOCATION_NUMPAD = 0x03; | 9100 static final int KEY_LOCATION_NUMPAD = 0x03; |
| 24301 | 9101 |
| 24302 static final int KEY_LOCATION_RIGHT = 0x02; | 9102 static final int KEY_LOCATION_RIGHT = 0x02; |
| 24303 | 9103 |
| 24304 static final int KEY_LOCATION_STANDARD = 0x00; | 9104 static final int KEY_LOCATION_STANDARD = 0x00; |
| 24305 | 9105 |
| (...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24856 /** | 9656 /** |
| 24857 * Key value used when an implementation is unable to identify another key | 9657 * Key value used when an implementation is unable to identify another key |
| 24858 * value, due to either hardware, platform, or software constraints | 9658 * value, due to either hardware, platform, or software constraints |
| 24859 */ | 9659 */ |
| 24860 static final String UNIDENTIFIED = "Unidentified"; | 9660 static final String UNIDENTIFIED = "Unidentified"; |
| 24861 } | 9661 } |
| 24862 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9662 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 24863 // for details. All rights reserved. Use of this source code is governed by a | 9663 // for details. All rights reserved. Use of this source code is governed by a |
| 24864 // BSD-style license that can be found in the LICENSE file. | 9664 // BSD-style license that can be found in the LICENSE file. |
| 24865 | 9665 |
| 24866 class KeyboardEventWrappingImplementation extends UIEventWrappingImplementation
implements KeyboardEvent { | |
| 24867 KeyboardEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 24868 | |
| 24869 factory KeyboardEventWrappingImplementation(String type, Window view, | |
| 24870 String keyIdentifier, int keyLocation, [bool canBubble = true, | |
| 24871 bool cancelable = true, bool ctrlKey = false, bool altKey = false, | |
| 24872 bool shiftKey = false, bool metaKey = false, bool altGraphKey = false]) { | |
| 24873 final e = dom.document.createEvent("KeyboardEvent"); | |
| 24874 e.initKeyboardEvent(type, canBubble, cancelable, LevelDom.unwrap(view), | |
| 24875 keyIdentifier, keyLocation, ctrlKey, altKey, shiftKey, metaKey, | |
| 24876 altGraphKey); | |
| 24877 return LevelDom.wrapKeyboardEvent(e); | |
| 24878 } | |
| 24879 | |
| 24880 bool get altGraphKey() => _ptr.altGraphKey; | |
| 24881 | |
| 24882 bool get altKey() => _ptr.altKey; | |
| 24883 | |
| 24884 bool get ctrlKey() => _ptr.ctrlKey; | |
| 24885 | |
| 24886 String get keyIdentifier() => _ptr.keyIdentifier; | |
| 24887 | |
| 24888 int get keyLocation() => _ptr.keyLocation; | |
| 24889 | |
| 24890 bool get metaKey() => _ptr.metaKey; | |
| 24891 | |
| 24892 bool get shiftKey() => _ptr.shiftKey; | |
| 24893 | |
| 24894 bool getModifierState(String keyIdentifierArg) { | |
| 24895 return _ptr.getModifierState(keyIdentifierArg); | |
| 24896 } | |
| 24897 } | |
| 24898 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 24899 // for details. All rights reserved. Use of this source code is governed by a | |
| 24900 // BSD-style license that can be found in the LICENSE file. | |
| 24901 | |
| 24902 typedef Object ComputeValue(); | |
| 24903 | |
| 24904 class _MeasurementRequest<T> { | |
| 24905 final ComputeValue computeValue; | |
| 24906 final Completer<T> completer; | |
| 24907 Object value; | |
| 24908 bool exception = false; | |
| 24909 _MeasurementRequest(this.computeValue, this.completer); | |
| 24910 } | |
| 24911 | |
| 24912 final _MEASUREMENT_MESSAGE = "DART-MEASURE"; | |
| 24913 List<_MeasurementRequest> _pendingRequests; | |
| 24914 List<TimeoutHandler> _pendingMeasurementFrameCallbacks; | |
| 24915 bool _nextMeasurementFrameScheduled = false; | |
| 24916 bool _firstMeasurementRequest = true; | |
| 24917 | |
| 24918 void _maybeScheduleMeasurementFrame() { | |
| 24919 if (_nextMeasurementFrameScheduled) return; | |
| 24920 | |
| 24921 _nextMeasurementFrameScheduled = true; | |
| 24922 // postMessage gives us a way to receive a callback after the current | |
| 24923 // event listener has unwound but before the browser has repainted. | |
| 24924 if (_firstMeasurementRequest) { | |
| 24925 // Messages from other windows do not cause a security risk as | |
| 24926 // all we care about is that _onCompleteMeasurementRequests is called | |
| 24927 // after the current event loop is unwound and calling the function is | |
| 24928 // a noop when zero requests are pending. | |
| 24929 window.on.message.add((e) => _completeMeasurementFutures()); | |
| 24930 _firstMeasurementRequest = false; | |
| 24931 } | |
| 24932 | |
| 24933 // TODO(jacobr): other mechanisms such as setImmediate and | |
| 24934 // requestAnimationFrame may work better of platforms that support them. | |
| 24935 // The key is we need a way to execute code immediately after the current | |
| 24936 // event listener queue unwinds. | |
| 24937 window.postMessage(_MEASUREMENT_MESSAGE, "*"); | |
| 24938 } | |
| 24939 | |
| 24940 /** | |
| 24941 * Registers a [callback] which is called after the next batch of measurements | |
| 24942 * completes. Even if no measurements completed, the callback is triggered | |
| 24943 * when they would have completed to avoid confusing bugs if it happened that | |
| 24944 * no measurements were actually requested. | |
| 24945 */ | |
| 24946 void _addMeasurementFrameCallback(TimeoutHandler callback) { | |
| 24947 if (_pendingMeasurementFrameCallbacks === null) { | |
| 24948 _pendingMeasurementFrameCallbacks = <TimeoutHandler>[]; | |
| 24949 _maybeScheduleMeasurementFrame(); | |
| 24950 } | |
| 24951 _pendingMeasurementFrameCallbacks.add(callback); | |
| 24952 } | |
| 24953 | |
| 24954 /** | |
| 24955 * Returns a [Future] whose value will be the result of evaluating | |
| 24956 * [computeValue] during the next safe measurement interval. | |
| 24957 * The next safe measurement interval is after the current event loop has | |
| 24958 * unwound but before the browser has rendered the page. | |
| 24959 * It is important that the [computeValue] function only queries the html | |
| 24960 * layout and html in any way. | |
| 24961 */ | |
| 24962 Future _createMeasurementFuture(ComputeValue computeValue, | |
| 24963 Completer completer) { | |
| 24964 if (_pendingRequests === null) { | |
| 24965 _pendingRequests = <_MeasurementRequest>[]; | |
| 24966 _maybeScheduleMeasurementFrame(); | |
| 24967 } | |
| 24968 _pendingRequests.add(new _MeasurementRequest(computeValue, completer)); | |
| 24969 return completer.future; | |
| 24970 } | |
| 24971 | |
| 24972 /** | |
| 24973 * Complete all pending measurement futures evaluating them in a single batch | |
| 24974 * so that the the browser is guaranteed to avoid multiple layouts. | |
| 24975 */ | |
| 24976 void _completeMeasurementFutures() { | |
| 24977 if (_nextMeasurementFrameScheduled == false) { | |
| 24978 // Ignore spurious call to this function. | |
| 24979 return; | |
| 24980 } | |
| 24981 | |
| 24982 _nextMeasurementFrameScheduled = false; | |
| 24983 // We must compute all new values before fulfilling the futures as | |
| 24984 // the onComplete callbacks for the futures could modify the DOM making | |
| 24985 // subsequent measurement calculations expensive to compute. | |
| 24986 for (_MeasurementRequest request in _pendingRequests) { | |
| 24987 try { | |
| 24988 request.value = request.computeValue(); | |
| 24989 } catch(var e) { | |
| 24990 request.value = e; | |
| 24991 request.exception = true; | |
| 24992 } | |
| 24993 } | |
| 24994 | |
| 24995 final completedRequests = _pendingRequests; | |
| 24996 final readyMeasurementFrameCallbacks = _pendingMeasurementFrameCallbacks; | |
| 24997 _pendingRequests = null; | |
| 24998 _pendingMeasurementFrameCallbacks = null; | |
| 24999 for (_MeasurementRequest request in completedRequests) { | |
| 25000 if (request.exception) { | |
| 25001 request.completer.completeException(request.value); | |
| 25002 } else { | |
| 25003 request.completer.complete(request.value); | |
| 25004 } | |
| 25005 } | |
| 25006 | |
| 25007 if (readyMeasurementFrameCallbacks !== null) { | |
| 25008 for (TimeoutHandler handler in readyMeasurementFrameCallbacks) { | |
| 25009 // TODO(jacobr): wrap each call to a handler in a try-catch block. | |
| 25010 handler(); | |
| 25011 } | |
| 25012 } | |
| 25013 } | |
| 25014 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25015 // for details. All rights reserved. Use of this source code is governed by a | |
| 25016 // BSD-style license that can be found in the LICENSE file. | |
| 25017 | |
| 25018 interface MessageEvent extends Event factory MessageEventWrappingImplementation
{ | 9666 interface MessageEvent extends Event factory MessageEventWrappingImplementation
{ |
| 25019 | 9667 |
| 25020 MessageEvent(String type, String data, String origin, String lastEventId, | 9668 MessageEvent(String type, String data, String origin, String lastEventId, |
| 25021 Window source, [bool canBubble, bool cancelable, MessagePort port]); | 9669 Window source, [bool canBubble, bool cancelable, MessagePort port]); |
| 25022 | 9670 |
| 25023 String get data(); | 9671 String get data(); |
| 25024 | 9672 |
| 25025 String get lastEventId(); | 9673 String get lastEventId(); |
| 25026 | 9674 |
| 25027 MessagePort get messagePort(); | 9675 MessagePort get messagePort(); |
| 25028 | 9676 |
| 25029 String get origin(); | 9677 String get origin(); |
| 25030 | 9678 |
| 25031 Window get source(); | 9679 Window get source(); |
| 25032 } | 9680 } |
| 25033 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9681 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25034 // for details. All rights reserved. Use of this source code is governed by a | 9682 // for details. All rights reserved. Use of this source code is governed by a |
| 25035 // BSD-style license that can be found in the LICENSE file. | 9683 // BSD-style license that can be found in the LICENSE file. |
| 25036 | 9684 |
| 25037 class MessageEventWrappingImplementation extends EventWrappingImplementation imp
lements MessageEvent { | |
| 25038 MessageEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 25039 | |
| 25040 factory MessageEventWrappingImplementation(String type, String data, | |
| 25041 String origin, String lastEventId, Window source, MessagePort port, | |
| 25042 [bool canBubble = true, bool cancelable = true]) { | |
| 25043 final e = dom.document.createEvent("MessageEvent"); | |
| 25044 e.initMessageEvent(type, canBubble, cancelable, data, origin, lastEventId, | |
| 25045 LevelDom.unwrap(source), LevelDom.unwrap(port)); | |
| 25046 return LevelDom.wrapMessageEvent(e); | |
| 25047 } | |
| 25048 | |
| 25049 String get data() => _ptr.data; | |
| 25050 | |
| 25051 String get lastEventId() => _ptr.lastEventId; | |
| 25052 | |
| 25053 MessagePort get messagePort() => LevelDom.wrapMessagePort(_ptr.messagePort); | |
| 25054 | |
| 25055 String get origin() => _ptr.origin; | |
| 25056 | |
| 25057 Window get source() => LevelDom.wrapWindow(_ptr.source); | |
| 25058 | |
| 25059 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring dataArg, String originArg, String lastEventIdArg, Window sourceArg, Messag
ePort messagePort) { | |
| 25060 _ptr.initMessageEvent(typeArg, canBubbleArg, cancelableArg, dataArg, originA
rg, lastEventIdArg, LevelDom.unwrap(sourceArg), LevelDom.unwrap(messagePort)); | |
| 25061 return; | |
| 25062 } | |
| 25063 } | |
| 25064 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25065 // for details. All rights reserved. Use of this source code is governed by a | |
| 25066 // BSD-style license that can be found in the LICENSE file. | |
| 25067 | |
| 25068 interface MessagePort extends EventTarget { | 9685 interface MessagePort extends EventTarget { |
| 25069 } | 9686 } |
| 25070 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9687 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25071 // for details. All rights reserved. Use of this source code is governed by a | 9688 // for details. All rights reserved. Use of this source code is governed by a |
| 25072 // BSD-style license that can be found in the LICENSE file. | 9689 // BSD-style license that can be found in the LICENSE file. |
| 25073 | 9690 |
| 25074 class MessagePortWrappingImplementation extends EventTargetWrappingImplementatio
n implements MessagePort { | |
| 25075 MessagePortWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 25076 } | |
| 25077 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25078 // for details. All rights reserved. Use of this source code is governed by a | |
| 25079 // BSD-style license that can be found in the LICENSE file. | |
| 25080 | |
| 25081 interface MouseEvent extends UIEvent factory MouseEventWrappingImplementation { | 9691 interface MouseEvent extends UIEvent factory MouseEventWrappingImplementation { |
| 25082 | 9692 |
| 25083 MouseEvent(String type, Window view, int detail, int screenX, int screenY, | 9693 MouseEvent(String type, Window view, int detail, int screenX, int screenY, |
| 25084 int clientX, int clientY, int button, [bool canBubble, bool cancelable, | 9694 int clientX, int clientY, int button, [bool canBubble, bool cancelable, |
| 25085 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, | 9695 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, |
| 25086 EventTarget relatedTarget]); | 9696 EventTarget relatedTarget]); |
| 25087 | 9697 |
| 25088 bool get altKey(); | 9698 bool get altKey(); |
| 25089 | 9699 |
| 25090 int get button(); | 9700 int get button(); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 25114 Node get toElement(); | 9724 Node get toElement(); |
| 25115 | 9725 |
| 25116 int get x(); | 9726 int get x(); |
| 25117 | 9727 |
| 25118 int get y(); | 9728 int get y(); |
| 25119 } | 9729 } |
| 25120 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9730 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25121 // for details. All rights reserved. Use of this source code is governed by a | 9731 // for details. All rights reserved. Use of this source code is governed by a |
| 25122 // BSD-style license that can be found in the LICENSE file. | 9732 // BSD-style license that can be found in the LICENSE file. |
| 25123 | 9733 |
| 25124 class MouseEventWrappingImplementation extends UIEventWrappingImplementation imp
lements MouseEvent { | |
| 25125 MouseEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 25126 | |
| 25127 factory MouseEventWrappingImplementation(String type, Window view, int detail, | |
| 25128 int screenX, int screenY, int clientX, int clientY, int button, | |
| 25129 [bool canBubble = true, bool cancelable = true, bool ctrlKey = false, | |
| 25130 bool altKey = false, bool shiftKey = false, bool metaKey = false, | |
| 25131 EventTarget relatedTarget = null]) { | |
| 25132 final e = dom.document.createEvent("MouseEvent"); | |
| 25133 e.initMouseEvent(type, canBubble, cancelable, LevelDom.unwrap(view), detail, | |
| 25134 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, | |
| 25135 button, LevelDom.unwrap(relatedTarget)); | |
| 25136 return LevelDom.wrapMouseEvent(e); | |
| 25137 } | |
| 25138 | |
| 25139 bool get altKey() => _ptr.altKey; | |
| 25140 | |
| 25141 int get button() => _ptr.button; | |
| 25142 | |
| 25143 int get clientX() => _ptr.clientX; | |
| 25144 | |
| 25145 int get clientY() => _ptr.clientY; | |
| 25146 | |
| 25147 bool get ctrlKey() => _ptr.ctrlKey; | |
| 25148 | |
| 25149 Node get fromElement() => LevelDom.wrapNode(_ptr.fromElement); | |
| 25150 | |
| 25151 bool get metaKey() => _ptr.metaKey; | |
| 25152 | |
| 25153 int get offsetX() => _ptr.offsetX; | |
| 25154 | |
| 25155 int get offsetY() => _ptr.offsetY; | |
| 25156 | |
| 25157 EventTarget get relatedTarget() => LevelDom.wrapEventTarget(_ptr.relatedTarget
); | |
| 25158 | |
| 25159 int get screenX() => _ptr.screenX; | |
| 25160 | |
| 25161 int get screenY() => _ptr.screenY; | |
| 25162 | |
| 25163 bool get shiftKey() => _ptr.shiftKey; | |
| 25164 | |
| 25165 Node get toElement() => LevelDom.wrapNode(_ptr.toElement); | |
| 25166 | |
| 25167 int get x() => _ptr.x; | |
| 25168 | |
| 25169 int get y() => _ptr.y; | |
| 25170 } | |
| 25171 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25172 // for details. All rights reserved. Use of this source code is governed by a | |
| 25173 // BSD-style license that can be found in the LICENSE file. | |
| 25174 | |
| 25175 interface MutationEvent extends Event factory MutationEventWrappingImplementatio
n { | 9734 interface MutationEvent extends Event factory MutationEventWrappingImplementatio
n { |
| 25176 | 9735 |
| 25177 MutationEvent(String type, Node relatedNode, String prevValue, | 9736 MutationEvent(String type, Node relatedNode, String prevValue, |
| 25178 String newValue, String attrName, int attrChange, [bool canBubble, | 9737 String newValue, String attrName, int attrChange, [bool canBubble, |
| 25179 bool cancelable]); | 9738 bool cancelable]); |
| 25180 | 9739 |
| 25181 static final int ADDITION = 2; | 9740 static final int ADDITION = 2; |
| 25182 | 9741 |
| 25183 static final int MODIFICATION = 1; | 9742 static final int MODIFICATION = 1; |
| 25184 | 9743 |
| 25185 static final int REMOVAL = 3; | 9744 static final int REMOVAL = 3; |
| 25186 | 9745 |
| 25187 int get attrChange(); | 9746 int get attrChange(); |
| 25188 | 9747 |
| 25189 String get attrName(); | 9748 String get attrName(); |
| 25190 | 9749 |
| 25191 String get newValue(); | 9750 String get newValue(); |
| 25192 | 9751 |
| 25193 String get prevValue(); | 9752 String get prevValue(); |
| 25194 | 9753 |
| 25195 Node get relatedNode(); | 9754 Node get relatedNode(); |
| 25196 } | 9755 } |
| 25197 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9756 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25198 // for details. All rights reserved. Use of this source code is governed by a | 9757 // for details. All rights reserved. Use of this source code is governed by a |
| 25199 // BSD-style license that can be found in the LICENSE file. | 9758 // BSD-style license that can be found in the LICENSE file. |
| 25200 | 9759 |
| 25201 class MutationEventWrappingImplementation extends EventWrappingImplementation im
plements MutationEvent { | |
| 25202 MutationEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 25203 | |
| 25204 factory MutationEventWrappingImplementation(String type, Node relatedNode, | |
| 25205 String prevValue, String newValue, String attrName, int attrChange, | |
| 25206 [bool canBubble = true, bool cancelable = true]) { | |
| 25207 final e = dom.document.createEvent("MutationEvent"); | |
| 25208 e.initMutationEvent(type, canBubble, cancelable, | |
| 25209 LevelDom.unwrap(relatedNode), prevValue, newValue, attrName, | |
| 25210 attrChange); | |
| 25211 return LevelDom.wrapMutationEvent(e); | |
| 25212 } | |
| 25213 | |
| 25214 int get attrChange() => _ptr.attrChange; | |
| 25215 | |
| 25216 String get attrName() => _ptr.attrName; | |
| 25217 | |
| 25218 String get newValue() => _ptr.newValue; | |
| 25219 | |
| 25220 String get prevValue() => _ptr.prevValue; | |
| 25221 | |
| 25222 Node get relatedNode() => LevelDom.wrapNode(_ptr.relatedNode); | |
| 25223 } | |
| 25224 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25225 // for details. All rights reserved. Use of this source code is governed by a | |
| 25226 // BSD-style license that can be found in the LICENSE file. | |
| 25227 | |
| 25228 // TODO(jacobr): stop extending eventTarget. | 9760 // TODO(jacobr): stop extending eventTarget. |
| 25229 interface Node extends EventTarget { | 9761 interface Node extends EventTarget { |
| 25230 | 9762 |
| 25231 NodeList get nodes(); | 9763 NodeList get nodes(); |
| 25232 | 9764 |
| 25233 // TODO: The type of value should be Collection<Node>. See http://b/5392897 | 9765 // TODO: The type of value should be Collection<Node>. See http://b/5392897 |
| 25234 void set nodes(value); | 9766 void set nodes(value); |
| 25235 | 9767 |
| 25236 Node get nextNode(); | 9768 Node get nextNode(); |
| 25237 | 9769 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 25262 // for details. All rights reserved. Use of this source code is governed by a | 9794 // for details. All rights reserved. Use of this source code is governed by a |
| 25263 // BSD-style license that can be found in the LICENSE file. | 9795 // BSD-style license that can be found in the LICENSE file. |
| 25264 | 9796 |
| 25265 interface NodeList extends List<Node> { | 9797 interface NodeList extends List<Node> { |
| 25266 Node get first(); | 9798 Node get first(); |
| 25267 } | 9799 } |
| 25268 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9800 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25269 // for details. All rights reserved. Use of this source code is governed by a | 9801 // for details. All rights reserved. Use of this source code is governed by a |
| 25270 // BSD-style license that can be found in the LICENSE file. | 9802 // BSD-style license that can be found in the LICENSE file. |
| 25271 | 9803 |
| 25272 class _ChildrenNodeList implements NodeList { | |
| 25273 // Raw node. | |
| 25274 final _node; | |
| 25275 final _childNodes; | |
| 25276 | |
| 25277 _ChildrenNodeList._wrap(var node) | |
| 25278 : _childNodes = node.childNodes, | |
| 25279 _node = node; | |
| 25280 | |
| 25281 List<Node> _toList() { | |
| 25282 final output = new List(_childNodes.length); | |
| 25283 for (int i = 0, len = _childNodes.length; i < len; i++) { | |
| 25284 output[i] = LevelDom.wrapNode(_childNodes[i]); | |
| 25285 } | |
| 25286 return output; | |
| 25287 } | |
| 25288 | |
| 25289 Node get first() { | |
| 25290 return LevelDom.wrapNode(_node.firstChild); | |
| 25291 } | |
| 25292 | |
| 25293 void forEach(void f(Node element)) { | |
| 25294 for (var node in _childNodes) { | |
| 25295 f(LevelDom.wrapNode(node)); | |
| 25296 } | |
| 25297 } | |
| 25298 | |
| 25299 Collection<Node> filter(bool f(Node element)) { | |
| 25300 List<Node> output = new List<Node>(); | |
| 25301 forEach((Node element) { | |
| 25302 if (f(element)) { | |
| 25303 output.add(element); | |
| 25304 } | |
| 25305 }); | |
| 25306 return output; | |
| 25307 } | |
| 25308 | |
| 25309 bool every(bool f(Node element)) { | |
| 25310 for(Node element in this) { | |
| 25311 if (!f(element)) { | |
| 25312 return false; | |
| 25313 } | |
| 25314 }; | |
| 25315 return true; | |
| 25316 } | |
| 25317 | |
| 25318 bool some(bool f(Node element)) { | |
| 25319 for(Node element in this) { | |
| 25320 if (f(element)) { | |
| 25321 return true; | |
| 25322 } | |
| 25323 }; | |
| 25324 return false; | |
| 25325 } | |
| 25326 | |
| 25327 /** @domName Node.hasChildNodes */ | |
| 25328 bool isEmpty() { | |
| 25329 return !_node.hasChildNodes(); | |
| 25330 } | |
| 25331 | |
| 25332 int get length() { | |
| 25333 return _childNodes.length; | |
| 25334 } | |
| 25335 | |
| 25336 Node operator [](int index) { | |
| 25337 return LevelDom.wrapNode(_childNodes[index]); | |
| 25338 } | |
| 25339 | |
| 25340 void operator []=(int index, Node value) { | |
| 25341 _childNodes[index] = LevelDom.unwrap(value); | |
| 25342 } | |
| 25343 | |
| 25344 void set length(int newLength) { | |
| 25345 throw new UnsupportedOperationException(''); | |
| 25346 } | |
| 25347 | |
| 25348 /** @domName Node.appendChild */ | |
| 25349 Node add(Node value) { | |
| 25350 _node.appendChild(LevelDom.unwrap(value)); | |
| 25351 return value; | |
| 25352 } | |
| 25353 | |
| 25354 Node addLast(Node value) { | |
| 25355 _node.appendChild(LevelDom.unwrap(value)); | |
| 25356 return value; | |
| 25357 } | |
| 25358 | |
| 25359 Iterator<Node> iterator() { | |
| 25360 return _toList().iterator(); | |
| 25361 } | |
| 25362 | |
| 25363 void addAll(Collection<Node> collection) { | |
| 25364 for (Node node in collection) { | |
| 25365 _node.appendChild(LevelDom.unwrap(node)); | |
| 25366 } | |
| 25367 } | |
| 25368 | |
| 25369 void sort(int compare(Node a, Node b)) { | |
| 25370 throw const UnsupportedOperationException('TODO(jacobr): should we impl?'); | |
| 25371 } | |
| 25372 | |
| 25373 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | |
| 25374 throw 'Not impl yet. todo(jacobr)'; | |
| 25375 } | |
| 25376 | |
| 25377 void setRange(int start, int length, List from, [int startFrom = 0]) { | |
| 25378 throw const NotImplementedException(); | |
| 25379 } | |
| 25380 | |
| 25381 void removeRange(int start, int length) { | |
| 25382 throw const NotImplementedException(); | |
| 25383 } | |
| 25384 | |
| 25385 void insertRange(int start, int length, [initialValue = null]) { | |
| 25386 throw const NotImplementedException(); | |
| 25387 } | |
| 25388 | |
| 25389 List getRange(int start, int length) { | |
| 25390 throw const NotImplementedException(); | |
| 25391 } | |
| 25392 | |
| 25393 int indexOf(Node element, [int start = 0]) { | |
| 25394 return _Lists.indexOf(this, element, start, this.length); | |
| 25395 } | |
| 25396 | |
| 25397 int lastIndexOf(Node element, [int start = null]) { | |
| 25398 if (start === null) start = length - 1; | |
| 25399 return _Lists.lastIndexOf(this, element, start); | |
| 25400 } | |
| 25401 | |
| 25402 void clear() { | |
| 25403 _node.textContent = ''; | |
| 25404 } | |
| 25405 | |
| 25406 Node removeLast() { | |
| 25407 final last = this.last(); | |
| 25408 if (last != null) { | |
| 25409 _node.removeChild(LevelDom.unwrap(last)); | |
| 25410 } | |
| 25411 return last; | |
| 25412 } | |
| 25413 | |
| 25414 Node last() { | |
| 25415 return LevelDom.wrapNode(_node.lastChild); | |
| 25416 } | |
| 25417 } | |
| 25418 | |
| 25419 class NodeWrappingImplementation extends EventTargetWrappingImplementation imple
ments Node { | |
| 25420 NodeList _nodes; | |
| 25421 | |
| 25422 NodeWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 25423 | |
| 25424 void set nodes(Collection<Node> value) { | |
| 25425 // Copy list first since we don't want liveness during iteration. | |
| 25426 List copy = new List.from(value); | |
| 25427 nodes.clear(); | |
| 25428 nodes.addAll(copy); | |
| 25429 } | |
| 25430 | |
| 25431 NodeList get nodes() { | |
| 25432 if (_nodes === null) { | |
| 25433 _nodes = new _ChildrenNodeList._wrap(_ptr); | |
| 25434 } | |
| 25435 return _nodes; | |
| 25436 } | |
| 25437 | |
| 25438 Node get nextNode() => LevelDom.wrapNode(_ptr.nextSibling); | |
| 25439 | |
| 25440 Document get document() => LevelDom.wrapDocument(_ptr.ownerDocument); | |
| 25441 | |
| 25442 Node get parent() => LevelDom.wrapNode(_ptr.parentNode); | |
| 25443 | |
| 25444 Node get previousNode() => LevelDom.wrapNode(_ptr.previousSibling); | |
| 25445 | |
| 25446 String get text() => _ptr.textContent; | |
| 25447 | |
| 25448 void set text(String value) { _ptr.textContent = value; } | |
| 25449 | |
| 25450 // New methods implemented. | |
| 25451 Node replaceWith(Node otherNode) { | |
| 25452 try { | |
| 25453 _ptr.parentNode.replaceChild(LevelDom.unwrap(otherNode), _ptr); | |
| 25454 } catch(var e) { | |
| 25455 // TODO(jacobr): what should we return on failure? | |
| 25456 } | |
| 25457 return this; | |
| 25458 } | |
| 25459 | |
| 25460 Node remove() { | |
| 25461 // TODO(jacobr): should we throw an exception if parent is already null? | |
| 25462 if (_ptr.parentNode !== null) { | |
| 25463 _ptr.parentNode.removeChild(_ptr); | |
| 25464 } | |
| 25465 return this; | |
| 25466 } | |
| 25467 | |
| 25468 /** @domName contains */ | |
| 25469 bool contains(Node otherNode) { | |
| 25470 // TODO: Feature detect and use built in. | |
| 25471 while (otherNode != null && otherNode != this) { | |
| 25472 otherNode = otherNode.parent; | |
| 25473 } | |
| 25474 return otherNode == this; | |
| 25475 } | |
| 25476 | |
| 25477 // TODO(jacobr): remove when/if List supports a method similar to | |
| 25478 // insertBefore or we switch NodeList to implement LinkedList rather than | |
| 25479 // array. | |
| 25480 Node insertBefore(Node newChild, Node refChild) { | |
| 25481 return LevelDom.wrapNode(_ptr.insertBefore( | |
| 25482 LevelDom.unwrap(newChild), LevelDom.unwrap(refChild))); | |
| 25483 } | |
| 25484 | |
| 25485 Node clone(bool deep) { | |
| 25486 return LevelDom.wrapNode(_ptr.cloneNode(deep)); | |
| 25487 } | |
| 25488 } | |
| 25489 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25490 // for details. All rights reserved. Use of this source code is governed by a | |
| 25491 // BSD-style license that can be found in the LICENSE file. | |
| 25492 | |
| 25493 interface Notification extends EventTarget { | 9804 interface Notification extends EventTarget { |
| 25494 | 9805 |
| 25495 String get dir(); | 9806 String get dir(); |
| 25496 | 9807 |
| 25497 void set dir(String value); | 9808 void set dir(String value); |
| 25498 | 9809 |
| 25499 EventListener get onclick(); | 9810 EventListener get onclick(); |
| 25500 | 9811 |
| 25501 void set onclick(EventListener value); | 9812 void set onclick(EventListener value); |
| 25502 | 9813 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25517 void set replaceId(String value); | 9828 void set replaceId(String value); |
| 25518 | 9829 |
| 25519 void cancel(); | 9830 void cancel(); |
| 25520 | 9831 |
| 25521 void show(); | 9832 void show(); |
| 25522 } | 9833 } |
| 25523 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9834 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25524 // for details. All rights reserved. Use of this source code is governed by a | 9835 // for details. All rights reserved. Use of this source code is governed by a |
| 25525 // BSD-style license that can be found in the LICENSE file. | 9836 // BSD-style license that can be found in the LICENSE file. |
| 25526 | 9837 |
| 25527 // TODO(jacobr) add custom Events class. | |
| 25528 class NotificationWrappingImplementation extends EventTargetWrappingImplementati
on implements Notification { | |
| 25529 NotificationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 25530 | |
| 25531 String get dir() { return _ptr.dir; } | |
| 25532 | |
| 25533 void set dir(String value) { _ptr.dir = value; } | |
| 25534 | |
| 25535 EventListener get onclick() { return LevelDom.wrapEventListener(_ptr.onclick);
} | |
| 25536 | |
| 25537 void set onclick(EventListener value) { _ptr.onclick = LevelDom.unwrap(value);
} | |
| 25538 | |
| 25539 EventListener get onclose() { return LevelDom.wrapEventListener(_ptr.onclose);
} | |
| 25540 | |
| 25541 void set onclose(EventListener value) { _ptr.onclose = LevelDom.unwrap(value);
} | |
| 25542 | |
| 25543 EventListener get ondisplay() { return LevelDom.wrapEventListener(_ptr.ondispl
ay); } | |
| 25544 | |
| 25545 void set ondisplay(EventListener value) { _ptr.ondisplay = LevelDom.unwrap(val
ue); } | |
| 25546 | |
| 25547 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror);
} | |
| 25548 | |
| 25549 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value);
} | |
| 25550 | |
| 25551 String get replaceId() { return _ptr.replaceId; } | |
| 25552 | |
| 25553 void set replaceId(String value) { _ptr.replaceId = value; } | |
| 25554 | |
| 25555 void cancel() { | |
| 25556 _ptr.cancel(); | |
| 25557 return; | |
| 25558 } | |
| 25559 | |
| 25560 void show() { | |
| 25561 _ptr.show(); | |
| 25562 return; | |
| 25563 } | |
| 25564 | |
| 25565 String get typeName() { return "Notification"; } | |
| 25566 } | |
| 25567 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25568 // for details. All rights reserved. Use of this source code is governed by a | |
| 25569 // BSD-style license that can be found in the LICENSE file. | |
| 25570 | |
| 25571 interface OverflowEvent extends Event factory OverflowEventWrappingImplementatio
n { | 9838 interface OverflowEvent extends Event factory OverflowEventWrappingImplementatio
n { |
| 25572 | 9839 |
| 25573 OverflowEvent(int orient, bool horizontalOverflow, bool verticalOverflow); | 9840 OverflowEvent(int orient, bool horizontalOverflow, bool verticalOverflow); |
| 25574 | 9841 |
| 25575 static final int BOTH = 2; | 9842 static final int BOTH = 2; |
| 25576 | 9843 |
| 25577 static final int HORIZONTAL = 0; | 9844 static final int HORIZONTAL = 0; |
| 25578 | 9845 |
| 25579 static final int VERTICAL = 1; | 9846 static final int VERTICAL = 1; |
| 25580 | 9847 |
| 25581 bool get horizontalOverflow(); | 9848 bool get horizontalOverflow(); |
| 25582 | 9849 |
| 25583 int get orient(); | 9850 int get orient(); |
| 25584 | 9851 |
| 25585 bool get verticalOverflow(); | 9852 bool get verticalOverflow(); |
| 25586 } | 9853 } |
| 25587 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9854 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25588 // for details. All rights reserved. Use of this source code is governed by a | 9855 // for details. All rights reserved. Use of this source code is governed by a |
| 25589 // BSD-style license that can be found in the LICENSE file. | 9856 // BSD-style license that can be found in the LICENSE file. |
| 25590 | 9857 |
| 25591 class OverflowEventWrappingImplementation extends EventWrappingImplementation im
plements OverflowEvent { | |
| 25592 OverflowEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 25593 | |
| 25594 /** @domName OverflowEvent.initOverflowEvent */ | |
| 25595 factory OverflowEventWrappingImplementation(int orient, | |
| 25596 bool horizontalOverflow, bool verticalOverflow) { | |
| 25597 final e = dom.document.createEvent("OverflowEvent"); | |
| 25598 e.initOverflowEvent(orient, horizontalOverflow, verticalOverflow); | |
| 25599 return LevelDom.wrapOverflowEvent(e); | |
| 25600 } | |
| 25601 | |
| 25602 bool get horizontalOverflow() => _ptr.horizontalOverflow; | |
| 25603 | |
| 25604 int get orient() => _ptr.orient; | |
| 25605 | |
| 25606 bool get verticalOverflow() => _ptr.verticalOverflow; | |
| 25607 } | |
| 25608 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25609 // for details. All rights reserved. Use of this source code is governed by a | |
| 25610 // BSD-style license that can be found in the LICENSE file. | |
| 25611 | |
| 25612 interface PageTransitionEvent extends Event factory PageTransitionEventWrappingI
mplementation { | 9858 interface PageTransitionEvent extends Event factory PageTransitionEventWrappingI
mplementation { |
| 25613 | 9859 |
| 25614 PageTransitionEvent(String type, [bool canBubble, bool cancelable, | 9860 PageTransitionEvent(String type, [bool canBubble, bool cancelable, |
| 25615 bool persisted]); | 9861 bool persisted]); |
| 25616 | 9862 |
| 25617 bool get persisted(); | 9863 bool get persisted(); |
| 25618 } | 9864 } |
| 25619 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9865 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25620 // for details. All rights reserved. Use of this source code is governed by a | 9866 // for details. All rights reserved. Use of this source code is governed by a |
| 25621 // BSD-style license that can be found in the LICENSE file. | 9867 // BSD-style license that can be found in the LICENSE file. |
| 25622 | 9868 |
| 25623 class PageTransitionEventWrappingImplementation extends EventWrappingImplementat
ion implements PageTransitionEvent { | |
| 25624 PageTransitionEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 25625 | |
| 25626 factory PageTransitionEventWrappingImplementation(String type, | |
| 25627 [bool canBubble = true, bool cancelable = true, | |
| 25628 bool persisted = false]) { | |
| 25629 final e = dom.document.createEvent("PageTransitionEvent"); | |
| 25630 e.initPageTransitionEvent(type, canBubble, cancelable, persisted); | |
| 25631 return LevelDom.wrapPageTransitionEvent(e); | |
| 25632 } | |
| 25633 | |
| 25634 bool get persisted() => _ptr.persisted; | |
| 25635 } | |
| 25636 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25637 // for details. All rights reserved. Use of this source code is governed by a | |
| 25638 // BSD-style license that can be found in the LICENSE file. | |
| 25639 | |
| 25640 interface PopStateEvent extends Event factory PopStateEventWrappingImplementatio
n { | 9869 interface PopStateEvent extends Event factory PopStateEventWrappingImplementatio
n { |
| 25641 | 9870 |
| 25642 PopStateEvent(String type, Object state, [bool canBubble, bool cancelable]); | 9871 PopStateEvent(String type, Object state, [bool canBubble, bool cancelable]); |
| 25643 | 9872 |
| 25644 String get state(); | 9873 String get state(); |
| 25645 } | 9874 } |
| 25646 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9875 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25647 // for details. All rights reserved. Use of this source code is governed by a | 9876 // for details. All rights reserved. Use of this source code is governed by a |
| 25648 // BSD-style license that can be found in the LICENSE file. | 9877 // BSD-style license that can be found in the LICENSE file. |
| 25649 | 9878 |
| 25650 class PopStateEventWrappingImplementation extends EventWrappingImplementation im
plements PopStateEvent { | |
| 25651 PopStateEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 25652 | |
| 25653 factory PopStateEventWrappingImplementation(String type, Object state, | |
| 25654 [bool canBubble = true, bool cancelable = true]) { | |
| 25655 final e = dom.document.createEvent("PopStateEvent"); | |
| 25656 e.initPopStateEvent(type, canBubble, cancelable, state); | |
| 25657 return LevelDom.wrapPopStateEvent(e); | |
| 25658 } | |
| 25659 | |
| 25660 String get state() => _ptr.state; | |
| 25661 } | |
| 25662 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25663 // for details. All rights reserved. Use of this source code is governed by a | |
| 25664 // BSD-style license that can be found in the LICENSE file. | |
| 25665 | |
| 25666 interface ProgressEvent extends Event factory ProgressEventWrappingImplementatio
n { | 9879 interface ProgressEvent extends Event factory ProgressEventWrappingImplementatio
n { |
| 25667 | 9880 |
| 25668 ProgressEvent(String type, int loaded, [bool canBubble, bool cancelable, | 9881 ProgressEvent(String type, int loaded, [bool canBubble, bool cancelable, |
| 25669 bool lengthComputable, int total]); | 9882 bool lengthComputable, int total]); |
| 25670 | 9883 |
| 25671 bool get lengthComputable(); | 9884 bool get lengthComputable(); |
| 25672 | 9885 |
| 25673 int get loaded(); | 9886 int get loaded(); |
| 25674 | 9887 |
| 25675 int get total(); | 9888 int get total(); |
| 25676 } | 9889 } |
| 25677 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9890 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25678 // for details. All rights reserved. Use of this source code is governed by a | 9891 // for details. All rights reserved. Use of this source code is governed by a |
| 25679 // BSD-style license that can be found in the LICENSE file. | 9892 // BSD-style license that can be found in the LICENSE file. |
| 25680 | 9893 |
| 25681 class ProgressEventWrappingImplementation extends EventWrappingImplementation im
plements ProgressEvent { | |
| 25682 ProgressEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 25683 | |
| 25684 factory ProgressEventWrappingImplementation(String type, int loaded, | |
| 25685 [bool canBubble = true, bool cancelable = true, | |
| 25686 bool lengthComputable = false, int total = 0]) { | |
| 25687 final e = dom.document.createEvent("ProgressEvent"); | |
| 25688 e.initProgressEvent(type, canBubble, cancelable, lengthComputable, loaded, | |
| 25689 total); | |
| 25690 return LevelDom.wrapProgressEvent(e); | |
| 25691 } | |
| 25692 | |
| 25693 bool get lengthComputable() => _ptr.lengthComputable; | |
| 25694 | |
| 25695 int get loaded() => _ptr.loaded; | |
| 25696 | |
| 25697 int get total() => _ptr.total; | |
| 25698 } | |
| 25699 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25700 // for details. All rights reserved. Use of this source code is governed by a | |
| 25701 // BSD-style license that can be found in the LICENSE file. | |
| 25702 | |
| 25703 typedef bool RequestAnimationFrameCallback(int time); | 9894 typedef bool RequestAnimationFrameCallback(int time); |
| 25704 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9895 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25705 // for details. All rights reserved. Use of this source code is governed by a | 9896 // for details. All rights reserved. Use of this source code is governed by a |
| 25706 // BSD-style license that can be found in the LICENSE file. | 9897 // BSD-style license that can be found in the LICENSE file. |
| 25707 | 9898 |
| 25708 interface SharedWorker extends AbstractWorker { | 9899 interface SharedWorker extends AbstractWorker { |
| 25709 | 9900 |
| 25710 MessagePort get port(); | 9901 MessagePort get port(); |
| 25711 } | 9902 } |
| 25712 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9903 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25713 // for details. All rights reserved. Use of this source code is governed by a | 9904 // for details. All rights reserved. Use of this source code is governed by a |
| 25714 // BSD-style license that can be found in the LICENSE file. | 9905 // BSD-style license that can be found in the LICENSE file. |
| 25715 | 9906 |
| 25716 class SharedWorkerWrappingImplementation extends AbstractWorkerWrappingImplement
ation implements SharedWorker { | |
| 25717 SharedWorkerWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 25718 | |
| 25719 MessagePort get port() { return LevelDom.wrapMessagePort(_ptr.port); } | |
| 25720 } | |
| 25721 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25722 // for details. All rights reserved. Use of this source code is governed by a | |
| 25723 // BSD-style license that can be found in the LICENSE file. | |
| 25724 | |
| 25725 interface StorageEvent extends Event factory StorageEventWrappingImplementation
{ | 9907 interface StorageEvent extends Event factory StorageEventWrappingImplementation
{ |
| 25726 | 9908 |
| 25727 StorageEvent(String type, String key, String url, Storage storageArea, | 9909 StorageEvent(String type, String key, String url, Storage storageArea, |
| 25728 [bool canBubble, bool cancelable, String oldValue, String newValue]); | 9910 [bool canBubble, bool cancelable, String oldValue, String newValue]); |
| 25729 | 9911 |
| 25730 String get key(); | 9912 String get key(); |
| 25731 | 9913 |
| 25732 String get newValue(); | 9914 String get newValue(); |
| 25733 | 9915 |
| 25734 String get oldValue(); | 9916 String get oldValue(); |
| 25735 | 9917 |
| 25736 Storage get storageArea(); | 9918 Storage get storageArea(); |
| 25737 | 9919 |
| 25738 String get url(); | 9920 String get url(); |
| 25739 } | 9921 } |
| 25740 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9922 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25741 // for details. All rights reserved. Use of this source code is governed by a | 9923 // for details. All rights reserved. Use of this source code is governed by a |
| 25742 // BSD-style license that can be found in the LICENSE file. | 9924 // BSD-style license that can be found in the LICENSE file. |
| 25743 | 9925 |
| 25744 class StorageEventWrappingImplementation extends EventWrappingImplementation imp
lements StorageEvent { | |
| 25745 StorageEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 25746 | |
| 25747 factory StorageEventWrappingImplementation(String type, String key, | |
| 25748 String url, Storage storageArea, [bool canBubble = true, | |
| 25749 bool cancelable = true, String oldValue = null, | |
| 25750 String newValue = null]) { | |
| 25751 final e = dom.document.createEvent("StorageEvent"); | |
| 25752 e.initStorageEvent(type, canBubble, cancelable, key, oldValue, newValue, | |
| 25753 url, LevelDom.unwrap(storageArea)); | |
| 25754 return LevelDom.wrapStorageEvent(e); | |
| 25755 } | |
| 25756 | |
| 25757 String get key() => _ptr.key; | |
| 25758 | |
| 25759 String get newValue() => _ptr.newValue; | |
| 25760 | |
| 25761 String get oldValue() => _ptr.oldValue; | |
| 25762 | |
| 25763 Storage get storageArea() => LevelDom.wrapStorage(_ptr.storageArea); | |
| 25764 | |
| 25765 String get url() => _ptr.url; | |
| 25766 } | |
| 25767 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25768 // for details. All rights reserved. Use of this source code is governed by a | |
| 25769 // BSD-style license that can be found in the LICENSE file. | |
| 25770 | |
| 25771 interface Text extends CharacterData factory TextWrappingImplementation { | 9926 interface Text extends CharacterData factory TextWrappingImplementation { |
| 25772 | 9927 |
| 25773 Text(String content); | 9928 Text(String content); |
| 25774 | 9929 |
| 25775 String get wholeText(); | 9930 String get wholeText(); |
| 25776 | 9931 |
| 25777 Text replaceWholeText([String content]); | 9932 Text replaceWholeText([String content]); |
| 25778 | 9933 |
| 25779 Text splitText([int offset]); | 9934 Text splitText([int offset]); |
| 25780 } | 9935 } |
| 25781 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9936 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25782 // for details. All rights reserved. Use of this source code is governed by a | 9937 // for details. All rights reserved. Use of this source code is governed by a |
| 25783 // BSD-style license that can be found in the LICENSE file. | 9938 // BSD-style license that can be found in the LICENSE file. |
| 25784 | 9939 |
| 25785 interface TextEvent extends UIEvent factory TextEventWrappingImplementation { | 9940 interface TextEvent extends UIEvent factory TextEventWrappingImplementation { |
| 25786 | 9941 |
| 25787 TextEvent(String type, Window view, String data, [bool canBubble, | 9942 TextEvent(String type, Window view, String data, [bool canBubble, |
| 25788 bool cancelable]); | 9943 bool cancelable]); |
| 25789 | 9944 |
| 25790 String get data(); | 9945 String get data(); |
| 25791 } | 9946 } |
| 25792 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9947 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25793 // for details. All rights reserved. Use of this source code is governed by a | 9948 // for details. All rights reserved. Use of this source code is governed by a |
| 25794 // BSD-style license that can be found in the LICENSE file. | 9949 // BSD-style license that can be found in the LICENSE file. |
| 25795 | 9950 |
| 25796 class TextEventWrappingImplementation extends UIEventWrappingImplementation impl
ements TextEvent { | |
| 25797 TextEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 25798 | |
| 25799 factory TextEventWrappingImplementation(String type, Window view, String data, | |
| 25800 [bool canBubble = true, bool cancelable = true]) { | |
| 25801 final e = dom.document.createEvent("TextEvent"); | |
| 25802 e.initTextEvent(type, canBubble, cancelable, LevelDom.unwrap(view), data); | |
| 25803 return LevelDom.wrapTextEvent(e); | |
| 25804 } | |
| 25805 | |
| 25806 String get data() => _ptr.data; | |
| 25807 } | |
| 25808 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25809 // for details. All rights reserved. Use of this source code is governed by a | |
| 25810 // BSD-style license that can be found in the LICENSE file. | |
| 25811 | |
| 25812 class TextWrappingImplementation extends CharacterDataWrappingImplementation imp
lements Text { | |
| 25813 /** @domName Document.createTextNode */ | |
| 25814 factory TextWrappingImplementation(String content) { | |
| 25815 return new TextWrappingImplementation._wrap( | |
| 25816 dom.document.createTextNode(content)); | |
| 25817 } | |
| 25818 | |
| 25819 TextWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 25820 | |
| 25821 String get wholeText() => _ptr.wholeText; | |
| 25822 | |
| 25823 Text replaceWholeText([String content = null]) { | |
| 25824 if (content === null) { | |
| 25825 return LevelDom.wrapText(_ptr.replaceWholeText()); | |
| 25826 } else { | |
| 25827 return LevelDom.wrapText(_ptr.replaceWholeText(content)); | |
| 25828 } | |
| 25829 } | |
| 25830 | |
| 25831 Text splitText([int offset = null]) { | |
| 25832 if (offset === null) { | |
| 25833 return LevelDom.wrapText(_ptr.splitText()); | |
| 25834 } else { | |
| 25835 return LevelDom.wrapText(_ptr.splitText(offset)); | |
| 25836 } | |
| 25837 } | |
| 25838 } | |
| 25839 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25840 // for details. All rights reserved. Use of this source code is governed by a | |
| 25841 // BSD-style license that can be found in the LICENSE file. | |
| 25842 | |
| 25843 typedef void TimeoutHandler(); | 9951 typedef void TimeoutHandler(); |
| 25844 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9952 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25845 // for details. All rights reserved. Use of this source code is governed by a | 9953 // for details. All rights reserved. Use of this source code is governed by a |
| 25846 // BSD-style license that can be found in the LICENSE file. | 9954 // BSD-style license that can be found in the LICENSE file. |
| 25847 | 9955 |
| 25848 interface TouchEvent extends UIEvent factory TouchEventWrappingImplementation { | 9956 interface TouchEvent extends UIEvent factory TouchEventWrappingImplementation { |
| 25849 | 9957 |
| 25850 TouchEvent(TouchList touches, TouchList targetTouches, | 9958 TouchEvent(TouchList touches, TouchList targetTouches, |
| 25851 TouchList changedTouches, String type, Window view, int screenX, | 9959 TouchList changedTouches, String type, Window view, int screenX, |
| 25852 int screenY, int clientX, int clientY, [bool ctrlKey, bool altKey, | 9960 int screenY, int clientX, int clientY, [bool ctrlKey, bool altKey, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 25863 bool get shiftKey(); | 9971 bool get shiftKey(); |
| 25864 | 9972 |
| 25865 TouchList get targetTouches(); | 9973 TouchList get targetTouches(); |
| 25866 | 9974 |
| 25867 TouchList get touches(); | 9975 TouchList get touches(); |
| 25868 } | 9976 } |
| 25869 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9977 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25870 // for details. All rights reserved. Use of this source code is governed by a | 9978 // for details. All rights reserved. Use of this source code is governed by a |
| 25871 // BSD-style license that can be found in the LICENSE file. | 9979 // BSD-style license that can be found in the LICENSE file. |
| 25872 | 9980 |
| 25873 class TouchEventWrappingImplementation extends UIEventWrappingImplementation imp
lements TouchEvent { | |
| 25874 TouchEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 25875 | |
| 25876 factory TouchEvent(TouchList touches, TouchList targetTouches, | |
| 25877 TouchList changedTouches, String type, Window view, int screenX, | |
| 25878 int screenY, int clientX, int clientY, [bool ctrlKey = false, | |
| 25879 bool altKey = false, bool shiftKey = false, bool metaKey = false]) { | |
| 25880 final e = dom.document.createEvent("TouchEvent"); | |
| 25881 e.initTouchEvent(LevelDom.unwrap(touches), LevelDom.unwrap(targetTouches), | |
| 25882 LevelDom.unwrap(changedTouches), type, LevelDom.unwrap(view), screenX, | |
| 25883 screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey); | |
| 25884 return LevelDom.wrapTouchEvent(e); | |
| 25885 } | |
| 25886 | |
| 25887 bool get altKey() => _ptr.altKey; | |
| 25888 | |
| 25889 TouchList get changedTouches() => LevelDom.wrapTouchList(_ptr.changedTouches); | |
| 25890 | |
| 25891 bool get ctrlKey() => _ptr.ctrlKey; | |
| 25892 | |
| 25893 bool get metaKey() => _ptr.metaKey; | |
| 25894 | |
| 25895 bool get shiftKey() => _ptr.shiftKey; | |
| 25896 | |
| 25897 TouchList get targetTouches() => LevelDom.wrapTouchList(_ptr.targetTouches); | |
| 25898 | |
| 25899 TouchList get touches() => LevelDom.wrapTouchList(_ptr.touches); | |
| 25900 } | |
| 25901 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25902 // for details. All rights reserved. Use of this source code is governed by a | |
| 25903 // BSD-style license that can be found in the LICENSE file. | |
| 25904 | |
| 25905 interface TransitionEvent extends Event factory TransitionEventWrappingImplement
ation { | 9981 interface TransitionEvent extends Event factory TransitionEventWrappingImplement
ation { |
| 25906 | 9982 |
| 25907 TransitionEvent(String type, String propertyName, double elapsedTime, | 9983 TransitionEvent(String type, String propertyName, double elapsedTime, |
| 25908 [bool canBubble, bool cancelable]); | 9984 [bool canBubble, bool cancelable]); |
| 25909 | 9985 |
| 25910 num get elapsedTime(); | 9986 num get elapsedTime(); |
| 25911 | 9987 |
| 25912 String get propertyName(); | 9988 String get propertyName(); |
| 25913 } | 9989 } |
| 25914 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 9990 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25915 // for details. All rights reserved. Use of this source code is governed by a | 9991 // for details. All rights reserved. Use of this source code is governed by a |
| 25916 // BSD-style license that can be found in the LICENSE file. | 9992 // BSD-style license that can be found in the LICENSE file. |
| 25917 | 9993 |
| 25918 class TransitionEventWrappingImplementation extends EventWrappingImplementation
implements TransitionEvent { | |
| 25919 static String _name; | |
| 25920 | |
| 25921 TransitionEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 25922 | |
| 25923 static String get _eventName() { | |
| 25924 if (_name != null) return _name; | |
| 25925 | |
| 25926 try { | |
| 25927 dom.document.createEvent("WebKitTransitionEvent"); | |
| 25928 _name = "WebKitTransitionEvent"; | |
| 25929 } catch (var e) { | |
| 25930 _name = "TransitionEvent"; | |
| 25931 } | |
| 25932 return _name; | |
| 25933 } | |
| 25934 | |
| 25935 factory TransitionEventWrappingImplementation(String type, | |
| 25936 String propertyName, double elapsedTime, [bool canBubble = true, | |
| 25937 bool cancelable = true]) { | |
| 25938 final e = dom.document.createEvent(_eventName); | |
| 25939 e.initWebKitTransitionEvent(type, canBubble, cancelable, propertyName, | |
| 25940 elapsedTime); | |
| 25941 return LevelDom.wrapTransitionEvent(e); | |
| 25942 } | |
| 25943 | |
| 25944 num get elapsedTime() => _ptr.elapsedTime; | |
| 25945 | |
| 25946 String get propertyName() => _ptr.propertyName; | |
| 25947 } | |
| 25948 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25949 // for details. All rights reserved. Use of this source code is governed by a | |
| 25950 // BSD-style license that can be found in the LICENSE file. | |
| 25951 | |
| 25952 interface UIEvent extends Event factory UIEventWrappingImplementation { | 9994 interface UIEvent extends Event factory UIEventWrappingImplementation { |
| 25953 | 9995 |
| 25954 UIEvent(String type, Window view, int detail, [bool canBubble, | 9996 UIEvent(String type, Window view, int detail, [bool canBubble, |
| 25955 bool cancelable]); | 9997 bool cancelable]); |
| 25956 | 9998 |
| 25957 int get charCode(); | 9999 int get charCode(); |
| 25958 | 10000 |
| 25959 int get detail(); | 10001 int get detail(); |
| 25960 | 10002 |
| 25961 int get keyCode(); | 10003 int get keyCode(); |
| 25962 | 10004 |
| 25963 int get layerX(); | 10005 int get layerX(); |
| 25964 | 10006 |
| 25965 int get layerY(); | 10007 int get layerY(); |
| 25966 | 10008 |
| 25967 int get pageX(); | 10009 int get pageX(); |
| 25968 | 10010 |
| 25969 int get pageY(); | 10011 int get pageY(); |
| 25970 | 10012 |
| 25971 Window get view(); | 10013 Window get view(); |
| 25972 | 10014 |
| 25973 int get which(); | 10015 int get which(); |
| 25974 } | 10016 } |
| 25975 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 10017 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25976 // for details. All rights reserved. Use of this source code is governed by a | 10018 // for details. All rights reserved. Use of this source code is governed by a |
| 25977 // BSD-style license that can be found in the LICENSE file. | 10019 // BSD-style license that can be found in the LICENSE file. |
| 25978 | 10020 |
| 25979 class UIEventWrappingImplementation extends EventWrappingImplementation implemen
ts UIEvent { | |
| 25980 UIEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 25981 | |
| 25982 factory UIEventWrappingImplementation(String type, Window view, int detail, | |
| 25983 [bool canBubble = true, bool cancelable = true]) { | |
| 25984 final e = dom.document.createEvent("UIEvent"); | |
| 25985 e.initUIEvent(type, canBubble, cancelable, LevelDom.unwrap(view), detail); | |
| 25986 return LevelDom.wrapUIEvent(e); | |
| 25987 } | |
| 25988 | |
| 25989 int get charCode() => _ptr.charCode; | |
| 25990 | |
| 25991 int get detail() => _ptr.detail; | |
| 25992 | |
| 25993 int get keyCode() => _ptr.keyCode; | |
| 25994 | |
| 25995 int get layerX() => _ptr.layerX; | |
| 25996 | |
| 25997 int get layerY() => _ptr.layerY; | |
| 25998 | |
| 25999 int get pageX() => _ptr.pageX; | |
| 26000 | |
| 26001 int get pageY() => _ptr.pageY; | |
| 26002 | |
| 26003 Window get view() => LevelDom.wrapWindow(_ptr.view); | |
| 26004 | |
| 26005 int get which() => _ptr.which; | |
| 26006 } | |
| 26007 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 26008 // for details. All rights reserved. Use of this source code is governed by a | |
| 26009 // BSD-style license that can be found in the LICENSE file. | |
| 26010 | |
| 26011 interface WebSocket extends EventTarget { | 10021 interface WebSocket extends EventTarget { |
| 26012 | 10022 |
| 26013 static final int CLOSED = 3; | 10023 static final int CLOSED = 3; |
| 26014 | 10024 |
| 26015 static final int CLOSING = 2; | 10025 static final int CLOSING = 2; |
| 26016 | 10026 |
| 26017 static final int CONNECTING = 0; | 10027 static final int CONNECTING = 0; |
| 26018 | 10028 |
| 26019 static final int OPEN = 1; | 10029 static final int OPEN = 1; |
| 26020 | 10030 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 26047 int get readyState(); | 10057 int get readyState(); |
| 26048 | 10058 |
| 26049 void close(); | 10059 void close(); |
| 26050 | 10060 |
| 26051 bool send(String data); | 10061 bool send(String data); |
| 26052 } | 10062 } |
| 26053 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 10063 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 26054 // for details. All rights reserved. Use of this source code is governed by a | 10064 // for details. All rights reserved. Use of this source code is governed by a |
| 26055 // BSD-style license that can be found in the LICENSE file. | 10065 // BSD-style license that can be found in the LICENSE file. |
| 26056 | 10066 |
| 26057 // TODO(jacobr) add events. | |
| 26058 class WebSocketWrappingImplementation extends EventTargetWrappingImplementation
implements WebSocket { | |
| 26059 WebSocketWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 26060 | |
| 26061 String get URL() { return _ptr.URL; } | |
| 26062 | |
| 26063 String get binaryType() { return _ptr.binaryType; } | |
| 26064 | |
| 26065 void set binaryType(String value) { _ptr.binaryType = value; } | |
| 26066 | |
| 26067 int get bufferedAmount() { return _ptr.bufferedAmount; } | |
| 26068 | |
| 26069 EventListener get onclose() { return LevelDom.wrapEventListener(_ptr.onclose);
} | |
| 26070 | |
| 26071 void set onclose(EventListener value) { _ptr.onclose = LevelDom.unwrap(value);
} | |
| 26072 | |
| 26073 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror);
} | |
| 26074 | |
| 26075 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value);
} | |
| 26076 | |
| 26077 EventListener get onmessage() { return LevelDom.wrapEventListener(_ptr.onmessa
ge); } | |
| 26078 | |
| 26079 void set onmessage(EventListener value) { _ptr.onmessage = LevelDom.unwrap(val
ue); } | |
| 26080 | |
| 26081 EventListener get onopen() { return LevelDom.wrapEventListener(_ptr.onopen); } | |
| 26082 | |
| 26083 void set onopen(EventListener value) { _ptr.onopen = LevelDom.unwrap(value); } | |
| 26084 | |
| 26085 String get protocol() { return _ptr.protocol; } | |
| 26086 | |
| 26087 int get readyState() { return _ptr.readyState; } | |
| 26088 | |
| 26089 void close() { | |
| 26090 _ptr.close(); | |
| 26091 return; | |
| 26092 } | |
| 26093 | |
| 26094 bool send(String data) { | |
| 26095 return _ptr.send(data); | |
| 26096 } | |
| 26097 | |
| 26098 String get typeName() { return "WebSocket"; } | |
| 26099 } | |
| 26100 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 26101 // for details. All rights reserved. Use of this source code is governed by a | |
| 26102 // BSD-style license that can be found in the LICENSE file. | |
| 26103 | |
| 26104 interface WheelEvent extends UIEvent factory WheelEventWrappingImplementation { | 10067 interface WheelEvent extends UIEvent factory WheelEventWrappingImplementation { |
| 26105 | 10068 |
| 26106 WheelEvent(int deltaX, int deltaY, Window view, int screenX, int screenY, | 10069 WheelEvent(int deltaX, int deltaY, Window view, int screenX, int screenY, |
| 26107 int clientX, int clientY, [bool ctrlKey, bool altKey, bool shiftKey, | 10070 int clientX, int clientY, [bool ctrlKey, bool altKey, bool shiftKey, |
| 26108 bool metaKey]); | 10071 bool metaKey]); |
| 26109 | 10072 |
| 26110 bool get altKey(); | 10073 bool get altKey(); |
| 26111 | 10074 |
| 26112 int get clientX(); | 10075 int get clientX(); |
| 26113 | 10076 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 26134 int get wheelDeltaY(); | 10097 int get wheelDeltaY(); |
| 26135 | 10098 |
| 26136 int get x(); | 10099 int get x(); |
| 26137 | 10100 |
| 26138 int get y(); | 10101 int get y(); |
| 26139 } | 10102 } |
| 26140 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 10103 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 26141 // for details. All rights reserved. Use of this source code is governed by a | 10104 // for details. All rights reserved. Use of this source code is governed by a |
| 26142 // BSD-style license that can be found in the LICENSE file. | 10105 // BSD-style license that can be found in the LICENSE file. |
| 26143 | 10106 |
| 26144 class WheelEventWrappingImplementation extends UIEventWrappingImplementation imp
lements WheelEvent { | |
| 26145 WheelEventWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 26146 | |
| 26147 factory WheelEventWrappingImplementation(int deltaX, int deltaY, Window view, | |
| 26148 int screenX, int screenY, int clientX, int clientY, [bool ctrlKey = false, | |
| 26149 bool altKey = false, bool shiftKey = false, bool metaKey = false]) { | |
| 26150 final e = dom.document.createEvent("WheelEvent"); | |
| 26151 e.initWebKitWheelEvent(deltaX, deltaY, LevelDom.unwrap(view), screenX, scree
nY, | |
| 26152 clientX, clientY, ctrlKey, altKey, shiftKey, metaKey); | |
| 26153 return LevelDom.wrapWheelEvent(e); | |
| 26154 } | |
| 26155 | |
| 26156 bool get altKey() => _ptr.altKey; | |
| 26157 | |
| 26158 int get clientX() => _ptr.clientX; | |
| 26159 | |
| 26160 int get clientY() => _ptr.clientY; | |
| 26161 | |
| 26162 bool get ctrlKey() => _ptr.ctrlKey; | |
| 26163 | |
| 26164 bool get metaKey() => _ptr.metaKey; | |
| 26165 | |
| 26166 int get offsetX() => _ptr.offsetX; | |
| 26167 | |
| 26168 int get offsetY() => _ptr.offsetY; | |
| 26169 | |
| 26170 int get screenX() => _ptr.screenX; | |
| 26171 | |
| 26172 int get screenY() => _ptr.screenY; | |
| 26173 | |
| 26174 bool get shiftKey() => _ptr.shiftKey; | |
| 26175 | |
| 26176 int get wheelDelta() => _ptr.wheelDelta; | |
| 26177 | |
| 26178 int get wheelDeltaX() => _ptr.wheelDeltaX; | |
| 26179 | |
| 26180 int get wheelDeltaY() => _ptr.wheelDeltaY; | |
| 26181 | |
| 26182 int get x() => _ptr.x; | |
| 26183 | |
| 26184 int get y() => _ptr.y; | |
| 26185 } | |
| 26186 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 26187 // for details. All rights reserved. Use of this source code is governed by a | |
| 26188 // BSD-style license that can be found in the LICENSE file. | |
| 26189 | |
| 26190 interface WindowEvents extends Events { | 10107 interface WindowEvents extends Events { |
| 26191 EventListenerList get abort(); | 10108 EventListenerList get abort(); |
| 26192 EventListenerList get beforeUnload(); | 10109 EventListenerList get beforeUnload(); |
| 26193 EventListenerList get blur(); | 10110 EventListenerList get blur(); |
| 26194 EventListenerList get canPlay(); | 10111 EventListenerList get canPlay(); |
| 26195 EventListenerList get canPlayThrough(); | 10112 EventListenerList get canPlayThrough(); |
| 26196 EventListenerList get change(); | 10113 EventListenerList get change(); |
| 26197 EventListenerList get click(); | 10114 EventListenerList get click(); |
| 26198 EventListenerList get contextMenu(); | 10115 EventListenerList get contextMenu(); |
| 26199 EventListenerList get dblClick(); | 10116 EventListenerList get dblClick(); |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26499 * had been scheduled. | 10416 * had been scheduled. |
| 26500 */ | 10417 */ |
| 26501 void requestLayoutFrame(TimeoutHandler callback); | 10418 void requestLayoutFrame(TimeoutHandler callback); |
| 26502 | 10419 |
| 26503 // Window open(String url, String target, WindowSpec features); | 10420 // Window open(String url, String target, WindowSpec features); |
| 26504 | 10421 |
| 26505 WindowEvents get on(); | 10422 WindowEvents get on(); |
| 26506 } | 10423 } |
| 26507 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 10424 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 26508 // for details. All rights reserved. Use of this source code is governed by a | 10425 // for details. All rights reserved. Use of this source code is governed by a |
| 26509 // BSD-style license that can be found in the LICENSE file. | |
| 26510 | |
| 26511 // TODO(jacobr): define a base class containing the overlap between | |
| 26512 // this class and ElementEvents. | |
| 26513 class WindowEventsImplementation extends EventsImplementation | |
| 26514 implements WindowEvents { | |
| 26515 WindowEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
| 26516 | |
| 26517 EventListenerList get abort() => _get('abort'); | |
| 26518 EventListenerList get beforeUnload() => _get('beforeunload'); | |
| 26519 EventListenerList get blur() => _get('blur'); | |
| 26520 EventListenerList get canPlay() => _get('canplay'); | |
| 26521 EventListenerList get canPlayThrough() => _get('canplaythrough'); | |
| 26522 EventListenerList get change() => _get('change'); | |
| 26523 EventListenerList get click() => _get('click'); | |
| 26524 EventListenerList get contextMenu() => _get('contextmenu'); | |
| 26525 EventListenerList get dblClick() => _get('dblclick'); | |
| 26526 EventListenerList get deviceMotion() => _get('devicemotion'); | |
| 26527 EventListenerList get deviceOrientation() => _get('deviceorientation'); | |
| 26528 EventListenerList get drag() => _get('drag'); | |
| 26529 EventListenerList get dragEnd() => _get('dragend'); | |
| 26530 EventListenerList get dragEnter() => _get('dragenter'); | |
| 26531 EventListenerList get dragLeave() => _get('dragleave'); | |
| 26532 EventListenerList get dragOver() => _get('dragover'); | |
| 26533 EventListenerList get dragStart() => _get('dragstart'); | |
| 26534 EventListenerList get drop() => _get('drop'); | |
| 26535 EventListenerList get durationChange() => _get('durationchange'); | |
| 26536 EventListenerList get emptied() => _get('emptied'); | |
| 26537 EventListenerList get ended() => _get('ended'); | |
| 26538 EventListenerList get error() => _get('error'); | |
| 26539 EventListenerList get focus() => _get('focus'); | |
| 26540 EventListenerList get hashChange() => _get('hashchange'); | |
| 26541 EventListenerList get input() => _get('input'); | |
| 26542 EventListenerList get invalid() => _get('invalid'); | |
| 26543 EventListenerList get keyDown() => _get('keydown'); | |
| 26544 EventListenerList get keyPress() => _get('keypress'); | |
| 26545 EventListenerList get keyUp() => _get('keyup'); | |
| 26546 EventListenerList get load() => _get('load'); | |
| 26547 EventListenerList get loadedData() => _get('loadeddata'); | |
| 26548 EventListenerList get loadedMetaData() => _get('loadedmetadata'); | |
| 26549 EventListenerList get loadStart() => _get('loadstart'); | |
| 26550 EventListenerList get message() => _get('message'); | |
| 26551 EventListenerList get mouseDown() => _get('mousedown'); | |
| 26552 EventListenerList get mouseMove() => _get('mousemove'); | |
| 26553 EventListenerList get mouseOut() => _get('mouseout'); | |
| 26554 EventListenerList get mouseOver() => _get('mouseover'); | |
| 26555 EventListenerList get mouseUp() => _get('mouseup'); | |
| 26556 EventListenerList get mouseWheel() => _get('mousewheel'); | |
| 26557 EventListenerList get offline() => _get('offline'); | |
| 26558 EventListenerList get online() => _get('online'); | |
| 26559 EventListenerList get pageHide() => _get('pagehide'); | |
| 26560 EventListenerList get pageShow() => _get('pageshow'); | |
| 26561 EventListenerList get pause() => _get('pause'); | |
| 26562 EventListenerList get play() => _get('play'); | |
| 26563 EventListenerList get playing() => _get('playing'); | |
| 26564 EventListenerList get popState() => _get('popstate'); | |
| 26565 EventListenerList get progress() => _get('progress'); | |
| 26566 EventListenerList get rateChange() => _get('ratechange'); | |
| 26567 EventListenerList get reset() => _get('reset'); | |
| 26568 EventListenerList get resize() => _get('resize'); | |
| 26569 EventListenerList get scroll() => _get('scroll'); | |
| 26570 EventListenerList get search() => _get('search'); | |
| 26571 EventListenerList get seeked() => _get('seeked'); | |
| 26572 EventListenerList get seeking() => _get('seeking'); | |
| 26573 EventListenerList get select() => _get('select'); | |
| 26574 EventListenerList get stalled() => _get('stalled'); | |
| 26575 EventListenerList get storage() => _get('storage'); | |
| 26576 EventListenerList get submit() => _get('submit'); | |
| 26577 EventListenerList get suspend() => _get('suspend'); | |
| 26578 EventListenerList get timeUpdate() => _get('timeupdate'); | |
| 26579 EventListenerList get touchCancel() => _get('touchcancel'); | |
| 26580 EventListenerList get touchEnd() => _get('touchend'); | |
| 26581 EventListenerList get touchMove() => _get('touchmove'); | |
| 26582 EventListenerList get touchStart() => _get('touchstart'); | |
| 26583 EventListenerList get unLoad() => _get('unload'); | |
| 26584 EventListenerList get volumeChange() => _get('volumechange'); | |
| 26585 EventListenerList get waiting() => _get('waiting'); | |
| 26586 EventListenerList get animationEnd() => _get('webkitAnimationEnd'); | |
| 26587 EventListenerList get animationIteration() => _get('webkitAnimationIteration')
; | |
| 26588 EventListenerList get animationStart() => _get('webkitAnimationStart'); | |
| 26589 EventListenerList get transitionEnd() => _get('webkitTransitionEnd'); | |
| 26590 EventListenerList get contentLoaded() => _get('DOMContentLoaded'); | |
| 26591 } | |
| 26592 | |
| 26593 /** @domName Window */ | |
| 26594 class WindowWrappingImplementation extends EventTargetWrappingImplementation imp
lements Window { | |
| 26595 WindowWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 26596 | |
| 26597 DOMApplicationCache get applicationCache() => LevelDom.wrapDOMApplicationCache
(_ptr.applicationCache); | |
| 26598 | |
| 26599 Navigator get clientInformation() => LevelDom.wrapNavigator(_ptr.clientInforma
tion); | |
| 26600 | |
| 26601 void set clientInformation(Navigator value) { _ptr.clientInformation = LevelDo
m.unwrap(value); } | |
| 26602 | |
| 26603 bool get closed() => _ptr.closed; | |
| 26604 | |
| 26605 Console get console() => LevelDom.wrapConsole(_ptr.console); | |
| 26606 | |
| 26607 void set console(Console value) { _ptr.console = LevelDom.unwrap(value); } | |
| 26608 | |
| 26609 Crypto get crypto() => LevelDom.wrapCrypto(_ptr.crypto); | |
| 26610 | |
| 26611 String get defaultStatus() => _ptr.defaultStatus; | |
| 26612 | |
| 26613 void set defaultStatus(String value) { _ptr.defaultStatus = value; } | |
| 26614 | |
| 26615 num get devicePixelRatio() => _ptr.devicePixelRatio; | |
| 26616 | |
| 26617 void set devicePixelRatio(num value) { _ptr.devicePixelRatio = value; } | |
| 26618 | |
| 26619 Document get document() => LevelDom.wrapDocument(_ptr.document); | |
| 26620 | |
| 26621 Event get event() => LevelDom.wrapEvent(_ptr.event); | |
| 26622 | |
| 26623 void set event(Event value) { _ptr.event = LevelDom.unwrap(value); } | |
| 26624 | |
| 26625 Element get frameElement() => LevelDom.wrapElement(_ptr.frameElement); | |
| 26626 | |
| 26627 Window get frames() => LevelDom.wrapWindow(_ptr.frames); | |
| 26628 | |
| 26629 void set frames(Window value) { _ptr.frames = LevelDom.unwrap(value); } | |
| 26630 | |
| 26631 History get history() => LevelDom.wrapHistory(_ptr.history); | |
| 26632 | |
| 26633 void set history(History value) { _ptr.history = LevelDom.unwrap(value); } | |
| 26634 | |
| 26635 int get innerHeight() => _ptr.innerHeight; | |
| 26636 | |
| 26637 void set innerHeight(int value) { _ptr.innerHeight = value; } | |
| 26638 | |
| 26639 int get innerWidth() => _ptr.innerWidth; | |
| 26640 | |
| 26641 void set innerWidth(int value) { _ptr.innerWidth = value; } | |
| 26642 | |
| 26643 int get length() => _ptr.length; | |
| 26644 | |
| 26645 void set length(int value) { _ptr.length = value; } | |
| 26646 | |
| 26647 Storage get localStorage() => LevelDom.wrapStorage(_ptr.localStorage); | |
| 26648 | |
| 26649 Location get location() => LevelDom.wrapLocation(_ptr.location); | |
| 26650 | |
| 26651 void set location(Location value) { _ptr.location = LevelDom.unwrap(value); } | |
| 26652 | |
| 26653 BarInfo get locationbar() => LevelDom.wrapBarInfo(_ptr.locationbar); | |
| 26654 | |
| 26655 void set locationbar(BarInfo value) { _ptr.locationbar = LevelDom.unwrap(value
); } | |
| 26656 | |
| 26657 BarInfo get menubar() => LevelDom.wrapBarInfo(_ptr.menubar); | |
| 26658 | |
| 26659 void set menubar(BarInfo value) { _ptr.menubar = LevelDom.unwrap(value); } | |
| 26660 | |
| 26661 String get name() => _ptr.name; | |
| 26662 | |
| 26663 void set name(String value) { _ptr.name = value; } | |
| 26664 | |
| 26665 Navigator get navigator() => LevelDom.wrapNavigator(_ptr.navigator); | |
| 26666 | |
| 26667 void set navigator(Navigator value) { _ptr.navigator = LevelDom.unwrap(value);
} | |
| 26668 | |
| 26669 bool get offscreenBuffering() => _ptr.offscreenBuffering; | |
| 26670 | |
| 26671 void set offscreenBuffering(bool value) { _ptr.offscreenBuffering = value; } | |
| 26672 | |
| 26673 EventListener get onabort() => LevelDom.wrapEventListener(_ptr.onabort); | |
| 26674 | |
| 26675 void set onabort(EventListener value) { _ptr.onabort = LevelDom.unwrap(value);
} | |
| 26676 | |
| 26677 EventListener get onbeforeunload() => LevelDom.wrapEventListener(_ptr.onbefore
unload); | |
| 26678 | |
| 26679 void set onbeforeunload(EventListener value) { _ptr.onbeforeunload = LevelDom.
unwrap(value); } | |
| 26680 | |
| 26681 EventListener get onblur() => LevelDom.wrapEventListener(_ptr.onblur); | |
| 26682 | |
| 26683 void set onblur(EventListener value) { _ptr.onblur = LevelDom.unwrap(value); } | |
| 26684 | |
| 26685 EventListener get oncanplay() => LevelDom.wrapEventListener(_ptr.oncanplay); | |
| 26686 | |
| 26687 void set oncanplay(EventListener value) { _ptr.oncanplay = LevelDom.unwrap(val
ue); } | |
| 26688 | |
| 26689 EventListener get oncanplaythrough() => LevelDom.wrapEventListener(_ptr.oncanp
laythrough); | |
| 26690 | |
| 26691 void set oncanplaythrough(EventListener value) { _ptr.oncanplaythrough = Level
Dom.unwrap(value); } | |
| 26692 | |
| 26693 EventListener get onchange() => LevelDom.wrapEventListener(_ptr.onchange); | |
| 26694 | |
| 26695 void set onchange(EventListener value) { _ptr.onchange = LevelDom.unwrap(value
); } | |
| 26696 | |
| 26697 EventListener get onclick() => LevelDom.wrapEventListener(_ptr.onclick); | |
| 26698 | |
| 26699 void set onclick(EventListener value) { _ptr.onclick = LevelDom.unwrap(value);
} | |
| 26700 | |
| 26701 EventListener get oncontextmenu() => LevelDom.wrapEventListener(_ptr.oncontext
menu); | |
| 26702 | |
| 26703 void set oncontextmenu(EventListener value) { _ptr.oncontextmenu = LevelDom.un
wrap(value); } | |
| 26704 | |
| 26705 EventListener get ondblclick() => LevelDom.wrapEventListener(_ptr.ondblclick); | |
| 26706 | |
| 26707 void set ondblclick(EventListener value) { _ptr.ondblclick = LevelDom.unwrap(v
alue); } | |
| 26708 | |
| 26709 EventListener get ondevicemotion() => LevelDom.wrapEventListener(_ptr.ondevice
motion); | |
| 26710 | |
| 26711 void set ondevicemotion(EventListener value) { _ptr.ondevicemotion = LevelDom.
unwrap(value); } | |
| 26712 | |
| 26713 EventListener get ondeviceorientation() => LevelDom.wrapEventListener(_ptr.ond
eviceorientation); | |
| 26714 | |
| 26715 void set ondeviceorientation(EventListener value) { _ptr.ondeviceorientation =
LevelDom.unwrap(value); } | |
| 26716 | |
| 26717 EventListener get ondrag() => LevelDom.wrapEventListener(_ptr.ondrag); | |
| 26718 | |
| 26719 void set ondrag(EventListener value) { _ptr.ondrag = LevelDom.unwrap(value); } | |
| 26720 | |
| 26721 EventListener get ondragend() => LevelDom.wrapEventListener(_ptr.ondragend); | |
| 26722 | |
| 26723 void set ondragend(EventListener value) { _ptr.ondragend = LevelDom.unwrap(val
ue); } | |
| 26724 | |
| 26725 EventListener get ondragenter() => LevelDom.wrapEventListener(_ptr.ondragenter
); | |
| 26726 | |
| 26727 void set ondragenter(EventListener value) { _ptr.ondragenter = LevelDom.unwrap
(value); } | |
| 26728 | |
| 26729 EventListener get ondragleave() => LevelDom.wrapEventListener(_ptr.ondragleave
); | |
| 26730 | |
| 26731 void set ondragleave(EventListener value) { _ptr.ondragleave = LevelDom.unwrap
(value); } | |
| 26732 | |
| 26733 EventListener get ondragover() => LevelDom.wrapEventListener(_ptr.ondragover); | |
| 26734 | |
| 26735 void set ondragover(EventListener value) { _ptr.ondragover = LevelDom.unwrap(v
alue); } | |
| 26736 | |
| 26737 EventListener get ondragstart() => LevelDom.wrapEventListener(_ptr.ondragstart
); | |
| 26738 | |
| 26739 void set ondragstart(EventListener value) { _ptr.ondragstart = LevelDom.unwrap
(value); } | |
| 26740 | |
| 26741 EventListener get ondrop() => LevelDom.wrapEventListener(_ptr.ondrop); | |
| 26742 | |
| 26743 void set ondrop(EventListener value) { _ptr.ondrop = LevelDom.unwrap(value); } | |
| 26744 | |
| 26745 EventListener get ondurationchange() => LevelDom.wrapEventListener(_ptr.ondura
tionchange); | |
| 26746 | |
| 26747 void set ondurationchange(EventListener value) { _ptr.ondurationchange = Level
Dom.unwrap(value); } | |
| 26748 | |
| 26749 EventListener get onemptied() => LevelDom.wrapEventListener(_ptr.onemptied); | |
| 26750 | |
| 26751 void set onemptied(EventListener value) { _ptr.onemptied = LevelDom.unwrap(val
ue); } | |
| 26752 | |
| 26753 EventListener get onended() => LevelDom.wrapEventListener(_ptr.onended); | |
| 26754 | |
| 26755 void set onended(EventListener value) { _ptr.onended = LevelDom.unwrap(value);
} | |
| 26756 | |
| 26757 EventListener get onerror() => LevelDom.wrapEventListener(_ptr.onerror); | |
| 26758 | |
| 26759 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value);
} | |
| 26760 | |
| 26761 EventListener get onfocus() => LevelDom.wrapEventListener(_ptr.onfocus); | |
| 26762 | |
| 26763 void set onfocus(EventListener value) { _ptr.onfocus = LevelDom.unwrap(value);
} | |
| 26764 | |
| 26765 EventListener get onhashchange() => LevelDom.wrapEventListener(_ptr.onhashchan
ge); | |
| 26766 | |
| 26767 void set onhashchange(EventListener value) { _ptr.onhashchange = LevelDom.unwr
ap(value); } | |
| 26768 | |
| 26769 EventListener get oninput() => LevelDom.wrapEventListener(_ptr.oninput); | |
| 26770 | |
| 26771 void set oninput(EventListener value) { _ptr.oninput = LevelDom.unwrap(value);
} | |
| 26772 | |
| 26773 EventListener get oninvalid() => LevelDom.wrapEventListener(_ptr.oninvalid); | |
| 26774 | |
| 26775 void set oninvalid(EventListener value) { _ptr.oninvalid = LevelDom.unwrap(val
ue); } | |
| 26776 | |
| 26777 EventListener get onkeydown() => LevelDom.wrapEventListener(_ptr.onkeydown); | |
| 26778 | |
| 26779 void set onkeydown(EventListener value) { _ptr.onkeydown = LevelDom.unwrap(val
ue); } | |
| 26780 | |
| 26781 EventListener get onkeypress() => LevelDom.wrapEventListener(_ptr.onkeypress); | |
| 26782 | |
| 26783 void set onkeypress(EventListener value) { _ptr.onkeypress = LevelDom.unwrap(v
alue); } | |
| 26784 | |
| 26785 EventListener get onkeyup() => LevelDom.wrapEventListener(_ptr.onkeyup); | |
| 26786 | |
| 26787 void set onkeyup(EventListener value) { _ptr.onkeyup = LevelDom.unwrap(value);
} | |
| 26788 | |
| 26789 EventListener get onload() => LevelDom.wrapEventListener(_ptr.onload); | |
| 26790 | |
| 26791 void set onload(EventListener value) { _ptr.onload = LevelDom.unwrap(value); } | |
| 26792 | |
| 26793 EventListener get onloadeddata() => LevelDom.wrapEventListener(_ptr.onloadedda
ta); | |
| 26794 | |
| 26795 void set onloadeddata(EventListener value) { _ptr.onloadeddata = LevelDom.unwr
ap(value); } | |
| 26796 | |
| 26797 EventListener get onloadedmetadata() => LevelDom.wrapEventListener(_ptr.onload
edmetadata); | |
| 26798 | |
| 26799 void set onloadedmetadata(EventListener value) { _ptr.onloadedmetadata = Level
Dom.unwrap(value); } | |
| 26800 | |
| 26801 EventListener get onloadstart() => LevelDom.wrapEventListener(_ptr.onloadstart
); | |
| 26802 | |
| 26803 void set onloadstart(EventListener value) { _ptr.onloadstart = LevelDom.unwrap
(value); } | |
| 26804 | |
| 26805 EventListener get onmessage() => LevelDom.wrapEventListener(_ptr.onmessage); | |
| 26806 | |
| 26807 void set onmessage(EventListener value) { _ptr.onmessage = LevelDom.unwrap(val
ue); } | |
| 26808 | |
| 26809 EventListener get onmousedown() => LevelDom.wrapEventListener(_ptr.onmousedown
); | |
| 26810 | |
| 26811 void set onmousedown(EventListener value) { _ptr.onmousedown = LevelDom.unwrap
(value); } | |
| 26812 | |
| 26813 EventListener get onmousemove() => LevelDom.wrapEventListener(_ptr.onmousemove
); | |
| 26814 | |
| 26815 void set onmousemove(EventListener value) { _ptr.onmousemove = LevelDom.unwrap
(value); } | |
| 26816 | |
| 26817 EventListener get onmouseout() => LevelDom.wrapEventListener(_ptr.onmouseout); | |
| 26818 | |
| 26819 void set onmouseout(EventListener value) { _ptr.onmouseout = LevelDom.unwrap(v
alue); } | |
| 26820 | |
| 26821 EventListener get onmouseover() => LevelDom.wrapEventListener(_ptr.onmouseover
); | |
| 26822 | |
| 26823 void set onmouseover(EventListener value) { _ptr.onmouseover = LevelDom.unwrap
(value); } | |
| 26824 | |
| 26825 EventListener get onmouseup() => LevelDom.wrapEventListener(_ptr.onmouseup); | |
| 26826 | |
| 26827 void set onmouseup(EventListener value) { _ptr.onmouseup = LevelDom.unwrap(val
ue); } | |
| 26828 | |
| 26829 EventListener get onmousewheel() => LevelDom.wrapEventListener(_ptr.onmousewhe
el); | |
| 26830 | |
| 26831 void set onmousewheel(EventListener value) { _ptr.onmousewheel = LevelDom.unwr
ap(value); } | |
| 26832 | |
| 26833 EventListener get onoffline() => LevelDom.wrapEventListener(_ptr.onoffline); | |
| 26834 | |
| 26835 void set onoffline(EventListener value) { _ptr.onoffline = LevelDom.unwrap(val
ue); } | |
| 26836 | |
| 26837 EventListener get ononline() => LevelDom.wrapEventListener(_ptr.ononline); | |
| 26838 | |
| 26839 void set ononline(EventListener value) { _ptr.ononline = LevelDom.unwrap(value
); } | |
| 26840 | |
| 26841 EventListener get onpagehide() => LevelDom.wrapEventListener(_ptr.onpagehide); | |
| 26842 | |
| 26843 void set onpagehide(EventListener value) { _ptr.onpagehide = LevelDom.unwrap(v
alue); } | |
| 26844 | |
| 26845 EventListener get onpageshow() => LevelDom.wrapEventListener(_ptr.onpageshow); | |
| 26846 | |
| 26847 void set onpageshow(EventListener value) { _ptr.onpageshow = LevelDom.unwrap(v
alue); } | |
| 26848 | |
| 26849 EventListener get onpause() => LevelDom.wrapEventListener(_ptr.onpause); | |
| 26850 | |
| 26851 void set onpause(EventListener value) { _ptr.onpause = LevelDom.unwrap(value);
} | |
| 26852 | |
| 26853 EventListener get onplay() => LevelDom.wrapEventListener(_ptr.onplay); | |
| 26854 | |
| 26855 void set onplay(EventListener value) { _ptr.onplay = LevelDom.unwrap(value); } | |
| 26856 | |
| 26857 EventListener get onplaying() => LevelDom.wrapEventListener(_ptr.onplaying); | |
| 26858 | |
| 26859 void set onplaying(EventListener value) { _ptr.onplaying = LevelDom.unwrap(val
ue); } | |
| 26860 | |
| 26861 EventListener get onpopstate() => LevelDom.wrapEventListener(_ptr.onpopstate); | |
| 26862 | |
| 26863 void set onpopstate(EventListener value) { _ptr.onpopstate = LevelDom.unwrap(v
alue); } | |
| 26864 | |
| 26865 EventListener get onprogress() => LevelDom.wrapEventListener(_ptr.onprogress); | |
| 26866 | |
| 26867 void set onprogress(EventListener value) { _ptr.onprogress = LevelDom.unwrap(v
alue); } | |
| 26868 | |
| 26869 EventListener get onratechange() => LevelDom.wrapEventListener(_ptr.onratechan
ge); | |
| 26870 | |
| 26871 void set onratechange(EventListener value) { _ptr.onratechange = LevelDom.unwr
ap(value); } | |
| 26872 | |
| 26873 EventListener get onreset() => LevelDom.wrapEventListener(_ptr.onreset); | |
| 26874 | |
| 26875 void set onreset(EventListener value) { _ptr.onreset = LevelDom.unwrap(value);
} | |
| 26876 | |
| 26877 EventListener get onresize() => LevelDom.wrapEventListener(_ptr.onresize); | |
| 26878 | |
| 26879 void set onresize(EventListener value) { _ptr.onresize = LevelDom.unwrap(value
); } | |
| 26880 | |
| 26881 EventListener get onscroll() => LevelDom.wrapEventListener(_ptr.onscroll); | |
| 26882 | |
| 26883 void set onscroll(EventListener value) { _ptr.onscroll = LevelDom.unwrap(value
); } | |
| 26884 | |
| 26885 EventListener get onsearch() => LevelDom.wrapEventListener(_ptr.onsearch); | |
| 26886 | |
| 26887 void set onsearch(EventListener value) { _ptr.onsearch = LevelDom.unwrap(value
); } | |
| 26888 | |
| 26889 EventListener get onseeked() => LevelDom.wrapEventListener(_ptr.onseeked); | |
| 26890 | |
| 26891 void set onseeked(EventListener value) { _ptr.onseeked = LevelDom.unwrap(value
); } | |
| 26892 | |
| 26893 EventListener get onseeking() => LevelDom.wrapEventListener(_ptr.onseeking); | |
| 26894 | |
| 26895 void set onseeking(EventListener value) { _ptr.onseeking = LevelDom.unwrap(val
ue); } | |
| 26896 | |
| 26897 EventListener get onselect() => LevelDom.wrapEventListener(_ptr.onselect); | |
| 26898 | |
| 26899 void set onselect(EventListener value) { _ptr.onselect = LevelDom.unwrap(value
); } | |
| 26900 | |
| 26901 EventListener get onstalled() => LevelDom.wrapEventListener(_ptr.onstalled); | |
| 26902 | |
| 26903 void set onstalled(EventListener value) { _ptr.onstalled = LevelDom.unwrap(val
ue); } | |
| 26904 | |
| 26905 EventListener get onstorage() => LevelDom.wrapEventListener(_ptr.onstorage); | |
| 26906 | |
| 26907 void set onstorage(EventListener value) { _ptr.onstorage = LevelDom.unwrap(val
ue); } | |
| 26908 | |
| 26909 EventListener get onsubmit() => LevelDom.wrapEventListener(_ptr.onsubmit); | |
| 26910 | |
| 26911 void set onsubmit(EventListener value) { _ptr.onsubmit = LevelDom.unwrap(value
); } | |
| 26912 | |
| 26913 EventListener get onsuspend() => LevelDom.wrapEventListener(_ptr.onsuspend); | |
| 26914 | |
| 26915 void set onsuspend(EventListener value) { _ptr.onsuspend = LevelDom.unwrap(val
ue); } | |
| 26916 | |
| 26917 EventListener get ontimeupdate() => LevelDom.wrapEventListener(_ptr.ontimeupda
te); | |
| 26918 | |
| 26919 void set ontimeupdate(EventListener value) { _ptr.ontimeupdate = LevelDom.unwr
ap(value); } | |
| 26920 | |
| 26921 EventListener get ontouchcancel() => LevelDom.wrapEventListener(_ptr.ontouchca
ncel); | |
| 26922 | |
| 26923 void set ontouchcancel(EventListener value) { _ptr.ontouchcancel = LevelDom.un
wrap(value); } | |
| 26924 | |
| 26925 EventListener get ontouchend() => LevelDom.wrapEventListener(_ptr.ontouchend); | |
| 26926 | |
| 26927 void set ontouchend(EventListener value) { _ptr.ontouchend = LevelDom.unwrap(v
alue); } | |
| 26928 | |
| 26929 EventListener get ontouchmove() => LevelDom.wrapEventListener(_ptr.ontouchmove
); | |
| 26930 | |
| 26931 void set ontouchmove(EventListener value) { _ptr.ontouchmove = LevelDom.unwrap
(value); } | |
| 26932 | |
| 26933 EventListener get ontouchstart() => LevelDom.wrapEventListener(_ptr.ontouchsta
rt); | |
| 26934 | |
| 26935 void set ontouchstart(EventListener value) { _ptr.ontouchstart = LevelDom.unwr
ap(value); } | |
| 26936 | |
| 26937 EventListener get onunload() => LevelDom.wrapEventListener(_ptr.onunload); | |
| 26938 | |
| 26939 void set onunload(EventListener value) { _ptr.onunload = LevelDom.unwrap(value
); } | |
| 26940 | |
| 26941 EventListener get onvolumechange() => LevelDom.wrapEventListener(_ptr.onvolume
change); | |
| 26942 | |
| 26943 void set onvolumechange(EventListener value) { _ptr.onvolumechange = LevelDom.
unwrap(value); } | |
| 26944 | |
| 26945 EventListener get onwaiting() => LevelDom.wrapEventListener(_ptr.onwaiting); | |
| 26946 | |
| 26947 void set onwaiting(EventListener value) { _ptr.onwaiting = LevelDom.unwrap(val
ue); } | |
| 26948 | |
| 26949 EventListener get onwebkitanimationend() => LevelDom.wrapEventListener(_ptr.on
webkitanimationend); | |
| 26950 | |
| 26951 void set onwebkitanimationend(EventListener value) { _ptr.onwebkitanimationend
= LevelDom.unwrap(value); } | |
| 26952 | |
| 26953 EventListener get onwebkitanimationiteration() => LevelDom.wrapEventListener(_
ptr.onwebkitanimationiteration); | |
| 26954 | |
| 26955 void set onwebkitanimationiteration(EventListener value) { _ptr.onwebkitanimat
ioniteration = LevelDom.unwrap(value); } | |
| 26956 | |
| 26957 EventListener get onwebkitanimationstart() => LevelDom.wrapEventListener(_ptr.
onwebkitanimationstart); | |
| 26958 | |
| 26959 void set onwebkitanimationstart(EventListener value) { _ptr.onwebkitanimations
tart = LevelDom.unwrap(value); } | |
| 26960 | |
| 26961 EventListener get onwebkittransitionend() => LevelDom.wrapEventListener(_ptr.o
nwebkittransitionend); | |
| 26962 | |
| 26963 void set onwebkittransitionend(EventListener value) { _ptr.onwebkittransitione
nd = LevelDom.unwrap(value); } | |
| 26964 | |
| 26965 Window get opener() => LevelDom.wrapWindow(_ptr.opener); | |
| 26966 | |
| 26967 void set opener(Window value) { _ptr.opener = LevelDom.unwrap(value); } | |
| 26968 | |
| 26969 int get outerHeight() => _ptr.outerHeight; | |
| 26970 | |
| 26971 void set outerHeight(int value) { _ptr.outerHeight = value; } | |
| 26972 | |
| 26973 int get outerWidth() => _ptr.outerWidth; | |
| 26974 | |
| 26975 void set outerWidth(int value) { _ptr.outerWidth = value; } | |
| 26976 | |
| 26977 int get pageXOffset() => _ptr.pageXOffset; | |
| 26978 | |
| 26979 int get pageYOffset() => _ptr.pageYOffset; | |
| 26980 | |
| 26981 Window get parent() => LevelDom.wrapWindow(_ptr.parent); | |
| 26982 | |
| 26983 void set parent(Window value) { _ptr.parent = LevelDom.unwrap(value); } | |
| 26984 | |
| 26985 BarInfo get personalbar() => LevelDom.wrapBarInfo(_ptr.personalbar); | |
| 26986 | |
| 26987 void set personalbar(BarInfo value) { _ptr.personalbar = LevelDom.unwrap(value
); } | |
| 26988 | |
| 26989 Screen get screen() => LevelDom.wrapScreen(_ptr.screen); | |
| 26990 | |
| 26991 void set screen(Screen value) { _ptr.screen = LevelDom.unwrap(value); } | |
| 26992 | |
| 26993 int get screenLeft() => _ptr.screenLeft; | |
| 26994 | |
| 26995 void set screenLeft(int value) { _ptr.screenLeft = value; } | |
| 26996 | |
| 26997 int get screenTop() => _ptr.screenTop; | |
| 26998 | |
| 26999 void set screenTop(int value) { _ptr.screenTop = value; } | |
| 27000 | |
| 27001 int get screenX() => _ptr.screenX; | |
| 27002 | |
| 27003 void set screenX(int value) { _ptr.screenX = value; } | |
| 27004 | |
| 27005 int get screenY() => _ptr.screenY; | |
| 27006 | |
| 27007 void set screenY(int value) { _ptr.screenY = value; } | |
| 27008 | |
| 27009 int get scrollX() => _ptr.scrollX; | |
| 27010 | |
| 27011 void set scrollX(int value) { _ptr.scrollX = value; } | |
| 27012 | |
| 27013 int get scrollY() => _ptr.scrollY; | |
| 27014 | |
| 27015 void set scrollY(int value) { _ptr.scrollY = value; } | |
| 27016 | |
| 27017 BarInfo get scrollbars() => LevelDom.wrapBarInfo(_ptr.scrollbars); | |
| 27018 | |
| 27019 void set scrollbars(BarInfo value) { _ptr.scrollbars = LevelDom.unwrap(value);
} | |
| 27020 | |
| 27021 Window get self() => LevelDom.wrapWindow(_ptr.self); | |
| 27022 | |
| 27023 void set self(Window value) { _ptr.self = LevelDom.unwrap(value); } | |
| 27024 | |
| 27025 Storage get sessionStorage() => LevelDom.wrapStorage(_ptr.sessionStorage); | |
| 27026 | |
| 27027 String get status() => _ptr.status; | |
| 27028 | |
| 27029 void set status(String value) { _ptr.status = value; } | |
| 27030 | |
| 27031 BarInfo get statusbar() => LevelDom.wrapBarInfo(_ptr.statusbar); | |
| 27032 | |
| 27033 void set statusbar(BarInfo value) { _ptr.statusbar = LevelDom.unwrap(value); } | |
| 27034 | |
| 27035 StyleMedia get styleMedia() => LevelDom.wrapStyleMedia(_ptr.styleMedia); | |
| 27036 | |
| 27037 BarInfo get toolbar() => LevelDom.wrapBarInfo(_ptr.toolbar); | |
| 27038 | |
| 27039 void set toolbar(BarInfo value) { _ptr.toolbar = LevelDom.unwrap(value); } | |
| 27040 | |
| 27041 Window get top() => LevelDom.wrapWindow(_ptr.top); | |
| 27042 | |
| 27043 void set top(Window value) { _ptr.top = LevelDom.unwrap(value); } | |
| 27044 | |
| 27045 NotificationCenter get webkitNotifications() => LevelDom.wrapNotificationCente
r(_ptr.webkitNotifications); | |
| 27046 | |
| 27047 void alert([String message = null]) { | |
| 27048 if (message === null) { | |
| 27049 _ptr.alert(); | |
| 27050 } else { | |
| 27051 _ptr.alert(message); | |
| 27052 } | |
| 27053 } | |
| 27054 | |
| 27055 String atob([String string = null]) { | |
| 27056 if (string === null) { | |
| 27057 return _ptr.atob(); | |
| 27058 } else { | |
| 27059 return _ptr.atob(string); | |
| 27060 } | |
| 27061 } | |
| 27062 | |
| 27063 void blur() { | |
| 27064 _ptr.blur(); | |
| 27065 } | |
| 27066 | |
| 27067 String btoa([String string = null]) { | |
| 27068 if (string === null) { | |
| 27069 return _ptr.btoa(); | |
| 27070 } else { | |
| 27071 return _ptr.btoa(string); | |
| 27072 } | |
| 27073 } | |
| 27074 | |
| 27075 void captureEvents() { | |
| 27076 _ptr.captureEvents(); | |
| 27077 } | |
| 27078 | |
| 27079 void clearInterval([int handle = null]) { | |
| 27080 if (handle === null) { | |
| 27081 _ptr.clearInterval(); | |
| 27082 } else { | |
| 27083 _ptr.clearInterval(handle); | |
| 27084 } | |
| 27085 } | |
| 27086 | |
| 27087 void clearTimeout([int handle = null]) { | |
| 27088 if (handle === null) { | |
| 27089 _ptr.clearTimeout(); | |
| 27090 } else { | |
| 27091 _ptr.clearTimeout(handle); | |
| 27092 } | |
| 27093 } | |
| 27094 | |
| 27095 void close() { | |
| 27096 _ptr.close(); | |
| 27097 } | |
| 27098 | |
| 27099 bool confirm([String message = null]) { | |
| 27100 if (message === null) { | |
| 27101 return _ptr.confirm(); | |
| 27102 } else { | |
| 27103 return _ptr.confirm(message); | |
| 27104 } | |
| 27105 } | |
| 27106 | |
| 27107 FileReader createFileReader() => | |
| 27108 LevelDom.wrapFileReader(_ptr.createFileReader()); | |
| 27109 | |
| 27110 CSSMatrix createCSSMatrix([String cssValue = null]) { | |
| 27111 if (cssValue === null) { | |
| 27112 return LevelDom.wrapCSSMatrix(_ptr.createWebKitCSSMatrix()); | |
| 27113 } else { | |
| 27114 return LevelDom.wrapCSSMatrix(_ptr.createWebKitCSSMatrix(cssValue)); | |
| 27115 } | |
| 27116 } | |
| 27117 | |
| 27118 bool find([String string = null, bool caseSensitive = null, bool backwards = n
ull, bool wrap = null, bool wholeWord = null, bool searchInFrames = null, bool s
howDialog = null]) { | |
| 27119 if (string === null) { | |
| 27120 if (caseSensitive === null) { | |
| 27121 if (backwards === null) { | |
| 27122 if (wrap === null) { | |
| 27123 if (wholeWord === null) { | |
| 27124 if (searchInFrames === null) { | |
| 27125 if (showDialog === null) { | |
| 27126 return _ptr.find(); | |
| 27127 } | |
| 27128 } | |
| 27129 } | |
| 27130 } | |
| 27131 } | |
| 27132 } | |
| 27133 } else { | |
| 27134 if (caseSensitive === null) { | |
| 27135 if (backwards === null) { | |
| 27136 if (wrap === null) { | |
| 27137 if (wholeWord === null) { | |
| 27138 if (searchInFrames === null) { | |
| 27139 if (showDialog === null) { | |
| 27140 return _ptr.find(string); | |
| 27141 } | |
| 27142 } | |
| 27143 } | |
| 27144 } | |
| 27145 } | |
| 27146 } else { | |
| 27147 if (backwards === null) { | |
| 27148 if (wrap === null) { | |
| 27149 if (wholeWord === null) { | |
| 27150 if (searchInFrames === null) { | |
| 27151 if (showDialog === null) { | |
| 27152 return _ptr.find(string, caseSensitive); | |
| 27153 } | |
| 27154 } | |
| 27155 } | |
| 27156 } | |
| 27157 } else { | |
| 27158 if (wrap === null) { | |
| 27159 if (wholeWord === null) { | |
| 27160 if (searchInFrames === null) { | |
| 27161 if (showDialog === null) { | |
| 27162 return _ptr.find(string, caseSensitive, backwards); | |
| 27163 } | |
| 27164 } | |
| 27165 } | |
| 27166 } else { | |
| 27167 if (wholeWord === null) { | |
| 27168 if (searchInFrames === null) { | |
| 27169 if (showDialog === null) { | |
| 27170 return _ptr.find(string, caseSensitive, backwards, wrap); | |
| 27171 } | |
| 27172 } | |
| 27173 } else { | |
| 27174 if (searchInFrames === null) { | |
| 27175 if (showDialog === null) { | |
| 27176 return _ptr.find(string, caseSensitive, backwards, wrap, whole
Word); | |
| 27177 } | |
| 27178 } else { | |
| 27179 if (showDialog === null) { | |
| 27180 return _ptr.find(string, caseSensitive, backwards, wrap, whole
Word, searchInFrames); | |
| 27181 } else { | |
| 27182 return _ptr.find(string, caseSensitive, backwards, wrap, whole
Word, searchInFrames, showDialog); | |
| 27183 } | |
| 27184 } | |
| 27185 } | |
| 27186 } | |
| 27187 } | |
| 27188 } | |
| 27189 } | |
| 27190 throw "Incorrect number or type of arguments"; | |
| 27191 } | |
| 27192 | |
| 27193 void focus() { | |
| 27194 _ptr.focus(); | |
| 27195 } | |
| 27196 | |
| 27197 DOMSelection getSelection() => | |
| 27198 LevelDom.wrapDOMSelection(_ptr.getSelection()); | |
| 27199 | |
| 27200 MediaQueryList matchMedia(String query) { | |
| 27201 return LevelDom.wrapMediaQueryList(_ptr.matchMedia(query)); | |
| 27202 } | |
| 27203 | |
| 27204 void moveBy(num x, num y) { | |
| 27205 _ptr.moveBy(x, y); | |
| 27206 } | |
| 27207 | |
| 27208 void moveTo(num x, num y) { | |
| 27209 _ptr.moveTo(x, y); | |
| 27210 } | |
| 27211 | |
| 27212 Window open(String url, String target, [String features = null]) { | |
| 27213 if (features === null) { | |
| 27214 return LevelDom.wrapWindow(_ptr.open(url, target)); | |
| 27215 } else { | |
| 27216 return LevelDom.wrapWindow(_ptr.open(url, target, features)); | |
| 27217 } | |
| 27218 } | |
| 27219 | |
| 27220 // TODO(jacobr): cleanup. | |
| 27221 void postMessage(String message, [var messagePort = null, var targetOrigin = n
ull]) { | |
| 27222 if (targetOrigin === null) { | |
| 27223 if (messagePort === null) { | |
| 27224 _ptr.postMessage(message); | |
| 27225 return; | |
| 27226 } else { | |
| 27227 // messagePort is really the targetOrigin string. | |
| 27228 _ptr.postMessage(message, messagePort); | |
| 27229 return; | |
| 27230 } | |
| 27231 } else { | |
| 27232 _ptr.postMessage(message, LevelDom.unwrap(messagePort), targetOrigin); | |
| 27233 return; | |
| 27234 } | |
| 27235 throw "Incorrect number or type of arguments"; | |
| 27236 } | |
| 27237 | |
| 27238 void print() { | |
| 27239 _ptr.print(); | |
| 27240 } | |
| 27241 | |
| 27242 String prompt([String message = null, String defaultValue = null]) { | |
| 27243 if (message === null) { | |
| 27244 if (defaultValue === null) { | |
| 27245 return _ptr.prompt(); | |
| 27246 } | |
| 27247 } else { | |
| 27248 if (defaultValue === null) { | |
| 27249 return _ptr.prompt(message); | |
| 27250 } else { | |
| 27251 return _ptr.prompt(message, defaultValue); | |
| 27252 } | |
| 27253 } | |
| 27254 throw "Incorrect number or type of arguments"; | |
| 27255 } | |
| 27256 | |
| 27257 void releaseEvents() { | |
| 27258 _ptr.releaseEvents(); | |
| 27259 } | |
| 27260 | |
| 27261 void resizeBy(num x, num y) { | |
| 27262 _ptr.resizeBy(x, y); | |
| 27263 } | |
| 27264 | |
| 27265 void resizeTo(num width, num height) { | |
| 27266 _ptr.resizeTo(width, height); | |
| 27267 } | |
| 27268 | |
| 27269 void scroll(int x, int y) { | |
| 27270 _ptr.scroll(x, y); | |
| 27271 } | |
| 27272 | |
| 27273 void scrollBy(int x, int y) { | |
| 27274 _ptr.scrollBy(x, y); | |
| 27275 } | |
| 27276 | |
| 27277 void scrollTo(int x, int y) { | |
| 27278 _ptr.scrollTo(x, y); | |
| 27279 } | |
| 27280 | |
| 27281 int setInterval(TimeoutHandler handler, int timeout) => | |
| 27282 _ptr.setInterval(handler, timeout); | |
| 27283 | |
| 27284 int setTimeout(TimeoutHandler handler, int timeout) => | |
| 27285 _ptr.setTimeout(handler, timeout); | |
| 27286 | |
| 27287 Object showModalDialog(String url, [Object dialogArgs = null, String featureAr
gs = null]) { | |
| 27288 if (dialogArgs === null) { | |
| 27289 if (featureArgs === null) { | |
| 27290 return _ptr.showModalDialog(url); | |
| 27291 } | |
| 27292 } else { | |
| 27293 if (featureArgs === null) { | |
| 27294 return _ptr.showModalDialog(url, LevelDom.unwrap(dialogArgs)); | |
| 27295 } else { | |
| 27296 return _ptr.showModalDialog(url, LevelDom.unwrap(dialogArgs), | |
| 27297 featureArgs); | |
| 27298 } | |
| 27299 } | |
| 27300 throw "Incorrect number or type of arguments"; | |
| 27301 } | |
| 27302 | |
| 27303 void stop() { | |
| 27304 _ptr.stop(); | |
| 27305 } | |
| 27306 | |
| 27307 void webkitCancelRequestAnimationFrame(int id) { | |
| 27308 _ptr.webkitCancelRequestAnimationFrame(id); | |
| 27309 } | |
| 27310 | |
| 27311 Point webkitConvertPointFromNodeToPage([Node node = null, Point p = null]) { | |
| 27312 if (node === null) { | |
| 27313 if (p === null) { | |
| 27314 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromNodeToPage()); | |
| 27315 } | |
| 27316 } else { | |
| 27317 if (p === null) { | |
| 27318 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromNodeToPage(LevelDom
.unwrap(node))); | |
| 27319 } else { | |
| 27320 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromNodeToPage(LevelDom
.unwrap(node), LevelDom.unwrap(p))); | |
| 27321 } | |
| 27322 } | |
| 27323 throw "Incorrect number or type of arguments"; | |
| 27324 } | |
| 27325 | |
| 27326 Point webkitConvertPointFromPageToNode([Node node = null, Point p = null]) { | |
| 27327 if (node === null) { | |
| 27328 if (p === null) { | |
| 27329 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromPageToNode()); | |
| 27330 } | |
| 27331 } else { | |
| 27332 if (p === null) { | |
| 27333 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromPageToNode(LevelDom
.unwrap(node))); | |
| 27334 } else { | |
| 27335 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromPageToNode(LevelDom
.unwrap(node), LevelDom.unwrap(p))); | |
| 27336 } | |
| 27337 } | |
| 27338 throw "Incorrect number or type of arguments"; | |
| 27339 } | |
| 27340 | |
| 27341 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, [Eleme
nt element = null]) { | |
| 27342 if (element === null) { | |
| 27343 return _ptr.webkitRequestAnimationFrame(callback); | |
| 27344 } else { | |
| 27345 return _ptr.webkitRequestAnimationFrame( | |
| 27346 callback, LevelDom.unwrap(element)); | |
| 27347 } | |
| 27348 } | |
| 27349 | |
| 27350 void requestLayoutFrame(TimeoutHandler callback) { | |
| 27351 _addMeasurementFrameCallback(callback); | |
| 27352 } | |
| 27353 | |
| 27354 WindowEvents get on() { | |
| 27355 if (_on === null) { | |
| 27356 _on = new WindowEventsImplementation._wrap(_ptr); | |
| 27357 } | |
| 27358 return _on; | |
| 27359 } | |
| 27360 } | |
| 27361 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 27362 // for details. All rights reserved. Use of this source code is governed by a | |
| 27363 // BSD-style license that can be found in the LICENSE file. | 10426 // BSD-style license that can be found in the LICENSE file. |
| 27364 | 10427 |
| 27365 interface WorkerEvents extends AbstractWorkerEvents { | 10428 interface WorkerEvents extends AbstractWorkerEvents { |
| 27366 EventListenerList get message(); | 10429 EventListenerList get message(); |
| 27367 } | 10430 } |
| 27368 | 10431 |
| 27369 interface Worker extends AbstractWorker { | 10432 interface Worker extends AbstractWorker { |
| 27370 | 10433 |
| 27371 void postMessage(String message, [MessagePort messagePort]); | 10434 void postMessage(String message, [MessagePort messagePort]); |
| 27372 | 10435 |
| 27373 void terminate(); | 10436 void terminate(); |
| 27374 | 10437 |
| 27375 WorkerEvents get on(); | 10438 WorkerEvents get on(); |
| 27376 } | 10439 } |
| 27377 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 10440 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 27378 // for details. All rights reserved. Use of this source code is governed by a | 10441 // for details. All rights reserved. Use of this source code is governed by a |
| 27379 // BSD-style license that can be found in the LICENSE file. | 10442 // BSD-style license that can be found in the LICENSE file. |
| 27380 | 10443 |
| 27381 class WorkerEventsImplementation extends AbstractWorkerEventsImplementation | |
| 27382 implements WorkerEvents { | |
| 27383 WorkerEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
| 27384 | |
| 27385 EventListenerList get message() => _get('message'); | |
| 27386 } | |
| 27387 | |
| 27388 class WorkerWrappingImplementation extends EventTargetWrappingImplementation imp
lements Worker { | |
| 27389 WorkerWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 27390 | |
| 27391 void postMessage(String message, [MessagePort messagePort = null]) { | |
| 27392 if (messagePort === null) { | |
| 27393 _ptr.postMessage(message); | |
| 27394 return; | |
| 27395 } else { | |
| 27396 _ptr.postMessage(message, LevelDom.unwrap(messagePort)); | |
| 27397 return; | |
| 27398 } | |
| 27399 } | |
| 27400 | |
| 27401 void terminate() { | |
| 27402 _ptr.terminate(); | |
| 27403 return; | |
| 27404 } | |
| 27405 | |
| 27406 WorkerEvents get on() { | |
| 27407 if (_on === null) { | |
| 27408 _on = new WorkerEventsImplementation._wrap(_ptr); | |
| 27409 } | |
| 27410 return _on; | |
| 27411 } | |
| 27412 } | |
| 27413 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 27414 // for details. All rights reserved. Use of this source code is governed by a | |
| 27415 // BSD-style license that can be found in the LICENSE file. | |
| 27416 | |
| 27417 interface XMLHttpRequestEvents extends Events { | 10444 interface XMLHttpRequestEvents extends Events { |
| 27418 EventListenerList get abort(); | 10445 EventListenerList get abort(); |
| 27419 EventListenerList get error(); | 10446 EventListenerList get error(); |
| 27420 EventListenerList get load(); | 10447 EventListenerList get load(); |
| 27421 EventListenerList get loadStart(); | 10448 EventListenerList get loadStart(); |
| 27422 EventListenerList get progress(); | 10449 EventListenerList get progress(); |
| 27423 EventListenerList get readyStateChange(); | 10450 EventListenerList get readyStateChange(); |
| 27424 } | 10451 } |
| 27425 | 10452 |
| 27426 interface XMLHttpRequest extends EventTarget factory XMLHttpRequestWrappingImple
mentation { | 10453 interface XMLHttpRequest extends EventTarget factory XMLHttpRequestWrappingImple
mentation { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 27486 bool cancelable, bool lengthComputable, int total]); | 10513 bool cancelable, bool lengthComputable, int total]); |
| 27487 | 10514 |
| 27488 int get position(); | 10515 int get position(); |
| 27489 | 10516 |
| 27490 int get totalSize(); | 10517 int get totalSize(); |
| 27491 } | 10518 } |
| 27492 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 10519 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 27493 // for details. All rights reserved. Use of this source code is governed by a | 10520 // for details. All rights reserved. Use of this source code is governed by a |
| 27494 // BSD-style license that can be found in the LICENSE file. | 10521 // BSD-style license that can be found in the LICENSE file. |
| 27495 | 10522 |
| 27496 class XMLHttpRequestProgressEventWrappingImplementation extends ProgressEventWra
ppingImplementation implements XMLHttpRequestProgressEvent { | |
| 27497 XMLHttpRequestProgressEventWrappingImplementation._wrap(ptr) : super._wrap(ptr
); | |
| 27498 | |
| 27499 factory XMLHttpRequestProgressEventWrappingImplementation(String type, | |
| 27500 int loaded, [bool canBubble = true, bool cancelable = true, | |
| 27501 bool lengthComputable = false, int total = 0]) { | |
| 27502 final e = dom.document.createEvent("XMLHttpRequestProgressEvent"); | |
| 27503 e.initProgressEvent(type, canBubble, cancelable, lengthComputable, loaded, | |
| 27504 total); | |
| 27505 return LevelDom.wrapProgressEvent(e); | |
| 27506 } | |
| 27507 | |
| 27508 int get position() => _ptr.position; | |
| 27509 | |
| 27510 int get totalSize() => _ptr.totalSize; | |
| 27511 } | |
| 27512 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 27513 // for details. All rights reserved. Use of this source code is governed by a | |
| 27514 // BSD-style license that can be found in the LICENSE file. | |
| 27515 | |
| 27516 interface XMLHttpRequestUploadEvents extends Events { | 10523 interface XMLHttpRequestUploadEvents extends Events { |
| 27517 EventListenerList get abort(); | 10524 EventListenerList get abort(); |
| 27518 EventListenerList get error(); | 10525 EventListenerList get error(); |
| 27519 EventListenerList get load(); | 10526 EventListenerList get load(); |
| 27520 EventListenerList get loadStart(); | 10527 EventListenerList get loadStart(); |
| 27521 EventListenerList get progress(); | 10528 EventListenerList get progress(); |
| 27522 } | 10529 } |
| 27523 | 10530 |
| 27524 interface XMLHttpRequestUpload extends EventTarget { | 10531 interface XMLHttpRequestUpload extends EventTarget { |
| 27525 XMLHttpRequestUploadEvents get on(); | 10532 XMLHttpRequestUploadEvents get on(); |
| 27526 } | 10533 } |
| 27527 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 27528 // for details. All rights reserved. Use of this source code is governed by a | |
| 27529 // BSD-style license that can be found in the LICENSE file. | |
| 27530 | |
| 27531 class XMLHttpRequestUploadEventsImplementation extends EventsImplementation | |
| 27532 implements XMLHttpRequestUploadEvents { | |
| 27533 XMLHttpRequestUploadEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
| 27534 | |
| 27535 EventListenerList get abort() => _get('abort'); | |
| 27536 EventListenerList get error() => _get('error'); | |
| 27537 EventListenerList get load() => _get('load'); | |
| 27538 EventListenerList get loadStart() => _get('loadstart'); | |
| 27539 EventListenerList get progress() => _get('progress'); | |
| 27540 } | |
| 27541 | |
| 27542 class XMLHttpRequestUploadWrappingImplementation extends EventTargetWrappingImpl
ementation implements XMLHttpRequestUpload { | |
| 27543 XMLHttpRequestUploadWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 27544 | |
| 27545 XMLHttpRequestUploadEvents get on() { | |
| 27546 if (_on === null) { | |
| 27547 _on = new XMLHttpRequestUploadEventsImplementation._wrap(_ptr); | |
| 27548 } | |
| 27549 return _on; | |
| 27550 } | |
| 27551 } | |
| 27552 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 27553 // for details. All rights reserved. Use of this source code is governed by a | |
| 27554 // BSD-style license that can be found in the LICENSE file. | |
| 27555 | |
| 27556 class XMLHttpRequestEventsImplementation extends EventsImplementation | |
| 27557 implements XMLHttpRequestEvents { | |
| 27558 XMLHttpRequestEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
| 27559 | |
| 27560 EventListenerList get abort() => _get('abort'); | |
| 27561 EventListenerList get error() => _get('error'); | |
| 27562 EventListenerList get load() => _get('load'); | |
| 27563 EventListenerList get loadStart() => _get('loadstart'); | |
| 27564 EventListenerList get progress() => _get('progress'); | |
| 27565 EventListenerList get readyStateChange() => _get('readystatechange'); | |
| 27566 } | |
| 27567 | |
| 27568 class XMLHttpRequestWrappingImplementation extends EventTargetWrappingImplementa
tion implements XMLHttpRequest { | |
| 27569 XMLHttpRequestWrappingImplementation._wrap( | |
| 27570 dom.XMLHttpRequest ptr) : super._wrap(ptr); | |
| 27571 | |
| 27572 /** @domName Window.createXMLHttpRequest */ | |
| 27573 factory XMLHttpRequestWrappingImplementation() { | |
| 27574 return new XMLHttpRequestWrappingImplementation._wrap( | |
| 27575 new dom.XMLHttpRequest()); | |
| 27576 } | |
| 27577 | |
| 27578 factory XMLHttpRequestWrappingImplementation.getTEMPNAME(String url, | |
| 27579 onSuccess(XMLHttpRequest request)) { | |
| 27580 final request = new XMLHttpRequest(); | |
| 27581 request.open('GET', url, true); | |
| 27582 | |
| 27583 // TODO(terry): Validate after client login added if necessary to forward | |
| 27584 // cookies to server. | |
| 27585 request.withCredentials = true; | |
| 27586 | |
| 27587 // Status 0 is for local XHR request. | |
| 27588 request.on.readyStateChange.add((e) { | |
| 27589 if (request.readyState == XMLHttpRequest.DONE && | |
| 27590 (request.status == 200 || request.status == 0)) { | |
| 27591 onSuccess(request); | |
| 27592 } | |
| 27593 }); | |
| 27594 | |
| 27595 request.send(); | |
| 27596 | |
| 27597 return request; | |
| 27598 } | |
| 27599 | |
| 27600 int get readyState() => _ptr.readyState; | |
| 27601 | |
| 27602 String get responseText() => _ptr.responseText; | |
| 27603 | |
| 27604 String get responseType() => _ptr.responseType; | |
| 27605 | |
| 27606 void set responseType(String value) { _ptr.responseType = value; } | |
| 27607 | |
| 27608 Document get responseXML() => LevelDom.wrapDocument(_ptr.responseXML); | |
| 27609 | |
| 27610 int get status() => _ptr.status; | |
| 27611 | |
| 27612 String get statusText() => _ptr.statusText; | |
| 27613 | |
| 27614 XMLHttpRequestUpload get upload() => LevelDom.wrapXMLHttpRequestUpload(_ptr.up
load); | |
| 27615 | |
| 27616 bool get withCredentials() => _ptr.withCredentials; | |
| 27617 | |
| 27618 void set withCredentials(bool value) { _ptr.withCredentials = value; } | |
| 27619 | |
| 27620 void abort() { | |
| 27621 _ptr.abort(); | |
| 27622 return; | |
| 27623 } | |
| 27624 | |
| 27625 String getAllResponseHeaders() { | |
| 27626 return _ptr.getAllResponseHeaders(); | |
| 27627 } | |
| 27628 | |
| 27629 String getResponseHeader(String header) { | |
| 27630 return _ptr.getResponseHeader(header); | |
| 27631 } | |
| 27632 | |
| 27633 void open(String method, String url, bool async, [String user = null, String p
assword = null]) { | |
| 27634 if (user === null) { | |
| 27635 if (password === null) { | |
| 27636 _ptr.open(method, url, async); | |
| 27637 return; | |
| 27638 } | |
| 27639 } else { | |
| 27640 if (password === null) { | |
| 27641 _ptr.open(method, url, async, user); | |
| 27642 return; | |
| 27643 } else { | |
| 27644 _ptr.open(method, url, async, user, password); | |
| 27645 return; | |
| 27646 } | |
| 27647 } | |
| 27648 throw "Incorrect number or type of arguments"; | |
| 27649 } | |
| 27650 | |
| 27651 void overrideMimeType(String mime) { | |
| 27652 _ptr.overrideMimeType(mime); | |
| 27653 } | |
| 27654 | |
| 27655 void send([var data = null]) { | |
| 27656 if (data === null) { | |
| 27657 _ptr.send(); | |
| 27658 return; | |
| 27659 } else { | |
| 27660 if (data is Document) { | |
| 27661 _ptr.send(LevelDom.unwrapMaybePrimitive(data)); | |
| 27662 return; | |
| 27663 } else { | |
| 27664 if (data is String) { | |
| 27665 _ptr.send(LevelDom.unwrapMaybePrimitive(data)); | |
| 27666 return; | |
| 27667 } | |
| 27668 } | |
| 27669 } | |
| 27670 throw "Incorrect number or type of arguments"; | |
| 27671 } | |
| 27672 | |
| 27673 void setRequestHeader(String header, String value) { | |
| 27674 _ptr.setRequestHeader(header, value); | |
| 27675 } | |
| 27676 | |
| 27677 XMLHttpRequestEvents get on() { | |
| 27678 if (_on === null) { | |
| 27679 _on = new XMLHttpRequestEventsImplementation._wrap(_ptr); | |
| 27680 } | |
| 27681 return _on; | |
| 27682 } | |
| 27683 } | |
| OLD | NEW |