WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
31554
[Android] Android is missing the implementation of the GeolocationService iface.
https://bugs.webkit.org/show_bug.cgi?id=31554
Summary
[Android] Android is missing the implementation of the GeolocationService iface.
Andrei Popescu
Reported
2009-11-16 08:06:13 PST
Each port of WebKit that wants to support Geolocation must implement the GeolocationService interface. So Android needs one too.
Attachments
Android implementation of the GeolocationService implementation
(22.59 KB, patch)
2009-11-16 08:16 PST
,
Andrei Popescu
dglazkov
: review-
Details
Formatted Diff
Diff
Android implementation of the GeolocationService implementation v2
(26.23 KB, patch)
2009-11-16 10:48 PST
,
Andrei Popescu
no flags
Details
Formatted Diff
Diff
Android implementation of the GeolocationService implementation v2
(26.17 KB, patch)
2009-11-16 10:52 PST
,
Andrei Popescu
dglazkov
: review+
benm
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Andrei Popescu
Comment 1
2009-11-16 08:16:16 PST
Created
attachment 43308
[details]
Android implementation of the GeolocationService implementation The corresponding code in the Android source tree can be found at
http://android.git.kernel.org/?p=platform/external/webkit.git;a=tree;f=WebCore/platform/android;h=b66c3277d6de15bd67218256deeafa72925b557d;hb=refs/heads/eclair
Dimitri Glazkov (Google)
Comment 2
2009-11-16 09:15:04 PST
Comment on
attachment 43308
[details]
Android implementation of the GeolocationService implementation
> +// GeolocationServiceBridge is the bridge to the Java implementation. It manages > +// the lifetime of the Java object. It is an implementation detail of > +// GeolocationServiceAndroid. > +class GeolocationServiceBridge {
Can you split this out into a separate file?
> + static PassRefPtr<Geoposition> convertLocationToGeoposition(JNIEnv *env, const jobject &location);
toGeoposition is shorter and more inline with the WebKit convention.
> +static const char* kJavaGeolocationServiceClass = "android/webkit/GeolocationService";
prefix k* is not necessary, just use standard camelCase.
> +enum kJavaGeolocationServiceClassMethods { > + GEOLOCATION_SERVICE_METHOD_INIT = 0,
GeolocationServiceMethodInit <-- casing here and elsewhere
> + GEOLOCATION_SERVICE_METHOD_START, > + GEOLOCATION_SERVICE_METHOD_STOP, > + GEOLOCATION_SERVICE_METHOD_SET_ENABLE_GPS, > + GEOLOCATION_SERVICE_METHOD_COUNT, > +};
Andrei Popescu
Comment 3
2009-11-16 10:48:53 PST
Created
attachment 43314
[details]
Android implementation of the GeolocationService implementation v2
Andrei Popescu
Comment 4
2009-11-16 10:52:37 PST
Created
attachment 43315
[details]
Android implementation of the GeolocationService implementation v2 The previous patch was missing new lines at the end of the new files.
Andrei Popescu
Comment 5
2009-11-16 10:54:59 PST
Thanks Dimitri, (In reply to
comment #2
)
> (From update of
attachment 43308
[details]
) > > +// GeolocationServiceBridge is the bridge to the Java implementation. It manages > > +// the lifetime of the Java object. It is an implementation detail of > > +// GeolocationServiceAndroid. > > +class GeolocationServiceBridge { > > Can you split this out into a separate file? >
Sure, done.
> > + static PassRefPtr<Geoposition> convertLocationToGeoposition(JNIEnv *env, const jobject &location); > > toGeoposition is shorter and more inline with the WebKit convention.
> Indeed. Changed.
> > +static const char* kJavaGeolocationServiceClass = "android/webkit/GeolocationService"; > > prefix k* is not necessary, just use standard camelCase. >
Done.
> > +enum kJavaGeolocationServiceClassMethods { > > + GEOLOCATION_SERVICE_METHOD_INIT = 0, > > GeolocationServiceMethodInit <-- casing here and elsewhere
> Fixed. Andrei
Dimitri Glazkov (Google)
Comment 6
2009-11-16 11:09:48 PST
Comment on
attachment 43315
[details]
Android implementation of the GeolocationService implementation v2 looks good.
Ben Murdoch
Comment 7
2009-11-17 04:28:20 PST
Comment on
attachment 43315
[details]
Android implementation of the GeolocationService implementation v2 Will land this manually as the commit queue is currently disabled.
Ben Murdoch
Comment 8
2009-11-17 05:13:32 PST
Landed as
r51071
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug