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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user