| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 part of _blink; | |
| 6 | |
| 7 // _Utils native entry points | |
| 8 class Blink_Utils { | |
| 9 static window() native "Utils_window"; | |
| 10 | |
| 11 static forwardingPrint(message) native "Utils_forwardingPrint"; | |
| 12 | |
| 13 static spawnDomUri(uri) native "Utils_spawnDomUri"; | |
| 14 | |
| 15 static register(document, tag, customType, extendsTagName) native "Utils_regis
ter"; | |
| 16 | |
| 17 static createElement(document, tagName) native "Utils_createElement"; | |
| 18 | |
| 19 static initializeCustomElement(element) native "Utils_initializeCustomElement"
; | |
| 20 | |
| 21 static changeElementWrapper(element, type) native "Utils_changeElementWrapper"
; | |
| 22 } | |
| 23 | |
| 24 class Blink_DOMWindowCrossFrame { | |
| 25 // FIXME: Return to using explicit cross frame entry points after roll to M35 | |
| 26 static get_history(_DOMWindowCrossFrame) native "Window_history_cross_frame_Ge
tter"; | |
| 27 | |
| 28 static get_location(_DOMWindowCrossFrame) native "Window_location_cross_frame_
Getter"; | |
| 29 | |
| 30 static get_closed(_DOMWindowCrossFrame) native "Window_closed_Getter"; | |
| 31 | |
| 32 static get_opener(_DOMWindowCrossFrame) native "Window_opener_Getter"; | |
| 33 | |
| 34 static get_parent(_DOMWindowCrossFrame) native "Window_parent_Getter"; | |
| 35 | |
| 36 static get_top(_DOMWindowCrossFrame) native "Window_top_Getter"; | |
| 37 | |
| 38 static close(_DOMWindowCrossFrame) native "Window_close_Callback"; | |
| 39 | |
| 40 static postMessage(_DOMWindowCrossFrame, message, targetOrigin, [messagePorts]
) native "Window_postMessage_Callback"; | |
| 41 } | |
| 42 | |
| 43 class Blink_HistoryCrossFrame { | |
| 44 // _HistoryCrossFrame native entry points | |
| 45 static back(_HistoryCrossFrame) native "History_back_Callback"; | |
| 46 | |
| 47 static forward(_HistoryCrossFrame) native "History_forward_Callback"; | |
| 48 | |
| 49 static go(_HistoryCrossFrame, distance) native "History_go_Callback"; | |
| 50 } | |
| 51 | |
| 52 class Blink_LocationCrossFrame { | |
| 53 // _LocationCrossFrame native entry points | |
| 54 static set_href(_LocationCrossFrame, h) native "Location_href_Setter"; | |
| 55 } | |
| 56 | |
| 57 class Blink_DOMStringMap { | |
| 58 // _DOMStringMap native entry points | |
| 59 static containsKey(_DOMStringMap, key) native "DOMStringMap_containsKey_Callba
ck"; | |
| 60 | |
| 61 static item(_DOMStringMap, key) native "DOMStringMap_item_Callback"; | |
| 62 | |
| 63 static setItem(_DOMStringMap, key, value) native "DOMStringMap_setItem_Callbac
k"; | |
| 64 | |
| 65 static remove(_DOMStringMap, key) native "DOMStringMap_remove_Callback"; | |
| 66 | |
| 67 static get_keys(_DOMStringMap) native "DOMStringMap_getKeys_Callback"; | |
| 68 } | |
| OLD | NEW |