OLD | NEW |
(Empty) | |
| 1 |
| 2 class _GeolocationImpl extends _DOMTypeBase implements Geolocation { |
| 3 _GeolocationImpl._wrap(ptr) : super._wrap(ptr); |
| 4 |
| 5 void clearWatch(int watchId) { |
| 6 _ptr.clearWatch(_unwrap(watchId)); |
| 7 return; |
| 8 } |
| 9 |
| 10 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback = null]) { |
| 11 if (errorCallback === null) { |
| 12 _ptr.getCurrentPosition(_unwrap(successCallback)); |
| 13 return; |
| 14 } else { |
| 15 _ptr.getCurrentPosition(_unwrap(successCallback), _unwrap(errorCallback)); |
| 16 return; |
| 17 } |
| 18 } |
| 19 |
| 20 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback = null]) { |
| 21 if (errorCallback === null) { |
| 22 return _wrap(_ptr.watchPosition(_unwrap(successCallback))); |
| 23 } else { |
| 24 return _wrap(_ptr.watchPosition(_unwrap(successCallback), _unwrap(errorCal
lback))); |
| 25 } |
| 26 } |
| 27 } |
OLD | NEW |