| 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 part of _blink; | 5 part of _blink; |
| 6 | 6 |
| 7 // _Utils native entry points | 7 // _Utils native entry points |
| 8 Native_Utils_window() native "Utils_window"; | 8 class Blink_Utils { |
| 9 static window() native "Utils_window"; |
| 9 | 10 |
| 10 Native_Utils_forwardingPrint(message) native "Utils_forwardingPrint"; | 11 static forwardingPrint(message) native "Utils_forwardingPrint"; |
| 11 | 12 |
| 12 Native_Utils_spawnDomUri(uri) native "Utils_spawnDomUri"; | 13 static spawnDomUri(uri) native "Utils_spawnDomUri"; |
| 13 | 14 |
| 14 Native_Utils_register(document, tag, customType, extendsTagName) native "Utils_r
egister"; | 15 static register(document, tag, customType, extendsTagName) native "Utils_regis
ter"; |
| 15 | 16 |
| 16 Native_Utils_createElement(document, tagName) native "Utils_createElement"; | 17 static createElement(document, tagName) native "Utils_createElement"; |
| 17 | 18 |
| 18 Native_Utils_initializeCustomElement(element) native "Utils_initializeCustomElem
ent"; | 19 static initializeCustomElement(element) native "Utils_initializeCustomElement"
; |
| 19 | 20 |
| 20 Native_Utils_changeElementWrapper(element, type) native "Utils_changeElementWrap
per"; | 21 static changeElementWrapper(element, type) native "Utils_changeElementWrapper"
; |
| 22 } |
| 21 | 23 |
| 22 // FIXME: Return to using explicit cross frame entry points after roll to M35 | 24 class Blink_DOMWindowCrossFrame { |
| 23 Native_DOMWindowCrossFrame_get_history(_DOMWindowCrossFrame) native "Window_hist
ory_cross_frame_Getter"; | 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"; |
| 24 | 27 |
| 25 Native_DOMWindowCrossFrame_get_location(_DOMWindowCrossFrame) native "Window_loc
ation_cross_frame_Getter"; | 28 static get_location(_DOMWindowCrossFrame) native "Window_location_cross_frame_
Getter"; |
| 26 | 29 |
| 27 Native_DOMWindowCrossFrame_get_closed(_DOMWindowCrossFrame) native "Window_close
d_Getter"; | 30 static get_closed(_DOMWindowCrossFrame) native "Window_closed_Getter"; |
| 28 | 31 |
| 29 Native_DOMWindowCrossFrame_get_opener(_DOMWindowCrossFrame) native "Window_opene
r_Getter"; | 32 static get_opener(_DOMWindowCrossFrame) native "Window_opener_Getter"; |
| 30 | 33 |
| 31 Native_DOMWindowCrossFrame_get_parent(_DOMWindowCrossFrame) native "Window_paren
t_Getter"; | 34 static get_parent(_DOMWindowCrossFrame) native "Window_parent_Getter"; |
| 32 | 35 |
| 33 Native_DOMWindowCrossFrame_get_top(_DOMWindowCrossFrame) native "Window_top_Gett
er"; | 36 static get_top(_DOMWindowCrossFrame) native "Window_top_Getter"; |
| 34 | 37 |
| 35 Native_DOMWindowCrossFrame_close(_DOMWindowCrossFrame) native "Window_close_Call
back_RESOLVER_STRING_0_"; | 38 static close(_DOMWindowCrossFrame) native "Window_close_Callback_RESOLVER_STRI
NG_0_"; |
| 36 | 39 |
| 37 Native_DOMWindowCrossFrame_postMessage(_DOMWindowCrossFrame, message, targetOrig
in, [messagePorts]) native "Window_postMessage_Callback"; | 40 static postMessage(_DOMWindowCrossFrame, message, targetOrigin, [messagePorts]
) native "Window_postMessage_Callback"; |
| 41 } |
| 38 | 42 |
| 39 // _HistoryCrossFrame native entry points | 43 class Blink_HistoryCrossFrame { |
| 40 Native_HistoryCrossFrame_back(_HistoryCrossFrame) native "History_back_Callback_
RESOLVER_STRING_0_"; | 44 // _HistoryCrossFrame native entry points |
| 45 static back(_HistoryCrossFrame) native "History_back_Callback_RESOLVER_STRING_
0_"; |
| 41 | 46 |
| 42 Native_HistoryCrossFrame_forward(_HistoryCrossFrame) native "History_forward_Cal
lback_RESOLVER_STRING_0_"; | 47 static forward(_HistoryCrossFrame) native "History_forward_Callback_RESOLVER_S
TRING_0_"; |
| 43 | 48 |
| 44 Native_HistoryCrossFrame_go(_HistoryCrossFrame, distance) native "History_go_Cal
lback_RESOLVER_STRING_1_long"; | 49 static go(_HistoryCrossFrame, distance) native "History_go_Callback_RESOLVER_S
TRING_1_long"; |
| 50 } |
| 45 | 51 |
| 46 // _LocationCrossFrame native entry points | 52 class Blink_LocationCrossFrame { |
| 47 Native_LocationCrossFrame_set_href(_LocationCrossFrame, h) native "Location_href
_Setter"; | 53 // _LocationCrossFrame native entry points |
| 54 static set_href(_LocationCrossFrame, h) native "Location_href_Setter"; |
| 55 } |
| 48 | 56 |
| 49 // _DOMStringMap native entry points | 57 class Blink_DOMStringMap { |
| 50 Native_DOMStringMap_containsKey(_DOMStringMap, key) native "DOMStringMap_contain
sKey_Callback"; | 58 // _DOMStringMap native entry points |
| 59 static containsKey(_DOMStringMap, key) native "DOMStringMap_containsKey_Callba
ck"; |
| 51 | 60 |
| 52 Native_DOMStringMap_item(_DOMStringMap, key) native "DOMStringMap_item_Callback"
; | 61 static item(_DOMStringMap, key) native "DOMStringMap_item_Callback"; |
| 53 | 62 |
| 54 Native_DOMStringMap_setItem(_DOMStringMap, key, value) native "DOMStringMap_setI
tem_Callback"; | 63 static setItem(_DOMStringMap, key, value) native "DOMStringMap_setItem_Callbac
k"; |
| 55 | 64 |
| 56 Native_DOMStringMap_remove(_DOMStringMap, key) native "DOMStringMap_remove_Callb
ack"; | 65 static remove(_DOMStringMap, key) native "DOMStringMap_remove_Callback"; |
| 57 | 66 |
| 58 Native_DOMStringMap_get_keys(_DOMStringMap) native "DOMStringMap_getKeys_Callbac
k"; | 67 static get_keys(_DOMStringMap) native "DOMStringMap_getKeys_Callback"; |
| 68 } |
| OLD | NEW |