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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
Index: client/html/generated/html/dartium/Geolocation.dart
diff --git a/client/html/generated/html/dartium/Geolocation.dart b/client/html/generated/html/dartium/Geolocation.dart
new file mode 100644
index 0000000000000000000000000000000000000000..4b97dac680c16b11ab73bec0a5841712018ff3a0
--- /dev/null
+++ b/client/html/generated/html/dartium/Geolocation.dart
@@ -0,0 +1,27 @@
+
+class _GeolocationImpl extends _DOMTypeBase implements Geolocation {
+ _GeolocationImpl._wrap(ptr) : super._wrap(ptr);
+
+ void clearWatch(int watchId) {
+ _ptr.clearWatch(_unwrap(watchId));
+ return;
+ }
+
+ void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallback errorCallback = null]) {
+ if (errorCallback === null) {
+ _ptr.getCurrentPosition(_unwrap(successCallback));
+ return;
+ } else {
+ _ptr.getCurrentPosition(_unwrap(successCallback), _unwrap(errorCallback));
+ return;
+ }
+ }
+
+ int watchPosition(PositionCallback successCallback, [PositionErrorCallback errorCallback = null]) {
+ if (errorCallback === null) {
+ return _wrap(_ptr.watchPosition(_unwrap(successCallback)));
+ } else {
+ return _wrap(_ptr.watchPosition(_unwrap(successCallback), _unwrap(errorCallback)));
+ }
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698