| OLD | NEW |
| 1 /** | 1 /** |
| 2 * This library provides entry points to the native Blink code which backs | 2 * This library provides entry points to the native Blink code which backs |
| 3 * up the dart:html library. | 3 * up the dart:html library. |
| 4 */ | 4 */ |
| 5 library dart.dom._blink; | 5 library dart.dom._blink; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 import 'dart:html'; | 9 import 'dart:html'; |
| 10 import 'dart:_internal' hide Symbol, deprecated; | 10 import 'dart:_internal' hide Symbol, deprecated; |
| (...skipping 9342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9353 static $transformToDocument_Callback(mthis, source) native "XSLTProcessor_tran
sformToDocument_Callback_RESOLVER_STRING_1_Node"; | 9353 static $transformToDocument_Callback(mthis, source) native "XSLTProcessor_tran
sformToDocument_Callback_RESOLVER_STRING_1_Node"; |
| 9354 | 9354 |
| 9355 static $transformToFragment_Callback(mthis, source, docVal) native "XSLTProces
sor_transformToFragment_Callback_RESOLVER_STRING_2_Node_Document"; | 9355 static $transformToFragment_Callback(mthis, source, docVal) native "XSLTProces
sor_transformToFragment_Callback_RESOLVER_STRING_2_Node_Document"; |
| 9356 } | 9356 } |
| 9357 | 9357 |
| 9358 | 9358 |
| 9359 // TODO(vsm): This should be moved out of this library. Into dart:html? | 9359 // TODO(vsm): This should be moved out of this library. Into dart:html? |
| 9360 Type _getType(String key) { | 9360 Type _getType(String key) { |
| 9361 // TODO(vsm): Add Cross Frame and JS types here as well. | 9361 // TODO(vsm): Add Cross Frame and JS types here as well. |
| 9362 if (htmlBlinkMap.containsKey(key)) | 9362 if (htmlBlinkMap.containsKey(key)) |
| 9363 return htmlBlinkMap[key]; | 9363 return htmlBlinkMap[key](); |
| 9364 if (indexed_dbBlinkMap.containsKey(key)) | 9364 if (indexed_dbBlinkMap.containsKey(key)) |
| 9365 return indexed_dbBlinkMap[key]; | 9365 return indexed_dbBlinkMap[key](); |
| 9366 if (web_audioBlinkMap.containsKey(key)) | 9366 if (web_audioBlinkMap.containsKey(key)) |
| 9367 return web_audioBlinkMap[key]; | 9367 return web_audioBlinkMap[key](); |
| 9368 if (web_glBlinkMap.containsKey(key)) | 9368 if (web_glBlinkMap.containsKey(key)) |
| 9369 return web_glBlinkMap[key]; | 9369 return web_glBlinkMap[key](); |
| 9370 if (web_sqlBlinkMap.containsKey(key)) | 9370 if (web_sqlBlinkMap.containsKey(key)) |
| 9371 return web_sqlBlinkMap[key]; | 9371 return web_sqlBlinkMap[key](); |
| 9372 if (svgBlinkMap.containsKey(key)) | 9372 if (svgBlinkMap.containsKey(key)) |
| 9373 return svgBlinkMap[key]; | 9373 return svgBlinkMap[key](); |
| 9374 return null; | 9374 return null; |
| 9375 }// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 9375 }// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 9376 // for details. All rights reserved. Use of this source code is governed by a | 9376 // for details. All rights reserved. Use of this source code is governed by a |
| 9377 // BSD-style license that can be found in the LICENSE file. | 9377 // BSD-style license that can be found in the LICENSE file. |
| 9378 | 9378 |
| 9379 | 9379 |
| 9380 // _Utils native entry points | 9380 // _Utils native entry points |
| 9381 class Blink_Utils { | 9381 class Blink_Utils { |
| 9382 static window() native "Utils_window"; | 9382 static window() native "Utils_window"; |
| 9383 | 9383 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9432 static containsKey(_DOMStringMap, key) native "DOMStringMap_containsKey_Callba
ck"; | 9432 static containsKey(_DOMStringMap, key) native "DOMStringMap_containsKey_Callba
ck"; |
| 9433 | 9433 |
| 9434 static item(_DOMStringMap, key) native "DOMStringMap_item_Callback"; | 9434 static item(_DOMStringMap, key) native "DOMStringMap_item_Callback"; |
| 9435 | 9435 |
| 9436 static setItem(_DOMStringMap, key, value) native "DOMStringMap_setItem_Callbac
k"; | 9436 static setItem(_DOMStringMap, key, value) native "DOMStringMap_setItem_Callbac
k"; |
| 9437 | 9437 |
| 9438 static remove(_DOMStringMap, key) native "DOMStringMap_remove_Callback"; | 9438 static remove(_DOMStringMap, key) native "DOMStringMap_remove_Callback"; |
| 9439 | 9439 |
| 9440 static get_keys(_DOMStringMap) native "DOMStringMap_getKeys_Callback"; | 9440 static get_keys(_DOMStringMap) native "DOMStringMap_getKeys_Callback"; |
| 9441 } | 9441 } |
| OLD | NEW |