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

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

Issue 8637013: Remove support for attribute event listeners. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 _MessagePortWrappingImplementation extends DOMWrapperBase implements Messa gePort { 7 class _MessagePortWrappingImplementation extends DOMWrapperBase implements Messa gePort {
8 _MessagePortWrappingImplementation() : super() {} 8 _MessagePortWrappingImplementation() : super() {}
9 9
10 static create__MessagePortWrappingImplementation() native { 10 static create__MessagePortWrappingImplementation() native {
11 return new _MessagePortWrappingImplementation(); 11 return new _MessagePortWrappingImplementation();
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
20 void addEventListener(String type, EventListener listener, [bool useCapture = null]) { 14 void addEventListener(String type, EventListener listener, [bool useCapture = null]) {
21 if (useCapture === null) { 15 if (useCapture === null) {
22 _addEventListener_MessagePort(this, type, listener); 16 _addEventListener_MessagePort(this, type, listener);
23 return; 17 return;
24 } else { 18 } else {
25 _addEventListener_MessagePort_2(this, type, listener, useCapture); 19 _addEventListener_MessagePort_2(this, type, listener, useCapture);
26 return; 20 return;
27 } 21 }
28 } 22 }
29 static void _addEventListener_MessagePort(receiver, type, listener) native; 23 static void _addEventListener_MessagePort(receiver, type, listener) native;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } else { 71 } else {
78 _webkitPostMessage_2(this, message, transfer); 72 _webkitPostMessage_2(this, message, transfer);
79 return; 73 return;
80 } 74 }
81 } 75 }
82 static void _webkitPostMessage(receiver, message) native; 76 static void _webkitPostMessage(receiver, message) native;
83 static void _webkitPostMessage_2(receiver, message, transfer) native; 77 static void _webkitPostMessage_2(receiver, message, transfer) native;
84 78
85 String get typeName() { return "MessagePort"; } 79 String get typeName() { return "MessagePort"; }
86 } 80 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698