OLD | NEW |
| (Empty) |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 // WARNING: Do not edit - generated code. | |
6 | |
7 class _GeolocationWrappingImplementation extends DOMWrapperBase implements Geolo
cation { | |
8 _GeolocationWrappingImplementation() : super() {} | |
9 | |
10 static create__GeolocationWrappingImplementation() native { | |
11 return new _GeolocationWrappingImplementation(); | |
12 } | |
13 | |
14 void clearWatch(int watchId) { | |
15 _clearWatch(this, watchId); | |
16 return; | |
17 } | |
18 static void _clearWatch(receiver, watchId) native; | |
19 | |
20 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback = null]) { | |
21 if (errorCallback === null) { | |
22 _getCurrentPosition(this, successCallback); | |
23 return; | |
24 } else { | |
25 _getCurrentPosition_2(this, successCallback, errorCallback); | |
26 return; | |
27 } | |
28 } | |
29 static void _getCurrentPosition(receiver, successCallback) native; | |
30 static void _getCurrentPosition_2(receiver, successCallback, errorCallback) na
tive; | |
31 | |
32 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback = null]) { | |
33 if (errorCallback === null) { | |
34 return _watchPosition(this, successCallback); | |
35 } else { | |
36 return _watchPosition_2(this, successCallback, errorCallback); | |
37 } | |
38 } | |
39 static int _watchPosition(receiver, successCallback) native; | |
40 static int _watchPosition_2(receiver, successCallback, errorCallback) native; | |
41 | |
42 String get typeName() { return "Geolocation"; } | |
43 } | |
OLD | NEW |