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

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

Issue 284863002: Add type maps from blink name to html name (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use implementation name Created 6 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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:_blink library. 6 // Auto-generated dart:_blink library.
7 7
8 /** 8 /**
9 * This library provides entry points to the native Blink code which backs 9 * This library provides entry points to the native Blink code which backs
10 * up the dart:html library. 10 * up the dart:html library.
(...skipping 10 matching lines...) Expand all
21 import 'dart:indexed_db'; 21 import 'dart:indexed_db';
22 import 'dart:isolate'; 22 import 'dart:isolate';
23 import "dart:convert"; 23 import "dart:convert";
24 import 'dart:math'; 24 import 'dart:math';
25 // TODO(vsm): Remove this when we can do the proper checking in 25 // TODO(vsm): Remove this when we can do the proper checking in
26 // native code for custom elements. 26 // native code for custom elements.
27 import 'dart:mirrors'; 27 import 'dart:mirrors';
28 import 'dart:nativewrappers'; 28 import 'dart:nativewrappers';
29 import 'dart:typed_data'; 29 import 'dart:typed_data';
30 import 'dart:web_gl' as gl; 30 import 'dart:web_gl' as gl;
31 import 'dart:web_gl' show web_glBlinkMap;
31 import 'dart:web_sql'; 32 import 'dart:web_sql';
32 // Not actually used, but imported since dart:html can generate these objects. 33 // Not actually used, but imported since dart:html can generate these objects.
33 import 'dart:svg' as svg; 34 import 'dart:svg' as svg;
34 import 'dart:svg' show Matrix; 35 import 'dart:svg' show Matrix;
35 import 'dart:svg' show SvgSvgElement; 36 import 'dart:svg' show SvgSvgElement;
37 import 'dart:svg' show svgBlinkMap;
36 import 'dart:web_audio' show AudioNode, AudioParam; 38 import 'dart:web_audio' show AudioNode, AudioParam;
37 39
38 part '$AUXILIARY_DIR/blink_native_DOMImplementation.dart'; 40 part '$AUXILIARY_DIR/blink_native_DOMImplementation.dart';
39 41
40 $!GENERATED_DART_FILES 42 $!GENERATED_DART_FILES
43
44 // TODO(vsm): This should be moved out of this library. Into dart:html?
45 Type _getType(String key) {
46 // TODO(vsm): Add Cross Frame and JS types here as well.
47 if (htmlBlinkMap.containsKey(key))
48 return htmlBlinkMap[key];
49 if (indexed_dbBlinkMap.containsKey(key))
50 return indexed_dbBlinkMap[key];
51 if (web_audioBlinkMap.containsKey(key))
52 return web_audioBlinkMap[key];
53 if (web_glBlinkMap.containsKey(key))
54 return web_glBlinkMap[key];
55 if (web_sqlBlinkMap.containsKey(key))
56 return web_sqlBlinkMap[key];
57 if (svgBlinkMap.containsKey(key))
58 return svgBlinkMap[key];
59 return null;
60 }
OLDNEW
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | tools/dom/templates/html/dartium/html_dartium.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698