Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(457)

Side by Side Diff: client/dom/generated/src/wrapping/_DOMWindowWrappingImplementation.dart

Issue 8574040: Support DOMString[] and regenerate from IDL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix Window.postMessage Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 DOMWindow open(String url, String name, [String options = null]) { 804 DOMWindow open(String url, String name, [String options = null]) {
805 if (options === null) { 805 if (options === null) {
806 return _open(this, url, name); 806 return _open(this, url, name);
807 } else { 807 } else {
808 return _open_2(this, url, name, options); 808 return _open_2(this, url, name, options);
809 } 809 }
810 } 810 }
811 static DOMWindow _open(receiver, url, name) native; 811 static DOMWindow _open(receiver, url, name) native;
812 static DOMWindow _open_2(receiver, url, name, options) native; 812 static DOMWindow _open_2(receiver, url, name, options) native;
813 813
814 void postMessage(String message, var messagePort_OR_targetOrigin, [String targ etOrigin = null]) { 814 void postMessage(String message, String targetOrigin) {
815 if (messagePort_OR_targetOrigin is String) { 815 _postMessage(this, message, targetOrigin);
816 if (targetOrigin === null) { 816 return;
817 _postMessage(this, message, messagePort_OR_targetOrigin);
818 return;
819 }
820 } else {
821 if (messagePort_OR_targetOrigin is MessagePort) {
822 _postMessage_2(this, message, messagePort_OR_targetOrigin, targetOrigin) ;
823 return;
824 }
825 }
826 throw "Incorrect number or type of arguments";
827 } 817 }
828 static void _postMessage(receiver, message, messagePort_OR_targetOrigin) nativ e; 818 static void _postMessage(receiver, message, targetOrigin) native;
829 static void _postMessage_2(receiver, message, messagePort_OR_targetOrigin, tar getOrigin) native;
830 819
831 void print() { 820 void print() {
832 _print(this); 821 _print(this);
833 return; 822 return;
834 } 823 }
835 static void _print(receiver) native; 824 static void _print(receiver) native;
836 825
837 String prompt(String message, String defaultValue) { 826 String prompt(String message, String defaultValue) {
838 return _prompt(this, message, defaultValue); 827 return _prompt(this, message, defaultValue);
839 } 828 }
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 WebKitPoint webkitConvertPointFromNodeToPage(Node node, WebKitPoint p) { 919 WebKitPoint webkitConvertPointFromNodeToPage(Node node, WebKitPoint p) {
931 return _webkitConvertPointFromNodeToPage(this, node, p); 920 return _webkitConvertPointFromNodeToPage(this, node, p);
932 } 921 }
933 static WebKitPoint _webkitConvertPointFromNodeToPage(receiver, node, p) native ; 922 static WebKitPoint _webkitConvertPointFromNodeToPage(receiver, node, p) native ;
934 923
935 WebKitPoint webkitConvertPointFromPageToNode(Node node, WebKitPoint p) { 924 WebKitPoint webkitConvertPointFromPageToNode(Node node, WebKitPoint p) {
936 return _webkitConvertPointFromPageToNode(this, node, p); 925 return _webkitConvertPointFromPageToNode(this, node, p);
937 } 926 }
938 static WebKitPoint _webkitConvertPointFromPageToNode(receiver, node, p) native ; 927 static WebKitPoint _webkitConvertPointFromPageToNode(receiver, node, p) native ;
939 928
929 void webkitPostMessage(String message, String targetOrigin) {
930 _webkitPostMessage(this, message, targetOrigin);
931 return;
932 }
933 static void _webkitPostMessage(receiver, message, targetOrigin) native;
934
940 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, Elemen t element) { 935 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, Elemen t element) {
941 return _webkitRequestAnimationFrame(this, callback, element); 936 return _webkitRequestAnimationFrame(this, callback, element);
942 } 937 }
943 static int _webkitRequestAnimationFrame(receiver, callback, element) native; 938 static int _webkitRequestAnimationFrame(receiver, callback, element) native;
944 939
945 String get typeName() { return "DOMWindow"; } 940 String get typeName() { return "DOMWindow"; }
946 } 941 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698