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

Issue 393533002: Pass through the geofencing API calls to the content layer. (Closed)

Created:
6 years, 5 months ago by Marijn Kruisselbrink
Modified:
6 years, 3 months ago
Reviewers:
Peter Beverloo
CC:
blink-reviews, dglazkov+blink, jamesr, timvolodine, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@geofencing2
Project:
blink
Visibility:
Public.

Description

Pass through the geofencing API calls to the content layer. Mostly modelled on how the Push API passes its registration call on to the content layer. BUG=383125

Patch Set 1 #

Total comments: 17
Unified diffs Side-by-side diffs Delta from patch set Stats (+430 lines, -23 lines) Patch
M Source/modules/geolocation/CircularRegion.h View 1 chunk +2 lines, -0 lines 0 comments Download
A Source/modules/geolocation/GeofencingController.h View 1 chunk +44 lines, -0 lines 0 comments Download
A Source/modules/geolocation/GeofencingController.cpp View 1 chunk +40 lines, -0 lines 0 comments Download
A + Source/modules/geolocation/GeofencingError.h View 1 chunk +8 lines, -8 lines 0 comments Download
A + Source/modules/geolocation/GeofencingError.cpp View 1 chunk +6 lines, -6 lines 0 comments Download
M Source/modules/geolocation/GeofencingRegion.h View 1 chunk +2 lines, -0 lines 1 comment Download
M Source/modules/geolocation/Geolocation.cpp View 2 chunks +98 lines, -3 lines 1 comment Download
M Source/modules/modules.gypi View 1 chunk +4 lines, -0 lines 0 comments Download
A Source/web/WebCircularRegion.cpp View 1 chunk +37 lines, -0 lines 4 comments Download
A Source/web/WebGeofencingRegion.cpp View 1 chunk +51 lines, -0 lines 2 comments Download
M Source/web/WebLocalFrameImpl.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M Source/web/web.gypi View 2 chunks +2 lines, -0 lines 0 comments Download
A public/platform/WebGeofencingClient.h View 1 chunk +42 lines, -0 lines 1 comment Download
A + public/platform/WebGeofencingError.h View 2 chunks +6 lines, -6 lines 0 comments Download
A public/platform/WebGeofencingRegion.h View 1 chunk +46 lines, -0 lines 4 comments Download
A public/web/WebCircularRegion.h View 1 chunk +36 lines, -0 lines 3 comments Download
M public/web/WebFrameClient.h View 2 chunks +4 lines, -0 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
Marijn Kruisselbrink
Not sure who of you wants to review this. Hopefully this is the correct way ...
6 years, 5 months ago (2014-07-14 14:50:16 UTC) #1
Peter Beverloo
First round of feedback. I only looked at the API part for now as Michael ...
6 years, 5 months ago (2014-07-14 17:23:09 UTC) #2
Peter Beverloo
https://codereview.chromium.org/393533002/diff/1/Source/web/WebCircularRegion.cpp File Source/web/WebCircularRegion.cpp (right): https://codereview.chromium.org/393533002/diff/1/Source/web/WebCircularRegion.cpp#newcode34 Source/web/WebCircularRegion.cpp:34: return static_cast<CircularRegion*>(static_cast<GeofencingRegion*>(*this)); On 2014/07/14 17:23:08, Peter Beverloo wrote: > ...
6 years, 5 months ago (2014-07-14 18:16:13 UTC) #3
Michael van Ouwerkerk
6 years, 5 months ago (2014-07-15 18:04:42 UTC) #4
https://codereview.chromium.org/393533002/diff/1/Source/modules/geolocation/G...
File Source/modules/geolocation/GeofencingRegion.h (right):

https://codereview.chromium.org/393533002/diff/1/Source/modules/geolocation/G...
Source/modules/geolocation/GeofencingRegion.h:21: virtual bool
isCircularRegion() const { return false; }
This seems to violate basic object oriented design: the base class should not
have a method named after one of its sub classes. Isn't there another to do
this?

https://codereview.chromium.org/393533002/diff/1/Source/modules/geolocation/G...
File Source/modules/geolocation/Geolocation.cpp (right):

https://codereview.chromium.org/393533002/diff/1/Source/modules/geolocation/G...
Source/modules/geolocation/Geolocation.cpp:31: #include
"bindings/core/v8/CallbackPromiseAdapter.h"
As we discussed offline, it seems quite possible to implement geofencing
independently from geolocation. That way it would be easier to iterate on
geofencing and without the risk of introducing regressions into geolocation.

https://codereview.chromium.org/393533002/diff/1/public/web/WebCircularRegion.h
File public/web/WebCircularRegion.h (right):

https://codereview.chromium.org/393533002/diff/1/public/web/WebCircularRegion...
public/web/WebCircularRegion.h:14: class WebCircularRegion : public
WebGeofencingRegion {
I think that if you make this a plain interface, CircularRegion can implement
it. That way you don't need WebCircularRegion.cpp at all.

Powered by Google App Engine
This is Rietveld 408576698