Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: client/html/generated/html/dartium/Geolocation.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698