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

Side by Side Diff: client/html/generated/src/wrapping/_HtmlWrappingImplementation.dart

Issue 9474030: Revert "Add some sweet XML classes." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 months 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
« no previous file with comments | « no previous file | client/html/html.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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);
611 case "HTMLDocument": 609 case "HTMLDocument":
612 return new DocumentWrappingImplementation._wrap(raw, raw.documentElement ); 610 return new DocumentWrappingImplementation._wrap(raw, raw.documentElement );
613 case "SVGDocument": 611 case "SVGDocument":
614 return new SVGDocumentWrappingImplementation._wrap(raw); 612 return new SVGDocumentWrappingImplementation._wrap(raw);
615 default: 613 default:
616 throw new UnsupportedOperationException("Unknown type:" + raw.toString() ); 614 throw new UnsupportedOperationException("Unknown type:" + raw.toString() );
617 } 615 }
618 } 616 }
619 617
620 static DocumentFragment wrapDocumentFragment(raw) { 618 static DocumentFragment wrapDocumentFragment(raw) {
621 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO bjectLocalStorage : new DocumentFragmentWrappingImplementation._wrap(raw); 619 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO bjectLocalStorage : new DocumentFragmentWrappingImplementation._wrap(raw);
622 } 620 }
623 621
624 static DynamicsCompressorNode wrapDynamicsCompressorNode(raw) { 622 static DynamicsCompressorNode wrapDynamicsCompressorNode(raw) {
625 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO bjectLocalStorage : new DynamicsCompressorNodeWrappingImplementation._wrap(raw); 623 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO bjectLocalStorage : new DynamicsCompressorNodeWrappingImplementation._wrap(raw);
626 } 624 }
627 625
628 static Element wrapElement(raw) { 626 static Element wrapElement(raw) {
629 if (raw === null) { return null; } 627 if (raw === null) { return null; }
630 if (raw.dartObjectLocalStorage !== null) { 628 if (raw.dartObjectLocalStorage !== null) {
631 return raw.dartObjectLocalStorage; 629 return raw.dartObjectLocalStorage;
632 } 630 }
633 switch (raw.typeName) { 631 switch (raw.typeName) {
634 case "Element":
635 return new XMLElementWrappingImplementation._wrap(raw);
636 case "HTMLAnchorElement": 632 case "HTMLAnchorElement":
637 return new AnchorElementWrappingImplementation._wrap(raw); 633 return new AnchorElementWrappingImplementation._wrap(raw);
638 /* Skipping HTMLAppletElement*/ 634 /* Skipping HTMLAppletElement*/
639 case "HTMLAreaElement": 635 case "HTMLAreaElement":
640 return new AreaElementWrappingImplementation._wrap(raw); 636 return new AreaElementWrappingImplementation._wrap(raw);
641 case "HTMLAudioElement": 637 case "HTMLAudioElement":
642 return new AudioElementWrappingImplementation._wrap(raw); 638 return new AudioElementWrappingImplementation._wrap(raw);
643 case "HTMLBRElement": 639 case "HTMLBRElement":
644 return new BRElementWrappingImplementation._wrap(raw); 640 return new BRElementWrappingImplementation._wrap(raw);
645 case "HTMLBaseElement": 641 case "HTMLBaseElement":
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 static EventSource wrapEventSource(raw) { 1110 static EventSource wrapEventSource(raw) {
1115 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO bjectLocalStorage : new EventSourceWrappingImplementation._wrap(raw); 1111 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO bjectLocalStorage : new EventSourceWrappingImplementation._wrap(raw);
1116 } 1112 }
1117 1113
1118 static EventTarget wrapEventTarget(raw) { 1114 static EventTarget wrapEventTarget(raw) {
1119 if (raw === null) { return null; } 1115 if (raw === null) { return null; }
1120 if (raw.dartObjectLocalStorage !== null) { 1116 if (raw.dartObjectLocalStorage !== null) {
1121 return raw.dartObjectLocalStorage; 1117 return raw.dartObjectLocalStorage;
1122 } 1118 }
1123 switch (raw.typeName) { 1119 switch (raw.typeName) {
1124 case "Element":
1125 return new XMLElementWrappingImplementation._wrap(raw);
1126 /* Skipping AbstractWorker*/ 1120 /* Skipping AbstractWorker*/
1127 case "HTMLAnchorElement": 1121 case "HTMLAnchorElement":
1128 return new AnchorElementWrappingImplementation._wrap(raw); 1122 return new AnchorElementWrappingImplementation._wrap(raw);
1129 /* Skipping HTMLAppletElement*/ 1123 /* Skipping HTMLAppletElement*/
1130 case "HTMLAreaElement": 1124 case "HTMLAreaElement":
1131 return new AreaElementWrappingImplementation._wrap(raw); 1125 return new AreaElementWrappingImplementation._wrap(raw);
1132 /* Skipping Attr*/ 1126 /* Skipping Attr*/
1133 case "HTMLAudioElement": 1127 case "HTMLAudioElement":
1134 return new AudioElementWrappingImplementation._wrap(raw); 1128 return new AudioElementWrappingImplementation._wrap(raw);
1135 case "HTMLBRElement": 1129 case "HTMLBRElement":
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
1850 static NavigatorUserMediaSuccessCallback wrapNavigatorUserMediaSuccessCallback (raw) { 1844 static NavigatorUserMediaSuccessCallback wrapNavigatorUserMediaSuccessCallback (raw) {
1851 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO bjectLocalStorage : new NavigatorUserMediaSuccessCallbackWrappingImplementation. _wrap(raw); 1845 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO bjectLocalStorage : new NavigatorUserMediaSuccessCallbackWrappingImplementation. _wrap(raw);
1852 } 1846 }
1853 1847
1854 static Node wrapNode(raw) { 1848 static Node wrapNode(raw) {
1855 if (raw === null) { return null; } 1849 if (raw === null) { return null; }
1856 if (raw.dartObjectLocalStorage !== null) { 1850 if (raw.dartObjectLocalStorage !== null) {
1857 return raw.dartObjectLocalStorage; 1851 return raw.dartObjectLocalStorage;
1858 } 1852 }
1859 switch (raw.typeName) { 1853 switch (raw.typeName) {
1860 case "Element":
1861 return new XMLElementWrappingImplementation._wrap(raw);
1862 case "HTMLAnchorElement": 1854 case "HTMLAnchorElement":
1863 return new AnchorElementWrappingImplementation._wrap(raw); 1855 return new AnchorElementWrappingImplementation._wrap(raw);
1864 /* Skipping HTMLAppletElement*/ 1856 /* Skipping HTMLAppletElement*/
1865 case "HTMLAreaElement": 1857 case "HTMLAreaElement":
1866 return new AreaElementWrappingImplementation._wrap(raw); 1858 return new AreaElementWrappingImplementation._wrap(raw);
1867 /* Skipping Attr*/ 1859 /* Skipping Attr*/
1868 case "HTMLAudioElement": 1860 case "HTMLAudioElement":
1869 return new AudioElementWrappingImplementation._wrap(raw); 1861 return new AudioElementWrappingImplementation._wrap(raw);
1870 case "HTMLBRElement": 1862 case "HTMLBRElement":
1871 return new BRElementWrappingImplementation._wrap(raw); 1863 return new BRElementWrappingImplementation._wrap(raw);
(...skipping 2265 matching lines...) Expand 10 before | Expand all | Expand 10 after
4137 static XMLHttpRequestUpload wrapXMLHttpRequestUpload(raw) { 4129 static XMLHttpRequestUpload wrapXMLHttpRequestUpload(raw) {
4138 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO bjectLocalStorage : new XMLHttpRequestUploadWrappingImplementation._wrap(raw); 4130 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO bjectLocalStorage : new XMLHttpRequestUploadWrappingImplementation._wrap(raw);
4139 } 4131 }
4140 4132
4141 static Object wrapObject(raw) { 4133 static Object wrapObject(raw) {
4142 if (raw === null || raw is String || raw is num || raw is Date) { return raw ; } 4134 if (raw === null || raw is String || raw is num || raw is Date) { return raw ; }
4143 if (raw.dartObjectLocalStorage !== null) { 4135 if (raw.dartObjectLocalStorage !== null) {
4144 return raw.dartObjectLocalStorage; 4136 return raw.dartObjectLocalStorage;
4145 } 4137 }
4146 switch (raw.typeName) { 4138 switch (raw.typeName) {
4147 case "Element":
4148 return new XMLElementWrappingImplementation._wrap(raw);
4149 /* Skipping AbstractWorker*/ 4139 /* Skipping AbstractWorker*/
4150 case "HTMLAnchorElement": 4140 case "HTMLAnchorElement":
4151 return new AnchorElementWrappingImplementation._wrap(raw); 4141 return new AnchorElementWrappingImplementation._wrap(raw);
4152 case "WebKitAnimation": 4142 case "WebKitAnimation":
4153 return new AnimationWrappingImplementation._wrap(raw); 4143 return new AnimationWrappingImplementation._wrap(raw);
4154 case "WebKitAnimationEvent": 4144 case "WebKitAnimationEvent":
4155 return new AnimationEventWrappingImplementation._wrap(raw); 4145 return new AnimationEventWrappingImplementation._wrap(raw);
4156 case "WebKitAnimationList": 4146 case "WebKitAnimationList":
4157 return new AnimationListWrappingImplementation._wrap(raw); 4147 return new AnimationListWrappingImplementation._wrap(raw);
4158 /* Skipping HTMLAppletElement*/ 4148 /* Skipping HTMLAppletElement*/
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
5122 return raw === null ? null : raw._ptr; 5112 return raw === null ? null : raw._ptr;
5123 } 5113 }
5124 5114
5125 5115
5126 static void initialize() { 5116 static void initialize() {
5127 secretWindow = wrapWindow(dom.window); 5117 secretWindow = wrapWindow(dom.window);
5128 secretDocument = wrapDocument(dom.document); 5118 secretDocument = wrapDocument(dom.document);
5129 } 5119 }
5130 5120
5131 } 5121 }
OLDNEW
« no previous file with comments | « no previous file | client/html/html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698