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

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

Issue 450693005: Eliminate the old non blink code paths from idl generation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove DART_USE_BLINK from templates Created 6 years, 4 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 /** 8 /**
9 * HTML elements and other resources for web-based applications that need to 9 * HTML elements and other resources for web-based applications that need to
10 * interact with the browser and the DOM (Document Object Model). 10 * interact with the browser and the DOM (Document Object Model).
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 import 'dart:web_gl' as gl; 49 import 'dart:web_gl' as gl;
50 import 'dart:web_gl' show web_glBlinkMap; 50 import 'dart:web_gl' show web_glBlinkMap;
51 import 'dart:web_sql'; 51 import 'dart:web_sql';
52 // Not actually used, but imported since dart:html can generate these objects. 52 // Not actually used, but imported since dart:html can generate these objects.
53 import 'dart:svg' as svg; 53 import 'dart:svg' as svg;
54 import 'dart:svg' show svgBlinkMap; 54 import 'dart:svg' show svgBlinkMap;
55 import 'dart:svg' show Matrix; 55 import 'dart:svg' show Matrix;
56 import 'dart:svg' show SvgSvgElement; 56 import 'dart:svg' show SvgSvgElement;
57 import 'dart:web_audio' as web_audio; 57 import 'dart:web_audio' as web_audio;
58 import 'dart:web_audio' show web_audioBlinkMap; 58 import 'dart:web_audio' show web_audioBlinkMap;
59 $if DART_USE_BLINK
60 import 'dart:_blink' as _blink; 59 import 'dart:_blink' as _blink;
61 $endif
62 60
63 export 'dart:math' show Rectangle, Point; 61 export 'dart:math' show Rectangle, Point;
64 62
65 $!GENERATED_DART_FILES 63 $!GENERATED_DART_FILES
66 64
67 // Issue 14721, order important for WrappedEvent. 65 // Issue 14721, order important for WrappedEvent.
68 part '$AUXILIARY_DIR/AttributeMap.dart'; 66 part '$AUXILIARY_DIR/AttributeMap.dart';
69 part '$AUXILIARY_DIR/CanvasImageSource.dart'; 67 part '$AUXILIARY_DIR/CanvasImageSource.dart';
70 part '$AUXILIARY_DIR/CrossFrameTypes.dart'; 68 part '$AUXILIARY_DIR/CrossFrameTypes.dart';
71 part '$AUXILIARY_DIR/CssClassSet.dart'; 69 part '$AUXILIARY_DIR/CssClassSet.dart';
(...skipping 12 matching lines...) Expand all
84 part '$AUXILIARY_DIR/Validators.dart'; 82 part '$AUXILIARY_DIR/Validators.dart';
85 part '$AUXILIARY_DIR/WrappedList.dart'; 83 part '$AUXILIARY_DIR/WrappedList.dart';
86 part '$AUXILIARY_DIR/_HttpRequestUtils.dart'; 84 part '$AUXILIARY_DIR/_HttpRequestUtils.dart';
87 part '$AUXILIARY_DIR/_ListIterators.dart'; 85 part '$AUXILIARY_DIR/_ListIterators.dart';
88 part '$AUXILIARY_DIR/dartium_CustomElementSupport.dart'; 86 part '$AUXILIARY_DIR/dartium_CustomElementSupport.dart';
89 part '$AUXILIARY_DIR/dartium_KeyEvent.dart'; 87 part '$AUXILIARY_DIR/dartium_KeyEvent.dart';
90 part '$AUXILIARY_DIR/dartium_Platform.dart'; 88 part '$AUXILIARY_DIR/dartium_Platform.dart';
91 part '$AUXILIARY_DIR/dartium_WrappedEvent.dart'; 89 part '$AUXILIARY_DIR/dartium_WrappedEvent.dart';
92 part '$AUXILIARY_DIR/shared_html.dart'; 90 part '$AUXILIARY_DIR/shared_html.dart';
93 91
94 $if DART_USE_BLINK
95 part '$AUXILIARY_DIR/html_native_DOMImplementation.dart'; 92 part '$AUXILIARY_DIR/html_native_DOMImplementation.dart';
96 $else
97 part '$AUXILIARY_DIR/native_DOMImplementation.dart';
98 $endif
99 93
100 Window _window; 94 Window _window;
101 95
102 /** 96 /**
103 * Top-level container for a web page, which is usually a browser tab or window. 97 * Top-level container for a web page, which is usually a browser tab or window.
104 * 98 *
105 * Each web page loaded in the browser has its own [Window], which is a 99 * Each web page loaded in the browser has its own [Window], which is a
106 * container for the web page. 100 * container for the web page.
107 * 101 *
108 * If the web page has any `<iframe>` elements, then each `<iframe>` has its own 102 * If the web page has any `<iframe>` elements, then each `<iframe>` has its own
(...skipping 28 matching lines...) Expand all
137 * Spawn a DOM isolate using the given URI in the same window. 131 * Spawn a DOM isolate using the given URI in the same window.
138 * This isolate is not concurrent. It runs on the browser thread 132 * This isolate is not concurrent. It runs on the browser thread
139 * with full access to the DOM. 133 * with full access to the DOM.
140 * Note: this API is still evolving and may move to dart:isolate. 134 * Note: this API is still evolving and may move to dart:isolate.
141 */ 135 */
142 @Experimental() 136 @Experimental()
143 Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) { 137 Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) {
144 // TODO(17738): Plumb arguments and return value through. 138 // TODO(17738): Plumb arguments and return value through.
145 return _Utils.spawnDomUri(uri.toString()); 139 return _Utils.spawnDomUri(uri.toString());
146 } 140 }
147 $if DART_USE_BLINK
148 // FIXME: Can we make this private? 141 // FIXME: Can we make this private?
149 final htmlBlinkMap = { 142 final htmlBlinkMap = {
150 '_HistoryCrossFrame': () => _HistoryCrossFrame, 143 '_HistoryCrossFrame': () => _HistoryCrossFrame,
151 '_LocationCrossFrame': () => _LocationCrossFrame, 144 '_LocationCrossFrame': () => _LocationCrossFrame,
152 '_DOMWindowCrossFrame': () => _DOMWindowCrossFrame, 145 '_DOMWindowCrossFrame': () => _DOMWindowCrossFrame,
153 // FIXME: Move these to better locations. 146 // FIXME: Move these to better locations.
154 'DateTime': () => DateTime, 147 'DateTime': () => DateTime,
155 'JsObject': () => js.JsObject, 148 'JsObject': () => js.JsObject,
156 'JsFunction': () => js.JsFunction, 149 'JsFunction': () => js.JsFunction,
157 'JsArray': () => js.JsArray, 150 'JsArray': () => js.JsArray,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 } 234 }
242 return null; 235 return null;
243 } 236 }
244 237
245 Type _getSvgType(String key) { 238 Type _getSvgType(String key) {
246 if (svgBlinkMap.containsKey(key)) { 239 if (svgBlinkMap.containsKey(key)) {
247 return svgBlinkMap[key](); 240 return svgBlinkMap[key]();
248 } 241 }
249 return null; 242 return null;
250 } 243 }
251
252 $endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698