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

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

Issue 9264057: Refresh dart:dom libraries from WebKit (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't re-implement List<>, causes code that dartc rejects due to static 'override' Created 8 years, 10 months 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 _WorkerWrappingImplementation extends _AbstractWorkerWrappingImplementatio n implements Worker { 7 class _WorkerWrappingImplementation extends _AbstractWorkerWrappingImplementatio n implements Worker {
8 _WorkerWrappingImplementation() : super() {} 8 _WorkerWrappingImplementation() : super() {}
9 9
10 static create__WorkerWrappingImplementation() native { 10 static create__WorkerWrappingImplementation() native {
11 return new _WorkerWrappingImplementation(); 11 return new _WorkerWrappingImplementation();
12 } 12 }
13 13
14 void postMessage(String message, [List messagePorts = null]) { 14 void postMessage(Dynamic/*SerializedScriptValue*/ message, [List messagePorts = null]) {
15 if (messagePorts === null) { 15 if (messagePorts === null) {
16 _postMessage(this, message); 16 _postMessage(this, message);
17 return; 17 return;
18 } else { 18 } else {
19 _postMessage_2(this, message, messagePorts); 19 _postMessage_2(this, message, messagePorts);
20 return; 20 return;
21 } 21 }
22 } 22 }
23 static void _postMessage(receiver, message) native; 23 static void _postMessage(receiver, message) native;
24 static void _postMessage_2(receiver, message, messagePorts) native; 24 static void _postMessage_2(receiver, message, messagePorts) native;
25 25
26 void terminate() { 26 void terminate() {
27 _terminate(this); 27 _terminate(this);
28 return; 28 return;
29 } 29 }
30 static void _terminate(receiver) native; 30 static void _terminate(receiver) native;
31 31
32 void webkitPostMessage(String message, [List messagePorts = null]) { 32 void webkitPostMessage(Dynamic/*SerializedScriptValue*/ message, [List message Ports = null]) {
33 if (messagePorts === null) { 33 if (messagePorts === null) {
34 _webkitPostMessage(this, message); 34 _webkitPostMessage(this, message);
35 return; 35 return;
36 } else { 36 } else {
37 _webkitPostMessage_2(this, message, messagePorts); 37 _webkitPostMessage_2(this, message, messagePorts);
38 return; 38 return;
39 } 39 }
40 } 40 }
41 static void _webkitPostMessage(receiver, message) native; 41 static void _webkitPostMessage(receiver, message) native;
42 static void _webkitPostMessage_2(receiver, message, messagePorts) native; 42 static void _webkitPostMessage_2(receiver, message, messagePorts) native;
43 43
44 String get typeName() { return "Worker"; } 44 String get typeName() { return "Worker"; }
45 } 45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698