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

Side by Side Diff: client/dom/templates/html/dartium/html_dartium.darttemplate

Issue 9610011: Port DocumentFragment to the new wrapperless DOM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge with head Created 8 years, 9 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/dom/templates/html/impl/impl_DocumentFragment.darttemplate » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 // DO NOT EDIT 5 // DO NOT EDIT
6 // Auto-generated dart:html library. 6 // Auto-generated dart:html library.
7 7
8 #library("html"); 8 #library("html");
9 9
10 #import('dart:dom', prefix:'dom'); 10 #import('dart:dom', prefix:'dom');
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 _wrap(raw) { 71 _wrap(raw) {
72 if (raw is! dom.DOMType) return raw; 72 if (raw is! dom.DOMType) return raw;
73 dom.DOMType domObject = raw; 73 dom.DOMType domObject = raw;
74 if (domObject.dartObjectLocalStorage != null) 74 if (domObject.dartObjectLocalStorage != null)
75 return domObject.dartObjectLocalStorage; 75 return domObject.dartObjectLocalStorage;
76 switch(domObject.typeName) { 76 switch(domObject.typeName) {
77 case 'HTMLDocument': 77 case 'HTMLDocument':
78 throw 'A document should never be wrapped directly. TODO(jacobr) XXX'; 78 throw 'A document should never be wrapped directly. TODO(jacobr) XXX';
79 case 'HTMLHtmlElement': 79 case 'HTMLHtmlElement':
80 return new _DocumentImpl._wrap(domObject); 80 return new _DocumentImpl._wrap(domObject);
81 case 'HTMLElement':
82 return new _UnknownElementImpl._wrap(domObject);
81 $WRAPCASES 83 $WRAPCASES
82 default: 84 default:
83 throw 'Unrecognized object $domObject. Name=${domObject.typeName}'; 85 throw 'Unrecognized object $domObject. Name=${domObject.typeName}';
84 } 86 }
85 } 87 }
OLDNEW
« no previous file with comments | « no previous file | client/dom/templates/html/impl/impl_DocumentFragment.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698