Chromium Code Reviews| 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 7168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7179 | 7179 |
| 7180 Native_TreeWalker_previousNode_Callback(mthis) native "TreeWalker_previousNode_C allback_RESOLVER_STRING_0_"; | 7180 Native_TreeWalker_previousNode_Callback(mthis) native "TreeWalker_previousNode_C allback_RESOLVER_STRING_0_"; |
| 7181 | 7181 |
| 7182 Native_TreeWalker_previousSibling_Callback(mthis) native "TreeWalker_previousSib ling_Callback_RESOLVER_STRING_0_"; | 7182 Native_TreeWalker_previousSibling_Callback(mthis) native "TreeWalker_previousSib ling_Callback_RESOLVER_STRING_0_"; |
| 7183 | 7183 |
| 7184 // Generated overload resolver | 7184 // Generated overload resolver |
| 7185 Native_URL_createObjectUrl(blob_OR_source_OR_stream) { | 7185 Native_URL_createObjectUrl(blob_OR_source_OR_stream) { |
| 7186 if ((blob_OR_source_OR_stream is Blob || blob_OR_source_OR_stream == null)) { | 7186 if ((blob_OR_source_OR_stream is Blob || blob_OR_source_OR_stream == null)) { |
| 7187 return Native_URL__createObjectURL_1_Callback(blob_OR_source_OR_stream); | 7187 return Native_URL__createObjectURL_1_Callback(blob_OR_source_OR_stream); |
| 7188 } | 7188 } |
| 7189 if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) { | 7189 if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) { |
| 7190 return Native_URL__createObjectURL_2_Callback(blob_OR_source_OR_stream); | 7190 return Native_URL__createObjectURL_2_Callback(blob_OR_source_OR_stream); |
| 7191 } | 7191 } |
| 7192 if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) { | 7192 if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) { |
| 7193 return Native_URL__createObjectURL_3_Callback(blob_OR_source_OR_stream); | 7193 return Native_URL__createObjectURL_3_Callback(blob_OR_source_OR_stream); |
| 7194 } | 7194 } |
| 7195 throw new ArgumentError("Incorrect number or type of arguments"); | 7195 throw new ArgumentError("Incorrect number or type of arguments"); |
| 7196 } | 7196 } |
| 7197 | 7197 |
| 7198 Native_URL__createObjectURL_1_Callback(blob_OR_source_OR_stream) native "URL_cre ateObjectURL_Callback_RESOLVER_STRING_1_Blob"; | 7198 Native_URL__createObjectURL_1_Callback(blob_OR_source_OR_stream) native "URL_cre ateObjectURL_Callback_RESOLVER_STRING_1_Blob"; |
| 7199 | 7199 |
| 7200 Native_URL__createObjectURL_2_Callback(blob_OR_source_OR_stream) native "URL_cre ateObjectURL_Callback_RESOLVER_STRING_1_MediaStream"; | 7200 Native_URL__createObjectURL_2_Callback(blob_OR_source_OR_stream) native "URL_cre ateObjectURL_Callback_RESOLVER_STRING_1_MediaSource"; |
| 7201 | 7201 |
| 7202 Native_URL__createObjectURL_3_Callback(blob_OR_source_OR_stream) native "URL_cre ateObjectURL_Callback_RESOLVER_STRING_1_MediaSource"; | 7202 Native_URL__createObjectURL_3_Callback(blob_OR_source_OR_stream) native "URL_cre ateObjectURL_Callback_RESOLVER_STRING_1_MediaStream"; |
| 7203 | 7203 |
| 7204 Native_URL_createObjectUrlFromBlob_Callback(blob) native "URL_createObjectURL_Ca llback_RESOLVER_STRING_1_Blob"; | 7204 Native_URL_createObjectUrlFromBlob_Callback(blob) native "URL_createObjectURL_Ca llback_RESOLVER_STRING_1_Blob"; |
| 7205 | 7205 |
| 7206 Native_URL_createObjectUrlFromSource_Callback(source) native "URL_createObjectUR L_Callback_RESOLVER_STRING_1_MediaSource"; | 7206 Native_URL_createObjectUrlFromSource_Callback(source) native "URL_createObjectUR L_Callback_RESOLVER_STRING_1_MediaSource"; |
| 7207 | 7207 |
| 7208 Native_URL_createObjectUrlFromStream_Callback(stream) native "URL_createObjectUR L_Callback_RESOLVER_STRING_1_MediaStream"; | 7208 Native_URL_createObjectUrlFromStream_Callback(stream) native "URL_createObjectUR L_Callback_RESOLVER_STRING_1_MediaStream"; |
| 7209 | 7209 |
| 7210 Native_URL_revokeObjectURL_Callback(url) native "URL_revokeObjectURL_Callback_RE SOLVER_STRING_1_DOMString"; | 7210 Native_URL_revokeObjectURL_Callback(url) native "URL_revokeObjectURL_Callback_RE SOLVER_STRING_1_DOMString"; |
| 7211 | 7211 |
| 7212 Native_URL_hash_Getter(mthis) native "URL_hash_Getter"; | 7212 Native_URL_hash_Getter(mthis) native "URL_hash_Getter"; |
| (...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 8290 Native_XSLTProcessor_setParameter_Callback(mthis, namespaceURI, localName, value ) native "XSLTProcessor_setParameter_Callback"; | 8290 Native_XSLTProcessor_setParameter_Callback(mthis, namespaceURI, localName, value ) native "XSLTProcessor_setParameter_Callback"; |
| 8291 | 8291 |
| 8292 Native_XSLTProcessor_transformToDocument_Callback(mthis, source) native "XSLTPro cessor_transformToDocument_Callback_RESOLVER_STRING_1_Node"; | 8292 Native_XSLTProcessor_transformToDocument_Callback(mthis, source) native "XSLTPro cessor_transformToDocument_Callback_RESOLVER_STRING_1_Node"; |
| 8293 | 8293 |
| 8294 Native_XSLTProcessor_transformToFragment_Callback(mthis, source, docVal) native "XSLTProcessor_transformToFragment_Callback_RESOLVER_STRING_2_Node_Document"; | 8294 Native_XSLTProcessor_transformToFragment_Callback(mthis, source, docVal) native "XSLTProcessor_transformToFragment_Callback_RESOLVER_STRING_2_Node_Document"; |
| 8295 | 8295 |
| 8296 | 8296 |
| 8297 // TODO(vsm): This should be moved out of this library. Into dart:html? | 8297 // TODO(vsm): This should be moved out of this library. Into dart:html? |
| 8298 Type _getType(String key) { | 8298 Type _getType(String key) { |
| 8299 // TODO(vsm): Add Cross Frame and JS types here as well. | 8299 // TODO(vsm): Add Cross Frame and JS types here as well. |
| 8300 if (htmlBlinkMap.containsKey(key)) | 8300 if (htmlBlinkMap.containsKey(key)) |
|
vsm
2014/05/28 15:07:45
If initializing htmlBlinkMap is too expensive, we
siva
2014/05/30 23:53:33
If we are going to go with specialization for cert
| |
| 8301 return htmlBlinkMap[key]; | 8301 return htmlBlinkMap[key](); |
| 8302 if (indexed_dbBlinkMap.containsKey(key)) | 8302 if (indexed_dbBlinkMap.containsKey(key)) |
| 8303 return indexed_dbBlinkMap[key]; | 8303 return indexed_dbBlinkMap[key](); |
| 8304 if (web_audioBlinkMap.containsKey(key)) | 8304 if (web_audioBlinkMap.containsKey(key)) |
| 8305 return web_audioBlinkMap[key]; | 8305 return web_audioBlinkMap[key](); |
| 8306 if (web_glBlinkMap.containsKey(key)) | 8306 if (web_glBlinkMap.containsKey(key)) |
| 8307 return web_glBlinkMap[key]; | 8307 return web_glBlinkMap[key](); |
| 8308 if (web_sqlBlinkMap.containsKey(key)) | 8308 if (web_sqlBlinkMap.containsKey(key)) |
| 8309 return web_sqlBlinkMap[key]; | 8309 return web_sqlBlinkMap[key](); |
| 8310 if (svgBlinkMap.containsKey(key)) | 8310 if (svgBlinkMap.containsKey(key)) |
| 8311 return svgBlinkMap[key]; | 8311 return svgBlinkMap[key](); |
| 8312 return null; | 8312 return null; |
| 8313 }// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 8313 }// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 8314 // for details. All rights reserved. Use of this source code is governed by a | 8314 // for details. All rights reserved. Use of this source code is governed by a |
| 8315 // BSD-style license that can be found in the LICENSE file. | 8315 // BSD-style license that can be found in the LICENSE file. |
| 8316 | 8316 |
| 8317 | 8317 |
| 8318 // _Utils native entry points | 8318 // _Utils native entry points |
| 8319 Native_Utils_window() native "Utils_window"; | 8319 Native_Utils_window() native "Utils_window"; |
| 8320 | 8320 |
| 8321 Native_Utils_forwardingPrint(message) native "Utils_forwardingPrint"; | 8321 Native_Utils_forwardingPrint(message) native "Utils_forwardingPrint"; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 8360 // _DOMStringMap native entry points | 8360 // _DOMStringMap native entry points |
| 8361 Native_DOMStringMap_containsKey(_DOMStringMap, key) native "DOMStringMap_contain sKey_Callback"; | 8361 Native_DOMStringMap_containsKey(_DOMStringMap, key) native "DOMStringMap_contain sKey_Callback"; |
| 8362 | 8362 |
| 8363 Native_DOMStringMap_item(_DOMStringMap, key) native "DOMStringMap_item_Callback" ; | 8363 Native_DOMStringMap_item(_DOMStringMap, key) native "DOMStringMap_item_Callback" ; |
| 8364 | 8364 |
| 8365 Native_DOMStringMap_setItem(_DOMStringMap, key, value) native "DOMStringMap_setI tem_Callback"; | 8365 Native_DOMStringMap_setItem(_DOMStringMap, key, value) native "DOMStringMap_setI tem_Callback"; |
| 8366 | 8366 |
| 8367 Native_DOMStringMap_remove(_DOMStringMap, key) native "DOMStringMap_remove_Callb ack"; | 8367 Native_DOMStringMap_remove(_DOMStringMap, key) native "DOMStringMap_remove_Callb ack"; |
| 8368 | 8368 |
| 8369 Native_DOMStringMap_get_keys(_DOMStringMap) native "DOMStringMap_getKeys_Callbac k"; | 8369 Native_DOMStringMap_get_keys(_DOMStringMap) native "DOMStringMap_getKeys_Callbac k"; |
| OLD | NEW |