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

Side by Side Diff: client/html/release/html.dart

Issue 8548007: Split html library into html and html_impl (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: ready to review Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« client/html/html_impl.dart ('K') | « client/html/html_impl.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #library('html'); 1 #library('html');
2 2
3 #import('dart:dom', prefix:'dom'); 3 #import('dart:dom', prefix:'dom');
4 #import('html_impl.dart');
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
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 factory Point(num x, num y) {
16831 return new PointWrappingImplementation._wrap(new dom.WebKitPoint(x, y));
16832 }
16833 }
16834 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
16835 // for details. All rights reserved. Use of this source code is governed by a
16836 // BSD-style license that can be found in the LICENSE file.
16837
16838 // Iterator for lists with fixed size.
16839 class _FixedSizeListIterator<T> extends _VariableSizeListIterator<T> {
16840 _FixedSizeListIterator(List<T> list)
16841 : super(list),
16842 _length = list.length;
16843
16844 bool hasNext() => _length > _pos;
16845
16846 final int _length; // Cache list length for faster access.
16847 }
16848
16849 // Iterator for lists with variable size.
16850 class _VariableSizeListIterator<T> implements Iterator<T> {
16851 _VariableSizeListIterator(List<T> list)
16852 : _list = list,
16853 _pos = 0;
16854
16855 bool hasNext() => _list.length > _pos;
16856
16857 T next() {
16858 if (!hasNext()) {
16859 throw const NoMoreElementsException();
16860 }
16861 return _list[_pos++];
16862 }
16863
16864 final List<T> _list;
16865 int _pos;
16866 }
16867 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
16868 // for details. All rights reserved. Use of this source code is governed by a
16869 // BSD-style license that can be found in the LICENSE file.
16870
16871 // TODO(jacobr): move into a core library or at least merge with the copy
16872 // in client/dom/src
16873 class _Lists {
16874
16875 /**
16876 * Returns the index in the array [a] of the given [element], starting
16877 * the search at index [startIndex] to [endIndex] (exclusive).
16878 * Returns -1 if [element] is not found.
16879 */
16880 static int indexOf(List a,
16881 Object element,
16882 int startIndex,
16883 int endIndex) {
16884 if (startIndex >= a.length) {
16885 return -1;
16886 }
16887 if (startIndex < 0) {
16888 startIndex = 0;
16889 }
16890 for (int i = startIndex; i < endIndex; i++) {
16891 if (a[i] == element) {
16892 return i;
16893 }
16894 }
16895 return -1;
16896 }
16897
16898 /**
16899 * Returns the last index in the array [a] of the given [element], starting
16900 * the search at index [startIndex] to 0.
16901 * Returns -1 if [element] is not found.
16902 */
16903 static int lastIndexOf(List a, Object element, int startIndex) {
16904 if (startIndex < 0) {
16905 return -1;
16906 }
16907 if (startIndex >= a.length) {
16908 startIndex = a.length - 1;
16909 }
16910 for (int i = startIndex; i >= 0; i--) {
16911 if (a[i] == element) {
16912 return i;
16913 }
16914 }
16915 return -1;
16916 }
16917 }
16918 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
16919 // for details. All rights reserved. Use of this source code is governed by a
16920 // BSD-style license that can be found in the LICENSE file.
16921
16922 interface AbstractWorkerEvents extends Events { 6437 interface AbstractWorkerEvents extends Events {
16923 EventListenerList get error(); 6438 EventListenerList get error();
16924 } 6439 }
16925 6440
16926 interface AbstractWorker extends EventTarget { 6441 interface AbstractWorker extends EventTarget {
16927 AbstractWorkerEvents get on(); 6442 AbstractWorkerEvents get on();
16928 } 6443 }
16929 // 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
16930 // 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
16931 // BSD-style license that can be found in the LICENSE file. 6446 // BSD-style license that can be found in the LICENSE file.
16932 6447
16933 class AbstractWorkerEventsImplementation extends EventsImplementation implements AbstractWorkerEvents {
16934 AbstractWorkerEventsImplementation._wrap(_ptr) : super._wrap(_ptr);
16935
16936 EventListenerList get error() => _get('error');
16937 }
16938
16939 class AbstractWorkerWrappingImplementation extends EventTargetWrappingImplementa tion implements AbstractWorker {
16940 AbstractWorkerWrappingImplementation._wrap(ptr) : super._wrap(ptr);
16941
16942 AbstractWorkerEvents get on() {
16943 if (_on === null) {
16944 _on = new AbstractWorkerEventsImplementation._wrap(_ptr);
16945 }
16946 return _on;
16947 }
16948 }
16949 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
16950 // for details. All rights reserved. Use of this source code is governed by a
16951 // BSD-style license that can be found in the LICENSE file.
16952
16953 interface AnimationEvent extends Event factory AnimationEventWrappingImplementat ion { 6448 interface AnimationEvent extends Event factory AnimationEventWrappingImplementat ion {
16954 6449
16955 AnimationEvent(String type, String propertyName, double elapsedTime, 6450 AnimationEvent(String type, String propertyName, double elapsedTime,
16956 [bool canBubble, bool cancelable]); 6451 [bool canBubble, bool cancelable]);
16957 6452
16958 String get animationName(); 6453 String get animationName();
16959 6454
16960 num get elapsedTime(); 6455 num get elapsedTime();
16961 } 6456 }
16962 // 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
16963 // 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
16964 // BSD-style license that can be found in the LICENSE file. 6459 // BSD-style license that can be found in the LICENSE file.
16965 6460
16966 class AnimationEventWrappingImplementation extends EventWrappingImplementation i mplements AnimationEvent {
16967 static String _name;
16968
16969 AnimationEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
16970
16971 static String get _eventName() {
16972 if (_name != null) return _name;
16973
16974 try {
16975 dom.document.createEvent("WebKitAnimationEvent");
16976 _name = "WebKitAnimationEvent";
16977 } catch (var e) {
16978 _name = "AnimationEvent";
16979 }
16980 return _name;
16981 }
16982
16983 factory AnimationEventWrappingImplementation(String type, String propertyName,
16984 double elapsedTime, [bool canBubble = true, bool cancelable = true]) {
16985 final e = dom.document.createEvent(_eventName);
16986 e.initWebKitAnimationEvent(
16987 type, canBubble, cancelable, propertyName, elapsedTime);
16988 return LevelDom.wrapAnimationEvent(e);
16989 }
16990
16991 String get animationName() => _ptr.animationName;
16992
16993 num get elapsedTime() => _ptr.elapsedTime;
16994 }
16995 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
16996 // for details. All rights reserved. Use of this source code is governed by a
16997 // BSD-style license that can be found in the LICENSE file.
16998
16999 interface BeforeLoadEvent extends Event factory BeforeLoadEventWrappingImplement ation { 6461 interface BeforeLoadEvent extends Event factory BeforeLoadEventWrappingImplement ation {
17000 6462
17001 BeforeLoadEvent(String type, String url, [bool canBubble, bool cancelable]); 6463 BeforeLoadEvent(String type, String url, [bool canBubble, bool cancelable]);
17002 6464
17003 String get url(); 6465 String get url();
17004 } 6466 }
17005 // 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
17006 // 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
17007 // BSD-style license that can be found in the LICENSE file. 6469 // BSD-style license that can be found in the LICENSE file.
17008 6470
17009 class BeforeLoadEventWrappingImplementation extends EventWrappingImplementation implements BeforeLoadEvent {
17010 BeforeLoadEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
17011
17012 factory BeforeLoadEventWrappingImplementation(String type, String url,
17013 [bool canBubble = true, bool cancelable = true]) {
17014 final e = dom.document.createEvent("BeforeLoadEvent");
17015 e.initBeforeLoadEvent(type, canBubble, cancelable, url);
17016 return LevelDom.wrapBeforeLoadEvent(e);
17017 }
17018
17019 String get url() => _ptr.url;
17020 }
17021 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
17022 // for details. All rights reserved. Use of this source code is governed by a
17023 // BSD-style license that can be found in the LICENSE file.
17024
17025 interface BodyElementEvents extends ElementEvents { 6471 interface BodyElementEvents extends ElementEvents {
17026 EventListenerList get beforeUnload(); 6472 EventListenerList get beforeUnload();
17027 EventListenerList get hashChange(); 6473 EventListenerList get hashChange();
17028 EventListenerList get message(); 6474 EventListenerList get message();
17029 EventListenerList get offline(); 6475 EventListenerList get offline();
17030 EventListenerList get online(); 6476 EventListenerList get online();
17031 EventListenerList get orientationChange(); 6477 EventListenerList get orientationChange();
17032 EventListenerList get popState(); 6478 EventListenerList get popState();
17033 EventListenerList get resize(); 6479 EventListenerList get resize();
17034 EventListenerList get storage(); 6480 EventListenerList get storage();
17035 EventListenerList get unLoad(); 6481 EventListenerList get unLoad();
17036 } 6482 }
17037 6483
17038 interface BodyElement extends Element { 6484 interface BodyElement extends Element {
17039 BodyElementEvents get on(); 6485 BodyElementEvents get on();
17040 } 6486 }
17041 // 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
17042 // 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
17043 // BSD-style license that can be found in the LICENSE file. 6489 // BSD-style license that can be found in the LICENSE file.
17044 6490
17045 class BodyElementEventsImplementation
17046 extends ElementEventsImplementation implements BodyElementEvents {
17047
17048 BodyElementEventsImplementation._wrap(_ptr) : super._wrap(_ptr);
17049
17050 EventListenerList get beforeUnload() => _get('beforeunload');
17051 EventListenerList get hashChange() => _get('hashchange');
17052 EventListenerList get message() => _get('message');
17053 EventListenerList get offline() => _get('offline');
17054 EventListenerList get online() => _get('online');
17055 EventListenerList get orientationChange() => _get('orientationchange');
17056 EventListenerList get popState() => _get('popstate');
17057 EventListenerList get resize() => _get('resize');
17058 EventListenerList get storage() => _get('storage');
17059 EventListenerList get unLoad() => _get('unload');
17060 }
17061
17062 class BodyElementWrappingImplementation
17063 extends ElementWrappingImplementation implements BodyElement {
17064
17065 BodyElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
17066
17067 BodyElementEvents get on() {
17068 if (_on === null) {
17069 _on = new BodyElementEventsImplementation._wrap(_ptr);
17070 }
17071 return _on;
17072 }
17073 }
17074 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
17075 // for details. All rights reserved. Use of this source code is governed by a
17076 // BSD-style license that can be found in the LICENSE file.
17077
17078 interface CloseEvent extends Event factory CloseEventWrappingImplementation { 6491 interface CloseEvent extends Event factory CloseEventWrappingImplementation {
17079 6492
17080 CloseEvent(String type, int code, String reason, 6493 CloseEvent(String type, int code, String reason,
17081 [bool canBubble, bool cancelable, bool wasClean]); 6494 [bool canBubble, bool cancelable, bool wasClean]);
17082 6495
17083 int get code(); 6496 int get code();
17084 6497
17085 String get reason(); 6498 String get reason();
17086 6499
17087 bool get wasClean(); 6500 bool get wasClean();
17088 } 6501 }
17089 // 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
17090 // 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
17091 // BSD-style license that can be found in the LICENSE file. 6504 // BSD-style license that can be found in the LICENSE file.
17092 6505
17093 class CloseEventWrappingImplementation extends EventWrappingImplementation imple ments CloseEvent {
17094 CloseEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
17095
17096 factory CloseEventWrappingImplementation(String type, int code, String reason,
17097 [bool canBubble = true, bool cancelable = true, bool wasClean = true]) {
17098 final e = dom.document.createEvent("CloseEvent");
17099 e.initCloseEvent(type, canBubble, cancelable, wasClean, code, reason);
17100 return LevelDom.wrapCloseEvent(e);
17101 }
17102
17103 int get code() => _ptr.code;
17104
17105 String get reason() => _ptr.reason;
17106
17107 bool get wasClean() => _ptr.wasClean;
17108 }
17109 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
17110 // for details. All rights reserved. Use of this source code is governed by a
17111 // BSD-style license that can be found in the LICENSE file.
17112
17113 interface CompositionEvent extends UIEvent factory CompositionEventWrappingImple mentation { 6506 interface CompositionEvent extends UIEvent factory CompositionEventWrappingImple mentation {
17114 6507
17115 CompositionEvent(String type, Window view, String data, [bool canBubble, 6508 CompositionEvent(String type, Window view, String data, [bool canBubble,
17116 bool cancelable]); 6509 bool cancelable]);
17117 6510
17118 String get data(); 6511 String get data();
17119 } 6512 }
17120 // 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
17121 // 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
17122 // BSD-style license that can be found in the LICENSE file. 6515 // BSD-style license that can be found in the LICENSE file.
17123 6516
17124 class CompositionEventWrappingImplementation extends UIEventWrappingImplementati on implements CompositionEvent {
17125 CompositionEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
17126
17127 factory CompositionEventWrappingImplementation(String type, Window view,
17128 String data, [bool canBubble = true, bool cancelable = true]) {
17129 final e = dom.document.createEvent("CompositionEvent");
17130 e.initCompositionEvent(type, canBubble, cancelable, LevelDom.unwrap(view),
17131 data);
17132 return LevelDom.wrapCompositionEvent(e);
17133 }
17134
17135 String get data() => _ptr.data;
17136 }
17137 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
17138 // for details. All rights reserved. Use of this source code is governed by a
17139 // BSD-style license that can be found in the LICENSE file.
17140
17141 // TODO - figure out whether classList exists, and if so use that 6517 // TODO - figure out whether classList exists, and if so use that
17142 // rather than the className property that is being used here. 6518 // rather than the className property that is being used here.
17143 6519
17144 class _CssClassSet implements Set<String> { 6520 class _CssClassSet implements Set<String> {
17145 6521
17146 final _element; 6522 final _element;
17147 6523
17148 _CssClassSet(this._element); 6524 _CssClassSet(this._element);
17149 6525
17150 String toString() { 6526 String toString() {
(...skipping 2005 matching lines...) Expand 10 before | Expand all | Expand 10 after
19156 String get zoom(); 8532 String get zoom();
19157 8533
19158 /** Sets the value of "zoom" */ 8534 /** Sets the value of "zoom" */
19159 void set zoom(String value); 8535 void set zoom(String value);
19160 8536
19161 } 8537 }
19162 // 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
19163 // 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
19164 // BSD-style license that can be found in the LICENSE file. 8540 // BSD-style license that can be found in the LICENSE file.
19165 8541
19166 // WARNING: Do not edit.
19167 // This file was generated by html/scripts/css_code_generator.py
19168
19169 // Source of CSS properties:
19170 // Source/WebCore/css/CSSPropertyNames.in
19171
19172 // TODO(jacobr): add versions that take numeric values in px, miliseconds, etc.
19173
19174 class CSSStyleDeclarationWrappingImplementation extends DOMWrapperBase implement s CSSStyleDeclaration {
19175 static String _cachedBrowserPrefix;
19176
19177 CSSStyleDeclarationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
19178
19179 factory CSSStyleDeclarationWrappingImplementation.css(String css) {
19180 var style = new Element.tag('div').style;
19181 style.cssText = css;
19182 return style;
19183 }
19184
19185 factory CSSStyleDeclarationWrappingImplementation() {
19186 return new CSSStyleDeclarationWrappingImplementation.css('');
19187 }
19188
19189 static String get _browserPrefix() {
19190 if (_cachedBrowserPrefix === null) {
19191 if (_Device.isFirefox) {
19192 _cachedBrowserPrefix = '-moz-';
19193 } else {
19194 _cachedBrowserPrefix = '-webkit-';
19195 }
19196 // TODO(jacobr): support IE 9.0 and Opera as well.
19197 }
19198 return _cachedBrowserPrefix;
19199 }
19200
19201 String get cssText() { return _ptr.cssText; }
19202
19203 void set cssText(String value) { _ptr.cssText = value; }
19204
19205 int get length() { return _ptr.length; }
19206
19207 CSSRule get parentRule() { return LevelDom.wrapCSSRule(_ptr.parentRule); }
19208
19209 CSSValue getPropertyCSSValue(String propertyName) {
19210 return LevelDom.wrapCSSValue(_ptr.getPropertyCSSValue(propertyName));
19211 }
19212
19213 String getPropertyPriority(String propertyName) {
19214 return _ptr.getPropertyPriority(propertyName);
19215 }
19216
19217 String getPropertyShorthand(String propertyName) {
19218 return _ptr.getPropertyShorthand(propertyName);
19219 }
19220
19221 String getPropertyValue(String propertyName) {
19222 return _ptr.getPropertyValue(propertyName);
19223 }
19224
19225 bool isPropertyImplicit(String propertyName) {
19226 return _ptr.isPropertyImplicit(propertyName);
19227 }
19228
19229 String item(int index) {
19230 return _ptr.item(index);
19231 }
19232
19233 String removeProperty(String propertyName) {
19234 return _ptr.removeProperty(propertyName);
19235 }
19236
19237 void setProperty(String propertyName, String value, [String priority = '']) {
19238 _ptr.setProperty(propertyName, value, priority);
19239 }
19240
19241 String get typeName() { return "CSSStyleDeclaration"; }
19242
19243
19244 /** Gets the value of "animation" */
19245 String get animation() =>
19246 getPropertyValue('${_browserPrefix}animation');
19247
19248 /** Sets the value of "animation" */
19249 void set animation(String value) {
19250 setProperty('${_browserPrefix}animation', value, '');
19251 }
19252
19253 /** Gets the value of "animation-delay" */
19254 String get animationDelay() =>
19255 getPropertyValue('${_browserPrefix}animation-delay');
19256
19257 /** Sets the value of "animation-delay" */
19258 void set animationDelay(String value) {
19259 setProperty('${_browserPrefix}animation-delay', value, '');
19260 }
19261
19262 /** Gets the value of "animation-direction" */
19263 String get animationDirection() =>
19264 getPropertyValue('${_browserPrefix}animation-direction');
19265
19266 /** Sets the value of "animation-direction" */
19267 void set animationDirection(String value) {
19268 setProperty('${_browserPrefix}animation-direction', value, '');
19269 }
19270
19271 /** Gets the value of "animation-duration" */
19272 String get animationDuration() =>
19273 getPropertyValue('${_browserPrefix}animation-duration');
19274
19275 /** Sets the value of "animation-duration" */
19276 void set animationDuration(String value) {
19277 setProperty('${_browserPrefix}animation-duration', value, '');
19278 }
19279
19280 /** Gets the value of "animation-fill-mode" */
19281 String get animationFillMode() =>
19282 getPropertyValue('${_browserPrefix}animation-fill-mode');
19283
19284 /** Sets the value of "animation-fill-mode" */
19285 void set animationFillMode(String value) {
19286 setProperty('${_browserPrefix}animation-fill-mode', value, '');
19287 }
19288
19289 /** Gets the value of "animation-iteration-count" */
19290 String get animationIterationCount() =>
19291 getPropertyValue('${_browserPrefix}animation-iteration-count');
19292
19293 /** Sets the value of "animation-iteration-count" */
19294 void set animationIterationCount(String value) {
19295 setProperty('${_browserPrefix}animation-iteration-count', value, '');
19296 }
19297
19298 /** Gets the value of "animation-name" */
19299 String get animationName() =>
19300 getPropertyValue('${_browserPrefix}animation-name');
19301
19302 /** Sets the value of "animation-name" */
19303 void set animationName(String value) {
19304 setProperty('${_browserPrefix}animation-name', value, '');
19305 }
19306
19307 /** Gets the value of "animation-play-state" */
19308 String get animationPlayState() =>
19309 getPropertyValue('${_browserPrefix}animation-play-state');
19310
19311 /** Sets the value of "animation-play-state" */
19312 void set animationPlayState(String value) {
19313 setProperty('${_browserPrefix}animation-play-state', value, '');
19314 }
19315
19316 /** Gets the value of "animation-timing-function" */
19317 String get animationTimingFunction() =>
19318 getPropertyValue('${_browserPrefix}animation-timing-function');
19319
19320 /** Sets the value of "animation-timing-function" */
19321 void set animationTimingFunction(String value) {
19322 setProperty('${_browserPrefix}animation-timing-function', value, '');
19323 }
19324
19325 /** Gets the value of "appearance" */
19326 String get appearance() =>
19327 getPropertyValue('${_browserPrefix}appearance');
19328
19329 /** Sets the value of "appearance" */
19330 void set appearance(String value) {
19331 setProperty('${_browserPrefix}appearance', value, '');
19332 }
19333
19334 /** Gets the value of "backface-visibility" */
19335 String get backfaceVisibility() =>
19336 getPropertyValue('${_browserPrefix}backface-visibility');
19337
19338 /** Sets the value of "backface-visibility" */
19339 void set backfaceVisibility(String value) {
19340 setProperty('${_browserPrefix}backface-visibility', value, '');
19341 }
19342
19343 /** Gets the value of "background" */
19344 String get background() =>
19345 getPropertyValue('background');
19346
19347 /** Sets the value of "background" */
19348 void set background(String value) {
19349 setProperty('background', value, '');
19350 }
19351
19352 /** Gets the value of "background-attachment" */
19353 String get backgroundAttachment() =>
19354 getPropertyValue('background-attachment');
19355
19356 /** Sets the value of "background-attachment" */
19357 void set backgroundAttachment(String value) {
19358 setProperty('background-attachment', value, '');
19359 }
19360
19361 /** Gets the value of "background-clip" */
19362 String get backgroundClip() =>
19363 getPropertyValue('background-clip');
19364
19365 /** Sets the value of "background-clip" */
19366 void set backgroundClip(String value) {
19367 setProperty('background-clip', value, '');
19368 }
19369
19370 /** Gets the value of "background-color" */
19371 String get backgroundColor() =>
19372 getPropertyValue('background-color');
19373
19374 /** Sets the value of "background-color" */
19375 void set backgroundColor(String value) {
19376 setProperty('background-color', value, '');
19377 }
19378
19379 /** Gets the value of "background-composite" */
19380 String get backgroundComposite() =>
19381 getPropertyValue('${_browserPrefix}background-composite');
19382
19383 /** Sets the value of "background-composite" */
19384 void set backgroundComposite(String value) {
19385 setProperty('${_browserPrefix}background-composite', value, '');
19386 }
19387
19388 /** Gets the value of "background-image" */
19389 String get backgroundImage() =>
19390 getPropertyValue('background-image');
19391
19392 /** Sets the value of "background-image" */
19393 void set backgroundImage(String value) {
19394 setProperty('background-image', value, '');
19395 }
19396
19397 /** Gets the value of "background-origin" */
19398 String get backgroundOrigin() =>
19399 getPropertyValue('background-origin');
19400
19401 /** Sets the value of "background-origin" */
19402 void set backgroundOrigin(String value) {
19403 setProperty('background-origin', value, '');
19404 }
19405
19406 /** Gets the value of "background-position" */
19407 String get backgroundPosition() =>
19408 getPropertyValue('background-position');
19409
19410 /** Sets the value of "background-position" */
19411 void set backgroundPosition(String value) {
19412 setProperty('background-position', value, '');
19413 }
19414
19415 /** Gets the value of "background-position-x" */
19416 String get backgroundPositionX() =>
19417 getPropertyValue('background-position-x');
19418
19419 /** Sets the value of "background-position-x" */
19420 void set backgroundPositionX(String value) {
19421 setProperty('background-position-x', value, '');
19422 }
19423
19424 /** Gets the value of "background-position-y" */
19425 String get backgroundPositionY() =>
19426 getPropertyValue('background-position-y');
19427
19428 /** Sets the value of "background-position-y" */
19429 void set backgroundPositionY(String value) {
19430 setProperty('background-position-y', value, '');
19431 }
19432
19433 /** Gets the value of "background-repeat" */
19434 String get backgroundRepeat() =>
19435 getPropertyValue('background-repeat');
19436
19437 /** Sets the value of "background-repeat" */
19438 void set backgroundRepeat(String value) {
19439 setProperty('background-repeat', value, '');
19440 }
19441
19442 /** Gets the value of "background-repeat-x" */
19443 String get backgroundRepeatX() =>
19444 getPropertyValue('background-repeat-x');
19445
19446 /** Sets the value of "background-repeat-x" */
19447 void set backgroundRepeatX(String value) {
19448 setProperty('background-repeat-x', value, '');
19449 }
19450
19451 /** Gets the value of "background-repeat-y" */
19452 String get backgroundRepeatY() =>
19453 getPropertyValue('background-repeat-y');
19454
19455 /** Sets the value of "background-repeat-y" */
19456 void set backgroundRepeatY(String value) {
19457 setProperty('background-repeat-y', value, '');
19458 }
19459
19460 /** Gets the value of "background-size" */
19461 String get backgroundSize() =>
19462 getPropertyValue('background-size');
19463
19464 /** Sets the value of "background-size" */
19465 void set backgroundSize(String value) {
19466 setProperty('background-size', value, '');
19467 }
19468
19469 /** Gets the value of "border" */
19470 String get border() =>
19471 getPropertyValue('border');
19472
19473 /** Sets the value of "border" */
19474 void set border(String value) {
19475 setProperty('border', value, '');
19476 }
19477
19478 /** Gets the value of "border-after" */
19479 String get borderAfter() =>
19480 getPropertyValue('${_browserPrefix}border-after');
19481
19482 /** Sets the value of "border-after" */
19483 void set borderAfter(String value) {
19484 setProperty('${_browserPrefix}border-after', value, '');
19485 }
19486
19487 /** Gets the value of "border-after-color" */
19488 String get borderAfterColor() =>
19489 getPropertyValue('${_browserPrefix}border-after-color');
19490
19491 /** Sets the value of "border-after-color" */
19492 void set borderAfterColor(String value) {
19493 setProperty('${_browserPrefix}border-after-color', value, '');
19494 }
19495
19496 /** Gets the value of "border-after-style" */
19497 String get borderAfterStyle() =>
19498 getPropertyValue('${_browserPrefix}border-after-style');
19499
19500 /** Sets the value of "border-after-style" */
19501 void set borderAfterStyle(String value) {
19502 setProperty('${_browserPrefix}border-after-style', value, '');
19503 }
19504
19505 /** Gets the value of "border-after-width" */
19506 String get borderAfterWidth() =>
19507 getPropertyValue('${_browserPrefix}border-after-width');
19508
19509 /** Sets the value of "border-after-width" */
19510 void set borderAfterWidth(String value) {
19511 setProperty('${_browserPrefix}border-after-width', value, '');
19512 }
19513
19514 /** Gets the value of "border-before" */
19515 String get borderBefore() =>
19516 getPropertyValue('${_browserPrefix}border-before');
19517
19518 /** Sets the value of "border-before" */
19519 void set borderBefore(String value) {
19520 setProperty('${_browserPrefix}border-before', value, '');
19521 }
19522
19523 /** Gets the value of "border-before-color" */
19524 String get borderBeforeColor() =>
19525 getPropertyValue('${_browserPrefix}border-before-color');
19526
19527 /** Sets the value of "border-before-color" */
19528 void set borderBeforeColor(String value) {
19529 setProperty('${_browserPrefix}border-before-color', value, '');
19530 }
19531
19532 /** Gets the value of "border-before-style" */
19533 String get borderBeforeStyle() =>
19534 getPropertyValue('${_browserPrefix}border-before-style');
19535
19536 /** Sets the value of "border-before-style" */
19537 void set borderBeforeStyle(String value) {
19538 setProperty('${_browserPrefix}border-before-style', value, '');
19539 }
19540
19541 /** Gets the value of "border-before-width" */
19542 String get borderBeforeWidth() =>
19543 getPropertyValue('${_browserPrefix}border-before-width');
19544
19545 /** Sets the value of "border-before-width" */
19546 void set borderBeforeWidth(String value) {
19547 setProperty('${_browserPrefix}border-before-width', value, '');
19548 }
19549
19550 /** Gets the value of "border-bottom" */
19551 String get borderBottom() =>
19552 getPropertyValue('border-bottom');
19553
19554 /** Sets the value of "border-bottom" */
19555 void set borderBottom(String value) {
19556 setProperty('border-bottom', value, '');
19557 }
19558
19559 /** Gets the value of "border-bottom-color" */
19560 String get borderBottomColor() =>
19561 getPropertyValue('border-bottom-color');
19562
19563 /** Sets the value of "border-bottom-color" */
19564 void set borderBottomColor(String value) {
19565 setProperty('border-bottom-color', value, '');
19566 }
19567
19568 /** Gets the value of "border-bottom-left-radius" */
19569 String get borderBottomLeftRadius() =>
19570 getPropertyValue('border-bottom-left-radius');
19571
19572 /** Sets the value of "border-bottom-left-radius" */
19573 void set borderBottomLeftRadius(String value) {
19574 setProperty('border-bottom-left-radius', value, '');
19575 }
19576
19577 /** Gets the value of "border-bottom-right-radius" */
19578 String get borderBottomRightRadius() =>
19579 getPropertyValue('border-bottom-right-radius');
19580
19581 /** Sets the value of "border-bottom-right-radius" */
19582 void set borderBottomRightRadius(String value) {
19583 setProperty('border-bottom-right-radius', value, '');
19584 }
19585
19586 /** Gets the value of "border-bottom-style" */
19587 String get borderBottomStyle() =>
19588 getPropertyValue('border-bottom-style');
19589
19590 /** Sets the value of "border-bottom-style" */
19591 void set borderBottomStyle(String value) {
19592 setProperty('border-bottom-style', value, '');
19593 }
19594
19595 /** Gets the value of "border-bottom-width" */
19596 String get borderBottomWidth() =>
19597 getPropertyValue('border-bottom-width');
19598
19599 /** Sets the value of "border-bottom-width" */
19600 void set borderBottomWidth(String value) {
19601 setProperty('border-bottom-width', value, '');
19602 }
19603
19604 /** Gets the value of "border-collapse" */
19605 String get borderCollapse() =>
19606 getPropertyValue('border-collapse');
19607
19608 /** Sets the value of "border-collapse" */
19609 void set borderCollapse(String value) {
19610 setProperty('border-collapse', value, '');
19611 }
19612
19613 /** Gets the value of "border-color" */
19614 String get borderColor() =>
19615 getPropertyValue('border-color');
19616
19617 /** Sets the value of "border-color" */
19618 void set borderColor(String value) {
19619 setProperty('border-color', value, '');
19620 }
19621
19622 /** Gets the value of "border-end" */
19623 String get borderEnd() =>
19624 getPropertyValue('${_browserPrefix}border-end');
19625
19626 /** Sets the value of "border-end" */
19627 void set borderEnd(String value) {
19628 setProperty('${_browserPrefix}border-end', value, '');
19629 }
19630
19631 /** Gets the value of "border-end-color" */
19632 String get borderEndColor() =>
19633 getPropertyValue('${_browserPrefix}border-end-color');
19634
19635 /** Sets the value of "border-end-color" */
19636 void set borderEndColor(String value) {
19637 setProperty('${_browserPrefix}border-end-color', value, '');
19638 }
19639
19640 /** Gets the value of "border-end-style" */
19641 String get borderEndStyle() =>
19642 getPropertyValue('${_browserPrefix}border-end-style');
19643
19644 /** Sets the value of "border-end-style" */
19645 void set borderEndStyle(String value) {
19646 setProperty('${_browserPrefix}border-end-style', value, '');
19647 }
19648
19649 /** Gets the value of "border-end-width" */
19650 String get borderEndWidth() =>
19651 getPropertyValue('${_browserPrefix}border-end-width');
19652
19653 /** Sets the value of "border-end-width" */
19654 void set borderEndWidth(String value) {
19655 setProperty('${_browserPrefix}border-end-width', value, '');
19656 }
19657
19658 /** Gets the value of "border-fit" */
19659 String get borderFit() =>
19660 getPropertyValue('${_browserPrefix}border-fit');
19661
19662 /** Sets the value of "border-fit" */
19663 void set borderFit(String value) {
19664 setProperty('${_browserPrefix}border-fit', value, '');
19665 }
19666
19667 /** Gets the value of "border-horizontal-spacing" */
19668 String get borderHorizontalSpacing() =>
19669 getPropertyValue('${_browserPrefix}border-horizontal-spacing');
19670
19671 /** Sets the value of "border-horizontal-spacing" */
19672 void set borderHorizontalSpacing(String value) {
19673 setProperty('${_browserPrefix}border-horizontal-spacing', value, '');
19674 }
19675
19676 /** Gets the value of "border-image" */
19677 String get borderImage() =>
19678 getPropertyValue('border-image');
19679
19680 /** Sets the value of "border-image" */
19681 void set borderImage(String value) {
19682 setProperty('border-image', value, '');
19683 }
19684
19685 /** Gets the value of "border-image-outset" */
19686 String get borderImageOutset() =>
19687 getPropertyValue('border-image-outset');
19688
19689 /** Sets the value of "border-image-outset" */
19690 void set borderImageOutset(String value) {
19691 setProperty('border-image-outset', value, '');
19692 }
19693
19694 /** Gets the value of "border-image-repeat" */
19695 String get borderImageRepeat() =>
19696 getPropertyValue('border-image-repeat');
19697
19698 /** Sets the value of "border-image-repeat" */
19699 void set borderImageRepeat(String value) {
19700 setProperty('border-image-repeat', value, '');
19701 }
19702
19703 /** Gets the value of "border-image-slice" */
19704 String get borderImageSlice() =>
19705 getPropertyValue('border-image-slice');
19706
19707 /** Sets the value of "border-image-slice" */
19708 void set borderImageSlice(String value) {
19709 setProperty('border-image-slice', value, '');
19710 }
19711
19712 /** Gets the value of "border-image-source" */
19713 String get borderImageSource() =>
19714 getPropertyValue('border-image-source');
19715
19716 /** Sets the value of "border-image-source" */
19717 void set borderImageSource(String value) {
19718 setProperty('border-image-source', value, '');
19719 }
19720
19721 /** Gets the value of "border-image-width" */
19722 String get borderImageWidth() =>
19723 getPropertyValue('border-image-width');
19724
19725 /** Sets the value of "border-image-width" */
19726 void set borderImageWidth(String value) {
19727 setProperty('border-image-width', value, '');
19728 }
19729
19730 /** Gets the value of "border-left" */
19731 String get borderLeft() =>
19732 getPropertyValue('border-left');
19733
19734 /** Sets the value of "border-left" */
19735 void set borderLeft(String value) {
19736 setProperty('border-left', value, '');
19737 }
19738
19739 /** Gets the value of "border-left-color" */
19740 String get borderLeftColor() =>
19741 getPropertyValue('border-left-color');
19742
19743 /** Sets the value of "border-left-color" */
19744 void set borderLeftColor(String value) {
19745 setProperty('border-left-color', value, '');
19746 }
19747
19748 /** Gets the value of "border-left-style" */
19749 String get borderLeftStyle() =>
19750 getPropertyValue('border-left-style');
19751
19752 /** Sets the value of "border-left-style" */
19753 void set borderLeftStyle(String value) {
19754 setProperty('border-left-style', value, '');
19755 }
19756
19757 /** Gets the value of "border-left-width" */
19758 String get borderLeftWidth() =>
19759 getPropertyValue('border-left-width');
19760
19761 /** Sets the value of "border-left-width" */
19762 void set borderLeftWidth(String value) {
19763 setProperty('border-left-width', value, '');
19764 }
19765
19766 /** Gets the value of "border-radius" */
19767 String get borderRadius() =>
19768 getPropertyValue('border-radius');
19769
19770 /** Sets the value of "border-radius" */
19771 void set borderRadius(String value) {
19772 setProperty('border-radius', value, '');
19773 }
19774
19775 /** Gets the value of "border-right" */
19776 String get borderRight() =>
19777 getPropertyValue('border-right');
19778
19779 /** Sets the value of "border-right" */
19780 void set borderRight(String value) {
19781 setProperty('border-right', value, '');
19782 }
19783
19784 /** Gets the value of "border-right-color" */
19785 String get borderRightColor() =>
19786 getPropertyValue('border-right-color');
19787
19788 /** Sets the value of "border-right-color" */
19789 void set borderRightColor(String value) {
19790 setProperty('border-right-color', value, '');
19791 }
19792
19793 /** Gets the value of "border-right-style" */
19794 String get borderRightStyle() =>
19795 getPropertyValue('border-right-style');
19796
19797 /** Sets the value of "border-right-style" */
19798 void set borderRightStyle(String value) {
19799 setProperty('border-right-style', value, '');
19800 }
19801
19802 /** Gets the value of "border-right-width" */
19803 String get borderRightWidth() =>
19804 getPropertyValue('border-right-width');
19805
19806 /** Sets the value of "border-right-width" */
19807 void set borderRightWidth(String value) {
19808 setProperty('border-right-width', value, '');
19809 }
19810
19811 /** Gets the value of "border-spacing" */
19812 String get borderSpacing() =>
19813 getPropertyValue('border-spacing');
19814
19815 /** Sets the value of "border-spacing" */
19816 void set borderSpacing(String value) {
19817 setProperty('border-spacing', value, '');
19818 }
19819
19820 /** Gets the value of "border-start" */
19821 String get borderStart() =>
19822 getPropertyValue('${_browserPrefix}border-start');
19823
19824 /** Sets the value of "border-start" */
19825 void set borderStart(String value) {
19826 setProperty('${_browserPrefix}border-start', value, '');
19827 }
19828
19829 /** Gets the value of "border-start-color" */
19830 String get borderStartColor() =>
19831 getPropertyValue('${_browserPrefix}border-start-color');
19832
19833 /** Sets the value of "border-start-color" */
19834 void set borderStartColor(String value) {
19835 setProperty('${_browserPrefix}border-start-color', value, '');
19836 }
19837
19838 /** Gets the value of "border-start-style" */
19839 String get borderStartStyle() =>
19840 getPropertyValue('${_browserPrefix}border-start-style');
19841
19842 /** Sets the value of "border-start-style" */
19843 void set borderStartStyle(String value) {
19844 setProperty('${_browserPrefix}border-start-style', value, '');
19845 }
19846
19847 /** Gets the value of "border-start-width" */
19848 String get borderStartWidth() =>
19849 getPropertyValue('${_browserPrefix}border-start-width');
19850
19851 /** Sets the value of "border-start-width" */
19852 void set borderStartWidth(String value) {
19853 setProperty('${_browserPrefix}border-start-width', value, '');
19854 }
19855
19856 /** Gets the value of "border-style" */
19857 String get borderStyle() =>
19858 getPropertyValue('border-style');
19859
19860 /** Sets the value of "border-style" */
19861 void set borderStyle(String value) {
19862 setProperty('border-style', value, '');
19863 }
19864
19865 /** Gets the value of "border-top" */
19866 String get borderTop() =>
19867 getPropertyValue('border-top');
19868
19869 /** Sets the value of "border-top" */
19870 void set borderTop(String value) {
19871 setProperty('border-top', value, '');
19872 }
19873
19874 /** Gets the value of "border-top-color" */
19875 String get borderTopColor() =>
19876 getPropertyValue('border-top-color');
19877
19878 /** Sets the value of "border-top-color" */
19879 void set borderTopColor(String value) {
19880 setProperty('border-top-color', value, '');
19881 }
19882
19883 /** Gets the value of "border-top-left-radius" */
19884 String get borderTopLeftRadius() =>
19885 getPropertyValue('border-top-left-radius');
19886
19887 /** Sets the value of "border-top-left-radius" */
19888 void set borderTopLeftRadius(String value) {
19889 setProperty('border-top-left-radius', value, '');
19890 }
19891
19892 /** Gets the value of "border-top-right-radius" */
19893 String get borderTopRightRadius() =>
19894 getPropertyValue('border-top-right-radius');
19895
19896 /** Sets the value of "border-top-right-radius" */
19897 void set borderTopRightRadius(String value) {
19898 setProperty('border-top-right-radius', value, '');
19899 }
19900
19901 /** Gets the value of "border-top-style" */
19902 String get borderTopStyle() =>
19903 getPropertyValue('border-top-style');
19904
19905 /** Sets the value of "border-top-style" */
19906 void set borderTopStyle(String value) {
19907 setProperty('border-top-style', value, '');
19908 }
19909
19910 /** Gets the value of "border-top-width" */
19911 String get borderTopWidth() =>
19912 getPropertyValue('border-top-width');
19913
19914 /** Sets the value of "border-top-width" */
19915 void set borderTopWidth(String value) {
19916 setProperty('border-top-width', value, '');
19917 }
19918
19919 /** Gets the value of "border-vertical-spacing" */
19920 String get borderVerticalSpacing() =>
19921 getPropertyValue('${_browserPrefix}border-vertical-spacing');
19922
19923 /** Sets the value of "border-vertical-spacing" */
19924 void set borderVerticalSpacing(String value) {
19925 setProperty('${_browserPrefix}border-vertical-spacing', value, '');
19926 }
19927
19928 /** Gets the value of "border-width" */
19929 String get borderWidth() =>
19930 getPropertyValue('border-width');
19931
19932 /** Sets the value of "border-width" */
19933 void set borderWidth(String value) {
19934 setProperty('border-width', value, '');
19935 }
19936
19937 /** Gets the value of "bottom" */
19938 String get bottom() =>
19939 getPropertyValue('bottom');
19940
19941 /** Sets the value of "bottom" */
19942 void set bottom(String value) {
19943 setProperty('bottom', value, '');
19944 }
19945
19946 /** Gets the value of "box-align" */
19947 String get boxAlign() =>
19948 getPropertyValue('${_browserPrefix}box-align');
19949
19950 /** Sets the value of "box-align" */
19951 void set boxAlign(String value) {
19952 setProperty('${_browserPrefix}box-align', value, '');
19953 }
19954
19955 /** Gets the value of "box-direction" */
19956 String get boxDirection() =>
19957 getPropertyValue('${_browserPrefix}box-direction');
19958
19959 /** Sets the value of "box-direction" */
19960 void set boxDirection(String value) {
19961 setProperty('${_browserPrefix}box-direction', value, '');
19962 }
19963
19964 /** Gets the value of "box-flex" */
19965 String get boxFlex() =>
19966 getPropertyValue('${_browserPrefix}box-flex');
19967
19968 /** Sets the value of "box-flex" */
19969 void set boxFlex(String value) {
19970 setProperty('${_browserPrefix}box-flex', value, '');
19971 }
19972
19973 /** Gets the value of "box-flex-group" */
19974 String get boxFlexGroup() =>
19975 getPropertyValue('${_browserPrefix}box-flex-group');
19976
19977 /** Sets the value of "box-flex-group" */
19978 void set boxFlexGroup(String value) {
19979 setProperty('${_browserPrefix}box-flex-group', value, '');
19980 }
19981
19982 /** Gets the value of "box-lines" */
19983 String get boxLines() =>
19984 getPropertyValue('${_browserPrefix}box-lines');
19985
19986 /** Sets the value of "box-lines" */
19987 void set boxLines(String value) {
19988 setProperty('${_browserPrefix}box-lines', value, '');
19989 }
19990
19991 /** Gets the value of "box-ordinal-group" */
19992 String get boxOrdinalGroup() =>
19993 getPropertyValue('${_browserPrefix}box-ordinal-group');
19994
19995 /** Sets the value of "box-ordinal-group" */
19996 void set boxOrdinalGroup(String value) {
19997 setProperty('${_browserPrefix}box-ordinal-group', value, '');
19998 }
19999
20000 /** Gets the value of "box-orient" */
20001 String get boxOrient() =>
20002 getPropertyValue('${_browserPrefix}box-orient');
20003
20004 /** Sets the value of "box-orient" */
20005 void set boxOrient(String value) {
20006 setProperty('${_browserPrefix}box-orient', value, '');
20007 }
20008
20009 /** Gets the value of "box-pack" */
20010 String get boxPack() =>
20011 getPropertyValue('${_browserPrefix}box-pack');
20012
20013 /** Sets the value of "box-pack" */
20014 void set boxPack(String value) {
20015 setProperty('${_browserPrefix}box-pack', value, '');
20016 }
20017
20018 /** Gets the value of "box-reflect" */
20019 String get boxReflect() =>
20020 getPropertyValue('${_browserPrefix}box-reflect');
20021
20022 /** Sets the value of "box-reflect" */
20023 void set boxReflect(String value) {
20024 setProperty('${_browserPrefix}box-reflect', value, '');
20025 }
20026
20027 /** Gets the value of "box-shadow" */
20028 String get boxShadow() =>
20029 getPropertyValue('box-shadow');
20030
20031 /** Sets the value of "box-shadow" */
20032 void set boxShadow(String value) {
20033 setProperty('box-shadow', value, '');
20034 }
20035
20036 /** Gets the value of "box-sizing" */
20037 String get boxSizing() =>
20038 getPropertyValue('box-sizing');
20039
20040 /** Sets the value of "box-sizing" */
20041 void set boxSizing(String value) {
20042 setProperty('box-sizing', value, '');
20043 }
20044
20045 /** Gets the value of "caption-side" */
20046 String get captionSide() =>
20047 getPropertyValue('caption-side');
20048
20049 /** Sets the value of "caption-side" */
20050 void set captionSide(String value) {
20051 setProperty('caption-side', value, '');
20052 }
20053
20054 /** Gets the value of "clear" */
20055 String get clear() =>
20056 getPropertyValue('clear');
20057
20058 /** Sets the value of "clear" */
20059 void set clear(String value) {
20060 setProperty('clear', value, '');
20061 }
20062
20063 /** Gets the value of "clip" */
20064 String get clip() =>
20065 getPropertyValue('clip');
20066
20067 /** Sets the value of "clip" */
20068 void set clip(String value) {
20069 setProperty('clip', value, '');
20070 }
20071
20072 /** Gets the value of "color" */
20073 String get color() =>
20074 getPropertyValue('color');
20075
20076 /** Sets the value of "color" */
20077 void set color(String value) {
20078 setProperty('color', value, '');
20079 }
20080
20081 /** Gets the value of "color-correction" */
20082 String get colorCorrection() =>
20083 getPropertyValue('${_browserPrefix}color-correction');
20084
20085 /** Sets the value of "color-correction" */
20086 void set colorCorrection(String value) {
20087 setProperty('${_browserPrefix}color-correction', value, '');
20088 }
20089
20090 /** Gets the value of "column-break-after" */
20091 String get columnBreakAfter() =>
20092 getPropertyValue('${_browserPrefix}column-break-after');
20093
20094 /** Sets the value of "column-break-after" */
20095 void set columnBreakAfter(String value) {
20096 setProperty('${_browserPrefix}column-break-after', value, '');
20097 }
20098
20099 /** Gets the value of "column-break-before" */
20100 String get columnBreakBefore() =>
20101 getPropertyValue('${_browserPrefix}column-break-before');
20102
20103 /** Sets the value of "column-break-before" */
20104 void set columnBreakBefore(String value) {
20105 setProperty('${_browserPrefix}column-break-before', value, '');
20106 }
20107
20108 /** Gets the value of "column-break-inside" */
20109 String get columnBreakInside() =>
20110 getPropertyValue('${_browserPrefix}column-break-inside');
20111
20112 /** Sets the value of "column-break-inside" */
20113 void set columnBreakInside(String value) {
20114 setProperty('${_browserPrefix}column-break-inside', value, '');
20115 }
20116
20117 /** Gets the value of "column-count" */
20118 String get columnCount() =>
20119 getPropertyValue('${_browserPrefix}column-count');
20120
20121 /** Sets the value of "column-count" */
20122 void set columnCount(String value) {
20123 setProperty('${_browserPrefix}column-count', value, '');
20124 }
20125
20126 /** Gets the value of "column-gap" */
20127 String get columnGap() =>
20128 getPropertyValue('${_browserPrefix}column-gap');
20129
20130 /** Sets the value of "column-gap" */
20131 void set columnGap(String value) {
20132 setProperty('${_browserPrefix}column-gap', value, '');
20133 }
20134
20135 /** Gets the value of "column-rule" */
20136 String get columnRule() =>
20137 getPropertyValue('${_browserPrefix}column-rule');
20138
20139 /** Sets the value of "column-rule" */
20140 void set columnRule(String value) {
20141 setProperty('${_browserPrefix}column-rule', value, '');
20142 }
20143
20144 /** Gets the value of "column-rule-color" */
20145 String get columnRuleColor() =>
20146 getPropertyValue('${_browserPrefix}column-rule-color');
20147
20148 /** Sets the value of "column-rule-color" */
20149 void set columnRuleColor(String value) {
20150 setProperty('${_browserPrefix}column-rule-color', value, '');
20151 }
20152
20153 /** Gets the value of "column-rule-style" */
20154 String get columnRuleStyle() =>
20155 getPropertyValue('${_browserPrefix}column-rule-style');
20156
20157 /** Sets the value of "column-rule-style" */
20158 void set columnRuleStyle(String value) {
20159 setProperty('${_browserPrefix}column-rule-style', value, '');
20160 }
20161
20162 /** Gets the value of "column-rule-width" */
20163 String get columnRuleWidth() =>
20164 getPropertyValue('${_browserPrefix}column-rule-width');
20165
20166 /** Sets the value of "column-rule-width" */
20167 void set columnRuleWidth(String value) {
20168 setProperty('${_browserPrefix}column-rule-width', value, '');
20169 }
20170
20171 /** Gets the value of "column-span" */
20172 String get columnSpan() =>
20173 getPropertyValue('${_browserPrefix}column-span');
20174
20175 /** Sets the value of "column-span" */
20176 void set columnSpan(String value) {
20177 setProperty('${_browserPrefix}column-span', value, '');
20178 }
20179
20180 /** Gets the value of "column-width" */
20181 String get columnWidth() =>
20182 getPropertyValue('${_browserPrefix}column-width');
20183
20184 /** Sets the value of "column-width" */
20185 void set columnWidth(String value) {
20186 setProperty('${_browserPrefix}column-width', value, '');
20187 }
20188
20189 /** Gets the value of "columns" */
20190 String get columns() =>
20191 getPropertyValue('${_browserPrefix}columns');
20192
20193 /** Sets the value of "columns" */
20194 void set columns(String value) {
20195 setProperty('${_browserPrefix}columns', value, '');
20196 }
20197
20198 /** Gets the value of "content" */
20199 String get content() =>
20200 getPropertyValue('content');
20201
20202 /** Sets the value of "content" */
20203 void set content(String value) {
20204 setProperty('content', value, '');
20205 }
20206
20207 /** Gets the value of "counter-increment" */
20208 String get counterIncrement() =>
20209 getPropertyValue('counter-increment');
20210
20211 /** Sets the value of "counter-increment" */
20212 void set counterIncrement(String value) {
20213 setProperty('counter-increment', value, '');
20214 }
20215
20216 /** Gets the value of "counter-reset" */
20217 String get counterReset() =>
20218 getPropertyValue('counter-reset');
20219
20220 /** Sets the value of "counter-reset" */
20221 void set counterReset(String value) {
20222 setProperty('counter-reset', value, '');
20223 }
20224
20225 /** Gets the value of "cursor" */
20226 String get cursor() =>
20227 getPropertyValue('cursor');
20228
20229 /** Sets the value of "cursor" */
20230 void set cursor(String value) {
20231 setProperty('cursor', value, '');
20232 }
20233
20234 /** Gets the value of "direction" */
20235 String get direction() =>
20236 getPropertyValue('direction');
20237
20238 /** Sets the value of "direction" */
20239 void set direction(String value) {
20240 setProperty('direction', value, '');
20241 }
20242
20243 /** Gets the value of "display" */
20244 String get display() =>
20245 getPropertyValue('display');
20246
20247 /** Sets the value of "display" */
20248 void set display(String value) {
20249 setProperty('display', value, '');
20250 }
20251
20252 /** Gets the value of "empty-cells" */
20253 String get emptyCells() =>
20254 getPropertyValue('empty-cells');
20255
20256 /** Sets the value of "empty-cells" */
20257 void set emptyCells(String value) {
20258 setProperty('empty-cells', value, '');
20259 }
20260
20261 /** Gets the value of "filter" */
20262 String get filter() =>
20263 getPropertyValue('${_browserPrefix}filter');
20264
20265 /** Sets the value of "filter" */
20266 void set filter(String value) {
20267 setProperty('${_browserPrefix}filter', value, '');
20268 }
20269
20270 /** Gets the value of "flex-align" */
20271 String get flexAlign() =>
20272 getPropertyValue('${_browserPrefix}flex-align');
20273
20274 /** Sets the value of "flex-align" */
20275 void set flexAlign(String value) {
20276 setProperty('${_browserPrefix}flex-align', value, '');
20277 }
20278
20279 /** Gets the value of "flex-flow" */
20280 String get flexFlow() =>
20281 getPropertyValue('${_browserPrefix}flex-flow');
20282
20283 /** Sets the value of "flex-flow" */
20284 void set flexFlow(String value) {
20285 setProperty('${_browserPrefix}flex-flow', value, '');
20286 }
20287
20288 /** Gets the value of "flex-order" */
20289 String get flexOrder() =>
20290 getPropertyValue('${_browserPrefix}flex-order');
20291
20292 /** Sets the value of "flex-order" */
20293 void set flexOrder(String value) {
20294 setProperty('${_browserPrefix}flex-order', value, '');
20295 }
20296
20297 /** Gets the value of "flex-pack" */
20298 String get flexPack() =>
20299 getPropertyValue('${_browserPrefix}flex-pack');
20300
20301 /** Sets the value of "flex-pack" */
20302 void set flexPack(String value) {
20303 setProperty('${_browserPrefix}flex-pack', value, '');
20304 }
20305
20306 /** Gets the value of "float" */
20307 String get float() =>
20308 getPropertyValue('float');
20309
20310 /** Sets the value of "float" */
20311 void set float(String value) {
20312 setProperty('float', value, '');
20313 }
20314
20315 /** Gets the value of "flow-from" */
20316 String get flowFrom() =>
20317 getPropertyValue('${_browserPrefix}flow-from');
20318
20319 /** Sets the value of "flow-from" */
20320 void set flowFrom(String value) {
20321 setProperty('${_browserPrefix}flow-from', value, '');
20322 }
20323
20324 /** Gets the value of "flow-into" */
20325 String get flowInto() =>
20326 getPropertyValue('${_browserPrefix}flow-into');
20327
20328 /** Sets the value of "flow-into" */
20329 void set flowInto(String value) {
20330 setProperty('${_browserPrefix}flow-into', value, '');
20331 }
20332
20333 /** Gets the value of "font" */
20334 String get font() =>
20335 getPropertyValue('font');
20336
20337 /** Sets the value of "font" */
20338 void set font(String value) {
20339 setProperty('font', value, '');
20340 }
20341
20342 /** Gets the value of "font-family" */
20343 String get fontFamily() =>
20344 getPropertyValue('font-family');
20345
20346 /** Sets the value of "font-family" */
20347 void set fontFamily(String value) {
20348 setProperty('font-family', value, '');
20349 }
20350
20351 /** Gets the value of "font-feature-settings" */
20352 String get fontFeatureSettings() =>
20353 getPropertyValue('${_browserPrefix}font-feature-settings');
20354
20355 /** Sets the value of "font-feature-settings" */
20356 void set fontFeatureSettings(String value) {
20357 setProperty('${_browserPrefix}font-feature-settings', value, '');
20358 }
20359
20360 /** Gets the value of "font-size" */
20361 String get fontSize() =>
20362 getPropertyValue('font-size');
20363
20364 /** Sets the value of "font-size" */
20365 void set fontSize(String value) {
20366 setProperty('font-size', value, '');
20367 }
20368
20369 /** Gets the value of "font-size-delta" */
20370 String get fontSizeDelta() =>
20371 getPropertyValue('${_browserPrefix}font-size-delta');
20372
20373 /** Sets the value of "font-size-delta" */
20374 void set fontSizeDelta(String value) {
20375 setProperty('${_browserPrefix}font-size-delta', value, '');
20376 }
20377
20378 /** Gets the value of "font-smoothing" */
20379 String get fontSmoothing() =>
20380 getPropertyValue('${_browserPrefix}font-smoothing');
20381
20382 /** Sets the value of "font-smoothing" */
20383 void set fontSmoothing(String value) {
20384 setProperty('${_browserPrefix}font-smoothing', value, '');
20385 }
20386
20387 /** Gets the value of "font-stretch" */
20388 String get fontStretch() =>
20389 getPropertyValue('font-stretch');
20390
20391 /** Sets the value of "font-stretch" */
20392 void set fontStretch(String value) {
20393 setProperty('font-stretch', value, '');
20394 }
20395
20396 /** Gets the value of "font-style" */
20397 String get fontStyle() =>
20398 getPropertyValue('font-style');
20399
20400 /** Sets the value of "font-style" */
20401 void set fontStyle(String value) {
20402 setProperty('font-style', value, '');
20403 }
20404
20405 /** Gets the value of "font-variant" */
20406 String get fontVariant() =>
20407 getPropertyValue('font-variant');
20408
20409 /** Sets the value of "font-variant" */
20410 void set fontVariant(String value) {
20411 setProperty('font-variant', value, '');
20412 }
20413
20414 /** Gets the value of "font-weight" */
20415 String get fontWeight() =>
20416 getPropertyValue('font-weight');
20417
20418 /** Sets the value of "font-weight" */
20419 void set fontWeight(String value) {
20420 setProperty('font-weight', value, '');
20421 }
20422
20423 /** Gets the value of "height" */
20424 String get height() =>
20425 getPropertyValue('height');
20426
20427 /** Sets the value of "height" */
20428 void set height(String value) {
20429 setProperty('height', value, '');
20430 }
20431
20432 /** Gets the value of "highlight" */
20433 String get highlight() =>
20434 getPropertyValue('${_browserPrefix}highlight');
20435
20436 /** Sets the value of "highlight" */
20437 void set highlight(String value) {
20438 setProperty('${_browserPrefix}highlight', value, '');
20439 }
20440
20441 /** Gets the value of "hyphenate-character" */
20442 String get hyphenateCharacter() =>
20443 getPropertyValue('${_browserPrefix}hyphenate-character');
20444
20445 /** Sets the value of "hyphenate-character" */
20446 void set hyphenateCharacter(String value) {
20447 setProperty('${_browserPrefix}hyphenate-character', value, '');
20448 }
20449
20450 /** Gets the value of "hyphenate-limit-after" */
20451 String get hyphenateLimitAfter() =>
20452 getPropertyValue('${_browserPrefix}hyphenate-limit-after');
20453
20454 /** Sets the value of "hyphenate-limit-after" */
20455 void set hyphenateLimitAfter(String value) {
20456 setProperty('${_browserPrefix}hyphenate-limit-after', value, '');
20457 }
20458
20459 /** Gets the value of "hyphenate-limit-before" */
20460 String get hyphenateLimitBefore() =>
20461 getPropertyValue('${_browserPrefix}hyphenate-limit-before');
20462
20463 /** Sets the value of "hyphenate-limit-before" */
20464 void set hyphenateLimitBefore(String value) {
20465 setProperty('${_browserPrefix}hyphenate-limit-before', value, '');
20466 }
20467
20468 /** Gets the value of "hyphenate-limit-lines" */
20469 String get hyphenateLimitLines() =>
20470 getPropertyValue('${_browserPrefix}hyphenate-limit-lines');
20471
20472 /** Sets the value of "hyphenate-limit-lines" */
20473 void set hyphenateLimitLines(String value) {
20474 setProperty('${_browserPrefix}hyphenate-limit-lines', value, '');
20475 }
20476
20477 /** Gets the value of "hyphens" */
20478 String get hyphens() =>
20479 getPropertyValue('${_browserPrefix}hyphens');
20480
20481 /** Sets the value of "hyphens" */
20482 void set hyphens(String value) {
20483 setProperty('${_browserPrefix}hyphens', value, '');
20484 }
20485
20486 /** Gets the value of "image-rendering" */
20487 String get imageRendering() =>
20488 getPropertyValue('image-rendering');
20489
20490 /** Sets the value of "image-rendering" */
20491 void set imageRendering(String value) {
20492 setProperty('image-rendering', value, '');
20493 }
20494
20495 /** Gets the value of "left" */
20496 String get left() =>
20497 getPropertyValue('left');
20498
20499 /** Sets the value of "left" */
20500 void set left(String value) {
20501 setProperty('left', value, '');
20502 }
20503
20504 /** Gets the value of "letter-spacing" */
20505 String get letterSpacing() =>
20506 getPropertyValue('letter-spacing');
20507
20508 /** Sets the value of "letter-spacing" */
20509 void set letterSpacing(String value) {
20510 setProperty('letter-spacing', value, '');
20511 }
20512
20513 /** Gets the value of "line-box-contain" */
20514 String get lineBoxContain() =>
20515 getPropertyValue('${_browserPrefix}line-box-contain');
20516
20517 /** Sets the value of "line-box-contain" */
20518 void set lineBoxContain(String value) {
20519 setProperty('${_browserPrefix}line-box-contain', value, '');
20520 }
20521
20522 /** Gets the value of "line-break" */
20523 String get lineBreak() =>
20524 getPropertyValue('${_browserPrefix}line-break');
20525
20526 /** Sets the value of "line-break" */
20527 void set lineBreak(String value) {
20528 setProperty('${_browserPrefix}line-break', value, '');
20529 }
20530
20531 /** Gets the value of "line-clamp" */
20532 String get lineClamp() =>
20533 getPropertyValue('${_browserPrefix}line-clamp');
20534
20535 /** Sets the value of "line-clamp" */
20536 void set lineClamp(String value) {
20537 setProperty('${_browserPrefix}line-clamp', value, '');
20538 }
20539
20540 /** Gets the value of "line-height" */
20541 String get lineHeight() =>
20542 getPropertyValue('line-height');
20543
20544 /** Sets the value of "line-height" */
20545 void set lineHeight(String value) {
20546 setProperty('line-height', value, '');
20547 }
20548
20549 /** Gets the value of "list-style" */
20550 String get listStyle() =>
20551 getPropertyValue('list-style');
20552
20553 /** Sets the value of "list-style" */
20554 void set listStyle(String value) {
20555 setProperty('list-style', value, '');
20556 }
20557
20558 /** Gets the value of "list-style-image" */
20559 String get listStyleImage() =>
20560 getPropertyValue('list-style-image');
20561
20562 /** Sets the value of "list-style-image" */
20563 void set listStyleImage(String value) {
20564 setProperty('list-style-image', value, '');
20565 }
20566
20567 /** Gets the value of "list-style-position" */
20568 String get listStylePosition() =>
20569 getPropertyValue('list-style-position');
20570
20571 /** Sets the value of "list-style-position" */
20572 void set listStylePosition(String value) {
20573 setProperty('list-style-position', value, '');
20574 }
20575
20576 /** Gets the value of "list-style-type" */
20577 String get listStyleType() =>
20578 getPropertyValue('list-style-type');
20579
20580 /** Sets the value of "list-style-type" */
20581 void set listStyleType(String value) {
20582 setProperty('list-style-type', value, '');
20583 }
20584
20585 /** Gets the value of "locale" */
20586 String get locale() =>
20587 getPropertyValue('${_browserPrefix}locale');
20588
20589 /** Sets the value of "locale" */
20590 void set locale(String value) {
20591 setProperty('${_browserPrefix}locale', value, '');
20592 }
20593
20594 /** Gets the value of "logical-height" */
20595 String get logicalHeight() =>
20596 getPropertyValue('${_browserPrefix}logical-height');
20597
20598 /** Sets the value of "logical-height" */
20599 void set logicalHeight(String value) {
20600 setProperty('${_browserPrefix}logical-height', value, '');
20601 }
20602
20603 /** Gets the value of "logical-width" */
20604 String get logicalWidth() =>
20605 getPropertyValue('${_browserPrefix}logical-width');
20606
20607 /** Sets the value of "logical-width" */
20608 void set logicalWidth(String value) {
20609 setProperty('${_browserPrefix}logical-width', value, '');
20610 }
20611
20612 /** Gets the value of "margin" */
20613 String get margin() =>
20614 getPropertyValue('margin');
20615
20616 /** Sets the value of "margin" */
20617 void set margin(String value) {
20618 setProperty('margin', value, '');
20619 }
20620
20621 /** Gets the value of "margin-after" */
20622 String get marginAfter() =>
20623 getPropertyValue('${_browserPrefix}margin-after');
20624
20625 /** Sets the value of "margin-after" */
20626 void set marginAfter(String value) {
20627 setProperty('${_browserPrefix}margin-after', value, '');
20628 }
20629
20630 /** Gets the value of "margin-after-collapse" */
20631 String get marginAfterCollapse() =>
20632 getPropertyValue('${_browserPrefix}margin-after-collapse');
20633
20634 /** Sets the value of "margin-after-collapse" */
20635 void set marginAfterCollapse(String value) {
20636 setProperty('${_browserPrefix}margin-after-collapse', value, '');
20637 }
20638
20639 /** Gets the value of "margin-before" */
20640 String get marginBefore() =>
20641 getPropertyValue('${_browserPrefix}margin-before');
20642
20643 /** Sets the value of "margin-before" */
20644 void set marginBefore(String value) {
20645 setProperty('${_browserPrefix}margin-before', value, '');
20646 }
20647
20648 /** Gets the value of "margin-before-collapse" */
20649 String get marginBeforeCollapse() =>
20650 getPropertyValue('${_browserPrefix}margin-before-collapse');
20651
20652 /** Sets the value of "margin-before-collapse" */
20653 void set marginBeforeCollapse(String value) {
20654 setProperty('${_browserPrefix}margin-before-collapse', value, '');
20655 }
20656
20657 /** Gets the value of "margin-bottom" */
20658 String get marginBottom() =>
20659 getPropertyValue('margin-bottom');
20660
20661 /** Sets the value of "margin-bottom" */
20662 void set marginBottom(String value) {
20663 setProperty('margin-bottom', value, '');
20664 }
20665
20666 /** Gets the value of "margin-bottom-collapse" */
20667 String get marginBottomCollapse() =>
20668 getPropertyValue('${_browserPrefix}margin-bottom-collapse');
20669
20670 /** Sets the value of "margin-bottom-collapse" */
20671 void set marginBottomCollapse(String value) {
20672 setProperty('${_browserPrefix}margin-bottom-collapse', value, '');
20673 }
20674
20675 /** Gets the value of "margin-collapse" */
20676 String get marginCollapse() =>
20677 getPropertyValue('${_browserPrefix}margin-collapse');
20678
20679 /** Sets the value of "margin-collapse" */
20680 void set marginCollapse(String value) {
20681 setProperty('${_browserPrefix}margin-collapse', value, '');
20682 }
20683
20684 /** Gets the value of "margin-end" */
20685 String get marginEnd() =>
20686 getPropertyValue('${_browserPrefix}margin-end');
20687
20688 /** Sets the value of "margin-end" */
20689 void set marginEnd(String value) {
20690 setProperty('${_browserPrefix}margin-end', value, '');
20691 }
20692
20693 /** Gets the value of "margin-left" */
20694 String get marginLeft() =>
20695 getPropertyValue('margin-left');
20696
20697 /** Sets the value of "margin-left" */
20698 void set marginLeft(String value) {
20699 setProperty('margin-left', value, '');
20700 }
20701
20702 /** Gets the value of "margin-right" */
20703 String get marginRight() =>
20704 getPropertyValue('margin-right');
20705
20706 /** Sets the value of "margin-right" */
20707 void set marginRight(String value) {
20708 setProperty('margin-right', value, '');
20709 }
20710
20711 /** Gets the value of "margin-start" */
20712 String get marginStart() =>
20713 getPropertyValue('${_browserPrefix}margin-start');
20714
20715 /** Sets the value of "margin-start" */
20716 void set marginStart(String value) {
20717 setProperty('${_browserPrefix}margin-start', value, '');
20718 }
20719
20720 /** Gets the value of "margin-top" */
20721 String get marginTop() =>
20722 getPropertyValue('margin-top');
20723
20724 /** Sets the value of "margin-top" */
20725 void set marginTop(String value) {
20726 setProperty('margin-top', value, '');
20727 }
20728
20729 /** Gets the value of "margin-top-collapse" */
20730 String get marginTopCollapse() =>
20731 getPropertyValue('${_browserPrefix}margin-top-collapse');
20732
20733 /** Sets the value of "margin-top-collapse" */
20734 void set marginTopCollapse(String value) {
20735 setProperty('${_browserPrefix}margin-top-collapse', value, '');
20736 }
20737
20738 /** Gets the value of "marquee" */
20739 String get marquee() =>
20740 getPropertyValue('${_browserPrefix}marquee');
20741
20742 /** Sets the value of "marquee" */
20743 void set marquee(String value) {
20744 setProperty('${_browserPrefix}marquee', value, '');
20745 }
20746
20747 /** Gets the value of "marquee-direction" */
20748 String get marqueeDirection() =>
20749 getPropertyValue('${_browserPrefix}marquee-direction');
20750
20751 /** Sets the value of "marquee-direction" */
20752 void set marqueeDirection(String value) {
20753 setProperty('${_browserPrefix}marquee-direction', value, '');
20754 }
20755
20756 /** Gets the value of "marquee-increment" */
20757 String get marqueeIncrement() =>
20758 getPropertyValue('${_browserPrefix}marquee-increment');
20759
20760 /** Sets the value of "marquee-increment" */
20761 void set marqueeIncrement(String value) {
20762 setProperty('${_browserPrefix}marquee-increment', value, '');
20763 }
20764
20765 /** Gets the value of "marquee-repetition" */
20766 String get marqueeRepetition() =>
20767 getPropertyValue('${_browserPrefix}marquee-repetition');
20768
20769 /** Sets the value of "marquee-repetition" */
20770 void set marqueeRepetition(String value) {
20771 setProperty('${_browserPrefix}marquee-repetition', value, '');
20772 }
20773
20774 /** Gets the value of "marquee-speed" */
20775 String get marqueeSpeed() =>
20776 getPropertyValue('${_browserPrefix}marquee-speed');
20777
20778 /** Sets the value of "marquee-speed" */
20779 void set marqueeSpeed(String value) {
20780 setProperty('${_browserPrefix}marquee-speed', value, '');
20781 }
20782
20783 /** Gets the value of "marquee-style" */
20784 String get marqueeStyle() =>
20785 getPropertyValue('${_browserPrefix}marquee-style');
20786
20787 /** Sets the value of "marquee-style" */
20788 void set marqueeStyle(String value) {
20789 setProperty('${_browserPrefix}marquee-style', value, '');
20790 }
20791
20792 /** Gets the value of "mask" */
20793 String get mask() =>
20794 getPropertyValue('${_browserPrefix}mask');
20795
20796 /** Sets the value of "mask" */
20797 void set mask(String value) {
20798 setProperty('${_browserPrefix}mask', value, '');
20799 }
20800
20801 /** Gets the value of "mask-attachment" */
20802 String get maskAttachment() =>
20803 getPropertyValue('${_browserPrefix}mask-attachment');
20804
20805 /** Sets the value of "mask-attachment" */
20806 void set maskAttachment(String value) {
20807 setProperty('${_browserPrefix}mask-attachment', value, '');
20808 }
20809
20810 /** Gets the value of "mask-box-image" */
20811 String get maskBoxImage() =>
20812 getPropertyValue('${_browserPrefix}mask-box-image');
20813
20814 /** Sets the value of "mask-box-image" */
20815 void set maskBoxImage(String value) {
20816 setProperty('${_browserPrefix}mask-box-image', value, '');
20817 }
20818
20819 /** Gets the value of "mask-box-image-outset" */
20820 String get maskBoxImageOutset() =>
20821 getPropertyValue('${_browserPrefix}mask-box-image-outset');
20822
20823 /** Sets the value of "mask-box-image-outset" */
20824 void set maskBoxImageOutset(String value) {
20825 setProperty('${_browserPrefix}mask-box-image-outset', value, '');
20826 }
20827
20828 /** Gets the value of "mask-box-image-repeat" */
20829 String get maskBoxImageRepeat() =>
20830 getPropertyValue('${_browserPrefix}mask-box-image-repeat');
20831
20832 /** Sets the value of "mask-box-image-repeat" */
20833 void set maskBoxImageRepeat(String value) {
20834 setProperty('${_browserPrefix}mask-box-image-repeat', value, '');
20835 }
20836
20837 /** Gets the value of "mask-box-image-slice" */
20838 String get maskBoxImageSlice() =>
20839 getPropertyValue('${_browserPrefix}mask-box-image-slice');
20840
20841 /** Sets the value of "mask-box-image-slice" */
20842 void set maskBoxImageSlice(String value) {
20843 setProperty('${_browserPrefix}mask-box-image-slice', value, '');
20844 }
20845
20846 /** Gets the value of "mask-box-image-source" */
20847 String get maskBoxImageSource() =>
20848 getPropertyValue('${_browserPrefix}mask-box-image-source');
20849
20850 /** Sets the value of "mask-box-image-source" */
20851 void set maskBoxImageSource(String value) {
20852 setProperty('${_browserPrefix}mask-box-image-source', value, '');
20853 }
20854
20855 /** Gets the value of "mask-box-image-width" */
20856 String get maskBoxImageWidth() =>
20857 getPropertyValue('${_browserPrefix}mask-box-image-width');
20858
20859 /** Sets the value of "mask-box-image-width" */
20860 void set maskBoxImageWidth(String value) {
20861 setProperty('${_browserPrefix}mask-box-image-width', value, '');
20862 }
20863
20864 /** Gets the value of "mask-clip" */
20865 String get maskClip() =>
20866 getPropertyValue('${_browserPrefix}mask-clip');
20867
20868 /** Sets the value of "mask-clip" */
20869 void set maskClip(String value) {
20870 setProperty('${_browserPrefix}mask-clip', value, '');
20871 }
20872
20873 /** Gets the value of "mask-composite" */
20874 String get maskComposite() =>
20875 getPropertyValue('${_browserPrefix}mask-composite');
20876
20877 /** Sets the value of "mask-composite" */
20878 void set maskComposite(String value) {
20879 setProperty('${_browserPrefix}mask-composite', value, '');
20880 }
20881
20882 /** Gets the value of "mask-image" */
20883 String get maskImage() =>
20884 getPropertyValue('${_browserPrefix}mask-image');
20885
20886 /** Sets the value of "mask-image" */
20887 void set maskImage(String value) {
20888 setProperty('${_browserPrefix}mask-image', value, '');
20889 }
20890
20891 /** Gets the value of "mask-origin" */
20892 String get maskOrigin() =>
20893 getPropertyValue('${_browserPrefix}mask-origin');
20894
20895 /** Sets the value of "mask-origin" */
20896 void set maskOrigin(String value) {
20897 setProperty('${_browserPrefix}mask-origin', value, '');
20898 }
20899
20900 /** Gets the value of "mask-position" */
20901 String get maskPosition() =>
20902 getPropertyValue('${_browserPrefix}mask-position');
20903
20904 /** Sets the value of "mask-position" */
20905 void set maskPosition(String value) {
20906 setProperty('${_browserPrefix}mask-position', value, '');
20907 }
20908
20909 /** Gets the value of "mask-position-x" */
20910 String get maskPositionX() =>
20911 getPropertyValue('${_browserPrefix}mask-position-x');
20912
20913 /** Sets the value of "mask-position-x" */
20914 void set maskPositionX(String value) {
20915 setProperty('${_browserPrefix}mask-position-x', value, '');
20916 }
20917
20918 /** Gets the value of "mask-position-y" */
20919 String get maskPositionY() =>
20920 getPropertyValue('${_browserPrefix}mask-position-y');
20921
20922 /** Sets the value of "mask-position-y" */
20923 void set maskPositionY(String value) {
20924 setProperty('${_browserPrefix}mask-position-y', value, '');
20925 }
20926
20927 /** Gets the value of "mask-repeat" */
20928 String get maskRepeat() =>
20929 getPropertyValue('${_browserPrefix}mask-repeat');
20930
20931 /** Sets the value of "mask-repeat" */
20932 void set maskRepeat(String value) {
20933 setProperty('${_browserPrefix}mask-repeat', value, '');
20934 }
20935
20936 /** Gets the value of "mask-repeat-x" */
20937 String get maskRepeatX() =>
20938 getPropertyValue('${_browserPrefix}mask-repeat-x');
20939
20940 /** Sets the value of "mask-repeat-x" */
20941 void set maskRepeatX(String value) {
20942 setProperty('${_browserPrefix}mask-repeat-x', value, '');
20943 }
20944
20945 /** Gets the value of "mask-repeat-y" */
20946 String get maskRepeatY() =>
20947 getPropertyValue('${_browserPrefix}mask-repeat-y');
20948
20949 /** Sets the value of "mask-repeat-y" */
20950 void set maskRepeatY(String value) {
20951 setProperty('${_browserPrefix}mask-repeat-y', value, '');
20952 }
20953
20954 /** Gets the value of "mask-size" */
20955 String get maskSize() =>
20956 getPropertyValue('${_browserPrefix}mask-size');
20957
20958 /** Sets the value of "mask-size" */
20959 void set maskSize(String value) {
20960 setProperty('${_browserPrefix}mask-size', value, '');
20961 }
20962
20963 /** Gets the value of "match-nearest-mail-blockquote-color" */
20964 String get matchNearestMailBlockquoteColor() =>
20965 getPropertyValue('${_browserPrefix}match-nearest-mail-blockquote-color');
20966
20967 /** Sets the value of "match-nearest-mail-blockquote-color" */
20968 void set matchNearestMailBlockquoteColor(String value) {
20969 setProperty('${_browserPrefix}match-nearest-mail-blockquote-color', value, ' ');
20970 }
20971
20972 /** Gets the value of "max-height" */
20973 String get maxHeight() =>
20974 getPropertyValue('max-height');
20975
20976 /** Sets the value of "max-height" */
20977 void set maxHeight(String value) {
20978 setProperty('max-height', value, '');
20979 }
20980
20981 /** Gets the value of "max-logical-height" */
20982 String get maxLogicalHeight() =>
20983 getPropertyValue('${_browserPrefix}max-logical-height');
20984
20985 /** Sets the value of "max-logical-height" */
20986 void set maxLogicalHeight(String value) {
20987 setProperty('${_browserPrefix}max-logical-height', value, '');
20988 }
20989
20990 /** Gets the value of "max-logical-width" */
20991 String get maxLogicalWidth() =>
20992 getPropertyValue('${_browserPrefix}max-logical-width');
20993
20994 /** Sets the value of "max-logical-width" */
20995 void set maxLogicalWidth(String value) {
20996 setProperty('${_browserPrefix}max-logical-width', value, '');
20997 }
20998
20999 /** Gets the value of "max-width" */
21000 String get maxWidth() =>
21001 getPropertyValue('max-width');
21002
21003 /** Sets the value of "max-width" */
21004 void set maxWidth(String value) {
21005 setProperty('max-width', value, '');
21006 }
21007
21008 /** Gets the value of "min-height" */
21009 String get minHeight() =>
21010 getPropertyValue('min-height');
21011
21012 /** Sets the value of "min-height" */
21013 void set minHeight(String value) {
21014 setProperty('min-height', value, '');
21015 }
21016
21017 /** Gets the value of "min-logical-height" */
21018 String get minLogicalHeight() =>
21019 getPropertyValue('${_browserPrefix}min-logical-height');
21020
21021 /** Sets the value of "min-logical-height" */
21022 void set minLogicalHeight(String value) {
21023 setProperty('${_browserPrefix}min-logical-height', value, '');
21024 }
21025
21026 /** Gets the value of "min-logical-width" */
21027 String get minLogicalWidth() =>
21028 getPropertyValue('${_browserPrefix}min-logical-width');
21029
21030 /** Sets the value of "min-logical-width" */
21031 void set minLogicalWidth(String value) {
21032 setProperty('${_browserPrefix}min-logical-width', value, '');
21033 }
21034
21035 /** Gets the value of "min-width" */
21036 String get minWidth() =>
21037 getPropertyValue('min-width');
21038
21039 /** Sets the value of "min-width" */
21040 void set minWidth(String value) {
21041 setProperty('min-width', value, '');
21042 }
21043
21044 /** Gets the value of "nbsp-mode" */
21045 String get nbspMode() =>
21046 getPropertyValue('${_browserPrefix}nbsp-mode');
21047
21048 /** Sets the value of "nbsp-mode" */
21049 void set nbspMode(String value) {
21050 setProperty('${_browserPrefix}nbsp-mode', value, '');
21051 }
21052
21053 /** Gets the value of "opacity" */
21054 String get opacity() =>
21055 getPropertyValue('opacity');
21056
21057 /** Sets the value of "opacity" */
21058 void set opacity(String value) {
21059 setProperty('opacity', value, '');
21060 }
21061
21062 /** Gets the value of "orphans" */
21063 String get orphans() =>
21064 getPropertyValue('orphans');
21065
21066 /** Sets the value of "orphans" */
21067 void set orphans(String value) {
21068 setProperty('orphans', value, '');
21069 }
21070
21071 /** Gets the value of "outline" */
21072 String get outline() =>
21073 getPropertyValue('outline');
21074
21075 /** Sets the value of "outline" */
21076 void set outline(String value) {
21077 setProperty('outline', value, '');
21078 }
21079
21080 /** Gets the value of "outline-color" */
21081 String get outlineColor() =>
21082 getPropertyValue('outline-color');
21083
21084 /** Sets the value of "outline-color" */
21085 void set outlineColor(String value) {
21086 setProperty('outline-color', value, '');
21087 }
21088
21089 /** Gets the value of "outline-offset" */
21090 String get outlineOffset() =>
21091 getPropertyValue('outline-offset');
21092
21093 /** Sets the value of "outline-offset" */
21094 void set outlineOffset(String value) {
21095 setProperty('outline-offset', value, '');
21096 }
21097
21098 /** Gets the value of "outline-style" */
21099 String get outlineStyle() =>
21100 getPropertyValue('outline-style');
21101
21102 /** Sets the value of "outline-style" */
21103 void set outlineStyle(String value) {
21104 setProperty('outline-style', value, '');
21105 }
21106
21107 /** Gets the value of "outline-width" */
21108 String get outlineWidth() =>
21109 getPropertyValue('outline-width');
21110
21111 /** Sets the value of "outline-width" */
21112 void set outlineWidth(String value) {
21113 setProperty('outline-width', value, '');
21114 }
21115
21116 /** Gets the value of "overflow" */
21117 String get overflow() =>
21118 getPropertyValue('overflow');
21119
21120 /** Sets the value of "overflow" */
21121 void set overflow(String value) {
21122 setProperty('overflow', value, '');
21123 }
21124
21125 /** Gets the value of "overflow-x" */
21126 String get overflowX() =>
21127 getPropertyValue('overflow-x');
21128
21129 /** Sets the value of "overflow-x" */
21130 void set overflowX(String value) {
21131 setProperty('overflow-x', value, '');
21132 }
21133
21134 /** Gets the value of "overflow-y" */
21135 String get overflowY() =>
21136 getPropertyValue('overflow-y');
21137
21138 /** Sets the value of "overflow-y" */
21139 void set overflowY(String value) {
21140 setProperty('overflow-y', value, '');
21141 }
21142
21143 /** Gets the value of "padding" */
21144 String get padding() =>
21145 getPropertyValue('padding');
21146
21147 /** Sets the value of "padding" */
21148 void set padding(String value) {
21149 setProperty('padding', value, '');
21150 }
21151
21152 /** Gets the value of "padding-after" */
21153 String get paddingAfter() =>
21154 getPropertyValue('${_browserPrefix}padding-after');
21155
21156 /** Sets the value of "padding-after" */
21157 void set paddingAfter(String value) {
21158 setProperty('${_browserPrefix}padding-after', value, '');
21159 }
21160
21161 /** Gets the value of "padding-before" */
21162 String get paddingBefore() =>
21163 getPropertyValue('${_browserPrefix}padding-before');
21164
21165 /** Sets the value of "padding-before" */
21166 void set paddingBefore(String value) {
21167 setProperty('${_browserPrefix}padding-before', value, '');
21168 }
21169
21170 /** Gets the value of "padding-bottom" */
21171 String get paddingBottom() =>
21172 getPropertyValue('padding-bottom');
21173
21174 /** Sets the value of "padding-bottom" */
21175 void set paddingBottom(String value) {
21176 setProperty('padding-bottom', value, '');
21177 }
21178
21179 /** Gets the value of "padding-end" */
21180 String get paddingEnd() =>
21181 getPropertyValue('${_browserPrefix}padding-end');
21182
21183 /** Sets the value of "padding-end" */
21184 void set paddingEnd(String value) {
21185 setProperty('${_browserPrefix}padding-end', value, '');
21186 }
21187
21188 /** Gets the value of "padding-left" */
21189 String get paddingLeft() =>
21190 getPropertyValue('padding-left');
21191
21192 /** Sets the value of "padding-left" */
21193 void set paddingLeft(String value) {
21194 setProperty('padding-left', value, '');
21195 }
21196
21197 /** Gets the value of "padding-right" */
21198 String get paddingRight() =>
21199 getPropertyValue('padding-right');
21200
21201 /** Sets the value of "padding-right" */
21202 void set paddingRight(String value) {
21203 setProperty('padding-right', value, '');
21204 }
21205
21206 /** Gets the value of "padding-start" */
21207 String get paddingStart() =>
21208 getPropertyValue('${_browserPrefix}padding-start');
21209
21210 /** Sets the value of "padding-start" */
21211 void set paddingStart(String value) {
21212 setProperty('${_browserPrefix}padding-start', value, '');
21213 }
21214
21215 /** Gets the value of "padding-top" */
21216 String get paddingTop() =>
21217 getPropertyValue('padding-top');
21218
21219 /** Sets the value of "padding-top" */
21220 void set paddingTop(String value) {
21221 setProperty('padding-top', value, '');
21222 }
21223
21224 /** Gets the value of "page" */
21225 String get page() =>
21226 getPropertyValue('page');
21227
21228 /** Sets the value of "page" */
21229 void set page(String value) {
21230 setProperty('page', value, '');
21231 }
21232
21233 /** Gets the value of "page-break-after" */
21234 String get pageBreakAfter() =>
21235 getPropertyValue('page-break-after');
21236
21237 /** Sets the value of "page-break-after" */
21238 void set pageBreakAfter(String value) {
21239 setProperty('page-break-after', value, '');
21240 }
21241
21242 /** Gets the value of "page-break-before" */
21243 String get pageBreakBefore() =>
21244 getPropertyValue('page-break-before');
21245
21246 /** Sets the value of "page-break-before" */
21247 void set pageBreakBefore(String value) {
21248 setProperty('page-break-before', value, '');
21249 }
21250
21251 /** Gets the value of "page-break-inside" */
21252 String get pageBreakInside() =>
21253 getPropertyValue('page-break-inside');
21254
21255 /** Sets the value of "page-break-inside" */
21256 void set pageBreakInside(String value) {
21257 setProperty('page-break-inside', value, '');
21258 }
21259
21260 /** Gets the value of "perspective" */
21261 String get perspective() =>
21262 getPropertyValue('${_browserPrefix}perspective');
21263
21264 /** Sets the value of "perspective" */
21265 void set perspective(String value) {
21266 setProperty('${_browserPrefix}perspective', value, '');
21267 }
21268
21269 /** Gets the value of "perspective-origin" */
21270 String get perspectiveOrigin() =>
21271 getPropertyValue('${_browserPrefix}perspective-origin');
21272
21273 /** Sets the value of "perspective-origin" */
21274 void set perspectiveOrigin(String value) {
21275 setProperty('${_browserPrefix}perspective-origin', value, '');
21276 }
21277
21278 /** Gets the value of "perspective-origin-x" */
21279 String get perspectiveOriginX() =>
21280 getPropertyValue('${_browserPrefix}perspective-origin-x');
21281
21282 /** Sets the value of "perspective-origin-x" */
21283 void set perspectiveOriginX(String value) {
21284 setProperty('${_browserPrefix}perspective-origin-x', value, '');
21285 }
21286
21287 /** Gets the value of "perspective-origin-y" */
21288 String get perspectiveOriginY() =>
21289 getPropertyValue('${_browserPrefix}perspective-origin-y');
21290
21291 /** Sets the value of "perspective-origin-y" */
21292 void set perspectiveOriginY(String value) {
21293 setProperty('${_browserPrefix}perspective-origin-y', value, '');
21294 }
21295
21296 /** Gets the value of "pointer-events" */
21297 String get pointerEvents() =>
21298 getPropertyValue('pointer-events');
21299
21300 /** Sets the value of "pointer-events" */
21301 void set pointerEvents(String value) {
21302 setProperty('pointer-events', value, '');
21303 }
21304
21305 /** Gets the value of "position" */
21306 String get position() =>
21307 getPropertyValue('position');
21308
21309 /** Sets the value of "position" */
21310 void set position(String value) {
21311 setProperty('position', value, '');
21312 }
21313
21314 /** Gets the value of "quotes" */
21315 String get quotes() =>
21316 getPropertyValue('quotes');
21317
21318 /** Sets the value of "quotes" */
21319 void set quotes(String value) {
21320 setProperty('quotes', value, '');
21321 }
21322
21323 /** Gets the value of "region-break-after" */
21324 String get regionBreakAfter() =>
21325 getPropertyValue('${_browserPrefix}region-break-after');
21326
21327 /** Sets the value of "region-break-after" */
21328 void set regionBreakAfter(String value) {
21329 setProperty('${_browserPrefix}region-break-after', value, '');
21330 }
21331
21332 /** Gets the value of "region-break-before" */
21333 String get regionBreakBefore() =>
21334 getPropertyValue('${_browserPrefix}region-break-before');
21335
21336 /** Sets the value of "region-break-before" */
21337 void set regionBreakBefore(String value) {
21338 setProperty('${_browserPrefix}region-break-before', value, '');
21339 }
21340
21341 /** Gets the value of "region-break-inside" */
21342 String get regionBreakInside() =>
21343 getPropertyValue('${_browserPrefix}region-break-inside');
21344
21345 /** Sets the value of "region-break-inside" */
21346 void set regionBreakInside(String value) {
21347 setProperty('${_browserPrefix}region-break-inside', value, '');
21348 }
21349
21350 /** Gets the value of "region-overflow" */
21351 String get regionOverflow() =>
21352 getPropertyValue('${_browserPrefix}region-overflow');
21353
21354 /** Sets the value of "region-overflow" */
21355 void set regionOverflow(String value) {
21356 setProperty('${_browserPrefix}region-overflow', value, '');
21357 }
21358
21359 /** Gets the value of "resize" */
21360 String get resize() =>
21361 getPropertyValue('resize');
21362
21363 /** Sets the value of "resize" */
21364 void set resize(String value) {
21365 setProperty('resize', value, '');
21366 }
21367
21368 /** Gets the value of "right" */
21369 String get right() =>
21370 getPropertyValue('right');
21371
21372 /** Sets the value of "right" */
21373 void set right(String value) {
21374 setProperty('right', value, '');
21375 }
21376
21377 /** Gets the value of "rtl-ordering" */
21378 String get rtlOrdering() =>
21379 getPropertyValue('${_browserPrefix}rtl-ordering');
21380
21381 /** Sets the value of "rtl-ordering" */
21382 void set rtlOrdering(String value) {
21383 setProperty('${_browserPrefix}rtl-ordering', value, '');
21384 }
21385
21386 /** Gets the value of "size" */
21387 String get size() =>
21388 getPropertyValue('size');
21389
21390 /** Sets the value of "size" */
21391 void set size(String value) {
21392 setProperty('size', value, '');
21393 }
21394
21395 /** Gets the value of "speak" */
21396 String get speak() =>
21397 getPropertyValue('speak');
21398
21399 /** Sets the value of "speak" */
21400 void set speak(String value) {
21401 setProperty('speak', value, '');
21402 }
21403
21404 /** Gets the value of "src" */
21405 String get src() =>
21406 getPropertyValue('src');
21407
21408 /** Sets the value of "src" */
21409 void set src(String value) {
21410 setProperty('src', value, '');
21411 }
21412
21413 /** Gets the value of "table-layout" */
21414 String get tableLayout() =>
21415 getPropertyValue('table-layout');
21416
21417 /** Sets the value of "table-layout" */
21418 void set tableLayout(String value) {
21419 setProperty('table-layout', value, '');
21420 }
21421
21422 /** Gets the value of "tap-highlight-color" */
21423 String get tapHighlightColor() =>
21424 getPropertyValue('${_browserPrefix}tap-highlight-color');
21425
21426 /** Sets the value of "tap-highlight-color" */
21427 void set tapHighlightColor(String value) {
21428 setProperty('${_browserPrefix}tap-highlight-color', value, '');
21429 }
21430
21431 /** Gets the value of "text-align" */
21432 String get textAlign() =>
21433 getPropertyValue('text-align');
21434
21435 /** Sets the value of "text-align" */
21436 void set textAlign(String value) {
21437 setProperty('text-align', value, '');
21438 }
21439
21440 /** Gets the value of "text-combine" */
21441 String get textCombine() =>
21442 getPropertyValue('${_browserPrefix}text-combine');
21443
21444 /** Sets the value of "text-combine" */
21445 void set textCombine(String value) {
21446 setProperty('${_browserPrefix}text-combine', value, '');
21447 }
21448
21449 /** Gets the value of "text-decoration" */
21450 String get textDecoration() =>
21451 getPropertyValue('text-decoration');
21452
21453 /** Sets the value of "text-decoration" */
21454 void set textDecoration(String value) {
21455 setProperty('text-decoration', value, '');
21456 }
21457
21458 /** Gets the value of "text-decorations-in-effect" */
21459 String get textDecorationsInEffect() =>
21460 getPropertyValue('${_browserPrefix}text-decorations-in-effect');
21461
21462 /** Sets the value of "text-decorations-in-effect" */
21463 void set textDecorationsInEffect(String value) {
21464 setProperty('${_browserPrefix}text-decorations-in-effect', value, '');
21465 }
21466
21467 /** Gets the value of "text-emphasis" */
21468 String get textEmphasis() =>
21469 getPropertyValue('${_browserPrefix}text-emphasis');
21470
21471 /** Sets the value of "text-emphasis" */
21472 void set textEmphasis(String value) {
21473 setProperty('${_browserPrefix}text-emphasis', value, '');
21474 }
21475
21476 /** Gets the value of "text-emphasis-color" */
21477 String get textEmphasisColor() =>
21478 getPropertyValue('${_browserPrefix}text-emphasis-color');
21479
21480 /** Sets the value of "text-emphasis-color" */
21481 void set textEmphasisColor(String value) {
21482 setProperty('${_browserPrefix}text-emphasis-color', value, '');
21483 }
21484
21485 /** Gets the value of "text-emphasis-position" */
21486 String get textEmphasisPosition() =>
21487 getPropertyValue('${_browserPrefix}text-emphasis-position');
21488
21489 /** Sets the value of "text-emphasis-position" */
21490 void set textEmphasisPosition(String value) {
21491 setProperty('${_browserPrefix}text-emphasis-position', value, '');
21492 }
21493
21494 /** Gets the value of "text-emphasis-style" */
21495 String get textEmphasisStyle() =>
21496 getPropertyValue('${_browserPrefix}text-emphasis-style');
21497
21498 /** Sets the value of "text-emphasis-style" */
21499 void set textEmphasisStyle(String value) {
21500 setProperty('${_browserPrefix}text-emphasis-style', value, '');
21501 }
21502
21503 /** Gets the value of "text-fill-color" */
21504 String get textFillColor() =>
21505 getPropertyValue('${_browserPrefix}text-fill-color');
21506
21507 /** Sets the value of "text-fill-color" */
21508 void set textFillColor(String value) {
21509 setProperty('${_browserPrefix}text-fill-color', value, '');
21510 }
21511
21512 /** Gets the value of "text-indent" */
21513 String get textIndent() =>
21514 getPropertyValue('text-indent');
21515
21516 /** Sets the value of "text-indent" */
21517 void set textIndent(String value) {
21518 setProperty('text-indent', value, '');
21519 }
21520
21521 /** Gets the value of "text-line-through" */
21522 String get textLineThrough() =>
21523 getPropertyValue('text-line-through');
21524
21525 /** Sets the value of "text-line-through" */
21526 void set textLineThrough(String value) {
21527 setProperty('text-line-through', value, '');
21528 }
21529
21530 /** Gets the value of "text-line-through-color" */
21531 String get textLineThroughColor() =>
21532 getPropertyValue('text-line-through-color');
21533
21534 /** Sets the value of "text-line-through-color" */
21535 void set textLineThroughColor(String value) {
21536 setProperty('text-line-through-color', value, '');
21537 }
21538
21539 /** Gets the value of "text-line-through-mode" */
21540 String get textLineThroughMode() =>
21541 getPropertyValue('text-line-through-mode');
21542
21543 /** Sets the value of "text-line-through-mode" */
21544 void set textLineThroughMode(String value) {
21545 setProperty('text-line-through-mode', value, '');
21546 }
21547
21548 /** Gets the value of "text-line-through-style" */
21549 String get textLineThroughStyle() =>
21550 getPropertyValue('text-line-through-style');
21551
21552 /** Sets the value of "text-line-through-style" */
21553 void set textLineThroughStyle(String value) {
21554 setProperty('text-line-through-style', value, '');
21555 }
21556
21557 /** Gets the value of "text-line-through-width" */
21558 String get textLineThroughWidth() =>
21559 getPropertyValue('text-line-through-width');
21560
21561 /** Sets the value of "text-line-through-width" */
21562 void set textLineThroughWidth(String value) {
21563 setProperty('text-line-through-width', value, '');
21564 }
21565
21566 /** Gets the value of "text-orientation" */
21567 String get textOrientation() =>
21568 getPropertyValue('${_browserPrefix}text-orientation');
21569
21570 /** Sets the value of "text-orientation" */
21571 void set textOrientation(String value) {
21572 setProperty('${_browserPrefix}text-orientation', value, '');
21573 }
21574
21575 /** Gets the value of "text-overflow" */
21576 String get textOverflow() =>
21577 getPropertyValue('text-overflow');
21578
21579 /** Sets the value of "text-overflow" */
21580 void set textOverflow(String value) {
21581 setProperty('text-overflow', value, '');
21582 }
21583
21584 /** Gets the value of "text-overline" */
21585 String get textOverline() =>
21586 getPropertyValue('text-overline');
21587
21588 /** Sets the value of "text-overline" */
21589 void set textOverline(String value) {
21590 setProperty('text-overline', value, '');
21591 }
21592
21593 /** Gets the value of "text-overline-color" */
21594 String get textOverlineColor() =>
21595 getPropertyValue('text-overline-color');
21596
21597 /** Sets the value of "text-overline-color" */
21598 void set textOverlineColor(String value) {
21599 setProperty('text-overline-color', value, '');
21600 }
21601
21602 /** Gets the value of "text-overline-mode" */
21603 String get textOverlineMode() =>
21604 getPropertyValue('text-overline-mode');
21605
21606 /** Sets the value of "text-overline-mode" */
21607 void set textOverlineMode(String value) {
21608 setProperty('text-overline-mode', value, '');
21609 }
21610
21611 /** Gets the value of "text-overline-style" */
21612 String get textOverlineStyle() =>
21613 getPropertyValue('text-overline-style');
21614
21615 /** Sets the value of "text-overline-style" */
21616 void set textOverlineStyle(String value) {
21617 setProperty('text-overline-style', value, '');
21618 }
21619
21620 /** Gets the value of "text-overline-width" */
21621 String get textOverlineWidth() =>
21622 getPropertyValue('text-overline-width');
21623
21624 /** Sets the value of "text-overline-width" */
21625 void set textOverlineWidth(String value) {
21626 setProperty('text-overline-width', value, '');
21627 }
21628
21629 /** Gets the value of "text-rendering" */
21630 String get textRendering() =>
21631 getPropertyValue('text-rendering');
21632
21633 /** Sets the value of "text-rendering" */
21634 void set textRendering(String value) {
21635 setProperty('text-rendering', value, '');
21636 }
21637
21638 /** Gets the value of "text-security" */
21639 String get textSecurity() =>
21640 getPropertyValue('${_browserPrefix}text-security');
21641
21642 /** Sets the value of "text-security" */
21643 void set textSecurity(String value) {
21644 setProperty('${_browserPrefix}text-security', value, '');
21645 }
21646
21647 /** Gets the value of "text-shadow" */
21648 String get textShadow() =>
21649 getPropertyValue('text-shadow');
21650
21651 /** Sets the value of "text-shadow" */
21652 void set textShadow(String value) {
21653 setProperty('text-shadow', value, '');
21654 }
21655
21656 /** Gets the value of "text-size-adjust" */
21657 String get textSizeAdjust() =>
21658 getPropertyValue('${_browserPrefix}text-size-adjust');
21659
21660 /** Sets the value of "text-size-adjust" */
21661 void set textSizeAdjust(String value) {
21662 setProperty('${_browserPrefix}text-size-adjust', value, '');
21663 }
21664
21665 /** Gets the value of "text-stroke" */
21666 String get textStroke() =>
21667 getPropertyValue('${_browserPrefix}text-stroke');
21668
21669 /** Sets the value of "text-stroke" */
21670 void set textStroke(String value) {
21671 setProperty('${_browserPrefix}text-stroke', value, '');
21672 }
21673
21674 /** Gets the value of "text-stroke-color" */
21675 String get textStrokeColor() =>
21676 getPropertyValue('${_browserPrefix}text-stroke-color');
21677
21678 /** Sets the value of "text-stroke-color" */
21679 void set textStrokeColor(String value) {
21680 setProperty('${_browserPrefix}text-stroke-color', value, '');
21681 }
21682
21683 /** Gets the value of "text-stroke-width" */
21684 String get textStrokeWidth() =>
21685 getPropertyValue('${_browserPrefix}text-stroke-width');
21686
21687 /** Sets the value of "text-stroke-width" */
21688 void set textStrokeWidth(String value) {
21689 setProperty('${_browserPrefix}text-stroke-width', value, '');
21690 }
21691
21692 /** Gets the value of "text-transform" */
21693 String get textTransform() =>
21694 getPropertyValue('text-transform');
21695
21696 /** Sets the value of "text-transform" */
21697 void set textTransform(String value) {
21698 setProperty('text-transform', value, '');
21699 }
21700
21701 /** Gets the value of "text-underline" */
21702 String get textUnderline() =>
21703 getPropertyValue('text-underline');
21704
21705 /** Sets the value of "text-underline" */
21706 void set textUnderline(String value) {
21707 setProperty('text-underline', value, '');
21708 }
21709
21710 /** Gets the value of "text-underline-color" */
21711 String get textUnderlineColor() =>
21712 getPropertyValue('text-underline-color');
21713
21714 /** Sets the value of "text-underline-color" */
21715 void set textUnderlineColor(String value) {
21716 setProperty('text-underline-color', value, '');
21717 }
21718
21719 /** Gets the value of "text-underline-mode" */
21720 String get textUnderlineMode() =>
21721 getPropertyValue('text-underline-mode');
21722
21723 /** Sets the value of "text-underline-mode" */
21724 void set textUnderlineMode(String value) {
21725 setProperty('text-underline-mode', value, '');
21726 }
21727
21728 /** Gets the value of "text-underline-style" */
21729 String get textUnderlineStyle() =>
21730 getPropertyValue('text-underline-style');
21731
21732 /** Sets the value of "text-underline-style" */
21733 void set textUnderlineStyle(String value) {
21734 setProperty('text-underline-style', value, '');
21735 }
21736
21737 /** Gets the value of "text-underline-width" */
21738 String get textUnderlineWidth() =>
21739 getPropertyValue('text-underline-width');
21740
21741 /** Sets the value of "text-underline-width" */
21742 void set textUnderlineWidth(String value) {
21743 setProperty('text-underline-width', value, '');
21744 }
21745
21746 /** Gets the value of "top" */
21747 String get top() =>
21748 getPropertyValue('top');
21749
21750 /** Sets the value of "top" */
21751 void set top(String value) {
21752 setProperty('top', value, '');
21753 }
21754
21755 /** Gets the value of "transform" */
21756 String get transform() =>
21757 getPropertyValue('${_browserPrefix}transform');
21758
21759 /** Sets the value of "transform" */
21760 void set transform(String value) {
21761 setProperty('${_browserPrefix}transform', value, '');
21762 }
21763
21764 /** Gets the value of "transform-origin" */
21765 String get transformOrigin() =>
21766 getPropertyValue('${_browserPrefix}transform-origin');
21767
21768 /** Sets the value of "transform-origin" */
21769 void set transformOrigin(String value) {
21770 setProperty('${_browserPrefix}transform-origin', value, '');
21771 }
21772
21773 /** Gets the value of "transform-origin-x" */
21774 String get transformOriginX() =>
21775 getPropertyValue('${_browserPrefix}transform-origin-x');
21776
21777 /** Sets the value of "transform-origin-x" */
21778 void set transformOriginX(String value) {
21779 setProperty('${_browserPrefix}transform-origin-x', value, '');
21780 }
21781
21782 /** Gets the value of "transform-origin-y" */
21783 String get transformOriginY() =>
21784 getPropertyValue('${_browserPrefix}transform-origin-y');
21785
21786 /** Sets the value of "transform-origin-y" */
21787 void set transformOriginY(String value) {
21788 setProperty('${_browserPrefix}transform-origin-y', value, '');
21789 }
21790
21791 /** Gets the value of "transform-origin-z" */
21792 String get transformOriginZ() =>
21793 getPropertyValue('${_browserPrefix}transform-origin-z');
21794
21795 /** Sets the value of "transform-origin-z" */
21796 void set transformOriginZ(String value) {
21797 setProperty('${_browserPrefix}transform-origin-z', value, '');
21798 }
21799
21800 /** Gets the value of "transform-style" */
21801 String get transformStyle() =>
21802 getPropertyValue('${_browserPrefix}transform-style');
21803
21804 /** Sets the value of "transform-style" */
21805 void set transformStyle(String value) {
21806 setProperty('${_browserPrefix}transform-style', value, '');
21807 }
21808
21809 /** Gets the value of "transition" */
21810 String get transition() =>
21811 getPropertyValue('${_browserPrefix}transition');
21812
21813 /** Sets the value of "transition" */
21814 void set transition(String value) {
21815 setProperty('${_browserPrefix}transition', value, '');
21816 }
21817
21818 /** Gets the value of "transition-delay" */
21819 String get transitionDelay() =>
21820 getPropertyValue('${_browserPrefix}transition-delay');
21821
21822 /** Sets the value of "transition-delay" */
21823 void set transitionDelay(String value) {
21824 setProperty('${_browserPrefix}transition-delay', value, '');
21825 }
21826
21827 /** Gets the value of "transition-duration" */
21828 String get transitionDuration() =>
21829 getPropertyValue('${_browserPrefix}transition-duration');
21830
21831 /** Sets the value of "transition-duration" */
21832 void set transitionDuration(String value) {
21833 setProperty('${_browserPrefix}transition-duration', value, '');
21834 }
21835
21836 /** Gets the value of "transition-property" */
21837 String get transitionProperty() =>
21838 getPropertyValue('${_browserPrefix}transition-property');
21839
21840 /** Sets the value of "transition-property" */
21841 void set transitionProperty(String value) {
21842 setProperty('${_browserPrefix}transition-property', value, '');
21843 }
21844
21845 /** Gets the value of "transition-timing-function" */
21846 String get transitionTimingFunction() =>
21847 getPropertyValue('${_browserPrefix}transition-timing-function');
21848
21849 /** Sets the value of "transition-timing-function" */
21850 void set transitionTimingFunction(String value) {
21851 setProperty('${_browserPrefix}transition-timing-function', value, '');
21852 }
21853
21854 /** Gets the value of "unicode-bidi" */
21855 String get unicodeBidi() =>
21856 getPropertyValue('unicode-bidi');
21857
21858 /** Sets the value of "unicode-bidi" */
21859 void set unicodeBidi(String value) {
21860 setProperty('unicode-bidi', value, '');
21861 }
21862
21863 /** Gets the value of "unicode-range" */
21864 String get unicodeRange() =>
21865 getPropertyValue('unicode-range');
21866
21867 /** Sets the value of "unicode-range" */
21868 void set unicodeRange(String value) {
21869 setProperty('unicode-range', value, '');
21870 }
21871
21872 /** Gets the value of "user-drag" */
21873 String get userDrag() =>
21874 getPropertyValue('${_browserPrefix}user-drag');
21875
21876 /** Sets the value of "user-drag" */
21877 void set userDrag(String value) {
21878 setProperty('${_browserPrefix}user-drag', value, '');
21879 }
21880
21881 /** Gets the value of "user-modify" */
21882 String get userModify() =>
21883 getPropertyValue('${_browserPrefix}user-modify');
21884
21885 /** Sets the value of "user-modify" */
21886 void set userModify(String value) {
21887 setProperty('${_browserPrefix}user-modify', value, '');
21888 }
21889
21890 /** Gets the value of "user-select" */
21891 String get userSelect() =>
21892 getPropertyValue('${_browserPrefix}user-select');
21893
21894 /** Sets the value of "user-select" */
21895 void set userSelect(String value) {
21896 setProperty('${_browserPrefix}user-select', value, '');
21897 }
21898
21899 /** Gets the value of "vertical-align" */
21900 String get verticalAlign() =>
21901 getPropertyValue('vertical-align');
21902
21903 /** Sets the value of "vertical-align" */
21904 void set verticalAlign(String value) {
21905 setProperty('vertical-align', value, '');
21906 }
21907
21908 /** Gets the value of "visibility" */
21909 String get visibility() =>
21910 getPropertyValue('visibility');
21911
21912 /** Sets the value of "visibility" */
21913 void set visibility(String value) {
21914 setProperty('visibility', value, '');
21915 }
21916
21917 /** Gets the value of "white-space" */
21918 String get whiteSpace() =>
21919 getPropertyValue('white-space');
21920
21921 /** Sets the value of "white-space" */
21922 void set whiteSpace(String value) {
21923 setProperty('white-space', value, '');
21924 }
21925
21926 /** Gets the value of "widows" */
21927 String get widows() =>
21928 getPropertyValue('widows');
21929
21930 /** Sets the value of "widows" */
21931 void set widows(String value) {
21932 setProperty('widows', value, '');
21933 }
21934
21935 /** Gets the value of "width" */
21936 String get width() =>
21937 getPropertyValue('width');
21938
21939 /** Sets the value of "width" */
21940 void set width(String value) {
21941 setProperty('width', value, '');
21942 }
21943
21944 /** Gets the value of "word-break" */
21945 String get wordBreak() =>
21946 getPropertyValue('word-break');
21947
21948 /** Sets the value of "word-break" */
21949 void set wordBreak(String value) {
21950 setProperty('word-break', value, '');
21951 }
21952
21953 /** Gets the value of "word-spacing" */
21954 String get wordSpacing() =>
21955 getPropertyValue('word-spacing');
21956
21957 /** Sets the value of "word-spacing" */
21958 void set wordSpacing(String value) {
21959 setProperty('word-spacing', value, '');
21960 }
21961
21962 /** Gets the value of "word-wrap" */
21963 String get wordWrap() =>
21964 getPropertyValue('word-wrap');
21965
21966 /** Sets the value of "word-wrap" */
21967 void set wordWrap(String value) {
21968 setProperty('word-wrap', value, '');
21969 }
21970
21971 /** Gets the value of "wrap-shape" */
21972 String get wrapShape() =>
21973 getPropertyValue('${_browserPrefix}wrap-shape');
21974
21975 /** Sets the value of "wrap-shape" */
21976 void set wrapShape(String value) {
21977 setProperty('${_browserPrefix}wrap-shape', value, '');
21978 }
21979
21980 /** Gets the value of "writing-mode" */
21981 String get writingMode() =>
21982 getPropertyValue('${_browserPrefix}writing-mode');
21983
21984 /** Sets the value of "writing-mode" */
21985 void set writingMode(String value) {
21986 setProperty('${_browserPrefix}writing-mode', value, '');
21987 }
21988
21989 /** Gets the value of "z-index" */
21990 String get zIndex() =>
21991 getPropertyValue('z-index');
21992
21993 /** Sets the value of "z-index" */
21994 void set zIndex(String value) {
21995 setProperty('z-index', value, '');
21996 }
21997
21998 /** Gets the value of "zoom" */
21999 String get zoom() =>
22000 getPropertyValue('zoom');
22001
22002 /** Sets the value of "zoom" */
22003 void set zoom(String value) {
22004 setProperty('zoom', value, '');
22005 }
22006 }
22007 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
22008 // for details. All rights reserved. Use of this source code is governed by a
22009 // BSD-style license that can be found in the LICENSE file.
22010
22011 interface CustomEvent extends Event factory CustomEventWrappingImplementation { 8542 interface CustomEvent extends Event factory CustomEventWrappingImplementation {
22012 8543
22013 CustomEvent(String type, [bool canBubble, bool cancelable, Object detail]); 8544 CustomEvent(String type, [bool canBubble, bool cancelable, Object detail]);
22014 8545
22015 String get detail(); 8546 String get detail();
22016 } 8547 }
22017 // 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
22018 // 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
22019 // BSD-style license that can be found in the LICENSE file. 8550 // BSD-style license that can be found in the LICENSE file.
22020 8551
22021 class CustomEventWrappingImplementation extends EventWrappingImplementation impl ements CustomEvent {
22022 CustomEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
22023
22024 factory CustomEventWrappingImplementation(String type,
22025 [bool canBubble = true, bool cancelable = true, Object detail = null]) {
22026 final e = dom.document.createEvent("CustomEvent");
22027 e.initCustomEvent(type, canBubble, cancelable, detail);
22028 return LevelDom.wrapCustomEvent(e);
22029 }
22030
22031 String get detail() => _ptr.detail;
22032 }
22033 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
22034 // for details. All rights reserved. Use of this source code is governed by a
22035 // BSD-style license that can be found in the LICENSE file.
22036
22037 /**
22038 * Provides a Map abstraction on top of data-* attributes, similar to the
22039 * dataSet in the old DOM.
22040 */
22041 class _DataAttributeMap implements Map<String, String> {
22042
22043 final Map<String, String> _attributes;
22044
22045 _DataAttributeMap(this._attributes);
22046
22047 // interface Map
22048
22049 // TODO: Use lazy iterator when it is available on Map.
22050 bool containsValue(String value) => getValues().some((v) => v == value);
22051
22052 bool containsKey(String key) => _attributes.containsKey(_attr(key));
22053
22054 String operator [](String key) => _attributes[_attr(key)];
22055
22056 void operator []=(String key, String value) {
22057 _attributes[_attr(key)] = value;
22058 }
22059
22060 String putIfAbsent(String key, String ifAbsent()) {
22061 if (!containsKey(key)) {
22062 return this[key] = ifAbsent();
22063 }
22064 return this[key];
22065 }
22066
22067 String remove(String key) => _attributes.remove(_attr(key));
22068
22069 void clear() {
22070 // Needs to operate on a snapshot since we are mutatiting the collection.
22071 for (String key in getKeys()) {
22072 remove(key);
22073 }
22074 }
22075
22076 void forEach(void f(String key, String value)) {
22077 _attributes.forEach((String key, String value) {
22078 if (_matches(key)) {
22079 f(_strip(key), value);
22080 }
22081 });
22082 }
22083
22084 Collection<String> getKeys() {
22085 final keys = new List<String>();
22086 _attributes.forEach((String key, String value) {
22087 if (_matches(key)) {
22088 keys.add(_strip(key));
22089 }
22090 });
22091 return keys;
22092 }
22093
22094 Collection<String> getValues() {
22095 final values = new List<String>();
22096 _attributes.forEach((String key, String value) {
22097 if (_matches(key)) {
22098 values.add(value);
22099 }
22100 });
22101 return values;
22102 }
22103
22104 int get length() => getKeys().length;
22105
22106 // TODO: Use lazy iterator when it is available on Map.
22107 bool isEmpty() => length == 0;
22108
22109 // Helpers.
22110 String _attr(String key) => 'data-$key';
22111 bool _matches(String key) => key.startsWith('data-');
22112 String _strip(String key) => key.substring(5);
22113 }
22114
22115 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
22116 // for details. All rights reserved. Use of this source code is governed by a
22117 // BSD-style license that can be found in the LICENSE file.
22118
22119 /**
22120 * Utils for device detection.
22121 */
22122 class _Device {
22123 /**
22124 * Gets the browser's user agent. Using this function allows tests to inject
22125 * the user agent.
22126 * Returns the user agent.
22127 */
22128 static String get userAgent() => dom.window.navigator.userAgent;
22129
22130 /**
22131 * Determines if the current device is running Firefox.
22132 */
22133 static bool get isFirefox() => userAgent.contains("Firefox", 0);
22134 }
22135 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
22136 // for details. All rights reserved. Use of this source code is governed by a
22137 // BSD-style license that can be found in the LICENSE file.
22138
22139 interface DeviceMotionEvent extends Event factory DeviceMotionEventWrappingImple mentation { 8552 interface DeviceMotionEvent extends Event factory DeviceMotionEventWrappingImple mentation {
22140 8553
22141 // TODO(nweiz): Add more arguments to the constructor when we support 8554 // TODO(nweiz): Add more arguments to the constructor when we support
22142 // DeviceMotionEvent more thoroughly. 8555 // DeviceMotionEvent more thoroughly.
22143 DeviceMotionEvent(String type, [bool canBubble, bool cancelable]); 8556 DeviceMotionEvent(String type, [bool canBubble, bool cancelable]);
22144 8557
22145 num get interval(); 8558 num get interval();
22146 } 8559 }
22147 // 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
22148 // 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
22149 // BSD-style license that can be found in the LICENSE file. 8562 // BSD-style license that can be found in the LICENSE file.
22150 8563
22151 class DeviceMotionEventWrappingImplementation extends EventWrappingImplementatio n implements DeviceMotionEvent {
22152 DeviceMotionEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
22153
22154 factory DeviceMotionEventWrappingImplementation(String type,
22155 [bool canBubble = true, bool cancelable = true]) {
22156 final e = dom.document.createEvent("DeviceMotionEvent");
22157 e.initEvent(type, canBubble, cancelable);
22158 return LevelDom.wrapDeviceMotionEvent(e);
22159 }
22160
22161 num get interval() => _ptr.interval;
22162 }
22163 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
22164 // for details. All rights reserved. Use of this source code is governed by a
22165 // BSD-style license that can be found in the LICENSE file.
22166
22167 interface DeviceOrientationEvent extends Event factory DeviceOrientationEventWra ppingImplementation { 8564 interface DeviceOrientationEvent extends Event factory DeviceOrientationEventWra ppingImplementation {
22168 8565
22169 DeviceOrientationEvent(String type, double alpha, double beta, double gamma, 8566 DeviceOrientationEvent(String type, double alpha, double beta, double gamma,
22170 [bool canBubble, bool cancelable]); 8567 [bool canBubble, bool cancelable]);
22171 8568
22172 num get alpha(); 8569 num get alpha();
22173 8570
22174 num get beta(); 8571 num get beta();
22175 8572
22176 num get gamma(); 8573 num get gamma();
22177 } 8574 }
22178 // 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
22179 // 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
22180 // BSD-style license that can be found in the LICENSE file. 8577 // BSD-style license that can be found in the LICENSE file.
22181 8578
22182 class DeviceOrientationEventWrappingImplementation extends EventWrappingImplemen tation implements DeviceOrientationEvent {
22183 DeviceOrientationEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
22184
22185 factory DeviceOrientationEventWrappingImplementation(String type,
22186 double alpha, double beta, double gamma, [bool canBubble = true,
22187 bool cancelable = true]) {
22188 final e = dom.document.createEvent("DeviceOrientationEvent");
22189 e.initDeviceOrientationEvent(
22190 type, canBubble, cancelable, alpha, beta, gamma);
22191 return LevelDom.wrapDeviceOrientationEvent(e);
22192 }
22193
22194 num get alpha() => _ptr.alpha;
22195
22196 num get beta() => _ptr.beta;
22197
22198 num get gamma() => _ptr.gamma;
22199 }
22200 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
22201 // for details. All rights reserved. Use of this source code is governed by a
22202 // BSD-style license that can be found in the LICENSE file.
22203
22204 interface DocumentEvents extends ElementEvents { 8579 interface DocumentEvents extends ElementEvents {
22205 EventListenerList get readyStateChange(); 8580 EventListenerList get readyStateChange();
22206 EventListenerList get selectionChange(); 8581 EventListenerList get selectionChange();
22207 EventListenerList get contentLoaded(); 8582 EventListenerList get contentLoaded();
22208 } 8583 }
22209 8584
22210 // TODO(jacobr): add DocumentFragment ctor 8585 // TODO(jacobr): add DocumentFragment ctor
22211 // add something smarted for document.domain 8586 // add something smarted for document.domain
22212 interface Document extends Element /*, common.NodeSelector */ { 8587 interface Document extends Element /*, common.NodeSelector */ {
22213 8588
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
22296 interface DocumentFragment extends Element factory DocumentFragmentWrappingImple mentation { 8671 interface DocumentFragment extends Element factory DocumentFragmentWrappingImple mentation {
22297 8672
22298 DocumentFragment(); 8673 DocumentFragment();
22299 8674
22300 DocumentFragment.html(String html); 8675 DocumentFragment.html(String html);
22301 } 8676 }
22302 // 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
22303 // 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
22304 // BSD-style license that can be found in the LICENSE file. 8679 // BSD-style license that can be found in the LICENSE file.
22305 8680
22306 class FilteredElementList implements ElementList {
22307 final Node _node;
22308 final NodeList _childNodes;
22309
22310 FilteredElementList(Node node): _childNodes = node.nodes, _node = node;
22311
22312 // We can't memoize this, since it's possible that children will be messed
22313 // with externally to this class.
22314 //
22315 // TODO(nweiz): Do we really need to copy the list to make the types work out?
22316 List<Element> get _filtered() =>
22317 new List.from(_childNodes.filter((n) => n is Element));
22318
22319 // Don't use _filtered.first so we can short-circuit once we find an element.
22320 Element get first() {
22321 for (var node in _childNodes) {
22322 if (node is Element) {
22323 return node;
22324 }
22325 }
22326 return null;
22327 }
22328
22329 void forEach(void f(Element element)) {
22330 _filtered.forEach(f);
22331 }
22332
22333 void operator []=(int index, Element value) {
22334 this[index].replaceWith(value);
22335 }
22336
22337 void set length(int newLength) {
22338 var len = this.length;
22339 if (newLength >= len) {
22340 return;
22341 } else if (newLength < 0) {
22342 throw const IllegalArgumentException("Invalid list length");
22343 }
22344
22345 removeRange(newLength - 1, len - newLength);
22346 }
22347
22348 void add(Element value) {
22349 _childNodes.add(value);
22350 }
22351
22352 void addAll(Collection<Element> collection) {
22353 collection.forEach(add);
22354 }
22355
22356 void addLast(Element value) {
22357 add(value);
22358 }
22359
22360 void sort(int compare(Element a, Element b)) {
22361 throw const UnsupportedOperationException('TODO(jacobr): should we impl?');
22362 }
22363
22364 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) {
22365 throw const NotImplementedException();
22366 }
22367
22368 void setRange(int start, int length, List from, [int startFrom = 0]) {
22369 throw const NotImplementedException();
22370 }
22371
22372 void removeRange(int start, int length) {
22373 _filtered.getRange(start, length).forEach((el) => el.remove());
22374 }
22375
22376 void insertRange(int start, int length, [initialValue = null]) {
22377 throw const NotImplementedException();
22378 }
22379
22380 void clear() {
22381 // Currently, ElementList#clear clears even non-element nodes, so we follow
22382 // that behavior.
22383 _childNodes.clear();
22384 }
22385
22386 Element removeLast() {
22387 var last = this.last();
22388 if (last != null) {
22389 last.remove();
22390 }
22391 return last;
22392 }
22393
22394 Collection<Element> filter(bool f(Element element)) => _filtered.filter(f);
22395 bool every(bool f(Element element)) => _filtered.every(f);
22396 bool some(bool f(Element element)) => _filtered.some(f);
22397 bool isEmpty() => _filtered.isEmpty();
22398 int get length() => _filtered.length;
22399 Element operator [](int index) => _filtered[index];
22400 Iterator<Element> iterator() => _filtered.iterator();
22401 List<Element> getRange(int start, int length) =>
22402 _filtered.getRange(start, length);
22403 int indexOf(Element element, [int start = 0]) =>
22404 _filtered.indexOf(element, start);
22405
22406 int lastIndexOf(Element element, [int start = null]) {
22407 if (start === null) start = length - 1;
22408 return _filtered.lastIndexOf(element, start);
22409 }
22410
22411 Element last() => _filtered.last();
22412 }
22413
22414 class EmptyStyleDeclaration extends CSSStyleDeclarationWrappingImplementation {
22415 // This can't call super(), since that's a factory constructor
22416 EmptyStyleDeclaration()
22417 : super._wrap(dom.document.createElement('div').style);
22418
22419 void set cssText(String value) {
22420 throw new UnsupportedOperationException(
22421 "Can't modify a frozen style declaration.");
22422 }
22423
22424 String removeProperty(String propertyName) {
22425 throw new UnsupportedOperationException(
22426 "Can't modify a frozen style declaration.");
22427 }
22428
22429 void setProperty(String propertyName, String value, [String priority]) {
22430 throw new UnsupportedOperationException(
22431 "Can't modify a frozen style declaration.");
22432 }
22433 }
22434
22435 Future<CSSStyleDeclaration> _emptyStyleFuture() {
22436 return _createMeasurementFuture(() => new EmptyStyleDeclaration(),
22437 new Completer<CSSStyleDeclaration>());
22438 }
22439
22440 class EmptyElementRect implements ElementRect {
22441 final ClientRect client = const SimpleClientRect(0, 0, 0, 0);
22442 final ClientRect offset = const SimpleClientRect(0, 0, 0, 0);
22443 final ClientRect scroll = const SimpleClientRect(0, 0, 0, 0);
22444 final ClientRect bounding = const SimpleClientRect(0, 0, 0, 0);
22445 final List<ClientRect> clientRects = const <ClientRect>[];
22446
22447 const EmptyElementRect();
22448 }
22449
22450 class DocumentFragmentWrappingImplementation extends NodeWrappingImplementation implements DocumentFragment {
22451 ElementList _elements;
22452
22453 DocumentFragmentWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
22454
22455 factory DocumentFragmentWrappingImplementation() {
22456 return new DocumentFragmentWrappingImplementation._wrap(
22457 dom.document.createDocumentFragment());
22458 }
22459
22460 factory DocumentFragmentWrappingImplementation.html(String html) {
22461 var fragment = new DocumentFragment();
22462 fragment.innerHTML = html;
22463 return fragment;
22464 }
22465
22466 ElementList get elements() {
22467 if (_elements == null) {
22468 _elements = new FilteredElementList(this);
22469 }
22470 return _elements;
22471 }
22472
22473 // TODO: The type of value should be Collection<Element>. See http://b/5392897
22474 void set elements(value) {
22475 // Copy list first since we don't want liveness during iteration.
22476 List copy = new List.from(value);
22477 final elements = this.elements;
22478 elements.clear();
22479 elements.addAll(copy);
22480 }
22481
22482 String get innerHTML() {
22483 var e = new Element.tag("div");
22484 e.nodes.add(this.clone(true));
22485 return e.innerHTML;
22486 }
22487
22488 String get outerHTML() => innerHTML;
22489
22490 void set innerHTML(String value) {
22491 this.nodes.clear();
22492
22493 var e = new Element.tag("div");
22494 e.innerHTML = value;
22495
22496 // Copy list first since we don't want liveness during iteration.
22497 List nodes = new List.from(e.nodes);
22498 this.nodes.addAll(nodes);
22499 }
22500
22501 Node _insertAdjacentNode(String where, Node node) {
22502 switch (where.toLowerCase()) {
22503 case "beforebegin": return null;
22504 case "afterend": return null;
22505 case "afterbegin":
22506 this.insertBefore(node, nodes.first);
22507 return node;
22508 case "beforeend":
22509 this.nodes.add(node);
22510 return node;
22511 default:
22512 throw new IllegalArgumentException("Invalid position ${where}");
22513 }
22514 }
22515
22516 Element insertAdjacentElement([String where = null, Element element = null])
22517 => this._insertAdjacentNode(where, element);
22518
22519 void insertAdjacentText([String where = null, String text = null]) {
22520 this._insertAdjacentNode(where, new Text(text));
22521 }
22522
22523 void insertAdjacentHTML(
22524 [String position_OR_where = null, String text = null]) {
22525 this._insertAdjacentNode(
22526 position_OR_where, new DocumentFragment.html(text));
22527 }
22528
22529 ElementEvents get on() {
22530 if (_on === null) {
22531 _on = new ElementEventsImplementation._wrap(_ptr);
22532 }
22533 return _on;
22534 }
22535
22536 Future<ElementRect> get rect() {
22537 return _createMeasurementFuture(() => const EmptyElementRect(),
22538 new Completer<ElementRect>());
22539 }
22540
22541 Element query(String selectors) =>
22542 LevelDom.wrapElement(_ptr.querySelector(selectors));
22543
22544 ElementList queryAll(String selectors) =>
22545 LevelDom.wrapElementList(_ptr.querySelectorAll(selectors));
22546
22547 // If we can come up with a semi-reasonable default value for an Element
22548 // getter, we'll use it. In general, these return the same values as an
22549 // element that has no parent.
22550 String get contentEditable() => "false";
22551 bool get isContentEditable() => false;
22552 bool get draggable() => false;
22553 bool get hidden() => false;
22554 bool get spellcheck() => false;
22555 int get tabIndex() => -1;
22556 String get id() => "";
22557 String get title() => "";
22558 String get tagName() => "";
22559 String get webkitdropzone() => "";
22560 Element get firstElementChild() => elements.first();
22561 Element get lastElementChild() => elements.last();
22562 Element get nextElementSibling() => null;
22563 Element get previousElementSibling() => null;
22564 Element get offsetParent() => null;
22565 Element get parent() => null;
22566 Map<String, String> get attributes() => const {};
22567 // Issue 174: this should be a const set.
22568 Set<String> get classes() => new Set<String>();
22569 Map<String, String> get dataAttributes() => const {};
22570 CSSStyleDeclaration get style() => new EmptyStyleDeclaration();
22571 Future<CSSStyleDeclaration> get computedStyle() =>
22572 _emptyStyleFuture();
22573 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) =>
22574 _emptyStyleFuture();
22575 bool matchesSelector([String selectors]) => false;
22576
22577 // Imperative Element methods are made into no-ops, as they are on parentless
22578 // elements.
22579 void blur() {}
22580 void focus() {}
22581 void scrollByLines([int lines]) {}
22582 void scrollByPages([int pages]) {}
22583 void scrollIntoView([bool centerIfNeeded]) {}
22584
22585 // Setters throw errors rather than being no-ops because we aren't going to
22586 // retain the values that were set, and erroring out seems clearer.
22587 void set attributes(Map<String, String> value) {
22588 throw new UnsupportedOperationException(
22589 "Attributes can't be set for document fragments.");
22590 }
22591
22592 void set classes(Collection<String> value) {
22593 throw new UnsupportedOperationException(
22594 "Classes can't be set for document fragments.");
22595 }
22596
22597 void set dataAttributes(Map<String, String> value) {
22598 throw new UnsupportedOperationException(
22599 "Data attributes can't be set for document fragments.");
22600 }
22601
22602 void set contentEditable(String value) {
22603 throw new UnsupportedOperationException(
22604 "Content editable can't be set for document fragments.");
22605 }
22606
22607 String get dir() {
22608 throw new UnsupportedOperationException(
22609 "Document fragments don't support text direction.");
22610 }
22611
22612 void set dir(String value) {
22613 throw new UnsupportedOperationException(
22614 "Document fragments don't support text direction.");
22615 }
22616
22617 void set draggable(bool value) {
22618 throw new UnsupportedOperationException(
22619 "Draggable can't be set for document fragments.");
22620 }
22621
22622 void set hidden(bool value) {
22623 throw new UnsupportedOperationException(
22624 "Hidden can't be set for document fragments.");
22625 }
22626
22627 void set id(String value) {
22628 throw new UnsupportedOperationException(
22629 "ID can't be set for document fragments.");
22630 }
22631
22632 String get lang() {
22633 throw new UnsupportedOperationException(
22634 "Document fragments don't support language.");
22635 }
22636
22637 void set lang(String value) {
22638 throw new UnsupportedOperationException(
22639 "Document fragments don't support language.");
22640 }
22641
22642 void set scrollLeft(int value) {
22643 throw new UnsupportedOperationException(
22644 "Document fragments don't support scrolling.");
22645 }
22646
22647 void set scrollTop(int value) {
22648 throw new UnsupportedOperationException(
22649 "Document fragments don't support scrolling.");
22650 }
22651
22652 void set spellcheck(bool value) {
22653 throw new UnsupportedOperationException(
22654 "Spellcheck can't be set for document fragments.");
22655 }
22656
22657 void set tabIndex(int value) {
22658 throw new UnsupportedOperationException(
22659 "Tab index can't be set for document fragments.");
22660 }
22661
22662 void set title(String value) {
22663 throw new UnsupportedOperationException(
22664 "Title can't be set for document fragments.");
22665 }
22666
22667 void set webkitdropzone(String value) {
22668 throw new UnsupportedOperationException(
22669 "WebKit drop zone can't be set for document fragments.");
22670 }
22671 }
22672 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
22673 // for details. All rights reserved. Use of this source code is governed by a
22674 // BSD-style license that can be found in the LICENSE file.
22675
22676 class DocumentEventsImplementation extends ElementEventsImplementation
22677 implements DocumentEvents {
22678
22679 DocumentEventsImplementation._wrap(_ptr) : super._wrap(_ptr);
22680
22681 EventListenerList get readyStateChange() => _get('readystatechange');
22682
22683 EventListenerList get selectionChange() => _get('selectionchange');
22684
22685 EventListenerList get contentLoaded() => _get('DOMContentLoaded');
22686 }
22687
22688 class DocumentWrappingImplementation extends ElementWrappingImplementation imple ments Document {
22689
22690 final _documentPtr;
22691
22692 DocumentWrappingImplementation._wrap(this._documentPtr, ptr) : super._wrap(ptr ) {
22693 // We have to set the back ptr on the document as well as the documentElemen t
22694 // so that it is always simple to detect when an existing wrapper exists.
22695 _documentPtr.dartObjectLocalStorage = this;
22696 }
22697
22698 Element get activeElement() => LevelDom.wrapElement(_documentPtr.activeElement );
22699
22700 Node get parent() => null;
22701
22702 Element get body() => LevelDom.wrapElement(_documentPtr.body);
22703
22704 void set body(Element value) { _documentPtr.body = LevelDom.unwrap(value); }
22705
22706 String get charset() => _documentPtr.charset;
22707
22708 void set charset(String value) { _documentPtr.charset = value; }
22709
22710 String get cookie() => _documentPtr.cookie;
22711
22712 void set cookie(String value) { _documentPtr.cookie = value; }
22713
22714 Window get window() => LevelDom.wrapWindow(_documentPtr.defaultView);
22715
22716 void set designMode(String value) { _documentPtr.designMode = value; }
22717
22718 String get domain() => _documentPtr.domain;
22719
22720 HeadElement get head() => LevelDom.wrapHeadElement(_documentPtr.head);
22721
22722 String get lastModified() => _documentPtr.lastModified;
22723
22724 String get readyState() => _documentPtr.readyState;
22725
22726 String get referrer() => _documentPtr.referrer;
22727
22728 StyleSheetList get styleSheets() => LevelDom.wrapStyleSheetList(_documentPtr.s tyleSheets);
22729
22730 String get title() => _documentPtr.title;
22731
22732 void set title(String value) { _documentPtr.title = value; }
22733
22734 bool get webkitHidden() => _documentPtr.webkitHidden;
22735
22736 String get webkitVisibilityState() => _documentPtr.webkitVisibilityState;
22737
22738 Future<Range> caretRangeFromPoint([int x = null, int y = null]) {
22739 return _createMeasurementFuture(
22740 () => LevelDom.wrapRange(_documentPtr.caretRangeFromPoint(x, y)),
22741 new Completer<Range>());
22742 }
22743
22744 Element createElement([String tagName = null]) {
22745 return LevelDom.wrapElement(_documentPtr.createElement(tagName));
22746 }
22747
22748 Event createEvent([String eventType = null]) {
22749 return LevelDom.wrapEvent(_documentPtr.createEvent(eventType));
22750 }
22751
22752 Future<Element> elementFromPoint([int x = null, int y = null]) {
22753 return _createMeasurementFuture(
22754 () => LevelDom.wrapElement(_documentPtr.elementFromPoint(x, y)),
22755 new Completer<Element>());
22756 }
22757
22758 bool execCommand([String command = null, bool userInterface = null, String val ue = null]) {
22759 return _documentPtr.execCommand(command, userInterface, value);
22760 }
22761
22762 CanvasRenderingContext getCSSCanvasContext(String contextId, String name,
22763 int width, int height) {
22764 return LevelDom.wrapCanvasRenderingContext(_documentPtr.getCSSCanvasContext( contextId, name, width, height));
22765 }
22766
22767 bool queryCommandEnabled([String command = null]) {
22768 return _documentPtr.queryCommandEnabled(command);
22769 }
22770
22771 bool queryCommandIndeterm([String command = null]) {
22772 return _documentPtr.queryCommandIndeterm(command);
22773 }
22774
22775 bool queryCommandState([String command = null]) {
22776 return _documentPtr.queryCommandState(command);
22777 }
22778
22779 bool queryCommandSupported([String command = null]) {
22780 return _documentPtr.queryCommandSupported(command);
22781 }
22782
22783 String queryCommandValue([String command = null]) {
22784 return _documentPtr.queryCommandValue(command);
22785 }
22786
22787 String get manifest() => _ptr.manifest;
22788
22789 void set manifest(String value) { _ptr.manifest = value; }
22790
22791 DocumentEvents get on() {
22792 if (_on === null) {
22793 _on = new DocumentEventsImplementation._wrap(_ptr);
22794 }
22795 return _on;
22796 }
22797 }
22798 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
22799 // for details. All rights reserved. Use of this source code is governed by a
22800 // BSD-style license that can be found in the LICENSE file.
22801
22802 interface DOMApplicationCacheEvents extends Events { 8681 interface DOMApplicationCacheEvents extends Events {
22803 EventListenerList get cached(); 8682 EventListenerList get cached();
22804 EventListenerList get checking(); 8683 EventListenerList get checking();
22805 EventListenerList get downloading(); 8684 EventListenerList get downloading();
22806 EventListenerList get error(); 8685 EventListenerList get error();
22807 EventListenerList get noUpdate(); 8686 EventListenerList get noUpdate();
22808 EventListenerList get obsolete(); 8687 EventListenerList get obsolete();
22809 EventListenerList get progress(); 8688 EventListenerList get progress();
22810 EventListenerList get updateReady(); 8689 EventListenerList get updateReady();
22811 } 8690 }
(...skipping 17 matching lines...) Expand all
22829 void swapCache(); 8708 void swapCache();
22830 8709
22831 void update(); 8710 void update();
22832 8711
22833 DOMApplicationCacheEvents get on(); 8712 DOMApplicationCacheEvents get on();
22834 } 8713 }
22835 // 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
22836 // 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
22837 // BSD-style license that can be found in the LICENSE file. 8716 // BSD-style license that can be found in the LICENSE file.
22838 8717
22839 class DOMApplicationCacheEventsImplementation extends EventsImplementation
22840 implements DOMApplicationCacheEvents {
22841 DOMApplicationCacheEventsImplementation._wrap(ptr) : super._wrap(ptr);
22842
22843 EventListenerList get cached() => _get('cached');
22844 EventListenerList get checking() => _get('checking');
22845 EventListenerList get downloading() => _get('downloading');
22846 EventListenerList get error() => _get('error');
22847 EventListenerList get noUpdate() => _get('noupdate');
22848 EventListenerList get obsolete() => _get('obsolete');
22849 EventListenerList get progress() => _get('progress');
22850 EventListenerList get updateReady() => _get('updateready');
22851 }
22852
22853 class DOMApplicationCacheWrappingImplementation extends EventTargetWrappingImple mentation implements DOMApplicationCache {
22854 DOMApplicationCacheWrappingImplementation._wrap(ptr) : super._wrap(ptr);
22855
22856 int get status() => _ptr.status;
22857
22858 void swapCache() {
22859 _ptr.swapCache();
22860 }
22861
22862 void update() {
22863 _ptr.update();
22864 }
22865
22866 DOMApplicationCacheEvents get on() {
22867 if (_on === null) {
22868 _on = new DOMApplicationCacheEventsImplementation._wrap(_ptr);
22869 }
22870 return _on;
22871 }
22872 }
22873 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
22874 // for details. All rights reserved. Use of this source code is governed by a
22875 // BSD-style license that can be found in the LICENSE file.
22876
22877 class DOMWrapperBase {
22878 final _ptr;
22879
22880 DOMWrapperBase._wrap(this._ptr) {
22881 // We should never be creating duplicate wrappers.
22882 assert(_ptr.dartObjectLocalStorage === null);
22883 _ptr.dartObjectLocalStorage = this;
22884 }
22885 }
22886
22887 /** This function is provided for unittest purposes only. */
22888 unwrapDomObject(DOMWrapperBase wrapper) {
22889 return wrapper._ptr;
22890 }// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
22891 // for details. All rights reserved. Use of this source code is governed by a
22892 // BSD-style license that can be found in the LICENSE file.
22893
22894 interface ElementList extends List<Element> { 8718 interface ElementList extends List<Element> {
22895 // TODO(jacobr): add element batch manipulation methods. 8719 // TODO(jacobr): add element batch manipulation methods.
22896 Element get first(); 8720 Element get first();
22897 // TODO(jacobr): add insertAt 8721 // TODO(jacobr): add insertAt
22898 } 8722 }
22899 8723
22900 class DeferredElementRect { 8724 class DeferredElementRect {
22901 // TODO(jacobr) 8725 // TODO(jacobr)
22902 } 8726 }
22903 8727
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
23087 Future<CSSStyleDeclaration> get computedStyle(); 8911 Future<CSSStyleDeclaration> get computedStyle();
23088 8912
23089 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); 8913 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement);
23090 8914
23091 ElementEvents get on(); 8915 ElementEvents get on();
23092 } 8916 }
23093 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 8917 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
23094 // for details. All rights reserved. Use of this source code is governed by a 8918 // for details. All rights reserved. Use of this source code is governed by a
23095 // BSD-style license that can be found in the LICENSE file. 8919 // BSD-style license that can be found in the LICENSE file.
23096 8920
23097 // TODO(jacobr): use Lists.dart to remove some of the duplicated functionality.
23098 class _ChildrenElementList implements ElementList {
23099 // Raw Element.
23100 final _element;
23101 final _childElements;
23102
23103 _ChildrenElementList._wrap(var element)
23104 : _childElements = element.children,
23105 _element = element;
23106
23107 List<Element> _toList() {
23108 final output = new List(_childElements.length);
23109 for (int i = 0, len = _childElements.length; i < len; i++) {
23110 output[i] = LevelDom.wrapElement(_childElements[i]);
23111 }
23112 return output;
23113 }
23114
23115 Element get first() {
23116 return LevelDom.wrapElement(_element.firstElementChild);
23117 }
23118
23119 void forEach(void f(Element element)) {
23120 for (var element in _childElements) {
23121 f(LevelDom.wrapElement(element));
23122 }
23123 }
23124
23125 Collection<Element> filter(bool f(Element element)) {
23126 List<Element> output = new List<Element>();
23127 forEach((Element element) {
23128 if (f(element)) {
23129 output.add(element);
23130 }
23131 });
23132 return output;
23133 }
23134
23135 bool every(bool f(Element element)) {
23136 for(Element element in this) {
23137 if (!f(element)) {
23138 return false;
23139 }
23140 };
23141 return true;
23142 }
23143
23144 bool some(bool f(Element element)) {
23145 for(Element element in this) {
23146 if (f(element)) {
23147 return true;
23148 }
23149 };
23150 return false;
23151 }
23152
23153 bool isEmpty() {
23154 return _element.firstElementChild !== null;
23155 }
23156
23157 int get length() {
23158 return _childElements.length;
23159 }
23160
23161 Element operator [](int index) {
23162 return LevelDom.wrapElement(_childElements[index]);
23163 }
23164
23165 void operator []=(int index, Element value) {
23166 _element.replaceChild(LevelDom.unwrap(value), _childElements.item(index));
23167 }
23168
23169 void set length(int newLength) {
23170 // TODO(jacobr): remove children when length is reduced.
23171 throw const UnsupportedOperationException('');
23172 }
23173
23174 Element add(Element value) {
23175 _element.appendChild(LevelDom.unwrap(value));
23176 return value;
23177 }
23178
23179 Element addLast(Element value) => add(value);
23180
23181 Iterator<Element> iterator() => _toList().iterator();
23182
23183 void addAll(Collection<Element> collection) {
23184 for (Element element in collection) {
23185 _element.appendChild(LevelDom.unwrap(element));
23186 }
23187 }
23188
23189 void sort(int compare(Element a, Element b)) {
23190 throw const UnsupportedOperationException('TODO(jacobr): should we impl?');
23191 }
23192
23193 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) {
23194 throw 'Not impl yet. todo(jacobr)';
23195 }
23196
23197 void setRange(int start, int length, List from, [int startFrom = 0]) {
23198 throw const NotImplementedException();
23199 }
23200
23201 void removeRange(int start, int length) {
23202 throw const NotImplementedException();
23203 }
23204
23205 void insertRange(int start, int length, [initialValue = null]) {
23206 throw const NotImplementedException();
23207 }
23208
23209 List getRange(int start, int length) {
23210 throw const NotImplementedException();
23211 }
23212
23213 int indexOf(Element element, [int start = 0]) {
23214 return _Lists.indexOf(this, element, start, this.length);
23215 }
23216
23217 int lastIndexOf(Element element, [int start = null]) {
23218 if (start === null) start = length - 1;
23219 return _Lists.lastIndexOf(this, element, start);
23220 }
23221
23222 void clear() {
23223 // It is unclear if we want to keep non element nodes?
23224 _element.textContent = '';
23225 }
23226
23227 Element removeLast() {
23228 final last = this.last();
23229 if (last != null) {
23230 _element.removeChild(LevelDom.unwrap(last));
23231 }
23232 return last;
23233 }
23234
23235 Element last() {
23236 return LevelDom.wrapElement(_element.lastElementChild);
23237 }
23238 }
23239
23240 class FrozenElementList implements ElementList {
23241 final _ptr;
23242
23243 FrozenElementList._wrap(this._ptr);
23244
23245 Element get first() {
23246 return this[0];
23247 }
23248
23249 void forEach(void f(Element element)) {
23250 for (var element in _ptr) {
23251 f(LevelDom.wrapElement(element));
23252 }
23253 }
23254
23255 Collection<Element> filter(bool f(Element element)) {
23256 throw 'Not impl yet. todo(jacobr)';
23257 }
23258
23259 bool every(bool f(Element element)) {
23260 throw 'Not impl yet. todo(jacobr)';
23261 }
23262
23263 bool some(bool f(Element element)) {
23264 throw 'Not impl yet. todo(jacobr)';
23265 }
23266
23267 bool isEmpty() {
23268 return _ptr.length == 0;
23269 }
23270
23271 int get length() {
23272 return _ptr.length;
23273 }
23274
23275 Element operator [](int index) {
23276 return LevelDom.wrapElement(_ptr[index]);
23277 }
23278
23279 void operator []=(int index, Element value) {
23280 throw const UnsupportedOperationException('');
23281 }
23282
23283 void set length(int newLength) {
23284 throw const UnsupportedOperationException('');
23285 }
23286
23287 void add(Element value) {
23288 throw const UnsupportedOperationException('');
23289 }
23290
23291
23292 void addLast(Element value) {
23293 throw const UnsupportedOperationException('');
23294 }
23295
23296 Iterator<Element> iterator() => new FrozenElementListIterator(this);
23297
23298 void addAll(Collection<Element> collection) {
23299 throw const UnsupportedOperationException('');
23300 }
23301
23302 void sort(int compare(Element a, Element b)) {
23303 throw const UnsupportedOperationException('');
23304 }
23305
23306 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) {
23307 throw 'Not impl yet. todo(jacobr)';
23308 }
23309
23310 void setRange(int start, int length, List from, [int startFrom = 0]) {
23311 throw const NotImplementedException();
23312 }
23313
23314 void removeRange(int start, int length) {
23315 throw const NotImplementedException();
23316 }
23317
23318 void insertRange(int start, int length, [initialValue = null]) {
23319 throw const NotImplementedException();
23320 }
23321
23322 List getRange(int start, int length) {
23323 throw const NotImplementedException();
23324 }
23325
23326 int indexOf(Element element, [int start = 0]) {
23327 throw 'Not impl yet. todo(jacobr)';
23328 }
23329
23330 int lastIndexOf(Element element, [int start = null]) {
23331 throw 'Not impl yet. todo(jacobr)';
23332 }
23333
23334 void clear() {
23335 throw 'Not impl yet. todo(jacobr)';
23336 }
23337
23338 Element removeLast() {
23339 throw 'Not impl yet. todo(jacobr)';
23340 }
23341
23342 Element last() {
23343 return this[length-1];
23344 }
23345 }
23346
23347 class FrozenElementListIterator implements Iterator<Element> {
23348 final FrozenElementList _list;
23349 int _index = 0;
23350
23351 FrozenElementListIterator(this._list);
23352
23353 /**
23354 * Gets the next element in the iteration. Throws a
23355 * [NoMoreElementsException] if no element is left.
23356 */
23357 Element next() {
23358 if (!hasNext()) {
23359 throw const NoMoreElementsException();
23360 }
23361
23362 return _list[_index++];
23363 }
23364
23365 /**
23366 * Returns whether the [Iterator] has elements left.
23367 */
23368 bool hasNext() => _index < _list.length;
23369 }
23370
23371 class ElementAttributeMap implements Map<String, String> {
23372
23373 final _element;
23374
23375 ElementAttributeMap._wrap(this._element);
23376
23377 bool containsValue(String value) {
23378 final attributes = _element.attributes;
23379 for (int i = 0, len = attributes.length; i < len; i++) {
23380 if(value == attributes.item(i).value) {
23381 return true;
23382 }
23383 }
23384 return false;
23385 }
23386
23387 bool containsKey(String key) {
23388 return _element.hasAttribute(key);
23389 }
23390
23391 String operator [](String key) {
23392 return _element.getAttribute(key);
23393 }
23394
23395 void operator []=(String key, String value) {
23396 _element.setAttribute(key, value);
23397 }
23398
23399 String putIfAbsent(String key, String ifAbsent()) {
23400 if (!containsKey(key)) {
23401 this[key] = ifAbsent();
23402 }
23403 }
23404
23405 String remove(String key) {
23406 _element.removeAttribute(key);
23407 }
23408
23409 void clear() {
23410 final attributes = _element.attributes;
23411 for (int i = attributes.length - 1; i >= 0; i--) {
23412 _element.removeAttribute(attributes.item(i).name);
23413 }
23414 }
23415
23416 void forEach(void f(String key, String value)) {
23417 final attributes = _element.attributes;
23418 for (int i = 0, len = attributes.length; i < len; i++) {
23419 final item = attributes.item(i);
23420 f(item.name, item.value);
23421 }
23422 }
23423
23424 Collection<String> getKeys() {
23425 // TODO(jacobr): generate a lazy collection instead.
23426 final attributes = _element.attributes;
23427 final keys = new List<String>(attributes.length);
23428 for (int i = 0, len = attributes.length; i < len; i++) {
23429 keys[i] = attributes.item(i).name;
23430 }
23431 return keys;
23432 }
23433
23434 Collection<String> getValues() {
23435 // TODO(jacobr): generate a lazy collection instead.
23436 final attributes = _element.attributes;
23437 final values = new List<String>(attributes.length);
23438 for (int i = 0, len = attributes.length; i < len; i++) {
23439 values[i] = attributes.item(i).value;
23440 }
23441 return values;
23442 }
23443
23444 /**
23445 * The number of {key, value} pairs in the map.
23446 */
23447 int get length() {
23448 return _element.attributes.length;
23449 }
23450
23451 /**
23452 * Returns true if there is no {key, value} pair in the map.
23453 */
23454 bool isEmpty() {
23455 return !_element.hasAttributes();
23456 }
23457 }
23458
23459 class ElementEventsImplementation extends EventsImplementation implements Elemen tEvents {
23460 ElementEventsImplementation._wrap(_ptr) : super._wrap(_ptr);
23461
23462 EventListenerList get abort() => _get("abort");
23463 EventListenerList get beforeCopy() => _get("beforecopy");
23464 EventListenerList get beforeCut() => _get("beforecut");
23465 EventListenerList get beforePaste() => _get("beforepaste");
23466 EventListenerList get blur() => _get("blur");
23467 EventListenerList get change() => _get("change");
23468 EventListenerList get click() => _get("click");
23469 EventListenerList get contextMenu() => _get("contextmenu");
23470 EventListenerList get copy() => _get("copy");
23471 EventListenerList get cut() => _get("cut");
23472 EventListenerList get dblClick() => _get("dblclick");
23473 EventListenerList get drag() => _get("drag");
23474 EventListenerList get dragEnd() => _get("dragend");
23475 EventListenerList get dragEnter() => _get("dragenter");
23476 EventListenerList get dragLeave() => _get("dragleave");
23477 EventListenerList get dragOver() => _get("dragover");
23478 EventListenerList get dragStart() => _get("dragstart");
23479 EventListenerList get drop() => _get("drop");
23480 EventListenerList get error() => _get("error");
23481 EventListenerList get focus() => _get("focus");
23482 EventListenerList get input() => _get("input");
23483 EventListenerList get invalid() => _get("invalid");
23484 EventListenerList get keyDown() => _get("keydown");
23485 EventListenerList get keyPress() => _get("keypress");
23486 EventListenerList get keyUp() => _get("keyup");
23487 EventListenerList get load() => _get("load");
23488 EventListenerList get mouseDown() => _get("mousedown");
23489 EventListenerList get mouseMove() => _get("mousemove");
23490 EventListenerList get mouseOut() => _get("mouseout");
23491 EventListenerList get mouseOver() => _get("mouseover");
23492 EventListenerList get mouseUp() => _get("mouseup");
23493 EventListenerList get mouseWheel() => _get("mousewheel");
23494 EventListenerList get paste() => _get("paste");
23495 EventListenerList get reset() => _get("reset");
23496 EventListenerList get scroll() => _get("scroll");
23497 EventListenerList get search() => _get("search");
23498 EventListenerList get select() => _get("select");
23499 EventListenerList get selectStart() => _get("selectstart");
23500 EventListenerList get submit() => _get("submit");
23501 EventListenerList get touchCancel() => _get("touchcancel");
23502 EventListenerList get touchEnd() => _get("touchend");
23503 EventListenerList get touchLeave() => _get("touchleave");
23504 EventListenerList get touchMove() => _get("touchmove");
23505 EventListenerList get touchStart() => _get("touchstart");
23506 EventListenerList get transitionEnd() => _get("webkitTransitionEnd");
23507 EventListenerList get fullscreenChange() => _get("webkitfullscreenchange");
23508 }
23509
23510 class SimpleClientRect implements ClientRect {
23511 final num left;
23512 final num top;
23513 final num width;
23514 final num height;
23515 num get right() => left + width;
23516 num get bottom() => top + height;
23517
23518 const SimpleClientRect(this.left, this.top, this.width, this.height);
23519
23520 bool operator ==(ClientRect other) {
23521 return other !== null && left == other.left && top == other.top
23522 && width == other.width && height == other.height;
23523 }
23524
23525 String toString() => "($left, $top, $width, $height)";
23526 }
23527
23528 // TODO(jacobr): we cannot currently be lazy about calculating the client
23529 // rects as we must perform all measurement queries at a safe point to avoid
23530 // triggering unneeded layouts.
23531 /**
23532 * All your element measurement needs in one place
23533 */
23534 class ElementRectWrappingImplementation implements ElementRect {
23535 final ClientRect client;
23536 final ClientRect offset;
23537 final ClientRect scroll;
23538
23539 // TODO(jacobr): should we move these outside of ElementRect to avoid the
23540 // overhead of computing them every time even though they are rarely used.
23541 // This should be type dom.ClientRect but that fails on dartium. b/5522629
23542 final _boundingClientRect;
23543 // an exception due to a dartium bug.
23544 final dom.ClientRectList _clientRects;
23545
23546 ElementRectWrappingImplementation(dom.HTMLElement element) :
23547 client = new SimpleClientRect(element.clientLeft,
23548 element.clientTop,
23549 element.clientWidth,
23550 element.clientHeight),
23551 offset = new SimpleClientRect(element.offsetLeft,
23552 element.offsetTop,
23553 element.offsetWidth,
23554 element.offsetHeight),
23555 scroll = new SimpleClientRect(element.scrollLeft,
23556 element.scrollTop,
23557 element.scrollWidth,
23558 element.scrollHeight),
23559 _boundingClientRect = element.getBoundingClientRect(),
23560 _clientRects = element.getClientRects();
23561
23562 ClientRect get bounding() =>
23563 LevelDom.wrapClientRect(_boundingClientRect);
23564
23565 List<ClientRect> get clientRects() {
23566 final out = new List(_clientRects.length);
23567 for (num i = 0; i < _clientRects.length; i++) {
23568 out[i] = LevelDom.wrapClientRect(_clientRects.item(i));
23569 }
23570 return out;
23571 }
23572 }
23573
23574 class ElementWrappingImplementation extends NodeWrappingImplementation implement s Element {
23575
23576 static final _START_TAG_REGEXP = const RegExp('<(\\w+)');
23577 static final _CUSTOM_PARENT_TAG_MAP = const {
23578 'body' : 'html',
23579 'head' : 'html',
23580 'caption' : 'table',
23581 'td': 'tr',
23582 'tbody': 'table',
23583 'colgroup': 'table',
23584 'col' : 'colgroup',
23585 'tr' : 'tbody',
23586 'tbody' : 'table',
23587 'tfoot' : 'table',
23588 'thead' : 'table',
23589 'track' : 'audio',
23590 };
23591
23592 factory ElementWrappingImplementation.html(String html) {
23593 // TODO(jacobr): this method can be made more robust and performant.
23594 // 1) Cache the dummy parent elements required to use innerHTML rather than
23595 // creating them every call.
23596 // 2) Verify that the html does not contain leading or trailing text nodes.
23597 // 3) Verify that the html does not contain both <head> and <body> tags.
23598 // 4) Detatch the created element from its dummy parent.
23599 String parentTag = 'div';
23600 String tag;
23601 final match = _START_TAG_REGEXP.firstMatch(html);
23602 if (match !== null) {
23603 tag = match.group(1).toLowerCase();
23604 if (_CUSTOM_PARENT_TAG_MAP.containsKey(tag)) {
23605 parentTag = _CUSTOM_PARENT_TAG_MAP[tag];
23606 }
23607 }
23608 final temp = dom.document.createElement(parentTag);
23609 temp.innerHTML = html;
23610
23611 if (temp.childElementCount == 1) {
23612 return LevelDom.wrapElement(temp.firstElementChild);
23613 } else if (parentTag == 'html' && temp.childElementCount == 2) {
23614 // Work around for edge case in WebKit and possibly other browsers where
23615 // both body and head elements are created even though the inner html
23616 // only contains a head or body element.
23617 return LevelDom.wrapElement(temp.children.item(tag == 'head' ? 0 : 1));
23618 } else {
23619 throw 'HTML had ${temp.childElementCount} top level elements but 1 expecte d';
23620 }
23621 }
23622
23623 factory ElementWrappingImplementation.tag(String tag) {
23624 return LevelDom.wrapElement(dom.document.createElement(tag));
23625 }
23626
23627 ElementWrappingImplementation._wrap(ptr) : super._wrap(ptr);
23628
23629 ElementAttributeMap _elementAttributeMap;
23630 ElementList _elements;
23631 _CssClassSet _cssClassSet;
23632 _DataAttributeMap _dataAttributes;
23633
23634 Map<String, String> get attributes() {
23635 if (_elementAttributeMap === null) {
23636 _elementAttributeMap = new ElementAttributeMap._wrap(_ptr);
23637 }
23638 return _elementAttributeMap;
23639 }
23640
23641 void set attributes(Map<String, String> value) {
23642 Map<String, String> attributes = this.attributes;
23643 attributes.clear();
23644 for (String key in value.getKeys()) {
23645 attributes[key] = value[key];
23646 }
23647 }
23648
23649 void set elements(Collection<Element> value) {
23650 // Copy list first since we don't want liveness during iteration.
23651 List copy = new List.from(value);
23652 final elements = this.elements;
23653 elements.clear();
23654 elements.addAll(copy);
23655 }
23656
23657 ElementList get elements() {
23658 if (_elements == null) {
23659 _elements = new _ChildrenElementList._wrap(_ptr);
23660 }
23661 return _elements;
23662 }
23663
23664 Set<String> get classes() {
23665 if (_cssClassSet === null) {
23666 _cssClassSet = new _CssClassSet(_ptr);
23667 }
23668 return _cssClassSet;
23669 }
23670
23671 void set classes(Collection<String> value) {
23672 _CssClassSet classSet = classes;
23673 classSet.clear();
23674 classSet.addAll(value);
23675 }
23676
23677 Map<String, String> get dataAttributes() {
23678 if (_dataAttributes === null) {
23679 _dataAttributes = new _DataAttributeMap(attributes);
23680 }
23681 return _dataAttributes;
23682 }
23683
23684 void set dataAttributes(Map<String, String> value) {
23685 Map<String, String> dataAttributes = this.dataAttributes;
23686 dataAttributes.clear();
23687 for (String key in value.getKeys()) {
23688 dataAttributes[key] = value[key];
23689 }
23690 }
23691
23692 String get contentEditable() => _ptr.contentEditable;
23693
23694 void set contentEditable(String value) { _ptr.contentEditable = value; }
23695
23696 String get dir() => _ptr.dir;
23697
23698 void set dir(String value) { _ptr.dir = value; }
23699
23700 bool get draggable() => _ptr.draggable;
23701
23702 void set draggable(bool value) { _ptr.draggable = value; }
23703
23704 Element get firstElementChild() => LevelDom.wrapElement(_ptr.firstElementChild );
23705
23706 bool get hidden() => _ptr.hidden;
23707
23708 void set hidden(bool value) { _ptr.hidden = value; }
23709
23710 String get id() => _ptr.id;
23711
23712 void set id(String value) { _ptr.id = value; }
23713
23714 String get innerHTML() => _ptr.innerHTML;
23715
23716 void set innerHTML(String value) { _ptr.innerHTML = value; }
23717
23718 bool get isContentEditable() => _ptr.isContentEditable;
23719
23720 String get lang() => _ptr.lang;
23721
23722 void set lang(String value) { _ptr.lang = value; }
23723
23724 Element get lastElementChild() => LevelDom.wrapElement(_ptr.lastElementChild);
23725
23726 Element get nextElementSibling() => LevelDom.wrapElement(_ptr.nextElementSibli ng);
23727
23728 Element get offsetParent() => LevelDom.wrapElement(_ptr.offsetParent);
23729
23730 String get outerHTML() => _ptr.outerHTML;
23731
23732 Element get previousElementSibling() => LevelDom.wrapElement(_ptr.previousElem entSibling);
23733
23734 bool get spellcheck() => _ptr.spellcheck;
23735
23736 void set spellcheck(bool value) { _ptr.spellcheck = value; }
23737
23738 CSSStyleDeclaration get style() => LevelDom.wrapCSSStyleDeclaration(_ptr.style );
23739
23740 int get tabIndex() => _ptr.tabIndex;
23741
23742 void set tabIndex(int value) { _ptr.tabIndex = value; }
23743
23744 String get tagName() => _ptr.tagName;
23745
23746 String get title() => _ptr.title;
23747
23748 void set title(String value) { _ptr.title = value; }
23749
23750 String get webkitdropzone() => _ptr.webkitdropzone;
23751
23752 void set webkitdropzone(String value) { _ptr.webkitdropzone = value; }
23753
23754 void blur() {
23755 _ptr.blur();
23756 }
23757
23758 bool contains(Node element) {
23759 return _ptr.contains(LevelDom.unwrap(element));
23760 }
23761
23762 void focus() {
23763 _ptr.focus();
23764 }
23765
23766 Element insertAdjacentElement([String where = null, Element element = null]) {
23767 return LevelDom.wrapElement(_ptr.insertAdjacentElement(where, LevelDom.unwra p(element)));
23768 }
23769
23770 void insertAdjacentHTML([String position_OR_where = null, String text = null]) {
23771 _ptr.insertAdjacentHTML(position_OR_where, text);
23772 }
23773
23774 void insertAdjacentText([String where = null, String text = null]) {
23775 _ptr.insertAdjacentText(where, text);
23776 }
23777
23778 Element query(String selectors) {
23779 // TODO(jacobr): scope fix.
23780 return LevelDom.wrapElement(_ptr.querySelector(selectors));
23781 }
23782
23783 ElementList queryAll(String selectors) {
23784 // TODO(jacobr): scope fix.
23785 return new FrozenElementList._wrap(_ptr.querySelectorAll(selectors));
23786 }
23787
23788 void scrollByLines([int lines = null]) {
23789 _ptr.scrollByLines(lines);
23790 }
23791
23792 void scrollByPages([int pages = null]) {
23793 _ptr.scrollByPages(pages);
23794 }
23795
23796 void scrollIntoView([bool centerIfNeeded = null]) {
23797 _ptr.scrollIntoViewIfNeeded(centerIfNeeded);
23798 }
23799
23800 bool matchesSelector([String selectors = null]) {
23801 return _ptr.webkitMatchesSelector(selectors);
23802 }
23803
23804 void set scrollLeft(int value) { _ptr.scrollLeft = value; }
23805
23806 void set scrollTop(int value) { _ptr.scrollTop = value; }
23807
23808 Future<ElementRect> get rect() {
23809 return _createMeasurementFuture(
23810 () => new ElementRectWrappingImplementation(_ptr),
23811 new Completer<ElementRect>());
23812 }
23813
23814 Future<CSSStyleDeclaration> get computedStyle() {
23815 // TODO(jacobr): last param should be null, see b/5045788
23816 return getComputedStyle('');
23817 }
23818
23819 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) {
23820 return _createMeasurementFuture(() =>
23821 LevelDom.wrapCSSStyleDeclaration(
23822 dom.window.getComputedStyle(_ptr, pseudoElement)),
23823 new Completer<CSSStyleDeclaration>());
23824 }
23825
23826 ElementEvents get on() {
23827 if (_on === null) {
23828 _on = new ElementEventsImplementation._wrap(_ptr);
23829 }
23830 return _on;
23831 }
23832 }
23833 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
23834 // for details. All rights reserved. Use of this source code is governed by a
23835 // BSD-style license that can be found in the LICENSE file.
23836
23837 interface ErrorEvent extends Event factory ErrorEventWrappingImplementation { 8921 interface ErrorEvent extends Event factory ErrorEventWrappingImplementation {
23838 8922
23839 ErrorEvent(String type, String message, String filename, int lineNo, 8923 ErrorEvent(String type, String message, String filename, int lineNo,
23840 [bool canBubble, bool cancelable]); 8924 [bool canBubble, bool cancelable]);
23841 8925
23842 String get filename(); 8926 String get filename();
23843 8927
23844 int get lineno(); 8928 int get lineno();
23845 8929
23846 String get message(); 8930 String get message();
23847 } 8931 }
23848 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 8932 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
23849 // for details. All rights reserved. Use of this source code is governed by a 8933 // for details. All rights reserved. Use of this source code is governed by a
23850 // BSD-style license that can be found in the LICENSE file. 8934 // BSD-style license that can be found in the LICENSE file.
23851 8935
23852 class ErrorEventWrappingImplementation extends EventWrappingImplementation imple ments ErrorEvent {
23853 ErrorEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
23854
23855 factory ErrorEventWrappingImplementation(String type, String message,
23856 String filename, int lineNo, [bool canBubble = true,
23857 bool cancelable = true]) {
23858 final e = dom.document.createEvent("ErrorEvent");
23859 e.initErrorEvent(type, canBubble, cancelable, message, filename, lineNo);
23860 return LevelDom.wrapErrorEvent(e);
23861 }
23862
23863 String get filename() => _ptr.filename;
23864
23865 int get lineno() => _ptr.lineno;
23866
23867 String get message() => _ptr.message;
23868 }
23869 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
23870 // for details. All rights reserved. Use of this source code is governed by a
23871 // BSD-style license that can be found in the LICENSE file.
23872
23873 interface Event factory EventWrappingImplementation { 8936 interface Event factory EventWrappingImplementation {
23874 8937
23875 static final int AT_TARGET = 2; 8938 static final int AT_TARGET = 2;
23876 8939
23877 static final int BLUR = 8192; 8940 static final int BLUR = 8192;
23878 8941
23879 static final int BUBBLING_PHASE = 3; 8942 static final int BUBBLING_PHASE = 3;
23880 8943
23881 static final int CAPTURING_PHASE = 1; 8944 static final int CAPTURING_PHASE = 1;
23882 8945
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
23978 int get readyState(); 9041 int get readyState();
23979 9042
23980 void close(); 9043 void close();
23981 9044
23982 EventSourceEvents get on(); 9045 EventSourceEvents get on();
23983 } 9046 }
23984 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 9047 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
23985 // for details. All rights reserved. Use of this source code is governed by a 9048 // for details. All rights reserved. Use of this source code is governed by a
23986 // BSD-style license that can be found in the LICENSE file. 9049 // BSD-style license that can be found in the LICENSE file.
23987 9050
23988 class EventSourceEventsImplementation extends EventsImplementation implements Ev entSourceEvents {
23989 EventSourceEventsImplementation._wrap(_ptr) : super._wrap(_ptr);
23990
23991 EventListenerList get error() => _get('error');
23992 EventListenerList get message() => _get('message');
23993 EventListenerList get open() => _get('open');
23994 }
23995
23996 class EventSourceWrappingImplementation extends EventTargetWrappingImplementatio n implements EventSource {
23997 EventSourceWrappingImplementation._wrap(ptr) : super._wrap(ptr);
23998
23999 String get URL() => _ptr.URL;
24000
24001 int get readyState() => _ptr.readyState;
24002
24003 void close() {
24004 _ptr.close();
24005 }
24006
24007 EventSourceEvents get on() {
24008 if (_on === null) {
24009 _on = new EventSourceEventsImplementation._wrap(_ptr);
24010 }
24011 return _on;
24012 }
24013 }
24014 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
24015 // for details. All rights reserved. Use of this source code is governed by a
24016 // BSD-style license that can be found in the LICENSE file.
24017
24018 interface EventListenerList { 9051 interface EventListenerList {
24019 EventListenerList add(EventListener handler, [bool useCapture]); 9052 EventListenerList add(EventListener handler, [bool useCapture]);
24020 9053
24021 EventListenerList remove(EventListener handler, [bool useCapture]); 9054 EventListenerList remove(EventListener handler, [bool useCapture]);
24022 9055
24023 bool dispatch(Event evt); 9056 bool dispatch(Event evt);
24024 } 9057 }
24025 9058
24026 interface Events { 9059 interface Events {
24027 EventListenerList operator [](String type); 9060 EventListenerList operator [](String type);
24028 } 9061 }
24029 9062
24030 interface EventTarget { 9063 interface EventTarget {
24031 Events get on(); 9064 Events get on();
24032 } 9065 }
24033 9066
24034 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 9067 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
24035 // for details. All rights reserved. Use of this source code is governed by a 9068 // for details. All rights reserved. Use of this source code is governed by a
24036 // BSD-style license that can be found in the LICENSE file. 9069 // BSD-style license that can be found in the LICENSE file.
24037 9070
24038 class EventsImplementation implements Events {
24039 /* Raw event target. */
24040 var _ptr;
24041
24042 Map<String, EventListenerList> _listenerMap;
24043
24044 EventsImplementation._wrap(this._ptr) {
24045 _listenerMap = <String, EventListenerList>{};
24046 }
24047
24048 EventListenerList operator [](String type) {
24049 return _get(type.toLowerCase());
24050 }
24051
24052 EventListenerList _get(String type) {
24053 return _listenerMap.putIfAbsent(type,
24054 () => new EventListenerListImplementation(_ptr, type));
24055 }
24056 }
24057
24058 class _EventListenerWrapper {
24059 final EventListener raw;
24060 final Function wrapped;
24061 final bool useCapture;
24062 _EventListenerWrapper(this.raw, this.wrapped, this.useCapture);
24063 }
24064
24065 class EventListenerListImplementation implements EventListenerList {
24066 final _ptr;
24067 final String _type;
24068 List<_EventListenerWrapper> _wrappers;
24069
24070 EventListenerListImplementation(this._ptr, this._type) :
24071 // TODO(jacobr): switch to <_EventListenerWrapper>[] when the VM allow it.
24072 _wrappers = new List<_EventListenerWrapper>();
24073
24074 EventListenerList add(EventListener listener, [bool useCapture = false]) {
24075 _add(listener, useCapture);
24076 return this;
24077 }
24078
24079 EventListenerList remove(EventListener listener, [bool useCapture = false]) {
24080 _remove(listener, useCapture);
24081 return this;
24082 }
24083
24084 bool dispatch(Event evt) {
24085 // TODO(jacobr): what is the correct behavior here. We could alternately
24086 // force the event to have the expected type.
24087 assert(evt.type == _type);
24088 return _ptr.dispatchEvent(LevelDom.unwrap(evt));
24089 }
24090
24091 void _add(EventListener listener, bool useCapture) {
24092 _ptr.addEventListener(_type,
24093 _findOrAddWrapper(listener, useCapture),
24094 useCapture);
24095 }
24096
24097 void _remove(EventListener listener, bool useCapture) {
24098 Function wrapper = _removeWrapper(listener, useCapture);
24099 if (wrapper !== null) {
24100 _ptr.removeEventListener(_type, wrapper, useCapture);
24101 }
24102 }
24103
24104 Function _removeWrapper(EventListener listener, bool useCapture) {
24105 if (_wrappers === null) {
24106 return null;
24107 }
24108 for (int i = 0; i < _wrappers.length; i++) {
24109 _EventListenerWrapper wrapper = _wrappers[i];
24110 if (wrapper.raw === listener && wrapper.useCapture == useCapture) {
24111 // Order doesn't matter so we swap with the last element instead of
24112 // performing a more expensive remove from the middle of the list.
24113 if (i + 1 != _wrappers.length) {
24114 _wrappers[i] = _wrappers.removeLast();
24115 } else {
24116 _wrappers.removeLast();
24117 }
24118 return wrapper.wrapped;
24119 }
24120 }
24121 return null;
24122 }
24123
24124 Function _findOrAddWrapper(EventListener listener, bool useCapture) {
24125 if (_wrappers === null) {
24126 _wrappers = <_EventListenerWrapper>[];
24127 } else {
24128 for (_EventListenerWrapper wrapper in _wrappers) {
24129 if (wrapper.raw === listener && wrapper.useCapture == useCapture) {
24130 return wrapper.wrapped;
24131 }
24132 }
24133 }
24134 final wrapped = (e) { listener(LevelDom.wrapEvent(e)); };
24135 _wrappers.add(new _EventListenerWrapper(listener, wrapped, useCapture));
24136 return wrapped;
24137 }
24138 }
24139
24140 class EventTargetWrappingImplementation extends DOMWrapperBase implements EventT arget {
24141 Events _on;
24142
24143 EventTargetWrappingImplementation._wrap(ptr) : super._wrap(ptr);
24144
24145 Events get on() {
24146 if (_on === null) {
24147 _on = new EventsImplementation._wrap(_ptr);
24148 }
24149 return _on;
24150 }
24151 }
24152 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
24153 // for details. All rights reserved. Use of this source code is governed by a
24154 // BSD-style license that can be found in the LICENSE file.
24155
24156 class EventWrappingImplementation extends DOMWrapperBase implements Event {
24157 EventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
24158
24159 factory EventWrappingImplementation(String type, [bool canBubble = true,
24160 bool cancelable = true]) {
24161 final e = dom.document.createEvent("Event");
24162 e.initEvent(type, canBubble, cancelable);
24163 return LevelDom.wrapEvent(e);
24164 }
24165
24166 bool get bubbles() => _ptr.bubbles;
24167
24168 bool get cancelBubble() => _ptr.cancelBubble;
24169
24170 void set cancelBubble(bool value) { _ptr.cancelBubble = value; }
24171
24172 bool get cancelable() => _ptr.cancelable;
24173
24174 EventTarget get currentTarget() => LevelDom.wrapEventTarget(_ptr.currentTarget );
24175
24176 bool get defaultPrevented() => _ptr.defaultPrevented;
24177
24178 int get eventPhase() => _ptr.eventPhase;
24179
24180 bool get returnValue() => _ptr.returnValue;
24181
24182 void set returnValue(bool value) { _ptr.returnValue = value; }
24183
24184 EventTarget get srcElement() => LevelDom.wrapEventTarget(_ptr.srcElement);
24185
24186 EventTarget get target() => LevelDom.wrapEventTarget(_ptr.target);
24187
24188 int get timeStamp() => _ptr.timeStamp;
24189
24190 String get type() => _ptr.type;
24191
24192 void preventDefault() {
24193 _ptr.preventDefault();
24194 return;
24195 }
24196
24197 void stopImmediatePropagation() {
24198 _ptr.stopImmediatePropagation();
24199 return;
24200 }
24201
24202 void stopPropagation() {
24203 _ptr.stopPropagation();
24204 return;
24205 }
24206 }
24207 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
24208 // for details. All rights reserved. Use of this source code is governed by a
24209 // BSD-style license that can be found in the LICENSE file.
24210
24211 var secretWindow; 9071 var secretWindow;
24212 var secretDocument; 9072 var secretDocument;
24213 9073
24214 Window get window() { 9074 Window get window() {
24215 if (secretWindow === null) { 9075 if (secretWindow === null) {
24216 LevelDom.initialize(dom.window); 9076 LevelDom.initialize(dom.window);
24217 } 9077 }
24218 return secretWindow; 9078 return secretWindow;
24219 } 9079 }
24220 9080
(...skipping 13 matching lines...) Expand all
24234 bool cancelable]); 9094 bool cancelable]);
24235 9095
24236 String get newURL(); 9096 String get newURL();
24237 9097
24238 String get oldURL(); 9098 String get oldURL();
24239 } 9099 }
24240 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 9100 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
24241 // for details. All rights reserved. Use of this source code is governed by a 9101 // for details. All rights reserved. Use of this source code is governed by a
24242 // BSD-style license that can be found in the LICENSE file. 9102 // BSD-style license that can be found in the LICENSE file.
24243 9103
24244 class HashChangeEventWrappingImplementation extends EventWrappingImplementation implements HashChangeEvent {
24245 HashChangeEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
24246
24247 factory HashChangeEventWrappingImplementation(String type, String oldURL,
24248 String newURL, [bool canBubble = true, bool cancelable = true]) {
24249 final e = dom.document.createEvent("HashChangeEvent");
24250 e.initHashChangeEvent(type, canBubble, cancelable, oldURL, newURL);
24251 return LevelDom.wrapHashChangeEvent(e);
24252 }
24253
24254 String get newURL() => _ptr.newURL;
24255
24256 String get oldURL() => _ptr.oldURL;
24257 }
24258 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
24259 // for details. All rights reserved. Use of this source code is governed by a
24260 // BSD-style license that can be found in the LICENSE file.
24261
24262 interface KeyboardEvent extends UIEvent factory KeyboardEventWrappingImplementat ion { 9104 interface KeyboardEvent extends UIEvent factory KeyboardEventWrappingImplementat ion {
24263 9105
24264 static final int KEY_LOCATION_LEFT = 0x01; 9106 static final int KEY_LOCATION_LEFT = 0x01;
24265 9107
24266 static final int KEY_LOCATION_NUMPAD = 0x03; 9108 static final int KEY_LOCATION_NUMPAD = 0x03;
24267 9109
24268 static final int KEY_LOCATION_RIGHT = 0x02; 9110 static final int KEY_LOCATION_RIGHT = 0x02;
24269 9111
24270 static final int KEY_LOCATION_STANDARD = 0x00; 9112 static final int KEY_LOCATION_STANDARD = 0x00;
24271 9113
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
24822 /** 9664 /**
24823 * Key value used when an implementation is unable to identify another key 9665 * Key value used when an implementation is unable to identify another key
24824 * value, due to either hardware, platform, or software constraints 9666 * value, due to either hardware, platform, or software constraints
24825 */ 9667 */
24826 static final String UNIDENTIFIED = "Unidentified"; 9668 static final String UNIDENTIFIED = "Unidentified";
24827 } 9669 }
24828 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 9670 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
24829 // for details. All rights reserved. Use of this source code is governed by a 9671 // for details. All rights reserved. Use of this source code is governed by a
24830 // BSD-style license that can be found in the LICENSE file. 9672 // BSD-style license that can be found in the LICENSE file.
24831 9673
24832 class KeyboardEventWrappingImplementation extends UIEventWrappingImplementation implements KeyboardEvent {
24833 KeyboardEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
24834
24835 factory KeyboardEventWrappingImplementation(String type, Window view,
24836 String keyIdentifier, int keyLocation, [bool canBubble = true,
24837 bool cancelable = true, bool ctrlKey = false, bool altKey = false,
24838 bool shiftKey = false, bool metaKey = false, bool altGraphKey = false]) {
24839 final e = dom.document.createEvent("KeyboardEvent");
24840 e.initKeyboardEvent(type, canBubble, cancelable, LevelDom.unwrap(view),
24841 keyIdentifier, keyLocation, ctrlKey, altKey, shiftKey, metaKey,
24842 altGraphKey);
24843 return LevelDom.wrapKeyboardEvent(e);
24844 }
24845
24846 bool get altGraphKey() => _ptr.altGraphKey;
24847
24848 bool get altKey() => _ptr.altKey;
24849
24850 bool get ctrlKey() => _ptr.ctrlKey;
24851
24852 String get keyIdentifier() => _ptr.keyIdentifier;
24853
24854 int get keyLocation() => _ptr.keyLocation;
24855
24856 bool get metaKey() => _ptr.metaKey;
24857
24858 bool get shiftKey() => _ptr.shiftKey;
24859
24860 bool getModifierState(String keyIdentifierArg) {
24861 return _ptr.getModifierState(keyIdentifierArg);
24862 }
24863 }
24864 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
24865 // for details. All rights reserved. Use of this source code is governed by a
24866 // BSD-style license that can be found in the LICENSE file.
24867
24868 typedef Object ComputeValue(); 9674 typedef Object ComputeValue();
24869 9675
24870 class _MeasurementRequest<T> { 9676 class _MeasurementRequest<T> {
24871 final ComputeValue computeValue; 9677 final ComputeValue computeValue;
24872 final Completer<T> completer; 9678 final Completer<T> completer;
24873 Object value; 9679 Object value;
24874 bool exception = false; 9680 bool exception = false;
24875 _MeasurementRequest(this.computeValue, this.completer); 9681 _MeasurementRequest(this.computeValue, this.completer);
24876 } 9682 }
24877 9683
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
24993 MessagePort get messagePort(); 9799 MessagePort get messagePort();
24994 9800
24995 String get origin(); 9801 String get origin();
24996 9802
24997 Window get source(); 9803 Window get source();
24998 } 9804 }
24999 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 9805 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25000 // for details. All rights reserved. Use of this source code is governed by a 9806 // for details. All rights reserved. Use of this source code is governed by a
25001 // BSD-style license that can be found in the LICENSE file. 9807 // BSD-style license that can be found in the LICENSE file.
25002 9808
25003 class MessageEventWrappingImplementation extends EventWrappingImplementation imp lements MessageEvent {
25004 MessageEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
25005
25006 factory MessageEventWrappingImplementation(String type, String data,
25007 String origin, String lastEventId, Window source, MessagePort port,
25008 [bool canBubble = true, bool cancelable = true]) {
25009 final e = dom.document.createEvent("MessageEvent");
25010 e.initMessageEvent(type, canBubble, cancelable, data, origin, lastEventId,
25011 LevelDom.unwrap(source), LevelDom.unwrap(port));
25012 return LevelDom.wrapMessageEvent(e);
25013 }
25014
25015 String get data() => _ptr.data;
25016
25017 String get lastEventId() => _ptr.lastEventId;
25018
25019 MessagePort get messagePort() => LevelDom.wrapMessagePort(_ptr.messagePort);
25020
25021 String get origin() => _ptr.origin;
25022
25023 Window get source() => LevelDom.wrapWindow(_ptr.source);
25024
25025 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S tring dataArg, String originArg, String lastEventIdArg, Window sourceArg, Messag ePort messagePort) {
25026 _ptr.initMessageEvent(typeArg, canBubbleArg, cancelableArg, dataArg, originA rg, lastEventIdArg, LevelDom.unwrap(sourceArg), LevelDom.unwrap(messagePort));
25027 return;
25028 }
25029 }
25030 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25031 // for details. All rights reserved. Use of this source code is governed by a
25032 // BSD-style license that can be found in the LICENSE file.
25033
25034 interface MessagePort extends EventTarget { 9809 interface MessagePort extends EventTarget {
25035 } 9810 }
25036 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 9811 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25037 // for details. All rights reserved. Use of this source code is governed by a 9812 // for details. All rights reserved. Use of this source code is governed by a
25038 // BSD-style license that can be found in the LICENSE file. 9813 // BSD-style license that can be found in the LICENSE file.
25039 9814
25040 class MessagePortWrappingImplementation extends EventTargetWrappingImplementatio n implements MessagePort {
25041 MessagePortWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
25042 }
25043 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25044 // for details. All rights reserved. Use of this source code is governed by a
25045 // BSD-style license that can be found in the LICENSE file.
25046
25047 interface MouseEvent extends UIEvent factory MouseEventWrappingImplementation { 9815 interface MouseEvent extends UIEvent factory MouseEventWrappingImplementation {
25048 9816
25049 MouseEvent(String type, Window view, int detail, int screenX, int screenY, 9817 MouseEvent(String type, Window view, int detail, int screenX, int screenY,
25050 int clientX, int clientY, int button, [bool canBubble, bool cancelable, 9818 int clientX, int clientY, int button, [bool canBubble, bool cancelable,
25051 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, 9819 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey,
25052 EventTarget relatedTarget]); 9820 EventTarget relatedTarget]);
25053 9821
25054 bool get altKey(); 9822 bool get altKey();
25055 9823
25056 int get button(); 9824 int get button();
(...skipping 23 matching lines...) Expand all
25080 Node get toElement(); 9848 Node get toElement();
25081 9849
25082 int get x(); 9850 int get x();
25083 9851
25084 int get y(); 9852 int get y();
25085 } 9853 }
25086 // 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
25087 // 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
25088 // BSD-style license that can be found in the LICENSE file. 9856 // BSD-style license that can be found in the LICENSE file.
25089 9857
25090 class MouseEventWrappingImplementation extends UIEventWrappingImplementation imp lements MouseEvent {
25091 MouseEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
25092
25093 factory MouseEventWrappingImplementation(String type, Window view, int detail,
25094 int screenX, int screenY, int clientX, int clientY, int button,
25095 [bool canBubble = true, bool cancelable = true, bool ctrlKey = false,
25096 bool altKey = false, bool shiftKey = false, bool metaKey = false,
25097 EventTarget relatedTarget = null]) {
25098 final e = dom.document.createEvent("MouseEvent");
25099 e.initMouseEvent(type, canBubble, cancelable, LevelDom.unwrap(view), detail,
25100 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey,
25101 button, LevelDom.unwrap(relatedTarget));
25102 return LevelDom.wrapMouseEvent(e);
25103 }
25104
25105 bool get altKey() => _ptr.altKey;
25106
25107 int get button() => _ptr.button;
25108
25109 int get clientX() => _ptr.clientX;
25110
25111 int get clientY() => _ptr.clientY;
25112
25113 bool get ctrlKey() => _ptr.ctrlKey;
25114
25115 Node get fromElement() => LevelDom.wrapNode(_ptr.fromElement);
25116
25117 bool get metaKey() => _ptr.metaKey;
25118
25119 int get offsetX() => _ptr.offsetX;
25120
25121 int get offsetY() => _ptr.offsetY;
25122
25123 EventTarget get relatedTarget() => LevelDom.wrapEventTarget(_ptr.relatedTarget );
25124
25125 int get screenX() => _ptr.screenX;
25126
25127 int get screenY() => _ptr.screenY;
25128
25129 bool get shiftKey() => _ptr.shiftKey;
25130
25131 Node get toElement() => LevelDom.wrapNode(_ptr.toElement);
25132
25133 int get x() => _ptr.x;
25134
25135 int get y() => _ptr.y;
25136 }
25137 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25138 // for details. All rights reserved. Use of this source code is governed by a
25139 // BSD-style license that can be found in the LICENSE file.
25140
25141 interface MutationEvent extends Event factory MutationEventWrappingImplementatio n { 9858 interface MutationEvent extends Event factory MutationEventWrappingImplementatio n {
25142 9859
25143 MutationEvent(String type, Node relatedNode, String prevValue, 9860 MutationEvent(String type, Node relatedNode, String prevValue,
25144 String newValue, String attrName, int attrChange, [bool canBubble, 9861 String newValue, String attrName, int attrChange, [bool canBubble,
25145 bool cancelable]); 9862 bool cancelable]);
25146 9863
25147 static final int ADDITION = 2; 9864 static final int ADDITION = 2;
25148 9865
25149 static final int MODIFICATION = 1; 9866 static final int MODIFICATION = 1;
25150 9867
25151 static final int REMOVAL = 3; 9868 static final int REMOVAL = 3;
25152 9869
25153 int get attrChange(); 9870 int get attrChange();
25154 9871
25155 String get attrName(); 9872 String get attrName();
25156 9873
25157 String get newValue(); 9874 String get newValue();
25158 9875
25159 String get prevValue(); 9876 String get prevValue();
25160 9877
25161 Node get relatedNode(); 9878 Node get relatedNode();
25162 } 9879 }
25163 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 9880 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25164 // for details. All rights reserved. Use of this source code is governed by a 9881 // for details. All rights reserved. Use of this source code is governed by a
25165 // BSD-style license that can be found in the LICENSE file. 9882 // BSD-style license that can be found in the LICENSE file.
25166 9883
25167 class MutationEventWrappingImplementation extends EventWrappingImplementation im plements MutationEvent {
25168 MutationEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
25169
25170 factory MutationEventWrappingImplementation(String type, Node relatedNode,
25171 String prevValue, String newValue, String attrName, int attrChange,
25172 [bool canBubble = true, bool cancelable = true]) {
25173 final e = dom.document.createEvent("MutationEvent");
25174 e.initMutationEvent(type, canBubble, cancelable,
25175 LevelDom.unwrap(relatedNode), prevValue, newValue, attrName,
25176 attrChange);
25177 return LevelDom.wrapMutationEvent(e);
25178 }
25179
25180 int get attrChange() => _ptr.attrChange;
25181
25182 String get attrName() => _ptr.attrName;
25183
25184 String get newValue() => _ptr.newValue;
25185
25186 String get prevValue() => _ptr.prevValue;
25187
25188 Node get relatedNode() => LevelDom.wrapNode(_ptr.relatedNode);
25189 }
25190 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25191 // for details. All rights reserved. Use of this source code is governed by a
25192 // BSD-style license that can be found in the LICENSE file.
25193
25194 // TODO(jacobr): stop extending eventTarget. 9884 // TODO(jacobr): stop extending eventTarget.
25195 interface Node extends EventTarget { 9885 interface Node extends EventTarget {
25196 9886
25197 NodeList get nodes(); 9887 NodeList get nodes();
25198 9888
25199 // TODO: The type of value should be Collection<Node>. See http://b/5392897 9889 // TODO: The type of value should be Collection<Node>. See http://b/5392897
25200 void set nodes(value); 9890 void set nodes(value);
25201 9891
25202 Node get nextNode(); 9892 Node get nextNode();
25203 9893
(...skipping 24 matching lines...) Expand all
25228 // for details. All rights reserved. Use of this source code is governed by a 9918 // for details. All rights reserved. Use of this source code is governed by a
25229 // BSD-style license that can be found in the LICENSE file. 9919 // BSD-style license that can be found in the LICENSE file.
25230 9920
25231 interface NodeList extends List<Node> { 9921 interface NodeList extends List<Node> {
25232 Node get first(); 9922 Node get first();
25233 } 9923 }
25234 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 9924 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25235 // for details. All rights reserved. Use of this source code is governed by a 9925 // for details. All rights reserved. Use of this source code is governed by a
25236 // BSD-style license that can be found in the LICENSE file. 9926 // BSD-style license that can be found in the LICENSE file.
25237 9927
25238 class _ChildrenNodeList implements NodeList {
25239 // Raw node.
25240 final _node;
25241 final _childNodes;
25242
25243 _ChildrenNodeList._wrap(var node)
25244 : _childNodes = node.childNodes,
25245 _node = node;
25246
25247 List<Node> _toList() {
25248 final output = new List(_childNodes.length);
25249 for (int i = 0, len = _childNodes.length; i < len; i++) {
25250 output[i] = LevelDom.wrapNode(_childNodes[i]);
25251 }
25252 return output;
25253 }
25254
25255 Node get first() {
25256 return LevelDom.wrapNode(_node.firstChild);
25257 }
25258
25259 void forEach(void f(Node element)) {
25260 for (var node in _childNodes) {
25261 f(LevelDom.wrapNode(node));
25262 }
25263 }
25264
25265 Collection<Node> filter(bool f(Node element)) {
25266 List<Node> output = new List<Node>();
25267 forEach((Node element) {
25268 if (f(element)) {
25269 output.add(element);
25270 }
25271 });
25272 return output;
25273 }
25274
25275 bool every(bool f(Node element)) {
25276 for(Node element in this) {
25277 if (!f(element)) {
25278 return false;
25279 }
25280 };
25281 return true;
25282 }
25283
25284 bool some(bool f(Node element)) {
25285 for(Node element in this) {
25286 if (f(element)) {
25287 return true;
25288 }
25289 };
25290 return false;
25291 }
25292
25293 bool isEmpty() {
25294 return _node.hasChildNodes();
25295 }
25296
25297 int get length() {
25298 return _childNodes.length;
25299 }
25300
25301 Node operator [](int index) {
25302 return LevelDom.wrapNode(_childNodes[index]);
25303 }
25304
25305 void operator []=(int index, Node value) {
25306 _childNodes[index] = LevelDom.unwrap(value);
25307 }
25308
25309 void set length(int newLength) {
25310 throw new UnsupportedOperationException('');
25311 }
25312
25313 Node add(Node value) {
25314 _node.appendChild(LevelDom.unwrap(value));
25315 return value;
25316 }
25317
25318 Node addLast(Node value) {
25319 _node.appendChild(LevelDom.unwrap(value));
25320 return value;
25321 }
25322
25323 Iterator<Node> iterator() {
25324 return _toList().iterator();
25325 }
25326
25327 void addAll(Collection<Node> collection) {
25328 for (Node node in collection) {
25329 _node.appendChild(LevelDom.unwrap(node));
25330 }
25331 }
25332
25333 void sort(int compare(Node a, Node b)) {
25334 throw const UnsupportedOperationException('TODO(jacobr): should we impl?');
25335 }
25336
25337 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) {
25338 throw 'Not impl yet. todo(jacobr)';
25339 }
25340
25341 void setRange(int start, int length, List from, [int startFrom = 0]) {
25342 throw const NotImplementedException();
25343 }
25344
25345 void removeRange(int start, int length) {
25346 throw const NotImplementedException();
25347 }
25348
25349 void insertRange(int start, int length, [initialValue = null]) {
25350 throw const NotImplementedException();
25351 }
25352
25353 List getRange(int start, int length) {
25354 throw const NotImplementedException();
25355 }
25356
25357 int indexOf(Node element, [int start = 0]) {
25358 return _Lists.indexOf(this, element, start, this.length);
25359 }
25360
25361 int lastIndexOf(Node element, [int start = null]) {
25362 if (start === null) start = length - 1;
25363 return _Lists.lastIndexOf(this, element, start);
25364 }
25365
25366 void clear() {
25367 _node.textContent = '';
25368 }
25369
25370 Node removeLast() {
25371 final last = this.last();
25372 if (last != null) {
25373 _node.removeChild(LevelDom.unwrap(last));
25374 }
25375 return last;
25376 }
25377
25378 Node last() {
25379 return LevelDom.wrapNode(_node.lastChild);
25380 }
25381 }
25382
25383 class NodeWrappingImplementation extends EventTargetWrappingImplementation imple ments Node {
25384 NodeList _nodes;
25385
25386 NodeWrappingImplementation._wrap(ptr) : super._wrap(ptr);
25387
25388 void set nodes(Collection<Node> value) {
25389 // Copy list first since we don't want liveness during iteration.
25390 List copy = new List.from(value);
25391 nodes.clear();
25392 nodes.addAll(copy);
25393 }
25394
25395 NodeList get nodes() {
25396 if (_nodes === null) {
25397 _nodes = new _ChildrenNodeList._wrap(_ptr);
25398 }
25399 return _nodes;
25400 }
25401
25402 Node get nextNode() => LevelDom.wrapNode(_ptr.nextSibling);
25403
25404 Document get document() => LevelDom.wrapDocument(_ptr.ownerDocument);
25405
25406 Node get parent() => LevelDom.wrapNode(_ptr.parentNode);
25407
25408 Node get previousNode() => LevelDom.wrapNode(_ptr.previousSibling);
25409
25410 String get text() => _ptr.textContent;
25411
25412 void set text(String value) { _ptr.textContent = value; }
25413
25414 // New methods implemented.
25415 Node replaceWith(Node otherNode) {
25416 try {
25417 _ptr.parentNode.replaceChild(LevelDom.unwrap(otherNode), _ptr);
25418 } catch(var e) {
25419 // TODO(jacobr): what should we return on failure?
25420 }
25421 return this;
25422 }
25423
25424 Node remove() {
25425 // TODO(jacobr): should we throw an exception if parent is already null?
25426 if (_ptr.parentNode !== null) {
25427 _ptr.parentNode.removeChild(_ptr);
25428 }
25429 return this;
25430 }
25431
25432 bool contains(Node otherNode) {
25433 // TODO: Feature detect and use built in.
25434 while (otherNode != null && otherNode != this) {
25435 otherNode = otherNode.parent;
25436 }
25437 return otherNode == this;
25438 }
25439
25440 // TODO(jacobr): remove when/if List supports a method similar to
25441 // insertBefore or we switch NodeList to implement LinkedList rather than
25442 // array.
25443 Node insertBefore(Node newChild, Node refChild) {
25444 return LevelDom.wrapNode(_ptr.insertBefore(
25445 LevelDom.unwrap(newChild), LevelDom.unwrap(refChild)));
25446 }
25447
25448 Node clone(bool deep) {
25449 return LevelDom.wrapNode(_ptr.cloneNode(deep));
25450 }
25451 }
25452 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25453 // for details. All rights reserved. Use of this source code is governed by a
25454 // BSD-style license that can be found in the LICENSE file.
25455
25456 interface Notification extends EventTarget { 9928 interface Notification extends EventTarget {
25457 9929
25458 String get dir(); 9930 String get dir();
25459 9931
25460 void set dir(String value); 9932 void set dir(String value);
25461 9933
25462 EventListener get onclick(); 9934 EventListener get onclick();
25463 9935
25464 void set onclick(EventListener value); 9936 void set onclick(EventListener value);
25465 9937
(...skipping 14 matching lines...) Expand all
25480 void set replaceId(String value); 9952 void set replaceId(String value);
25481 9953
25482 void cancel(); 9954 void cancel();
25483 9955
25484 void show(); 9956 void show();
25485 } 9957 }
25486 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 9958 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25487 // for details. All rights reserved. Use of this source code is governed by a 9959 // for details. All rights reserved. Use of this source code is governed by a
25488 // BSD-style license that can be found in the LICENSE file. 9960 // BSD-style license that can be found in the LICENSE file.
25489 9961
25490 // TODO(jacobr) add custom Events class.
25491 class NotificationWrappingImplementation extends EventTargetWrappingImplementati on implements Notification {
25492 NotificationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
25493
25494 String get dir() { return _ptr.dir; }
25495
25496 void set dir(String value) { _ptr.dir = value; }
25497
25498 EventListener get onclick() { return LevelDom.wrapEventListener(_ptr.onclick); }
25499
25500 void set onclick(EventListener value) { _ptr.onclick = LevelDom.unwrap(value); }
25501
25502 EventListener get onclose() { return LevelDom.wrapEventListener(_ptr.onclose); }
25503
25504 void set onclose(EventListener value) { _ptr.onclose = LevelDom.unwrap(value); }
25505
25506 EventListener get ondisplay() { return LevelDom.wrapEventListener(_ptr.ondispl ay); }
25507
25508 void set ondisplay(EventListener value) { _ptr.ondisplay = LevelDom.unwrap(val ue); }
25509
25510 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror); }
25511
25512 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value); }
25513
25514 String get replaceId() { return _ptr.replaceId; }
25515
25516 void set replaceId(String value) { _ptr.replaceId = value; }
25517
25518 void cancel() {
25519 _ptr.cancel();
25520 return;
25521 }
25522
25523 void show() {
25524 _ptr.show();
25525 return;
25526 }
25527
25528 String get typeName() { return "Notification"; }
25529 }
25530 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25531 // for details. All rights reserved. Use of this source code is governed by a
25532 // BSD-style license that can be found in the LICENSE file.
25533
25534 interface OverflowEvent extends Event factory OverflowEventWrappingImplementatio n { 9962 interface OverflowEvent extends Event factory OverflowEventWrappingImplementatio n {
25535 9963
25536 OverflowEvent(int orient, bool horizontalOverflow, bool verticalOverflow); 9964 OverflowEvent(int orient, bool horizontalOverflow, bool verticalOverflow);
25537 9965
25538 static final int BOTH = 2; 9966 static final int BOTH = 2;
25539 9967
25540 static final int HORIZONTAL = 0; 9968 static final int HORIZONTAL = 0;
25541 9969
25542 static final int VERTICAL = 1; 9970 static final int VERTICAL = 1;
25543 9971
25544 bool get horizontalOverflow(); 9972 bool get horizontalOverflow();
25545 9973
25546 int get orient(); 9974 int get orient();
25547 9975
25548 bool get verticalOverflow(); 9976 bool get verticalOverflow();
25549 } 9977 }
25550 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 9978 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25551 // for details. All rights reserved. Use of this source code is governed by a 9979 // for details. All rights reserved. Use of this source code is governed by a
25552 // BSD-style license that can be found in the LICENSE file. 9980 // BSD-style license that can be found in the LICENSE file.
25553 9981
25554 class OverflowEventWrappingImplementation extends EventWrappingImplementation im plements OverflowEvent {
25555 OverflowEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
25556
25557 factory OverflowEventWrappingImplementation(int orient,
25558 bool horizontalOverflow, bool verticalOverflow) {
25559 final e = dom.document.createEvent("OverflowEvent");
25560 e.initOverflowEvent(orient, horizontalOverflow, verticalOverflow);
25561 return LevelDom.wrapOverflowEvent(e);
25562 }
25563
25564 bool get horizontalOverflow() => _ptr.horizontalOverflow;
25565
25566 int get orient() => _ptr.orient;
25567
25568 bool get verticalOverflow() => _ptr.verticalOverflow;
25569 }
25570 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25571 // for details. All rights reserved. Use of this source code is governed by a
25572 // BSD-style license that can be found in the LICENSE file.
25573
25574 interface PageTransitionEvent extends Event factory PageTransitionEventWrappingI mplementation { 9982 interface PageTransitionEvent extends Event factory PageTransitionEventWrappingI mplementation {
25575 9983
25576 PageTransitionEvent(String type, [bool canBubble, bool cancelable, 9984 PageTransitionEvent(String type, [bool canBubble, bool cancelable,
25577 bool persisted]); 9985 bool persisted]);
25578 9986
25579 bool get persisted(); 9987 bool get persisted();
25580 } 9988 }
25581 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 9989 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25582 // for details. All rights reserved. Use of this source code is governed by a 9990 // for details. All rights reserved. Use of this source code is governed by a
25583 // BSD-style license that can be found in the LICENSE file. 9991 // BSD-style license that can be found in the LICENSE file.
25584 9992
25585 class PageTransitionEventWrappingImplementation extends EventWrappingImplementat ion implements PageTransitionEvent {
25586 PageTransitionEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
25587
25588 factory PageTransitionEventWrappingImplementation(String type,
25589 [bool canBubble = true, bool cancelable = true,
25590 bool persisted = false]) {
25591 final e = dom.document.createEvent("PageTransitionEvent");
25592 e.initPageTransitionEvent(type, canBubble, cancelable, persisted);
25593 return LevelDom.wrapPageTransitionEvent(e);
25594 }
25595
25596 bool get persisted() => _ptr.persisted;
25597 }
25598 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25599 // for details. All rights reserved. Use of this source code is governed by a
25600 // BSD-style license that can be found in the LICENSE file.
25601
25602 interface PopStateEvent extends Event factory PopStateEventWrappingImplementatio n { 9993 interface PopStateEvent extends Event factory PopStateEventWrappingImplementatio n {
25603 9994
25604 PopStateEvent(String type, Object state, [bool canBubble, bool cancelable]); 9995 PopStateEvent(String type, Object state, [bool canBubble, bool cancelable]);
25605 9996
25606 String get state(); 9997 String get state();
25607 } 9998 }
25608 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 9999 // 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 10000 // 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. 10001 // BSD-style license that can be found in the LICENSE file.
25611 10002
25612 class PopStateEventWrappingImplementation extends EventWrappingImplementation im plements PopStateEvent {
25613 PopStateEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
25614
25615 factory PopStateEventWrappingImplementation(String type, Object state,
25616 [bool canBubble = true, bool cancelable = true]) {
25617 final e = dom.document.createEvent("PopStateEvent");
25618 e.initPopStateEvent(type, canBubble, cancelable, state);
25619 return LevelDom.wrapPopStateEvent(e);
25620 }
25621
25622 String get state() => _ptr.state;
25623 }
25624 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25625 // for details. All rights reserved. Use of this source code is governed by a
25626 // BSD-style license that can be found in the LICENSE file.
25627
25628 interface ProgressEvent extends Event factory ProgressEventWrappingImplementatio n { 10003 interface ProgressEvent extends Event factory ProgressEventWrappingImplementatio n {
25629 10004
25630 ProgressEvent(String type, int loaded, [bool canBubble, bool cancelable, 10005 ProgressEvent(String type, int loaded, [bool canBubble, bool cancelable,
25631 bool lengthComputable, int total]); 10006 bool lengthComputable, int total]);
25632 10007
25633 bool get lengthComputable(); 10008 bool get lengthComputable();
25634 10009
25635 int get loaded(); 10010 int get loaded();
25636 10011
25637 int get total(); 10012 int get total();
25638 } 10013 }
25639 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 10014 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25640 // for details. All rights reserved. Use of this source code is governed by a 10015 // for details. All rights reserved. Use of this source code is governed by a
25641 // BSD-style license that can be found in the LICENSE file. 10016 // BSD-style license that can be found in the LICENSE file.
25642 10017
25643 class ProgressEventWrappingImplementation extends EventWrappingImplementation im plements ProgressEvent {
25644 ProgressEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
25645
25646 factory ProgressEventWrappingImplementation(String type, int loaded,
25647 [bool canBubble = true, bool cancelable = true,
25648 bool lengthComputable = false, int total = 0]) {
25649 final e = dom.document.createEvent("ProgressEvent");
25650 e.initProgressEvent(type, canBubble, cancelable, lengthComputable, loaded,
25651 total);
25652 return LevelDom.wrapProgressEvent(e);
25653 }
25654
25655 bool get lengthComputable() => _ptr.lengthComputable;
25656
25657 int get loaded() => _ptr.loaded;
25658
25659 int get total() => _ptr.total;
25660 }
25661 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25662 // for details. All rights reserved. Use of this source code is governed by a
25663 // BSD-style license that can be found in the LICENSE file.
25664
25665 typedef bool RequestAnimationFrameCallback(int time); 10018 typedef bool RequestAnimationFrameCallback(int time);
25666 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 10019 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25667 // for details. All rights reserved. Use of this source code is governed by a 10020 // for details. All rights reserved. Use of this source code is governed by a
25668 // BSD-style license that can be found in the LICENSE file. 10021 // BSD-style license that can be found in the LICENSE file.
25669 10022
25670 interface SharedWorker extends AbstractWorker { 10023 interface SharedWorker extends AbstractWorker {
25671 10024
25672 MessagePort get port(); 10025 MessagePort get port();
25673 } 10026 }
25674 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 10027 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25675 // for details. All rights reserved. Use of this source code is governed by a 10028 // for details. All rights reserved. Use of this source code is governed by a
25676 // BSD-style license that can be found in the LICENSE file. 10029 // BSD-style license that can be found in the LICENSE file.
25677 10030
25678 class SharedWorkerWrappingImplementation extends AbstractWorkerWrappingImplement ation implements SharedWorker {
25679 SharedWorkerWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
25680
25681 MessagePort get port() { return LevelDom.wrapMessagePort(_ptr.port); }
25682 }
25683 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25684 // for details. All rights reserved. Use of this source code is governed by a
25685 // BSD-style license that can be found in the LICENSE file.
25686
25687 interface StorageEvent extends Event factory StorageEventWrappingImplementation { 10031 interface StorageEvent extends Event factory StorageEventWrappingImplementation {
25688 10032
25689 StorageEvent(String type, String key, String url, Storage storageArea, 10033 StorageEvent(String type, String key, String url, Storage storageArea,
25690 [bool canBubble, bool cancelable, String oldValue, String newValue]); 10034 [bool canBubble, bool cancelable, String oldValue, String newValue]);
25691 10035
25692 String get key(); 10036 String get key();
25693 10037
25694 String get newValue(); 10038 String get newValue();
25695 10039
25696 String get oldValue(); 10040 String get oldValue();
25697 10041
25698 Storage get storageArea(); 10042 Storage get storageArea();
25699 10043
25700 String get url(); 10044 String get url();
25701 } 10045 }
25702 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 10046 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25703 // for details. All rights reserved. Use of this source code is governed by a 10047 // for details. All rights reserved. Use of this source code is governed by a
25704 // BSD-style license that can be found in the LICENSE file. 10048 // BSD-style license that can be found in the LICENSE file.
25705 10049
25706 class StorageEventWrappingImplementation extends EventWrappingImplementation imp lements StorageEvent {
25707 StorageEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
25708
25709 factory StorageEventWrappingImplementation(String type, String key,
25710 String url, Storage storageArea, [bool canBubble = true,
25711 bool cancelable = true, String oldValue = null,
25712 String newValue = null]) {
25713 final e = dom.document.createEvent("StorageEvent");
25714 e.initStorageEvent(type, canBubble, cancelable, key, oldValue, newValue,
25715 url, LevelDom.unwrap(storageArea));
25716 return LevelDom.wrapStorageEvent(e);
25717 }
25718
25719 String get key() => _ptr.key;
25720
25721 String get newValue() => _ptr.newValue;
25722
25723 String get oldValue() => _ptr.oldValue;
25724
25725 Storage get storageArea() => LevelDom.wrapStorage(_ptr.storageArea);
25726
25727 String get url() => _ptr.url;
25728 }
25729 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25730 // for details. All rights reserved. Use of this source code is governed by a
25731 // BSD-style license that can be found in the LICENSE file.
25732
25733 interface Text extends CharacterData factory TextWrappingImplementation { 10050 interface Text extends CharacterData factory TextWrappingImplementation {
25734 10051
25735 Text(String content); 10052 Text(String content);
25736 10053
25737 String get wholeText(); 10054 String get wholeText();
25738 10055
25739 Text replaceWholeText([String content]); 10056 Text replaceWholeText([String content]);
25740 10057
25741 Text splitText([int offset]); 10058 Text splitText([int offset]);
25742 } 10059 }
25743 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 10060 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25744 // for details. All rights reserved. Use of this source code is governed by a 10061 // for details. All rights reserved. Use of this source code is governed by a
25745 // BSD-style license that can be found in the LICENSE file. 10062 // BSD-style license that can be found in the LICENSE file.
25746 10063
25747 interface TextEvent extends UIEvent factory TextEventWrappingImplementation { 10064 interface TextEvent extends UIEvent factory TextEventWrappingImplementation {
25748 10065
25749 TextEvent(String type, Window view, String data, [bool canBubble, 10066 TextEvent(String type, Window view, String data, [bool canBubble,
25750 bool cancelable]); 10067 bool cancelable]);
25751 10068
25752 String get data(); 10069 String get data();
25753 } 10070 }
25754 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 10071 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25755 // for details. All rights reserved. Use of this source code is governed by a 10072 // for details. All rights reserved. Use of this source code is governed by a
25756 // BSD-style license that can be found in the LICENSE file. 10073 // BSD-style license that can be found in the LICENSE file.
25757 10074
25758 class TextEventWrappingImplementation extends UIEventWrappingImplementation impl ements TextEvent {
25759 TextEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
25760
25761 factory TextEventWrappingImplementation(String type, Window view, String data,
25762 [bool canBubble = true, bool cancelable = true]) {
25763 final e = dom.document.createEvent("TextEvent");
25764 e.initTextEvent(type, canBubble, cancelable, LevelDom.unwrap(view), data);
25765 return LevelDom.wrapTextEvent(e);
25766 }
25767
25768 String get data() => _ptr.data;
25769 }
25770 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25771 // for details. All rights reserved. Use of this source code is governed by a
25772 // BSD-style license that can be found in the LICENSE file.
25773
25774 class TextWrappingImplementation extends CharacterDataWrappingImplementation imp lements Text {
25775 factory TextWrappingImplementation(String content) {
25776 return new TextWrappingImplementation._wrap(
25777 dom.document.createTextNode(content));
25778 }
25779
25780 TextWrappingImplementation._wrap(ptr) : super._wrap(ptr);
25781
25782 String get wholeText() => _ptr.wholeText;
25783
25784 Text replaceWholeText([String content = null]) {
25785 if (content === null) {
25786 return LevelDom.wrapText(_ptr.replaceWholeText());
25787 } else {
25788 return LevelDom.wrapText(_ptr.replaceWholeText(content));
25789 }
25790 }
25791
25792 Text splitText([int offset = null]) {
25793 if (offset === null) {
25794 return LevelDom.wrapText(_ptr.splitText());
25795 } else {
25796 return LevelDom.wrapText(_ptr.splitText(offset));
25797 }
25798 }
25799 }
25800 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25801 // for details. All rights reserved. Use of this source code is governed by a
25802 // BSD-style license that can be found in the LICENSE file.
25803
25804 typedef void TimeoutHandler(); 10075 typedef void TimeoutHandler();
25805 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 10076 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25806 // for details. All rights reserved. Use of this source code is governed by a 10077 // for details. All rights reserved. Use of this source code is governed by a
25807 // BSD-style license that can be found in the LICENSE file. 10078 // BSD-style license that can be found in the LICENSE file.
25808 10079
25809 interface TouchEvent extends UIEvent factory TouchEventWrappingImplementation { 10080 interface TouchEvent extends UIEvent factory TouchEventWrappingImplementation {
25810 10081
25811 TouchEvent(TouchList touches, TouchList targetTouches, 10082 TouchEvent(TouchList touches, TouchList targetTouches,
25812 TouchList changedTouches, String type, Window view, int screenX, 10083 TouchList changedTouches, String type, Window view, int screenX,
25813 int screenY, int clientX, int clientY, [bool ctrlKey, bool altKey, 10084 int screenY, int clientX, int clientY, [bool ctrlKey, bool altKey,
(...skipping 10 matching lines...) Expand all
25824 bool get shiftKey(); 10095 bool get shiftKey();
25825 10096
25826 TouchList get targetTouches(); 10097 TouchList get targetTouches();
25827 10098
25828 TouchList get touches(); 10099 TouchList get touches();
25829 } 10100 }
25830 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 10101 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25831 // for details. All rights reserved. Use of this source code is governed by a 10102 // for details. All rights reserved. Use of this source code is governed by a
25832 // BSD-style license that can be found in the LICENSE file. 10103 // BSD-style license that can be found in the LICENSE file.
25833 10104
25834 class TouchEventWrappingImplementation extends UIEventWrappingImplementation imp lements TouchEvent {
25835 TouchEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
25836
25837 TouchEvent(TouchList touches, TouchList targetTouches,
25838 TouchList changedTouches, String type, Window view, int screenX,
25839 int screenY, int clientX, int clientY, [bool ctrlKey = false,
25840 bool altKey = false, bool shiftKey = false, bool metaKey = false]) {
25841 final e = dom.document.createEvent("TouchEvent");
25842 e.initTouchEvent(LevelDom.unwrap(touches), LevelDom.unwrap(targetTouches),
25843 LevelDom.unwrap(changedTouches), type, LevelDom.unwrap(view), screenX,
25844 screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey);
25845 return LevelDom.wrapTouchEvent(e);
25846 }
25847
25848 bool get altKey() => _ptr.altKey;
25849
25850 TouchList get changedTouches() => LevelDom.wrapTouchList(_ptr.changedTouches);
25851
25852 bool get ctrlKey() => _ptr.ctrlKey;
25853
25854 bool get metaKey() => _ptr.metaKey;
25855
25856 bool get shiftKey() => _ptr.shiftKey;
25857
25858 TouchList get targetTouches() => LevelDom.wrapTouchList(_ptr.targetTouches);
25859
25860 TouchList get touches() => LevelDom.wrapTouchList(_ptr.touches);
25861 }
25862 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25863 // for details. All rights reserved. Use of this source code is governed by a
25864 // BSD-style license that can be found in the LICENSE file.
25865
25866 interface TransitionEvent extends Event factory TransitionEventWrappingImplement ation { 10105 interface TransitionEvent extends Event factory TransitionEventWrappingImplement ation {
25867 10106
25868 TransitionEvent(String type, String propertyName, double elapsedTime, 10107 TransitionEvent(String type, String propertyName, double elapsedTime,
25869 [bool canBubble, bool cancelable]); 10108 [bool canBubble, bool cancelable]);
25870 10109
25871 num get elapsedTime(); 10110 num get elapsedTime();
25872 10111
25873 String get propertyName(); 10112 String get propertyName();
25874 } 10113 }
25875 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 10114 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25876 // for details. All rights reserved. Use of this source code is governed by a 10115 // for details. All rights reserved. Use of this source code is governed by a
25877 // BSD-style license that can be found in the LICENSE file. 10116 // BSD-style license that can be found in the LICENSE file.
25878 10117
25879 class TransitionEventWrappingImplementation extends EventWrappingImplementation implements TransitionEvent {
25880 static String _name;
25881
25882 TransitionEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
25883
25884 static String get _eventName() {
25885 if (_name != null) return _name;
25886
25887 try {
25888 dom.document.createEvent("WebKitTransitionEvent");
25889 _name = "WebKitTransitionEvent";
25890 } catch (var e) {
25891 _name = "TransitionEvent";
25892 }
25893 return _name;
25894 }
25895
25896 factory TransitionEventWrappingImplementation(String type,
25897 String propertyName, double elapsedTime, [bool canBubble = true,
25898 bool cancelable = true]) {
25899 final e = dom.document.createEvent(_eventName);
25900 e.initWebKitTransitionEvent(type, canBubble, cancelable, propertyName,
25901 elapsedTime);
25902 return LevelDom.wrapTransitionEvent(e);
25903 }
25904
25905 num get elapsedTime() => _ptr.elapsedTime;
25906
25907 String get propertyName() => _ptr.propertyName;
25908 }
25909 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25910 // for details. All rights reserved. Use of this source code is governed by a
25911 // BSD-style license that can be found in the LICENSE file.
25912
25913 interface UIEvent extends Event factory UIEventWrappingImplementation { 10118 interface UIEvent extends Event factory UIEventWrappingImplementation {
25914 10119
25915 UIEvent(String type, Window view, int detail, [bool canBubble, 10120 UIEvent(String type, Window view, int detail, [bool canBubble,
25916 bool cancelable]); 10121 bool cancelable]);
25917 10122
25918 int get charCode(); 10123 int get charCode();
25919 10124
25920 int get detail(); 10125 int get detail();
25921 10126
25922 int get keyCode(); 10127 int get keyCode();
25923 10128
25924 int get layerX(); 10129 int get layerX();
25925 10130
25926 int get layerY(); 10131 int get layerY();
25927 10132
25928 int get pageX(); 10133 int get pageX();
25929 10134
25930 int get pageY(); 10135 int get pageY();
25931 10136
25932 Window get view(); 10137 Window get view();
25933 10138
25934 int get which(); 10139 int get which();
25935 } 10140 }
25936 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 10141 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25937 // for details. All rights reserved. Use of this source code is governed by a 10142 // for details. All rights reserved. Use of this source code is governed by a
25938 // BSD-style license that can be found in the LICENSE file. 10143 // BSD-style license that can be found in the LICENSE file.
25939 10144
25940 class UIEventWrappingImplementation extends EventWrappingImplementation implemen ts UIEvent {
25941 UIEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
25942
25943 factory UIEventWrappingImplementation(String type, Window view, int detail,
25944 [bool canBubble = true, bool cancelable = true]) {
25945 final e = dom.document.createEvent("UIEvent");
25946 e.initUIEvent(type, canBubble, cancelable, LevelDom.unwrap(view), detail);
25947 return LevelDom.wrapUIEvent(e);
25948 }
25949
25950 int get charCode() => _ptr.charCode;
25951
25952 int get detail() => _ptr.detail;
25953
25954 int get keyCode() => _ptr.keyCode;
25955
25956 int get layerX() => _ptr.layerX;
25957
25958 int get layerY() => _ptr.layerY;
25959
25960 int get pageX() => _ptr.pageX;
25961
25962 int get pageY() => _ptr.pageY;
25963
25964 Window get view() => LevelDom.wrapWindow(_ptr.view);
25965
25966 int get which() => _ptr.which;
25967 }
25968 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
25969 // for details. All rights reserved. Use of this source code is governed by a
25970 // BSD-style license that can be found in the LICENSE file.
25971
25972 interface WebSocket extends EventTarget { 10145 interface WebSocket extends EventTarget {
25973 10146
25974 static final int CLOSED = 3; 10147 static final int CLOSED = 3;
25975 10148
25976 static final int CLOSING = 2; 10149 static final int CLOSING = 2;
25977 10150
25978 static final int CONNECTING = 0; 10151 static final int CONNECTING = 0;
25979 10152
25980 static final int OPEN = 1; 10153 static final int OPEN = 1;
25981 10154
(...skipping 26 matching lines...) Expand all
26008 int get readyState(); 10181 int get readyState();
26009 10182
26010 void close(); 10183 void close();
26011 10184
26012 bool send(String data); 10185 bool send(String data);
26013 } 10186 }
26014 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 10187 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
26015 // for details. All rights reserved. Use of this source code is governed by a 10188 // for details. All rights reserved. Use of this source code is governed by a
26016 // BSD-style license that can be found in the LICENSE file. 10189 // BSD-style license that can be found in the LICENSE file.
26017 10190
26018 // TODO(jacobr) add events.
26019 class WebSocketWrappingImplementation extends EventTargetWrappingImplementation implements WebSocket {
26020 WebSocketWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
26021
26022 String get URL() { return _ptr.URL; }
26023
26024 String get binaryType() { return _ptr.binaryType; }
26025
26026 void set binaryType(String value) { _ptr.binaryType = value; }
26027
26028 int get bufferedAmount() { return _ptr.bufferedAmount; }
26029
26030 EventListener get onclose() { return LevelDom.wrapEventListener(_ptr.onclose); }
26031
26032 void set onclose(EventListener value) { _ptr.onclose = LevelDom.unwrap(value); }
26033
26034 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror); }
26035
26036 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value); }
26037
26038 EventListener get onmessage() { return LevelDom.wrapEventListener(_ptr.onmessa ge); }
26039
26040 void set onmessage(EventListener value) { _ptr.onmessage = LevelDom.unwrap(val ue); }
26041
26042 EventListener get onopen() { return LevelDom.wrapEventListener(_ptr.onopen); }
26043
26044 void set onopen(EventListener value) { _ptr.onopen = LevelDom.unwrap(value); }
26045
26046 String get protocol() { return _ptr.protocol; }
26047
26048 int get readyState() { return _ptr.readyState; }
26049
26050 void close() {
26051 _ptr.close();
26052 return;
26053 }
26054
26055 bool send(String data) {
26056 return _ptr.send(data);
26057 }
26058
26059 String get typeName() { return "WebSocket"; }
26060 }
26061 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
26062 // for details. All rights reserved. Use of this source code is governed by a
26063 // BSD-style license that can be found in the LICENSE file.
26064
26065 interface WheelEvent extends UIEvent factory WheelEventWrappingImplementation { 10191 interface WheelEvent extends UIEvent factory WheelEventWrappingImplementation {
26066 10192
26067 WheelEvent(int deltaX, int deltaY, Window view, int screenX, int screenY, 10193 WheelEvent(int deltaX, int deltaY, Window view, int screenX, int screenY,
26068 int clientX, int clientY, [bool ctrlKey, bool altKey, bool shiftKey, 10194 int clientX, int clientY, [bool ctrlKey, bool altKey, bool shiftKey,
26069 bool metaKey]); 10195 bool metaKey]);
26070 10196
26071 bool get altKey(); 10197 bool get altKey();
26072 10198
26073 int get clientX(); 10199 int get clientX();
26074 10200
(...skipping 20 matching lines...) Expand all
26095 int get wheelDeltaY(); 10221 int get wheelDeltaY();
26096 10222
26097 int get x(); 10223 int get x();
26098 10224
26099 int get y(); 10225 int get y();
26100 } 10226 }
26101 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 10227 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
26102 // for details. All rights reserved. Use of this source code is governed by a 10228 // for details. All rights reserved. Use of this source code is governed by a
26103 // BSD-style license that can be found in the LICENSE file. 10229 // BSD-style license that can be found in the LICENSE file.
26104 10230
26105 class WheelEventWrappingImplementation extends UIEventWrappingImplementation imp lements WheelEvent {
26106 WheelEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
26107
26108 factory WheelEventWrappingImplementation(int deltaX, int deltaY, Window view,
26109 int screenX, int screenY, int clientX, int clientY, [bool ctrlKey = false,
26110 bool altKey = false, bool shiftKey = false, bool metaKey = false]) {
26111 final e = dom.document.createEvent("WheelEvent");
26112 e.initWebKitWheelEvent(deltaX, deltaY, LevelDom.unwrap(view), screenX, scree nY,
26113 clientX, clientY, ctrlKey, altKey, shiftKey, metaKey);
26114 return LevelDom.wrapWheelEvent(e);
26115 }
26116
26117 bool get altKey() => _ptr.altKey;
26118
26119 int get clientX() => _ptr.clientX;
26120
26121 int get clientY() => _ptr.clientY;
26122
26123 bool get ctrlKey() => _ptr.ctrlKey;
26124
26125 bool get metaKey() => _ptr.metaKey;
26126
26127 int get offsetX() => _ptr.offsetX;
26128
26129 int get offsetY() => _ptr.offsetY;
26130
26131 int get screenX() => _ptr.screenX;
26132
26133 int get screenY() => _ptr.screenY;
26134
26135 bool get shiftKey() => _ptr.shiftKey;
26136
26137 int get wheelDelta() => _ptr.wheelDelta;
26138
26139 int get wheelDeltaX() => _ptr.wheelDeltaX;
26140
26141 int get wheelDeltaY() => _ptr.wheelDeltaY;
26142
26143 int get x() => _ptr.x;
26144
26145 int get y() => _ptr.y;
26146 }
26147 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
26148 // for details. All rights reserved. Use of this source code is governed by a
26149 // BSD-style license that can be found in the LICENSE file.
26150
26151 interface WindowEvents extends Events { 10231 interface WindowEvents extends Events {
26152 EventListenerList get abort(); 10232 EventListenerList get abort();
26153 EventListenerList get beforeUnload(); 10233 EventListenerList get beforeUnload();
26154 EventListenerList get blur(); 10234 EventListenerList get blur();
26155 EventListenerList get canPlay(); 10235 EventListenerList get canPlay();
26156 EventListenerList get canPlayThrough(); 10236 EventListenerList get canPlayThrough();
26157 EventListenerList get change(); 10237 EventListenerList get change();
26158 EventListenerList get click(); 10238 EventListenerList get click();
26159 EventListenerList get contextMenu(); 10239 EventListenerList get contextMenu();
26160 EventListenerList get dblClick(); 10240 EventListenerList get dblClick();
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
26460 * had been scheduled. 10540 * had been scheduled.
26461 */ 10541 */
26462 void requestLayoutFrame(TimeoutHandler callback); 10542 void requestLayoutFrame(TimeoutHandler callback);
26463 10543
26464 // Window open(String url, String target, WindowSpec features); 10544 // Window open(String url, String target, WindowSpec features);
26465 10545
26466 WindowEvents get on(); 10546 WindowEvents get on();
26467 } 10547 }
26468 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 10548 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
26469 // for details. All rights reserved. Use of this source code is governed by a 10549 // for details. All rights reserved. Use of this source code is governed by a
26470 // BSD-style license that can be found in the LICENSE file.
26471
26472 // TODO(jacobr): define a base class containing the overlap between
26473 // this class and ElementEvents.
26474 class WindowEventsImplementation extends EventsImplementation
26475 implements WindowEvents {
26476 WindowEventsImplementation._wrap(_ptr) : super._wrap(_ptr);
26477
26478 EventListenerList get abort() => _get('abort');
26479 EventListenerList get beforeUnload() => _get('beforeunload');
26480 EventListenerList get blur() => _get('blur');
26481 EventListenerList get canPlay() => _get('canplay');
26482 EventListenerList get canPlayThrough() => _get('canplaythrough');
26483 EventListenerList get change() => _get('change');
26484 EventListenerList get click() => _get('click');
26485 EventListenerList get contextMenu() => _get('contextmenu');
26486 EventListenerList get dblClick() => _get('dblclick');
26487 EventListenerList get deviceMotion() => _get('devicemotion');
26488 EventListenerList get deviceOrientation() => _get('deviceorientation');
26489 EventListenerList get drag() => _get('drag');
26490 EventListenerList get dragEnd() => _get('dragend');
26491 EventListenerList get dragEnter() => _get('dragenter');
26492 EventListenerList get dragLeave() => _get('dragleave');
26493 EventListenerList get dragOver() => _get('dragover');
26494 EventListenerList get dragStart() => _get('dragstart');
26495 EventListenerList get drop() => _get('drop');
26496 EventListenerList get durationChange() => _get('durationchange');
26497 EventListenerList get emptied() => _get('emptied');
26498 EventListenerList get ended() => _get('ended');
26499 EventListenerList get error() => _get('error');
26500 EventListenerList get focus() => _get('focus');
26501 EventListenerList get hashChange() => _get('hashchange');
26502 EventListenerList get input() => _get('input');
26503 EventListenerList get invalid() => _get('invalid');
26504 EventListenerList get keyDown() => _get('keydown');
26505 EventListenerList get keyPress() => _get('keypress');
26506 EventListenerList get keyUp() => _get('keyup');
26507 EventListenerList get load() => _get('load');
26508 EventListenerList get loadedData() => _get('loadeddata');
26509 EventListenerList get loadedMetaData() => _get('loadedmetadata');
26510 EventListenerList get loadStart() => _get('loadstart');
26511 EventListenerList get message() => _get('message');
26512 EventListenerList get mouseDown() => _get('mousedown');
26513 EventListenerList get mouseMove() => _get('mousemove');
26514 EventListenerList get mouseOut() => _get('mouseout');
26515 EventListenerList get mouseOver() => _get('mouseover');
26516 EventListenerList get mouseUp() => _get('mouseup');
26517 EventListenerList get mouseWheel() => _get('mousewheel');
26518 EventListenerList get offline() => _get('offline');
26519 EventListenerList get online() => _get('online');
26520 EventListenerList get pageHide() => _get('pagehide');
26521 EventListenerList get pageShow() => _get('pageshow');
26522 EventListenerList get pause() => _get('pause');
26523 EventListenerList get play() => _get('play');
26524 EventListenerList get playing() => _get('playing');
26525 EventListenerList get popState() => _get('popstate');
26526 EventListenerList get progress() => _get('progress');
26527 EventListenerList get rateChange() => _get('ratechange');
26528 EventListenerList get reset() => _get('reset');
26529 EventListenerList get resize() => _get('resize');
26530 EventListenerList get scroll() => _get('scroll');
26531 EventListenerList get search() => _get('search');
26532 EventListenerList get seeked() => _get('seeked');
26533 EventListenerList get seeking() => _get('seeking');
26534 EventListenerList get select() => _get('select');
26535 EventListenerList get stalled() => _get('stalled');
26536 EventListenerList get storage() => _get('storage');
26537 EventListenerList get submit() => _get('submit');
26538 EventListenerList get suspend() => _get('suspend');
26539 EventListenerList get timeUpdate() => _get('timeupdate');
26540 EventListenerList get touchCancel() => _get('touchcancel');
26541 EventListenerList get touchEnd() => _get('touchend');
26542 EventListenerList get touchMove() => _get('touchmove');
26543 EventListenerList get touchStart() => _get('touchstart');
26544 EventListenerList get unLoad() => _get('unload');
26545 EventListenerList get volumeChange() => _get('volumechange');
26546 EventListenerList get waiting() => _get('waiting');
26547 EventListenerList get animationEnd() => _get('webkitAnimationEnd');
26548 EventListenerList get animationIteration() => _get('webkitAnimationIteration') ;
26549 EventListenerList get animationStart() => _get('webkitAnimationStart');
26550 EventListenerList get transitionEnd() => _get('webkitTransitionEnd');
26551 EventListenerList get contentLoaded() => _get('DOMContentLoaded');
26552 }
26553
26554 class WindowWrappingImplementation extends EventTargetWrappingImplementation imp lements Window {
26555 WindowWrappingImplementation._wrap(ptr) : super._wrap(ptr);
26556
26557 DOMApplicationCache get applicationCache() => LevelDom.wrapDOMApplicationCache (_ptr.applicationCache);
26558
26559 Navigator get clientInformation() => LevelDom.wrapNavigator(_ptr.clientInforma tion);
26560
26561 void set clientInformation(Navigator value) { _ptr.clientInformation = LevelDo m.unwrap(value); }
26562
26563 bool get closed() => _ptr.closed;
26564
26565 Console get console() => LevelDom.wrapConsole(_ptr.console);
26566
26567 void set console(Console value) { _ptr.console = LevelDom.unwrap(value); }
26568
26569 Crypto get crypto() => LevelDom.wrapCrypto(_ptr.crypto);
26570
26571 String get defaultStatus() => _ptr.defaultStatus;
26572
26573 void set defaultStatus(String value) { _ptr.defaultStatus = value; }
26574
26575 num get devicePixelRatio() => _ptr.devicePixelRatio;
26576
26577 void set devicePixelRatio(num value) { _ptr.devicePixelRatio = value; }
26578
26579 Document get document() => LevelDom.wrapDocument(_ptr.document);
26580
26581 Event get event() => LevelDom.wrapEvent(_ptr.event);
26582
26583 void set event(Event value) { _ptr.event = LevelDom.unwrap(value); }
26584
26585 Element get frameElement() => LevelDom.wrapElement(_ptr.frameElement);
26586
26587 Window get frames() => LevelDom.wrapWindow(_ptr.frames);
26588
26589 void set frames(Window value) { _ptr.frames = LevelDom.unwrap(value); }
26590
26591 History get history() => LevelDom.wrapHistory(_ptr.history);
26592
26593 void set history(History value) { _ptr.history = LevelDom.unwrap(value); }
26594
26595 int get innerHeight() => _ptr.innerHeight;
26596
26597 void set innerHeight(int value) { _ptr.innerHeight = value; }
26598
26599 int get innerWidth() => _ptr.innerWidth;
26600
26601 void set innerWidth(int value) { _ptr.innerWidth = value; }
26602
26603 int get length() => _ptr.length;
26604
26605 void set length(int value) { _ptr.length = value; }
26606
26607 Storage get localStorage() => LevelDom.wrapStorage(_ptr.localStorage);
26608
26609 Location get location() => LevelDom.wrapLocation(_ptr.location);
26610
26611 void set location(Location value) { _ptr.location = LevelDom.unwrap(value); }
26612
26613 BarInfo get locationbar() => LevelDom.wrapBarInfo(_ptr.locationbar);
26614
26615 void set locationbar(BarInfo value) { _ptr.locationbar = LevelDom.unwrap(value ); }
26616
26617 BarInfo get menubar() => LevelDom.wrapBarInfo(_ptr.menubar);
26618
26619 void set menubar(BarInfo value) { _ptr.menubar = LevelDom.unwrap(value); }
26620
26621 String get name() => _ptr.name;
26622
26623 void set name(String value) { _ptr.name = value; }
26624
26625 Navigator get navigator() => LevelDom.wrapNavigator(_ptr.navigator);
26626
26627 void set navigator(Navigator value) { _ptr.navigator = LevelDom.unwrap(value); }
26628
26629 bool get offscreenBuffering() => _ptr.offscreenBuffering;
26630
26631 void set offscreenBuffering(bool value) { _ptr.offscreenBuffering = value; }
26632
26633 EventListener get onabort() => LevelDom.wrapEventListener(_ptr.onabort);
26634
26635 void set onabort(EventListener value) { _ptr.onabort = LevelDom.unwrap(value); }
26636
26637 EventListener get onbeforeunload() => LevelDom.wrapEventListener(_ptr.onbefore unload);
26638
26639 void set onbeforeunload(EventListener value) { _ptr.onbeforeunload = LevelDom. unwrap(value); }
26640
26641 EventListener get onblur() => LevelDom.wrapEventListener(_ptr.onblur);
26642
26643 void set onblur(EventListener value) { _ptr.onblur = LevelDom.unwrap(value); }
26644
26645 EventListener get oncanplay() => LevelDom.wrapEventListener(_ptr.oncanplay);
26646
26647 void set oncanplay(EventListener value) { _ptr.oncanplay = LevelDom.unwrap(val ue); }
26648
26649 EventListener get oncanplaythrough() => LevelDom.wrapEventListener(_ptr.oncanp laythrough);
26650
26651 void set oncanplaythrough(EventListener value) { _ptr.oncanplaythrough = Level Dom.unwrap(value); }
26652
26653 EventListener get onchange() => LevelDom.wrapEventListener(_ptr.onchange);
26654
26655 void set onchange(EventListener value) { _ptr.onchange = LevelDom.unwrap(value ); }
26656
26657 EventListener get onclick() => LevelDom.wrapEventListener(_ptr.onclick);
26658
26659 void set onclick(EventListener value) { _ptr.onclick = LevelDom.unwrap(value); }
26660
26661 EventListener get oncontextmenu() => LevelDom.wrapEventListener(_ptr.oncontext menu);
26662
26663 void set oncontextmenu(EventListener value) { _ptr.oncontextmenu = LevelDom.un wrap(value); }
26664
26665 EventListener get ondblclick() => LevelDom.wrapEventListener(_ptr.ondblclick);
26666
26667 void set ondblclick(EventListener value) { _ptr.ondblclick = LevelDom.unwrap(v alue); }
26668
26669 EventListener get ondevicemotion() => LevelDom.wrapEventListener(_ptr.ondevice motion);
26670
26671 void set ondevicemotion(EventListener value) { _ptr.ondevicemotion = LevelDom. unwrap(value); }
26672
26673 EventListener get ondeviceorientation() => LevelDom.wrapEventListener(_ptr.ond eviceorientation);
26674
26675 void set ondeviceorientation(EventListener value) { _ptr.ondeviceorientation = LevelDom.unwrap(value); }
26676
26677 EventListener get ondrag() => LevelDom.wrapEventListener(_ptr.ondrag);
26678
26679 void set ondrag(EventListener value) { _ptr.ondrag = LevelDom.unwrap(value); }
26680
26681 EventListener get ondragend() => LevelDom.wrapEventListener(_ptr.ondragend);
26682
26683 void set ondragend(EventListener value) { _ptr.ondragend = LevelDom.unwrap(val ue); }
26684
26685 EventListener get ondragenter() => LevelDom.wrapEventListener(_ptr.ondragenter );
26686
26687 void set ondragenter(EventListener value) { _ptr.ondragenter = LevelDom.unwrap (value); }
26688
26689 EventListener get ondragleave() => LevelDom.wrapEventListener(_ptr.ondragleave );
26690
26691 void set ondragleave(EventListener value) { _ptr.ondragleave = LevelDom.unwrap (value); }
26692
26693 EventListener get ondragover() => LevelDom.wrapEventListener(_ptr.ondragover);
26694
26695 void set ondragover(EventListener value) { _ptr.ondragover = LevelDom.unwrap(v alue); }
26696
26697 EventListener get ondragstart() => LevelDom.wrapEventListener(_ptr.ondragstart );
26698
26699 void set ondragstart(EventListener value) { _ptr.ondragstart = LevelDom.unwrap (value); }
26700
26701 EventListener get ondrop() => LevelDom.wrapEventListener(_ptr.ondrop);
26702
26703 void set ondrop(EventListener value) { _ptr.ondrop = LevelDom.unwrap(value); }
26704
26705 EventListener get ondurationchange() => LevelDom.wrapEventListener(_ptr.ondura tionchange);
26706
26707 void set ondurationchange(EventListener value) { _ptr.ondurationchange = Level Dom.unwrap(value); }
26708
26709 EventListener get onemptied() => LevelDom.wrapEventListener(_ptr.onemptied);
26710
26711 void set onemptied(EventListener value) { _ptr.onemptied = LevelDom.unwrap(val ue); }
26712
26713 EventListener get onended() => LevelDom.wrapEventListener(_ptr.onended);
26714
26715 void set onended(EventListener value) { _ptr.onended = LevelDom.unwrap(value); }
26716
26717 EventListener get onerror() => LevelDom.wrapEventListener(_ptr.onerror);
26718
26719 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value); }
26720
26721 EventListener get onfocus() => LevelDom.wrapEventListener(_ptr.onfocus);
26722
26723 void set onfocus(EventListener value) { _ptr.onfocus = LevelDom.unwrap(value); }
26724
26725 EventListener get onhashchange() => LevelDom.wrapEventListener(_ptr.onhashchan ge);
26726
26727 void set onhashchange(EventListener value) { _ptr.onhashchange = LevelDom.unwr ap(value); }
26728
26729 EventListener get oninput() => LevelDom.wrapEventListener(_ptr.oninput);
26730
26731 void set oninput(EventListener value) { _ptr.oninput = LevelDom.unwrap(value); }
26732
26733 EventListener get oninvalid() => LevelDom.wrapEventListener(_ptr.oninvalid);
26734
26735 void set oninvalid(EventListener value) { _ptr.oninvalid = LevelDom.unwrap(val ue); }
26736
26737 EventListener get onkeydown() => LevelDom.wrapEventListener(_ptr.onkeydown);
26738
26739 void set onkeydown(EventListener value) { _ptr.onkeydown = LevelDom.unwrap(val ue); }
26740
26741 EventListener get onkeypress() => LevelDom.wrapEventListener(_ptr.onkeypress);
26742
26743 void set onkeypress(EventListener value) { _ptr.onkeypress = LevelDom.unwrap(v alue); }
26744
26745 EventListener get onkeyup() => LevelDom.wrapEventListener(_ptr.onkeyup);
26746
26747 void set onkeyup(EventListener value) { _ptr.onkeyup = LevelDom.unwrap(value); }
26748
26749 EventListener get onload() => LevelDom.wrapEventListener(_ptr.onload);
26750
26751 void set onload(EventListener value) { _ptr.onload = LevelDom.unwrap(value); }
26752
26753 EventListener get onloadeddata() => LevelDom.wrapEventListener(_ptr.onloadedda ta);
26754
26755 void set onloadeddata(EventListener value) { _ptr.onloadeddata = LevelDom.unwr ap(value); }
26756
26757 EventListener get onloadedmetadata() => LevelDom.wrapEventListener(_ptr.onload edmetadata);
26758
26759 void set onloadedmetadata(EventListener value) { _ptr.onloadedmetadata = Level Dom.unwrap(value); }
26760
26761 EventListener get onloadstart() => LevelDom.wrapEventListener(_ptr.onloadstart );
26762
26763 void set onloadstart(EventListener value) { _ptr.onloadstart = LevelDom.unwrap (value); }
26764
26765 EventListener get onmessage() => LevelDom.wrapEventListener(_ptr.onmessage);
26766
26767 void set onmessage(EventListener value) { _ptr.onmessage = LevelDom.unwrap(val ue); }
26768
26769 EventListener get onmousedown() => LevelDom.wrapEventListener(_ptr.onmousedown );
26770
26771 void set onmousedown(EventListener value) { _ptr.onmousedown = LevelDom.unwrap (value); }
26772
26773 EventListener get onmousemove() => LevelDom.wrapEventListener(_ptr.onmousemove );
26774
26775 void set onmousemove(EventListener value) { _ptr.onmousemove = LevelDom.unwrap (value); }
26776
26777 EventListener get onmouseout() => LevelDom.wrapEventListener(_ptr.onmouseout);
26778
26779 void set onmouseout(EventListener value) { _ptr.onmouseout = LevelDom.unwrap(v alue); }
26780
26781 EventListener get onmouseover() => LevelDom.wrapEventListener(_ptr.onmouseover );
26782
26783 void set onmouseover(EventListener value) { _ptr.onmouseover = LevelDom.unwrap (value); }
26784
26785 EventListener get onmouseup() => LevelDom.wrapEventListener(_ptr.onmouseup);
26786
26787 void set onmouseup(EventListener value) { _ptr.onmouseup = LevelDom.unwrap(val ue); }
26788
26789 EventListener get onmousewheel() => LevelDom.wrapEventListener(_ptr.onmousewhe el);
26790
26791 void set onmousewheel(EventListener value) { _ptr.onmousewheel = LevelDom.unwr ap(value); }
26792
26793 EventListener get onoffline() => LevelDom.wrapEventListener(_ptr.onoffline);
26794
26795 void set onoffline(EventListener value) { _ptr.onoffline = LevelDom.unwrap(val ue); }
26796
26797 EventListener get ononline() => LevelDom.wrapEventListener(_ptr.ononline);
26798
26799 void set ononline(EventListener value) { _ptr.ononline = LevelDom.unwrap(value ); }
26800
26801 EventListener get onpagehide() => LevelDom.wrapEventListener(_ptr.onpagehide);
26802
26803 void set onpagehide(EventListener value) { _ptr.onpagehide = LevelDom.unwrap(v alue); }
26804
26805 EventListener get onpageshow() => LevelDom.wrapEventListener(_ptr.onpageshow);
26806
26807 void set onpageshow(EventListener value) { _ptr.onpageshow = LevelDom.unwrap(v alue); }
26808
26809 EventListener get onpause() => LevelDom.wrapEventListener(_ptr.onpause);
26810
26811 void set onpause(EventListener value) { _ptr.onpause = LevelDom.unwrap(value); }
26812
26813 EventListener get onplay() => LevelDom.wrapEventListener(_ptr.onplay);
26814
26815 void set onplay(EventListener value) { _ptr.onplay = LevelDom.unwrap(value); }
26816
26817 EventListener get onplaying() => LevelDom.wrapEventListener(_ptr.onplaying);
26818
26819 void set onplaying(EventListener value) { _ptr.onplaying = LevelDom.unwrap(val ue); }
26820
26821 EventListener get onpopstate() => LevelDom.wrapEventListener(_ptr.onpopstate);
26822
26823 void set onpopstate(EventListener value) { _ptr.onpopstate = LevelDom.unwrap(v alue); }
26824
26825 EventListener get onprogress() => LevelDom.wrapEventListener(_ptr.onprogress);
26826
26827 void set onprogress(EventListener value) { _ptr.onprogress = LevelDom.unwrap(v alue); }
26828
26829 EventListener get onratechange() => LevelDom.wrapEventListener(_ptr.onratechan ge);
26830
26831 void set onratechange(EventListener value) { _ptr.onratechange = LevelDom.unwr ap(value); }
26832
26833 EventListener get onreset() => LevelDom.wrapEventListener(_ptr.onreset);
26834
26835 void set onreset(EventListener value) { _ptr.onreset = LevelDom.unwrap(value); }
26836
26837 EventListener get onresize() => LevelDom.wrapEventListener(_ptr.onresize);
26838
26839 void set onresize(EventListener value) { _ptr.onresize = LevelDom.unwrap(value ); }
26840
26841 EventListener get onscroll() => LevelDom.wrapEventListener(_ptr.onscroll);
26842
26843 void set onscroll(EventListener value) { _ptr.onscroll = LevelDom.unwrap(value ); }
26844
26845 EventListener get onsearch() => LevelDom.wrapEventListener(_ptr.onsearch);
26846
26847 void set onsearch(EventListener value) { _ptr.onsearch = LevelDom.unwrap(value ); }
26848
26849 EventListener get onseeked() => LevelDom.wrapEventListener(_ptr.onseeked);
26850
26851 void set onseeked(EventListener value) { _ptr.onseeked = LevelDom.unwrap(value ); }
26852
26853 EventListener get onseeking() => LevelDom.wrapEventListener(_ptr.onseeking);
26854
26855 void set onseeking(EventListener value) { _ptr.onseeking = LevelDom.unwrap(val ue); }
26856
26857 EventListener get onselect() => LevelDom.wrapEventListener(_ptr.onselect);
26858
26859 void set onselect(EventListener value) { _ptr.onselect = LevelDom.unwrap(value ); }
26860
26861 EventListener get onstalled() => LevelDom.wrapEventListener(_ptr.onstalled);
26862
26863 void set onstalled(EventListener value) { _ptr.onstalled = LevelDom.unwrap(val ue); }
26864
26865 EventListener get onstorage() => LevelDom.wrapEventListener(_ptr.onstorage);
26866
26867 void set onstorage(EventListener value) { _ptr.onstorage = LevelDom.unwrap(val ue); }
26868
26869 EventListener get onsubmit() => LevelDom.wrapEventListener(_ptr.onsubmit);
26870
26871 void set onsubmit(EventListener value) { _ptr.onsubmit = LevelDom.unwrap(value ); }
26872
26873 EventListener get onsuspend() => LevelDom.wrapEventListener(_ptr.onsuspend);
26874
26875 void set onsuspend(EventListener value) { _ptr.onsuspend = LevelDom.unwrap(val ue); }
26876
26877 EventListener get ontimeupdate() => LevelDom.wrapEventListener(_ptr.ontimeupda te);
26878
26879 void set ontimeupdate(EventListener value) { _ptr.ontimeupdate = LevelDom.unwr ap(value); }
26880
26881 EventListener get ontouchcancel() => LevelDom.wrapEventListener(_ptr.ontouchca ncel);
26882
26883 void set ontouchcancel(EventListener value) { _ptr.ontouchcancel = LevelDom.un wrap(value); }
26884
26885 EventListener get ontouchend() => LevelDom.wrapEventListener(_ptr.ontouchend);
26886
26887 void set ontouchend(EventListener value) { _ptr.ontouchend = LevelDom.unwrap(v alue); }
26888
26889 EventListener get ontouchmove() => LevelDom.wrapEventListener(_ptr.ontouchmove );
26890
26891 void set ontouchmove(EventListener value) { _ptr.ontouchmove = LevelDom.unwrap (value); }
26892
26893 EventListener get ontouchstart() => LevelDom.wrapEventListener(_ptr.ontouchsta rt);
26894
26895 void set ontouchstart(EventListener value) { _ptr.ontouchstart = LevelDom.unwr ap(value); }
26896
26897 EventListener get onunload() => LevelDom.wrapEventListener(_ptr.onunload);
26898
26899 void set onunload(EventListener value) { _ptr.onunload = LevelDom.unwrap(value ); }
26900
26901 EventListener get onvolumechange() => LevelDom.wrapEventListener(_ptr.onvolume change);
26902
26903 void set onvolumechange(EventListener value) { _ptr.onvolumechange = LevelDom. unwrap(value); }
26904
26905 EventListener get onwaiting() => LevelDom.wrapEventListener(_ptr.onwaiting);
26906
26907 void set onwaiting(EventListener value) { _ptr.onwaiting = LevelDom.unwrap(val ue); }
26908
26909 EventListener get onwebkitanimationend() => LevelDom.wrapEventListener(_ptr.on webkitanimationend);
26910
26911 void set onwebkitanimationend(EventListener value) { _ptr.onwebkitanimationend = LevelDom.unwrap(value); }
26912
26913 EventListener get onwebkitanimationiteration() => LevelDom.wrapEventListener(_ ptr.onwebkitanimationiteration);
26914
26915 void set onwebkitanimationiteration(EventListener value) { _ptr.onwebkitanimat ioniteration = LevelDom.unwrap(value); }
26916
26917 EventListener get onwebkitanimationstart() => LevelDom.wrapEventListener(_ptr. onwebkitanimationstart);
26918
26919 void set onwebkitanimationstart(EventListener value) { _ptr.onwebkitanimations tart = LevelDom.unwrap(value); }
26920
26921 EventListener get onwebkittransitionend() => LevelDom.wrapEventListener(_ptr.o nwebkittransitionend);
26922
26923 void set onwebkittransitionend(EventListener value) { _ptr.onwebkittransitione nd = LevelDom.unwrap(value); }
26924
26925 Window get opener() => LevelDom.wrapWindow(_ptr.opener);
26926
26927 void set opener(Window value) { _ptr.opener = LevelDom.unwrap(value); }
26928
26929 int get outerHeight() => _ptr.outerHeight;
26930
26931 void set outerHeight(int value) { _ptr.outerHeight = value; }
26932
26933 int get outerWidth() => _ptr.outerWidth;
26934
26935 void set outerWidth(int value) { _ptr.outerWidth = value; }
26936
26937 int get pageXOffset() => _ptr.pageXOffset;
26938
26939 int get pageYOffset() => _ptr.pageYOffset;
26940
26941 Window get parent() => LevelDom.wrapWindow(_ptr.parent);
26942
26943 void set parent(Window value) { _ptr.parent = LevelDom.unwrap(value); }
26944
26945 BarInfo get personalbar() => LevelDom.wrapBarInfo(_ptr.personalbar);
26946
26947 void set personalbar(BarInfo value) { _ptr.personalbar = LevelDom.unwrap(value ); }
26948
26949 Screen get screen() => LevelDom.wrapScreen(_ptr.screen);
26950
26951 void set screen(Screen value) { _ptr.screen = LevelDom.unwrap(value); }
26952
26953 int get screenLeft() => _ptr.screenLeft;
26954
26955 void set screenLeft(int value) { _ptr.screenLeft = value; }
26956
26957 int get screenTop() => _ptr.screenTop;
26958
26959 void set screenTop(int value) { _ptr.screenTop = value; }
26960
26961 int get screenX() => _ptr.screenX;
26962
26963 void set screenX(int value) { _ptr.screenX = value; }
26964
26965 int get screenY() => _ptr.screenY;
26966
26967 void set screenY(int value) { _ptr.screenY = value; }
26968
26969 int get scrollX() => _ptr.scrollX;
26970
26971 void set scrollX(int value) { _ptr.scrollX = value; }
26972
26973 int get scrollY() => _ptr.scrollY;
26974
26975 void set scrollY(int value) { _ptr.scrollY = value; }
26976
26977 BarInfo get scrollbars() => LevelDom.wrapBarInfo(_ptr.scrollbars);
26978
26979 void set scrollbars(BarInfo value) { _ptr.scrollbars = LevelDom.unwrap(value); }
26980
26981 Window get self() => LevelDom.wrapWindow(_ptr.self);
26982
26983 void set self(Window value) { _ptr.self = LevelDom.unwrap(value); }
26984
26985 Storage get sessionStorage() => LevelDom.wrapStorage(_ptr.sessionStorage);
26986
26987 String get status() => _ptr.status;
26988
26989 void set status(String value) { _ptr.status = value; }
26990
26991 BarInfo get statusbar() => LevelDom.wrapBarInfo(_ptr.statusbar);
26992
26993 void set statusbar(BarInfo value) { _ptr.statusbar = LevelDom.unwrap(value); }
26994
26995 StyleMedia get styleMedia() => LevelDom.wrapStyleMedia(_ptr.styleMedia);
26996
26997 BarInfo get toolbar() => LevelDom.wrapBarInfo(_ptr.toolbar);
26998
26999 void set toolbar(BarInfo value) { _ptr.toolbar = LevelDom.unwrap(value); }
27000
27001 Window get top() => LevelDom.wrapWindow(_ptr.top);
27002
27003 void set top(Window value) { _ptr.top = LevelDom.unwrap(value); }
27004
27005 NotificationCenter get webkitNotifications() => LevelDom.wrapNotificationCente r(_ptr.webkitNotifications);
27006
27007 void alert([String message = null]) {
27008 if (message === null) {
27009 _ptr.alert();
27010 } else {
27011 _ptr.alert(message);
27012 }
27013 }
27014
27015 String atob([String string = null]) {
27016 if (string === null) {
27017 return _ptr.atob();
27018 } else {
27019 return _ptr.atob(string);
27020 }
27021 }
27022
27023 void blur() {
27024 _ptr.blur();
27025 }
27026
27027 String btoa([String string = null]) {
27028 if (string === null) {
27029 return _ptr.btoa();
27030 } else {
27031 return _ptr.btoa(string);
27032 }
27033 }
27034
27035 void captureEvents() {
27036 _ptr.captureEvents();
27037 }
27038
27039 void clearInterval([int handle = null]) {
27040 if (handle === null) {
27041 _ptr.clearInterval();
27042 } else {
27043 _ptr.clearInterval(handle);
27044 }
27045 }
27046
27047 void clearTimeout([int handle = null]) {
27048 if (handle === null) {
27049 _ptr.clearTimeout();
27050 } else {
27051 _ptr.clearTimeout(handle);
27052 }
27053 }
27054
27055 void close() {
27056 _ptr.close();
27057 }
27058
27059 bool confirm([String message = null]) {
27060 if (message === null) {
27061 return _ptr.confirm();
27062 } else {
27063 return _ptr.confirm(message);
27064 }
27065 }
27066
27067 FileReader createFileReader() =>
27068 LevelDom.wrapFileReader(_ptr.createFileReader());
27069
27070 CSSMatrix createCSSMatrix([String cssValue = null]) {
27071 if (cssValue === null) {
27072 return LevelDom.wrapCSSMatrix(_ptr.createWebKitCSSMatrix());
27073 } else {
27074 return LevelDom.wrapCSSMatrix(_ptr.createWebKitCSSMatrix(cssValue));
27075 }
27076 }
27077
27078 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]) {
27079 if (string === null) {
27080 if (caseSensitive === null) {
27081 if (backwards === null) {
27082 if (wrap === null) {
27083 if (wholeWord === null) {
27084 if (searchInFrames === null) {
27085 if (showDialog === null) {
27086 return _ptr.find();
27087 }
27088 }
27089 }
27090 }
27091 }
27092 }
27093 } else {
27094 if (caseSensitive === null) {
27095 if (backwards === null) {
27096 if (wrap === null) {
27097 if (wholeWord === null) {
27098 if (searchInFrames === null) {
27099 if (showDialog === null) {
27100 return _ptr.find(string);
27101 }
27102 }
27103 }
27104 }
27105 }
27106 } else {
27107 if (backwards === null) {
27108 if (wrap === null) {
27109 if (wholeWord === null) {
27110 if (searchInFrames === null) {
27111 if (showDialog === null) {
27112 return _ptr.find(string, caseSensitive);
27113 }
27114 }
27115 }
27116 }
27117 } else {
27118 if (wrap === null) {
27119 if (wholeWord === null) {
27120 if (searchInFrames === null) {
27121 if (showDialog === null) {
27122 return _ptr.find(string, caseSensitive, backwards);
27123 }
27124 }
27125 }
27126 } else {
27127 if (wholeWord === null) {
27128 if (searchInFrames === null) {
27129 if (showDialog === null) {
27130 return _ptr.find(string, caseSensitive, backwards, wrap);
27131 }
27132 }
27133 } else {
27134 if (searchInFrames === null) {
27135 if (showDialog === null) {
27136 return _ptr.find(string, caseSensitive, backwards, wrap, whole Word);
27137 }
27138 } else {
27139 if (showDialog === null) {
27140 return _ptr.find(string, caseSensitive, backwards, wrap, whole Word, searchInFrames);
27141 } else {
27142 return _ptr.find(string, caseSensitive, backwards, wrap, whole Word, searchInFrames, showDialog);
27143 }
27144 }
27145 }
27146 }
27147 }
27148 }
27149 }
27150 throw "Incorrect number or type of arguments";
27151 }
27152
27153 void focus() {
27154 _ptr.focus();
27155 }
27156
27157 DOMSelection getSelection() =>
27158 LevelDom.wrapDOMSelection(_ptr.getSelection());
27159
27160 MediaQueryList matchMedia(String query) {
27161 return LevelDom.wrapMediaQueryList(_ptr.matchMedia(query));
27162 }
27163
27164 void moveBy(num x, num y) {
27165 _ptr.moveBy(x, y);
27166 }
27167
27168 void moveTo(num x, num y) {
27169 _ptr.moveTo(x, y);
27170 }
27171
27172 Window open(String url, String target, [String features = null]) {
27173 if (features === null) {
27174 return LevelDom.wrapWindow(_ptr.open(url, target));
27175 } else {
27176 return LevelDom.wrapWindow(_ptr.open(url, target, features));
27177 }
27178 }
27179
27180 // TODO(jacobr): cleanup.
27181 void postMessage(String message, [var messagePort = null, var targetOrigin = n ull]) {
27182 if (targetOrigin === null) {
27183 if (messagePort === null) {
27184 _ptr.postMessage(message);
27185 return;
27186 } else {
27187 // messagePort is really the targetOrigin string.
27188 _ptr.postMessage(message, messagePort);
27189 return;
27190 }
27191 } else {
27192 _ptr.postMessage(message, LevelDom.unwrap(messagePort), targetOrigin);
27193 return;
27194 }
27195 throw "Incorrect number or type of arguments";
27196 }
27197
27198 void print() {
27199 _ptr.print();
27200 }
27201
27202 String prompt([String message = null, String defaultValue = null]) {
27203 if (message === null) {
27204 if (defaultValue === null) {
27205 return _ptr.prompt();
27206 }
27207 } else {
27208 if (defaultValue === null) {
27209 return _ptr.prompt(message);
27210 } else {
27211 return _ptr.prompt(message, defaultValue);
27212 }
27213 }
27214 throw "Incorrect number or type of arguments";
27215 }
27216
27217 void releaseEvents() {
27218 _ptr.releaseEvents();
27219 }
27220
27221 void resizeBy(num x, num y) {
27222 _ptr.resizeBy(x, y);
27223 }
27224
27225 void resizeTo(num width, num height) {
27226 _ptr.resizeTo(width, height);
27227 }
27228
27229 void scroll(int x, int y) {
27230 _ptr.scroll(x, y);
27231 }
27232
27233 void scrollBy(int x, int y) {
27234 _ptr.scrollBy(x, y);
27235 }
27236
27237 void scrollTo(int x, int y) {
27238 _ptr.scrollTo(x, y);
27239 }
27240
27241 int setInterval(TimeoutHandler handler, int timeout) =>
27242 _ptr.setInterval(handler, timeout);
27243
27244 int setTimeout(TimeoutHandler handler, int timeout) =>
27245 _ptr.setTimeout(handler, timeout);
27246
27247 Object showModalDialog(String url, [Object dialogArgs = null, String featureAr gs = null]) {
27248 if (dialogArgs === null) {
27249 if (featureArgs === null) {
27250 return _ptr.showModalDialog(url);
27251 }
27252 } else {
27253 if (featureArgs === null) {
27254 return _ptr.showModalDialog(url, LevelDom.unwrap(dialogArgs));
27255 } else {
27256 return _ptr.showModalDialog(url, LevelDom.unwrap(dialogArgs),
27257 featureArgs);
27258 }
27259 }
27260 throw "Incorrect number or type of arguments";
27261 }
27262
27263 void stop() {
27264 _ptr.stop();
27265 }
27266
27267 void webkitCancelRequestAnimationFrame(int id) {
27268 _ptr.webkitCancelRequestAnimationFrame(id);
27269 }
27270
27271 Point webkitConvertPointFromNodeToPage([Node node = null, Point p = null]) {
27272 if (node === null) {
27273 if (p === null) {
27274 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromNodeToPage());
27275 }
27276 } else {
27277 if (p === null) {
27278 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromNodeToPage(LevelDom .unwrap(node)));
27279 } else {
27280 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromNodeToPage(LevelDom .unwrap(node), LevelDom.unwrap(p)));
27281 }
27282 }
27283 throw "Incorrect number or type of arguments";
27284 }
27285
27286 Point webkitConvertPointFromPageToNode([Node node = null, Point p = null]) {
27287 if (node === null) {
27288 if (p === null) {
27289 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromPageToNode());
27290 }
27291 } else {
27292 if (p === null) {
27293 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromPageToNode(LevelDom .unwrap(node)));
27294 } else {
27295 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromPageToNode(LevelDom .unwrap(node), LevelDom.unwrap(p)));
27296 }
27297 }
27298 throw "Incorrect number or type of arguments";
27299 }
27300
27301 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, [Eleme nt element = null]) {
27302 if (element === null) {
27303 return _ptr.webkitRequestAnimationFrame(callback);
27304 } else {
27305 return _ptr.webkitRequestAnimationFrame(
27306 callback, LevelDom.unwrap(element));
27307 }
27308 }
27309
27310 void requestLayoutFrame(TimeoutHandler callback) {
27311 _addMeasurementFrameCallback(callback);
27312 }
27313
27314 WindowEvents get on() {
27315 if (_on === null) {
27316 _on = new WindowEventsImplementation._wrap(_ptr);
27317 }
27318 return _on;
27319 }
27320 }
27321 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
27322 // for details. All rights reserved. Use of this source code is governed by a
27323 // BSD-style license that can be found in the LICENSE file. 10550 // BSD-style license that can be found in the LICENSE file.
27324 10551
27325 interface WorkerEvents extends AbstractWorkerEvents { 10552 interface WorkerEvents extends AbstractWorkerEvents {
27326 EventListenerList get message(); 10553 EventListenerList get message();
27327 } 10554 }
27328 10555
27329 interface Worker extends AbstractWorker { 10556 interface Worker extends AbstractWorker {
27330 10557
27331 void postMessage(String message, [MessagePort messagePort]); 10558 void postMessage(String message, [MessagePort messagePort]);
27332 10559
27333 void terminate(); 10560 void terminate();
27334 10561
27335 WorkerEvents get on(); 10562 WorkerEvents get on();
27336 } 10563 }
27337 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 10564 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
27338 // for details. All rights reserved. Use of this source code is governed by a 10565 // for details. All rights reserved. Use of this source code is governed by a
27339 // BSD-style license that can be found in the LICENSE file. 10566 // BSD-style license that can be found in the LICENSE file.
27340 10567
27341 class WorkerEventsImplementation extends AbstractWorkerEventsImplementation
27342 implements WorkerEvents {
27343 WorkerEventsImplementation._wrap(_ptr) : super._wrap(_ptr);
27344
27345 EventListenerList get message() => _get('message');
27346 }
27347
27348 class WorkerWrappingImplementation extends EventTargetWrappingImplementation imp lements Worker {
27349 WorkerWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
27350
27351 void postMessage(String message, [MessagePort messagePort = null]) {
27352 if (messagePort === null) {
27353 _ptr.postMessage(message);
27354 return;
27355 } else {
27356 _ptr.postMessage(message, LevelDom.unwrap(messagePort));
27357 return;
27358 }
27359 }
27360
27361 void terminate() {
27362 _ptr.terminate();
27363 return;
27364 }
27365
27366 WorkerEvents get on() {
27367 if (_on === null) {
27368 _on = new WorkerEventsImplementation._wrap(_ptr);
27369 }
27370 return _on;
27371 }
27372 }
27373 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
27374 // for details. All rights reserved. Use of this source code is governed by a
27375 // BSD-style license that can be found in the LICENSE file.
27376
27377 interface XMLHttpRequestEvents extends Events { 10568 interface XMLHttpRequestEvents extends Events {
27378 EventListenerList get abort(); 10569 EventListenerList get abort();
27379 EventListenerList get error(); 10570 EventListenerList get error();
27380 EventListenerList get load(); 10571 EventListenerList get load();
27381 EventListenerList get loadStart(); 10572 EventListenerList get loadStart();
27382 EventListenerList get progress(); 10573 EventListenerList get progress();
27383 EventListenerList get readyStateChange(); 10574 EventListenerList get readyStateChange();
27384 } 10575 }
27385 10576
27386 interface XMLHttpRequest extends EventTarget factory XMLHttpRequestWrappingImple mentation { 10577 interface XMLHttpRequest extends EventTarget factory XMLHttpRequestWrappingImple mentation {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
27446 bool cancelable, bool lengthComputable, int total]); 10637 bool cancelable, bool lengthComputable, int total]);
27447 10638
27448 int get position(); 10639 int get position();
27449 10640
27450 int get totalSize(); 10641 int get totalSize();
27451 } 10642 }
27452 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 10643 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
27453 // for details. All rights reserved. Use of this source code is governed by a 10644 // for details. All rights reserved. Use of this source code is governed by a
27454 // BSD-style license that can be found in the LICENSE file. 10645 // BSD-style license that can be found in the LICENSE file.
27455 10646
27456 class XMLHttpRequestProgressEventWrappingImplementation extends ProgressEventWra ppingImplementation implements XMLHttpRequestProgressEvent {
27457 XMLHttpRequestProgressEventWrappingImplementation._wrap(ptr) : super._wrap(ptr );
27458
27459 factory XMLHttpRequestProgressEventWrappingImplementation(String type,
27460 int loaded, [bool canBubble = true, bool cancelable = true,
27461 bool lengthComputable = false, int total = 0]) {
27462 final e = dom.document.createEvent("XMLHttpRequestProgressEvent");
27463 e.initProgressEvent(type, canBubble, cancelable, lengthComputable, loaded,
27464 total);
27465 return LevelDom.wrapProgressEvent(e);
27466 }
27467
27468 int get position() => _ptr.position;
27469
27470 int get totalSize() => _ptr.totalSize;
27471 }
27472 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
27473 // for details. All rights reserved. Use of this source code is governed by a
27474 // BSD-style license that can be found in the LICENSE file.
27475
27476 interface XMLHttpRequestUploadEvents extends Events { 10647 interface XMLHttpRequestUploadEvents extends Events {
27477 EventListenerList get abort(); 10648 EventListenerList get abort();
27478 EventListenerList get error(); 10649 EventListenerList get error();
27479 EventListenerList get load(); 10650 EventListenerList get load();
27480 EventListenerList get loadStart(); 10651 EventListenerList get loadStart();
27481 EventListenerList get progress(); 10652 EventListenerList get progress();
27482 } 10653 }
27483 10654
27484 interface XMLHttpRequestUpload extends EventTarget { 10655 interface XMLHttpRequestUpload extends EventTarget {
27485 XMLHttpRequestUploadEvents get on(); 10656 XMLHttpRequestUploadEvents get on();
27486 } 10657 }
27487 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
27488 // for details. All rights reserved. Use of this source code is governed by a
27489 // BSD-style license that can be found in the LICENSE file.
27490
27491 class XMLHttpRequestUploadEventsImplementation extends EventsImplementation
27492 implements XMLHttpRequestUploadEvents {
27493 XMLHttpRequestUploadEventsImplementation._wrap(_ptr) : super._wrap(_ptr);
27494
27495 EventListenerList get abort() => _get('abort');
27496 EventListenerList get error() => _get('error');
27497 EventListenerList get load() => _get('load');
27498 EventListenerList get loadStart() => _get('loadstart');
27499 EventListenerList get progress() => _get('progress');
27500 }
27501
27502 class XMLHttpRequestUploadWrappingImplementation extends EventTargetWrappingImpl ementation implements XMLHttpRequestUpload {
27503 XMLHttpRequestUploadWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
27504
27505 XMLHttpRequestUploadEvents get on() {
27506 if (_on === null) {
27507 _on = new XMLHttpRequestUploadEventsImplementation._wrap(_ptr);
27508 }
27509 return _on;
27510 }
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 class XMLHttpRequestEventsImplementation extends EventsImplementation
27517 implements XMLHttpRequestEvents {
27518 XMLHttpRequestEventsImplementation._wrap(_ptr) : super._wrap(_ptr);
27519
27520 EventListenerList get abort() => _get('abort');
27521 EventListenerList get error() => _get('error');
27522 EventListenerList get load() => _get('load');
27523 EventListenerList get loadStart() => _get('loadstart');
27524 EventListenerList get progress() => _get('progress');
27525 EventListenerList get readyStateChange() => _get('readystatechange');
27526 }
27527
27528 class XMLHttpRequestWrappingImplementation extends EventTargetWrappingImplementa tion implements XMLHttpRequest {
27529 XMLHttpRequestWrappingImplementation._wrap(
27530 dom.XMLHttpRequest ptr) : super._wrap(ptr);
27531
27532 factory XMLHttpRequestWrappingImplementation() {
27533 return new XMLHttpRequestWrappingImplementation._wrap(
27534 new dom.XMLHttpRequest());
27535 }
27536
27537 factory XMLHttpRequestWrappingImplementation.getTEMPNAME(String url,
27538 onSuccess(XMLHttpRequest request)) {
27539 final request = new XMLHttpRequest();
27540 request.open('GET', url, true);
27541
27542 // TODO(terry): Validate after client login added if necessary to forward
27543 // cookies to server.
27544 request.withCredentials = true;
27545
27546 // Status 0 is for local XHR request.
27547 request.on.readyStateChange.add((e) {
27548 if (request.readyState == XMLHttpRequest.DONE &&
27549 (request.status == 200 || request.status == 0)) {
27550 onSuccess(request);
27551 }
27552 });
27553
27554 request.send();
27555
27556 return request;
27557 }
27558
27559 int get readyState() => _ptr.readyState;
27560
27561 String get responseText() => _ptr.responseText;
27562
27563 String get responseType() => _ptr.responseType;
27564
27565 void set responseType(String value) { _ptr.responseType = value; }
27566
27567 Document get responseXML() => LevelDom.wrapDocument(_ptr.responseXML);
27568
27569 int get status() => _ptr.status;
27570
27571 String get statusText() => _ptr.statusText;
27572
27573 XMLHttpRequestUpload get upload() => LevelDom.wrapXMLHttpRequestUpload(_ptr.up load);
27574
27575 bool get withCredentials() => _ptr.withCredentials;
27576
27577 void set withCredentials(bool value) { _ptr.withCredentials = value; }
27578
27579 void abort() {
27580 _ptr.abort();
27581 return;
27582 }
27583
27584 String getAllResponseHeaders() {
27585 return _ptr.getAllResponseHeaders();
27586 }
27587
27588 String getResponseHeader(String header) {
27589 return _ptr.getResponseHeader(header);
27590 }
27591
27592 void open(String method, String url, bool async, [String user = null, String p assword = null]) {
27593 if (user === null) {
27594 if (password === null) {
27595 _ptr.open(method, url, async);
27596 return;
27597 }
27598 } else {
27599 if (password === null) {
27600 _ptr.open(method, url, async, user);
27601 return;
27602 } else {
27603 _ptr.open(method, url, async, user, password);
27604 return;
27605 }
27606 }
27607 throw "Incorrect number or type of arguments";
27608 }
27609
27610 void overrideMimeType(String mime) {
27611 _ptr.overrideMimeType(mime);
27612 }
27613
27614 void send([var data = null]) {
27615 if (data === null) {
27616 _ptr.send();
27617 return;
27618 } else {
27619 if (data is Document) {
27620 _ptr.send(LevelDom.unwrapMaybePrimitive(data));
27621 return;
27622 } else {
27623 if (data is String) {
27624 _ptr.send(LevelDom.unwrapMaybePrimitive(data));
27625 return;
27626 }
27627 }
27628 }
27629 throw "Incorrect number or type of arguments";
27630 }
27631
27632 void setRequestHeader(String header, String value) {
27633 _ptr.setRequestHeader(header, value);
27634 }
27635
27636 XMLHttpRequestEvents get on() {
27637 if (_on === null) {
27638 _on = new XMLHttpRequestEventsImplementation._wrap(_ptr);
27639 }
27640 return _on;
27641 }
27642 }
OLDNEW
« client/html/html_impl.dart ('K') | « client/html/html_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698