| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class _DOMWindowWrappingImplementation extends DOMWrapperBase implements DOMWind
ow { | 7 class _DOMWindowWrappingImplementation extends DOMWrapperBase implements DOMWind
ow { |
| 8 _DOMWindowWrappingImplementation() : super() {} | 8 _DOMWindowWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__DOMWindowWrappingImplementation() native { | 10 static create__DOMWindowWrappingImplementation() native { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 Crypto get crypto() { return _get__DOMWindow_crypto(this); } | 32 Crypto get crypto() { return _get__DOMWindow_crypto(this); } |
| 33 static Crypto _get__DOMWindow_crypto(var _this) native; | 33 static Crypto _get__DOMWindow_crypto(var _this) native; |
| 34 | 34 |
| 35 String get defaultStatus() { return _get__DOMWindow_defaultStatus(this); } | 35 String get defaultStatus() { return _get__DOMWindow_defaultStatus(this); } |
| 36 static String _get__DOMWindow_defaultStatus(var _this) native; | 36 static String _get__DOMWindow_defaultStatus(var _this) native; |
| 37 | 37 |
| 38 void set defaultStatus(String value) { _set__DOMWindow_defaultStatus(this, val
ue); } | 38 void set defaultStatus(String value) { _set__DOMWindow_defaultStatus(this, val
ue); } |
| 39 static void _set__DOMWindow_defaultStatus(var _this, String value) native; | 39 static void _set__DOMWindow_defaultStatus(var _this, String value) native; |
| 40 | 40 |
| 41 String get defaultstatus() { return _get__DOMWindow_defaultstatus(this); } |
| 42 static String _get__DOMWindow_defaultstatus(var _this) native; |
| 43 |
| 44 void set defaultstatus(String value) { _set__DOMWindow_defaultstatus(this, val
ue); } |
| 45 static void _set__DOMWindow_defaultstatus(var _this, String value) native; |
| 46 |
| 41 num get devicePixelRatio() { return _get__DOMWindow_devicePixelRatio(this); } | 47 num get devicePixelRatio() { return _get__DOMWindow_devicePixelRatio(this); } |
| 42 static num _get__DOMWindow_devicePixelRatio(var _this) native; | 48 static num _get__DOMWindow_devicePixelRatio(var _this) native; |
| 43 | 49 |
| 44 void set devicePixelRatio(num value) { _set__DOMWindow_devicePixelRatio(this,
value); } | 50 void set devicePixelRatio(num value) { _set__DOMWindow_devicePixelRatio(this,
value); } |
| 45 static void _set__DOMWindow_devicePixelRatio(var _this, num value) native; | 51 static void _set__DOMWindow_devicePixelRatio(var _this, num value) native; |
| 46 | 52 |
| 47 Document get document() { return _get__DOMWindow_document(this); } | 53 Document get document() { return _get__DOMWindow_document(this); } |
| 48 static Document _get__DOMWindow_document(var _this) native; | 54 static Document _get__DOMWindow_document(var _this) native; |
| 49 | 55 |
| 50 Event get event() { return _get__DOMWindow_event(this); } | 56 Event get event() { return _get__DOMWindow_event(this); } |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 | 691 |
| 686 DOMWindow get top() { return _get__DOMWindow_top(this); } | 692 DOMWindow get top() { return _get__DOMWindow_top(this); } |
| 687 static DOMWindow _get__DOMWindow_top(var _this) native; | 693 static DOMWindow _get__DOMWindow_top(var _this) native; |
| 688 | 694 |
| 689 void set top(DOMWindow value) { _set__DOMWindow_top(this, value); } | 695 void set top(DOMWindow value) { _set__DOMWindow_top(this, value); } |
| 690 static void _set__DOMWindow_top(var _this, DOMWindow value) native; | 696 static void _set__DOMWindow_top(var _this, DOMWindow value) native; |
| 691 | 697 |
| 692 NotificationCenter get webkitNotifications() { return _get__DOMWindow_webkitNo
tifications(this); } | 698 NotificationCenter get webkitNotifications() { return _get__DOMWindow_webkitNo
tifications(this); } |
| 693 static NotificationCenter _get__DOMWindow_webkitNotifications(var _this) nativ
e; | 699 static NotificationCenter _get__DOMWindow_webkitNotifications(var _this) nativ
e; |
| 694 | 700 |
| 701 DOMURL get webkitURL() { return _get__DOMWindow_webkitURL(this); } |
| 702 static DOMURL _get__DOMWindow_webkitURL(var _this) native; |
| 703 |
| 695 DOMWindow get window() { return _get__DOMWindow_window(this); } | 704 DOMWindow get window() { return _get__DOMWindow_window(this); } |
| 696 static DOMWindow _get__DOMWindow_window(var _this) native; | 705 static DOMWindow _get__DOMWindow_window(var _this) native; |
| 697 | 706 |
| 698 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | 707 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { |
| 699 if (useCapture === null) { | 708 if (useCapture === null) { |
| 700 _addEventListener(this, type, listener); | 709 _addEventListener(this, type, listener); |
| 701 return; | 710 return; |
| 702 } else { | 711 } else { |
| 703 _addEventListener_2(this, type, listener, useCapture); | 712 _addEventListener_2(this, type, listener, useCapture); |
| 704 return; | 713 return; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 _focus(this); | 781 _focus(this); |
| 773 return; | 782 return; |
| 774 } | 783 } |
| 775 static void _focus(receiver) native; | 784 static void _focus(receiver) native; |
| 776 | 785 |
| 777 CSSStyleDeclaration getComputedStyle(Element element, String pseudoElement) { | 786 CSSStyleDeclaration getComputedStyle(Element element, String pseudoElement) { |
| 778 return _getComputedStyle(this, element, pseudoElement); | 787 return _getComputedStyle(this, element, pseudoElement); |
| 779 } | 788 } |
| 780 static CSSStyleDeclaration _getComputedStyle(receiver, element, pseudoElement)
native; | 789 static CSSStyleDeclaration _getComputedStyle(receiver, element, pseudoElement)
native; |
| 781 | 790 |
| 791 CSSRuleList getMatchedCSSRules(Element element, String pseudoElement) { |
| 792 return _getMatchedCSSRules(this, element, pseudoElement); |
| 793 } |
| 794 static CSSRuleList _getMatchedCSSRules(receiver, element, pseudoElement) nativ
e; |
| 795 |
| 782 DOMSelection getSelection() { | 796 DOMSelection getSelection() { |
| 783 return _getSelection(this); | 797 return _getSelection(this); |
| 784 } | 798 } |
| 785 static DOMSelection _getSelection(receiver) native; | 799 static DOMSelection _getSelection(receiver) native; |
| 786 | 800 |
| 787 MediaQueryList matchMedia(String query) { | 801 MediaQueryList matchMedia(String query) { |
| 788 return _matchMedia(this, query); | 802 return _matchMedia(this, query); |
| 789 } | 803 } |
| 790 static MediaQueryList _matchMedia(receiver, query) native; | 804 static MediaQueryList _matchMedia(receiver, query) native; |
| 791 | 805 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 804 DOMWindow open(String url, String name, [String options = null]) { | 818 DOMWindow open(String url, String name, [String options = null]) { |
| 805 if (options === null) { | 819 if (options === null) { |
| 806 return _open(this, url, name); | 820 return _open(this, url, name); |
| 807 } else { | 821 } else { |
| 808 return _open_2(this, url, name, options); | 822 return _open_2(this, url, name, options); |
| 809 } | 823 } |
| 810 } | 824 } |
| 811 static DOMWindow _open(receiver, url, name) native; | 825 static DOMWindow _open(receiver, url, name) native; |
| 812 static DOMWindow _open_2(receiver, url, name, options) native; | 826 static DOMWindow _open_2(receiver, url, name, options) native; |
| 813 | 827 |
| 814 void postMessage(String message, String targetOrigin) { | 828 void postMessage(String message, var messagePorts_OR_targetOrigin, [String tar
getOrigin = null]) { |
| 815 _postMessage(this, message, targetOrigin); | 829 if (messagePorts_OR_targetOrigin is String) { |
| 816 return; | 830 if (targetOrigin === null) { |
| 831 _postMessage(this, message, messagePorts_OR_targetOrigin); |
| 832 return; |
| 833 } |
| 834 } else { |
| 835 if (messagePorts_OR_targetOrigin is List) { |
| 836 _postMessage_2(this, message, messagePorts_OR_targetOrigin, targetOrigin
); |
| 837 return; |
| 838 } |
| 839 } |
| 840 throw "Incorrect number or type of arguments"; |
| 817 } | 841 } |
| 818 static void _postMessage(receiver, message, targetOrigin) native; | 842 static void _postMessage(receiver, message, messagePorts_OR_targetOrigin) nati
ve; |
| 843 static void _postMessage_2(receiver, message, messagePorts_OR_targetOrigin, ta
rgetOrigin) native; |
| 819 | 844 |
| 820 void print() { | 845 void print() { |
| 821 _print(this); | 846 _print(this); |
| 822 return; | 847 return; |
| 823 } | 848 } |
| 824 static void _print(receiver) native; | 849 static void _print(receiver) native; |
| 825 | 850 |
| 826 String prompt(String message, String defaultValue) { | 851 String prompt(String message, String defaultValue) { |
| 827 return _prompt(this, message, defaultValue); | 852 return _prompt(this, message, defaultValue); |
| 828 } | 853 } |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 WebKitPoint webkitConvertPointFromNodeToPage(Node node, WebKitPoint p) { | 944 WebKitPoint webkitConvertPointFromNodeToPage(Node node, WebKitPoint p) { |
| 920 return _webkitConvertPointFromNodeToPage(this, node, p); | 945 return _webkitConvertPointFromNodeToPage(this, node, p); |
| 921 } | 946 } |
| 922 static WebKitPoint _webkitConvertPointFromNodeToPage(receiver, node, p) native
; | 947 static WebKitPoint _webkitConvertPointFromNodeToPage(receiver, node, p) native
; |
| 923 | 948 |
| 924 WebKitPoint webkitConvertPointFromPageToNode(Node node, WebKitPoint p) { | 949 WebKitPoint webkitConvertPointFromPageToNode(Node node, WebKitPoint p) { |
| 925 return _webkitConvertPointFromPageToNode(this, node, p); | 950 return _webkitConvertPointFromPageToNode(this, node, p); |
| 926 } | 951 } |
| 927 static WebKitPoint _webkitConvertPointFromPageToNode(receiver, node, p) native
; | 952 static WebKitPoint _webkitConvertPointFromPageToNode(receiver, node, p) native
; |
| 928 | 953 |
| 929 void webkitPostMessage(String message, String targetOrigin) { | 954 void webkitPostMessage(String message, var targetOrigin_OR_transferList, [Stri
ng targetOrigin = null]) { |
| 930 _webkitPostMessage(this, message, targetOrigin); | 955 if (targetOrigin_OR_transferList is String) { |
| 931 return; | 956 if (targetOrigin === null) { |
| 957 _webkitPostMessage(this, message, targetOrigin_OR_transferList); |
| 958 return; |
| 959 } |
| 960 } else { |
| 961 if (targetOrigin_OR_transferList is List) { |
| 962 _webkitPostMessage_2(this, message, targetOrigin_OR_transferList, target
Origin); |
| 963 return; |
| 964 } |
| 965 } |
| 966 throw "Incorrect number or type of arguments"; |
| 932 } | 967 } |
| 933 static void _webkitPostMessage(receiver, message, targetOrigin) native; | 968 static void _webkitPostMessage(receiver, message, targetOrigin_OR_transferList
) native; |
| 969 static void _webkitPostMessage_2(receiver, message, targetOrigin_OR_transferLi
st, targetOrigin) native; |
| 934 | 970 |
| 935 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, Elemen
t element) { | 971 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, Elemen
t element) { |
| 936 return _webkitRequestAnimationFrame(this, callback, element); | 972 return _webkitRequestAnimationFrame(this, callback, element); |
| 937 } | 973 } |
| 938 static int _webkitRequestAnimationFrame(receiver, callback, element) native; | 974 static int _webkitRequestAnimationFrame(receiver, callback, element) native; |
| 939 | 975 |
| 940 String get typeName() { return "DOMWindow"; } | 976 String get typeName() { return "DOMWindow"; } |
| 941 } | 977 } |
| OLD | NEW |