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