| 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 _WorkerContextWrappingImplementation extends DOMWrapperBase implements Wor
kerContext { | 7 class _WorkerContextWrappingImplementation extends DOMWrapperBase implements Wor
kerContext { |
| 8 _WorkerContextWrappingImplementation() : super() {} | 8 _WorkerContextWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__WorkerContextWrappingImplementation() native { | 10 static create__WorkerContextWrappingImplementation() native { |
| 11 return new _WorkerContextWrappingImplementation(); | 11 return new _WorkerContextWrappingImplementation(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 WorkerLocation get location() { return _get__WorkerContext_location(this); } | 14 WorkerLocation get location() { return _get_location(this); } |
| 15 static WorkerLocation _get__WorkerContext_location(var _this) native; | 15 static WorkerLocation _get_location(var _this) native; |
| 16 | 16 |
| 17 void set location(WorkerLocation value) { _set__WorkerContext_location(this, v
alue); } | 17 void set location(WorkerLocation value) { _set_location(this, value); } |
| 18 static void _set__WorkerContext_location(var _this, WorkerLocation value) nati
ve; | 18 static void _set_location(var _this, WorkerLocation value) native; |
| 19 | 19 |
| 20 WorkerNavigator get navigator() { return _get__WorkerContext_navigator(this);
} | 20 WorkerNavigator get navigator() { return _get_navigator(this); } |
| 21 static WorkerNavigator _get__WorkerContext_navigator(var _this) native; | 21 static WorkerNavigator _get_navigator(var _this) native; |
| 22 | 22 |
| 23 void set navigator(WorkerNavigator value) { _set__WorkerContext_navigator(this
, value); } | 23 void set navigator(WorkerNavigator value) { _set_navigator(this, value); } |
| 24 static void _set__WorkerContext_navigator(var _this, WorkerNavigator value) na
tive; | 24 static void _set_navigator(var _this, WorkerNavigator value) native; |
| 25 | 25 |
| 26 EventListener get onerror() { return _get__WorkerContext_onerror(this); } | 26 EventListener get onerror() { return _get_onerror(this); } |
| 27 static EventListener _get__WorkerContext_onerror(var _this) native; | 27 static EventListener _get_onerror(var _this) native; |
| 28 | 28 |
| 29 void set onerror(EventListener value) { _set__WorkerContext_onerror(this, valu
e); } | 29 void set onerror(EventListener value) { _set_onerror(this, value); } |
| 30 static void _set__WorkerContext_onerror(var _this, EventListener value) native
; | 30 static void _set_onerror(var _this, EventListener value) native; |
| 31 | 31 |
| 32 WorkerContext get self() { return _get__WorkerContext_self(this); } | 32 WorkerContext get self() { return _get_self(this); } |
| 33 static WorkerContext _get__WorkerContext_self(var _this) native; | 33 static WorkerContext _get_self(var _this) native; |
| 34 | 34 |
| 35 void set self(WorkerContext value) { _set__WorkerContext_self(this, value); } | 35 void set self(WorkerContext value) { _set_self(this, value); } |
| 36 static void _set__WorkerContext_self(var _this, WorkerContext value) native; | 36 static void _set_self(var _this, WorkerContext value) native; |
| 37 | 37 |
| 38 NotificationCenter get webkitNotifications() { return _get__WorkerContext_webk
itNotifications(this); } | 38 NotificationCenter get webkitNotifications() { return _get_webkitNotifications
(this); } |
| 39 static NotificationCenter _get__WorkerContext_webkitNotifications(var _this) n
ative; | 39 static NotificationCenter _get_webkitNotifications(var _this) native; |
| 40 | 40 |
| 41 DOMURL get webkitURL() { return _get__WorkerContext_webkitURL(this); } | 41 DOMURL get webkitURL() { return _get_webkitURL(this); } |
| 42 static DOMURL _get__WorkerContext_webkitURL(var _this) native; | 42 static DOMURL _get_webkitURL(var _this) native; |
| 43 | 43 |
| 44 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | 44 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { |
| 45 if (useCapture === null) { | 45 if (useCapture === null) { |
| 46 _addEventListener(this, type, listener); | 46 _addEventListener(this, type, listener); |
| 47 return; | 47 return; |
| 48 } else { | 48 } else { |
| 49 _addEventListener_2(this, type, listener, useCapture); | 49 _addEventListener_2(this, type, listener, useCapture); |
| 50 return; | 50 return; |
| 51 } | 51 } |
| 52 } | 52 } |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 } | 99 } |
| 100 static int _setInterval(receiver, handler, timeout) native; | 100 static int _setInterval(receiver, handler, timeout) native; |
| 101 | 101 |
| 102 int setTimeout(TimeoutHandler handler, int timeout) { | 102 int setTimeout(TimeoutHandler handler, int timeout) { |
| 103 return _setTimeout(this, handler, timeout); | 103 return _setTimeout(this, handler, timeout); |
| 104 } | 104 } |
| 105 static int _setTimeout(receiver, handler, timeout) native; | 105 static int _setTimeout(receiver, handler, timeout) native; |
| 106 | 106 |
| 107 String get typeName() { return "WorkerContext"; } | 107 String get typeName() { return "WorkerContext"; } |
| 108 } | 108 } |
| OLD | NEW |