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

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: 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
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 _wrap(raw) { 70 _wrap(raw) {
71 if (raw is! dom.DOMType) return raw; 71 if (raw is! dom.DOMType) return raw;
72 dom.DOMType domObject = raw; 72 dom.DOMType domObject = raw;
73 if (domObject.dartObjectLocalStorage != null) 73 if (domObject.dartObjectLocalStorage != null)
74 return domObject.dartObjectLocalStorage; 74 return domObject.dartObjectLocalStorage;
75 switch(domObject.typeName) { 75 switch(domObject.typeName) {
76 case 'HTMLDocument': 76 case 'HTMLDocument':
77 throw 'A document should never be wrapped directly. TODO(jacobr) XXX'; 77 throw 'A document should never be wrapped directly. TODO(jacobr) XXX';
78 case 'HTMLHtmlElement': 78 case 'HTMLHtmlElement':
79 return new _DocumentImpl._wrap(domObject); 79 return new _DocumentImpl._wrap(domObject);
80 case 'HTMLElement':
81 return new _UnknownElementImpl._wrap(domObject);
80 $WRAPCASES 82 $WRAPCASES
81 default: 83 default:
82 throw 'Unrecognized object $domObject. Name=${domObject.typeName}'; 84 throw 'Unrecognized object $domObject. Name=${domObject.typeName}';
83 } 85 }
84 } 86 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698