| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |