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

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

Issue 10332144: Move html events generation to domimpl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 8 years, 7 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_deprecated', prefix:'dom'); 10 #import('dart:dom_deprecated', prefix:'dom');
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 if (__document == null) { 59 if (__document == null) {
60 _initialize(); 60 _initialize();
61 } 61 }
62 return __document; 62 return __document;
63 } 63 }
64 64
65 _unwrap(raw) { 65 _unwrap(raw) {
66 return raw is _DOMTypeBase ? raw._ptr : raw; 66 return raw is _DOMTypeBase ? raw._ptr : raw;
67 } 67 }
68 68
69 unwrap_internal(raw) => _unwrap(raw);
70
69 // Warning: does not attempt wrap event listeners. 71 // Warning: does not attempt wrap event listeners.
70 _wrap(raw) { 72 _wrap(raw) {
71 if (raw is! dom.DOMType) return raw; 73 if (raw is! dom.DOMType) return raw;
72 dom.DOMType domObject = raw; 74 dom.DOMType domObject = raw;
73 if (domObject.dartObjectLocalStorage != null) 75 if (domObject.dartObjectLocalStorage != null)
74 return domObject.dartObjectLocalStorage; 76 return domObject.dartObjectLocalStorage;
75 switch(domObject.typeName) { 77 switch(domObject.typeName) {
76 case 'HTMLElement': 78 case 'HTMLElement':
77 return new _UnknownElementImpl._wrap(domObject); 79 return new _UnknownElementImpl._wrap(domObject);
78 $WRAPCASES 80 $WRAPCASES
79 case 'HTMLDocument': 81 case 'HTMLDocument':
80 return new _DocumentImpl._wrap(domObject); 82 return new _DocumentImpl._wrap(domObject);
81 default: 83 default:
82 throw 'Unrecognized object $domObject. Name=${domObject.typeName}'; 84 throw 'Unrecognized object $domObject. Name=${domObject.typeName}';
83 } 85 }
84 } 86 }
85 87
88 wrap_internal(raw) => _wrap(raw);
89
86 spawnDomIsolate(Window targetWindow, String entryPoint) => 90 spawnDomIsolate(Window targetWindow, String entryPoint) =>
87 dom.spawnDomIsolate(_unwrap(targetWindow), entryPoint); 91 dom.spawnDomIsolate(_unwrap(targetWindow), entryPoint);
88 92
89 dom.LayoutTestController get layoutTestController() => 93 dom.LayoutTestController get layoutTestController() =>
90 dom.layoutTestController; 94 dom.layoutTestController;
OLDNEW
« lib/dom/scripts/systemnative.py ('K') | « lib/dom/templates/dom/native/dom_impl.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698