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

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

Issue 8894029: Generate EventListener attributes of non-EventTarget classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 9 years 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 _DedicatedWorkerContextWrappingImplementation extends _WorkerContextWrappi ngImplementation implements DedicatedWorkerContext { 7 class _DedicatedWorkerContextWrappingImplementation extends _WorkerContextWrappi ngImplementation implements DedicatedWorkerContext {
8 _DedicatedWorkerContextWrappingImplementation() : super() {} 8 _DedicatedWorkerContextWrappingImplementation() : super() {}
9 9
10 static create__DedicatedWorkerContextWrappingImplementation() native { 10 static create__DedicatedWorkerContextWrappingImplementation() native {
11 return new _DedicatedWorkerContextWrappingImplementation(); 11 return new _DedicatedWorkerContextWrappingImplementation();
12 } 12 }
13 13
14 EventListener get onmessage() { return _get_onmessage(this); }
15 static EventListener _get_onmessage(var _this) native;
16
17 void set onmessage(EventListener value) { _set_onmessage(this, value); }
18 static void _set_onmessage(var _this, EventListener value) native;
19
14 void postMessage(Object message, [List messagePorts = null]) { 20 void postMessage(Object message, [List messagePorts = null]) {
15 if (messagePorts === null) { 21 if (messagePorts === null) {
16 _postMessage(this, message); 22 _postMessage(this, message);
17 return; 23 return;
18 } else { 24 } else {
19 _postMessage_2(this, message, messagePorts); 25 _postMessage_2(this, message, messagePorts);
20 return; 26 return;
21 } 27 }
22 } 28 }
23 static void _postMessage(receiver, message) native; 29 static void _postMessage(receiver, message) native;
24 static void _postMessage_2(receiver, message, messagePorts) native; 30 static void _postMessage_2(receiver, message, messagePorts) native;
25 31
26 void webkitPostMessage(Object message, [List transferList = null]) { 32 void webkitPostMessage(Object message, [List transferList = null]) {
27 if (transferList === null) { 33 if (transferList === null) {
28 _webkitPostMessage(this, message); 34 _webkitPostMessage(this, message);
29 return; 35 return;
30 } else { 36 } else {
31 _webkitPostMessage_2(this, message, transferList); 37 _webkitPostMessage_2(this, message, transferList);
32 return; 38 return;
33 } 39 }
34 } 40 }
35 static void _webkitPostMessage(receiver, message) native; 41 static void _webkitPostMessage(receiver, message) native;
36 static void _webkitPostMessage_2(receiver, message, transferList) native; 42 static void _webkitPostMessage_2(receiver, message, transferList) native;
37 43
38 String get typeName() { return "DedicatedWorkerContext"; } 44 String get typeName() { return "DedicatedWorkerContext"; }
39 } 45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698