| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class LevelDom { | 7 class LevelDom { |
| 8 static AnchorElement wrapAnchorElement(raw) { | 8 static AnchorElement wrapAnchorElement(raw) { |
| 9 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new AnchorElementWrappingImplementation._wrap(raw); | 9 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new AnchorElementWrappingImplementation._wrap(raw); |
| 10 } | 10 } |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 static DivElement wrapDivElement(raw) { | 599 static DivElement wrapDivElement(raw) { |
| 600 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DivElementWrappingImplementation._wrap(raw); | 600 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DivElementWrappingImplementation._wrap(raw); |
| 601 } | 601 } |
| 602 | 602 |
| 603 static Document wrapDocument(raw) { | 603 static Document wrapDocument(raw) { |
| 604 if (raw === null) { return null; } | 604 if (raw === null) { return null; } |
| 605 if (raw.dartObjectLocalStorage !== null) { | 605 if (raw.dartObjectLocalStorage !== null) { |
| 606 return raw.dartObjectLocalStorage; | 606 return raw.dartObjectLocalStorage; |
| 607 } | 607 } |
| 608 switch (raw.typeName) { | 608 switch (raw.typeName) { |
| 609 case "Document": |
| 610 return new XMLDocumentWrappingImplementation._wrap(raw, raw.documentElem
ent); |
| 609 case "HTMLDocument": | 611 case "HTMLDocument": |
| 610 return new DocumentWrappingImplementation._wrap(raw, raw.documentElement
); | 612 return new DocumentWrappingImplementation._wrap(raw, raw.documentElement
); |
| 611 case "SVGDocument": | 613 case "SVGDocument": |
| 612 return new SVGDocumentWrappingImplementation._wrap(raw); | 614 return new SVGDocumentWrappingImplementation._wrap(raw); |
| 613 default: | 615 default: |
| 614 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | 616 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); |
| 615 } | 617 } |
| 616 } | 618 } |
| 617 | 619 |
| 618 static DocumentFragment wrapDocumentFragment(raw) { | 620 static DocumentFragment wrapDocumentFragment(raw) { |
| 619 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DocumentFragmentWrappingImplementation._wrap(raw); | 621 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DocumentFragmentWrappingImplementation._wrap(raw); |
| 620 } | 622 } |
| 621 | 623 |
| 622 static DynamicsCompressorNode wrapDynamicsCompressorNode(raw) { | 624 static DynamicsCompressorNode wrapDynamicsCompressorNode(raw) { |
| 623 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DynamicsCompressorNodeWrappingImplementation._wrap(raw); | 625 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DynamicsCompressorNodeWrappingImplementation._wrap(raw); |
| 624 } | 626 } |
| 625 | 627 |
| 626 static Element wrapElement(raw) { | 628 static Element wrapElement(raw) { |
| 627 if (raw === null) { return null; } | 629 if (raw === null) { return null; } |
| 628 if (raw.dartObjectLocalStorage !== null) { | 630 if (raw.dartObjectLocalStorage !== null) { |
| 629 return raw.dartObjectLocalStorage; | 631 return raw.dartObjectLocalStorage; |
| 630 } | 632 } |
| 631 switch (raw.typeName) { | 633 switch (raw.typeName) { |
| 634 case "Element": |
| 635 return new XMLElementWrappingImplementation._wrap(raw); |
| 632 case "HTMLAnchorElement": | 636 case "HTMLAnchorElement": |
| 633 return new AnchorElementWrappingImplementation._wrap(raw); | 637 return new AnchorElementWrappingImplementation._wrap(raw); |
| 634 /* Skipping HTMLAppletElement*/ | 638 /* Skipping HTMLAppletElement*/ |
| 635 case "HTMLAreaElement": | 639 case "HTMLAreaElement": |
| 636 return new AreaElementWrappingImplementation._wrap(raw); | 640 return new AreaElementWrappingImplementation._wrap(raw); |
| 637 case "HTMLAudioElement": | 641 case "HTMLAudioElement": |
| 638 return new AudioElementWrappingImplementation._wrap(raw); | 642 return new AudioElementWrappingImplementation._wrap(raw); |
| 639 case "HTMLBRElement": | 643 case "HTMLBRElement": |
| 640 return new BRElementWrappingImplementation._wrap(raw); | 644 return new BRElementWrappingImplementation._wrap(raw); |
| 641 case "HTMLBaseElement": | 645 case "HTMLBaseElement": |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 static EventSource wrapEventSource(raw) { | 1114 static EventSource wrapEventSource(raw) { |
| 1111 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EventSourceWrappingImplementation._wrap(raw); | 1115 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EventSourceWrappingImplementation._wrap(raw); |
| 1112 } | 1116 } |
| 1113 | 1117 |
| 1114 static EventTarget wrapEventTarget(raw) { | 1118 static EventTarget wrapEventTarget(raw) { |
| 1115 if (raw === null) { return null; } | 1119 if (raw === null) { return null; } |
| 1116 if (raw.dartObjectLocalStorage !== null) { | 1120 if (raw.dartObjectLocalStorage !== null) { |
| 1117 return raw.dartObjectLocalStorage; | 1121 return raw.dartObjectLocalStorage; |
| 1118 } | 1122 } |
| 1119 switch (raw.typeName) { | 1123 switch (raw.typeName) { |
| 1124 case "Element": |
| 1125 return new XMLElementWrappingImplementation._wrap(raw); |
| 1120 /* Skipping AbstractWorker*/ | 1126 /* Skipping AbstractWorker*/ |
| 1121 case "HTMLAnchorElement": | 1127 case "HTMLAnchorElement": |
| 1122 return new AnchorElementWrappingImplementation._wrap(raw); | 1128 return new AnchorElementWrappingImplementation._wrap(raw); |
| 1123 /* Skipping HTMLAppletElement*/ | 1129 /* Skipping HTMLAppletElement*/ |
| 1124 case "HTMLAreaElement": | 1130 case "HTMLAreaElement": |
| 1125 return new AreaElementWrappingImplementation._wrap(raw); | 1131 return new AreaElementWrappingImplementation._wrap(raw); |
| 1126 /* Skipping Attr*/ | 1132 /* Skipping Attr*/ |
| 1127 case "HTMLAudioElement": | 1133 case "HTMLAudioElement": |
| 1128 return new AudioElementWrappingImplementation._wrap(raw); | 1134 return new AudioElementWrappingImplementation._wrap(raw); |
| 1129 case "HTMLBRElement": | 1135 case "HTMLBRElement": |
| (...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1844 static NavigatorUserMediaSuccessCallback wrapNavigatorUserMediaSuccessCallback
(raw) { | 1850 static NavigatorUserMediaSuccessCallback wrapNavigatorUserMediaSuccessCallback
(raw) { |
| 1845 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new NavigatorUserMediaSuccessCallbackWrappingImplementation.
_wrap(raw); | 1851 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new NavigatorUserMediaSuccessCallbackWrappingImplementation.
_wrap(raw); |
| 1846 } | 1852 } |
| 1847 | 1853 |
| 1848 static Node wrapNode(raw) { | 1854 static Node wrapNode(raw) { |
| 1849 if (raw === null) { return null; } | 1855 if (raw === null) { return null; } |
| 1850 if (raw.dartObjectLocalStorage !== null) { | 1856 if (raw.dartObjectLocalStorage !== null) { |
| 1851 return raw.dartObjectLocalStorage; | 1857 return raw.dartObjectLocalStorage; |
| 1852 } | 1858 } |
| 1853 switch (raw.typeName) { | 1859 switch (raw.typeName) { |
| 1860 case "Element": |
| 1861 return new XMLElementWrappingImplementation._wrap(raw); |
| 1854 case "HTMLAnchorElement": | 1862 case "HTMLAnchorElement": |
| 1855 return new AnchorElementWrappingImplementation._wrap(raw); | 1863 return new AnchorElementWrappingImplementation._wrap(raw); |
| 1856 /* Skipping HTMLAppletElement*/ | 1864 /* Skipping HTMLAppletElement*/ |
| 1857 case "HTMLAreaElement": | 1865 case "HTMLAreaElement": |
| 1858 return new AreaElementWrappingImplementation._wrap(raw); | 1866 return new AreaElementWrappingImplementation._wrap(raw); |
| 1859 /* Skipping Attr*/ | 1867 /* Skipping Attr*/ |
| 1860 case "HTMLAudioElement": | 1868 case "HTMLAudioElement": |
| 1861 return new AudioElementWrappingImplementation._wrap(raw); | 1869 return new AudioElementWrappingImplementation._wrap(raw); |
| 1862 case "HTMLBRElement": | 1870 case "HTMLBRElement": |
| 1863 return new BRElementWrappingImplementation._wrap(raw); | 1871 return new BRElementWrappingImplementation._wrap(raw); |
| (...skipping 2265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4129 static XMLHttpRequestUpload wrapXMLHttpRequestUpload(raw) { | 4137 static XMLHttpRequestUpload wrapXMLHttpRequestUpload(raw) { |
| 4130 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new XMLHttpRequestUploadWrappingImplementation._wrap(raw); | 4138 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new XMLHttpRequestUploadWrappingImplementation._wrap(raw); |
| 4131 } | 4139 } |
| 4132 | 4140 |
| 4133 static Object wrapObject(raw) { | 4141 static Object wrapObject(raw) { |
| 4134 if (raw === null || raw is String || raw is num || raw is Date) { return raw
; } | 4142 if (raw === null || raw is String || raw is num || raw is Date) { return raw
; } |
| 4135 if (raw.dartObjectLocalStorage !== null) { | 4143 if (raw.dartObjectLocalStorage !== null) { |
| 4136 return raw.dartObjectLocalStorage; | 4144 return raw.dartObjectLocalStorage; |
| 4137 } | 4145 } |
| 4138 switch (raw.typeName) { | 4146 switch (raw.typeName) { |
| 4147 case "Element": |
| 4148 return new XMLElementWrappingImplementation._wrap(raw); |
| 4139 /* Skipping AbstractWorker*/ | 4149 /* Skipping AbstractWorker*/ |
| 4140 case "HTMLAnchorElement": | 4150 case "HTMLAnchorElement": |
| 4141 return new AnchorElementWrappingImplementation._wrap(raw); | 4151 return new AnchorElementWrappingImplementation._wrap(raw); |
| 4142 case "WebKitAnimation": | 4152 case "WebKitAnimation": |
| 4143 return new AnimationWrappingImplementation._wrap(raw); | 4153 return new AnimationWrappingImplementation._wrap(raw); |
| 4144 case "WebKitAnimationEvent": | 4154 case "WebKitAnimationEvent": |
| 4145 return new AnimationEventWrappingImplementation._wrap(raw); | 4155 return new AnimationEventWrappingImplementation._wrap(raw); |
| 4146 case "WebKitAnimationList": | 4156 case "WebKitAnimationList": |
| 4147 return new AnimationListWrappingImplementation._wrap(raw); | 4157 return new AnimationListWrappingImplementation._wrap(raw); |
| 4148 /* Skipping HTMLAppletElement*/ | 4158 /* Skipping HTMLAppletElement*/ |
| (...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5112 return raw === null ? null : raw._ptr; | 5122 return raw === null ? null : raw._ptr; |
| 5113 } | 5123 } |
| 5114 | 5124 |
| 5115 | 5125 |
| 5116 static void initialize() { | 5126 static void initialize() { |
| 5117 secretWindow = wrapWindow(dom.window); | 5127 secretWindow = wrapWindow(dom.window); |
| 5118 secretDocument = wrapDocument(dom.document); | 5128 secretDocument = wrapDocument(dom.document); |
| 5119 } | 5129 } |
| 5120 | 5130 |
| 5121 } | 5131 } |
| OLD | NEW |