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

Side by Side Diff: lib/html/html_frog.dart

Issue 10389097: Move dart:dom to dart:dom_deprecated (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes from review 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
« no previous file with comments | « lib/html/html_dartium.dart ('k') | lib/isolate/frog/isolateimpl.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) 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 #source('generated/html/frog/AbstractWorker.dart'); 10 #source('generated/html/frog/AbstractWorker.dart');
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 #source('../html/src/Device.dart'); 1072 #source('../html/src/Device.dart');
1073 #source('../dom/src/_ListIterators.dart'); 1073 #source('../dom/src/_ListIterators.dart');
1074 #source('../dom/src/_Lists.dart'); 1074 #source('../dom/src/_Lists.dart');
1075 1075
1076 _WindowImpl _cachedWindow; 1076 _WindowImpl _cachedWindow;
1077 _DocumentImpl _cachedDocument; 1077 _DocumentImpl _cachedDocument;
1078 1078
1079 void _init() { 1079 void _init() {
1080 _cachedDocument = _document; 1080 _cachedDocument = _document;
1081 _cachedWindow = _window; 1081 _cachedWindow = _window;
1082 // Feature detect that dart:dom and dart:html are not both loaded by 1082 // Feature detect that dart:dom_deprecated and dart:html are not both loaded b y
1083 // checking for the presence of a bug that manifests itself when both 1083 // checking for the presence of a bug that manifests itself when both
1084 // libraries are loaded. 1084 // libraries are loaded.
1085 // TODO(jacobr): remove this code once b/1911 is fixed and the frog compiler 1085 // TODO(jacobr): remove this code once b/1911 is fixed and the frog compiler
1086 // is changed to generate compile time errors if two libraries that define 1086 // is changed to generate compile time errors if two libraries that define
1087 // the same native types in conflicting ways are imported. 1087 // the same native types in conflicting ways are imported.
1088 var element = new Element.tag('body'); 1088 var element = new Element.tag('body');
1089 element.innerHTML = 'f'; 1089 element.innerHTML = 'f';
1090 if (element.text == '') { 1090 if (element.text == '') {
1091 _cachedWindow.console.error( 1091 _cachedWindow.console.error(
1092 'Cannot import dart:html and dart:dom within the same application.'); 1092 'Cannot import dart:html and dart:dom_deprecated within the same applicati on.');
1093 throw new UnsupportedOperationException( 1093 throw new UnsupportedOperationException(
1094 'Cannot import dart:html and dart:dom within the same application.'); 1094 'Cannot import dart:html and dart:dom_deprecated within the same applicati on.');
1095 } 1095 }
1096 } 1096 }
1097 1097
1098 Window get window() { 1098 Window get window() {
1099 if (_cachedWindow == null) { 1099 if (_cachedWindow == null) {
1100 _init(); 1100 _init();
1101 } 1101 }
1102 return _cachedWindow; 1102 return _cachedWindow;
1103 } 1103 }
1104 1104
1105 _WindowImpl get _window() native "return window;"; 1105 _WindowImpl get _window() native "return window;";
1106 1106
1107 Document get document() { 1107 Document get document() {
1108 if (_cachedDocument == null) { 1108 if (_cachedDocument == null) {
1109 _init(); 1109 _init();
1110 } 1110 }
1111 return _cachedDocument; 1111 return _cachedDocument;
1112 } 1112 }
1113 1113
1114 _DocumentImpl get _document() native "return window.document.documentElement;"; 1114 _DocumentImpl get _document() native "return window.document.documentElement;";
1115 1115
1116 // Workaround for tags like <cite> that lack their own Element subclass -- 1116 // Workaround for tags like <cite> that lack their own Element subclass --
1117 // Dart issue 1990. 1117 // Dart issue 1990.
1118 class _HTMLElementImpl extends _ElementImpl native "*HTMLElement" { 1118 class _HTMLElementImpl extends _ElementImpl native "*HTMLElement" {
1119 } 1119 }
OLDNEW
« no previous file with comments | « lib/html/html_dartium.dart ('k') | lib/isolate/frog/isolateimpl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698