Re-generate html library.

BUG=

Review URL: https://codereview.chromium.org//14251015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21477 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
ajohnsen@google.com
2013-04-15 16:58:09 +00:00
parent c28247625c
commit b550a87c26
2 changed files with 28 additions and 30 deletions
+14 -15
View File
@@ -11545,21 +11545,20 @@ class Geolocation native "*Geolocation" {
int watchId;
var controller;
controller = new StreamController<Geoposition>(
onSubscriptionStateChange: () {
if (controller.hasListener) {
assert(watchId == null);
watchId = $dom_watchPosition(
(position) {
controller.add(_ensurePosition(position));
},
(error) {
controller.addError(error);
},
options);
} else {
assert(watchId != null);
$dom_clearWatch(watchId);
}
onListen: () {
assert(watchId == null);
watchId = $dom_watchPosition(
(position) {
controller.add(_ensurePosition(position));
},
(error) {
controller.addError(error);
},
options);
},
onCancel: () {
assert(watchId != null);
$dom_clearWatch(watchId);
});
return controller.stream;
+14 -15
View File
@@ -12214,21 +12214,20 @@ class Geolocation extends NativeFieldWrapperClass1 {
int watchId;
var controller;
controller = new StreamController<Geoposition>(
onSubscriptionStateChange: () {
if (controller.hasListener) {
assert(watchId == null);
watchId = $dom_watchPosition(
(position) {
controller.add(_ensurePosition(position));
},
(error) {
controller.addError(error);
},
options);
} else {
assert(watchId != null);
$dom_clearWatch(watchId);
}
onListen: () {
assert(watchId == null);
watchId = $dom_watchPosition(
(position) {
controller.add(_ensurePosition(position));
},
(error) {
controller.addError(error);
},
options);
},
onCancel: () {
assert(watchId != null);
$dom_clearWatch(watchId);
});
return controller.stream;