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

Side by Side Diff: Source/web/WebCircularRegion.cpp

Issue 393533002: Pass through the geofencing API calls to the content layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@geofencing2
Patch Set: Created 6 years, 5 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
Peter Beverloo 2014/07/14 17:23:08 This should be in Source/platform/exported/.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "config.h"
6 #include "public/web/WebCircularRegion.h"
7
8 #include "modules/geolocation/CircularRegion.h"
9
10 using namespace WebCore;
11
12 namespace blink {
13
14 double WebCircularRegion::latitude() const
15 {
16 return static_cast<CircularRegion*>(*this)->latitude();
Peter Beverloo 2014/07/14 17:23:08 |this| is a pointer, the dereference doesn't make
17 }
18
19 double WebCircularRegion::longitude() const
20 {
21 return static_cast<CircularRegion*>(*this)->longitude();
22 }
23
24 double WebCircularRegion::radius() const
25 {
26 return static_cast<CircularRegion*>(*this)->radius();
27 }
28
29 WebCircularRegion::WebCircularRegion(CircularRegion* region)
30 : WebGeofencingRegion(region) { }
31
32 WebCircularRegion::operator CircularRegion*() const
33 {
34 return static_cast<CircularRegion*>(static_cast<GeofencingRegion*>(*this));
Peter Beverloo 2014/07/14 17:23:08 I really don't like all these static_casts. We sho
Peter Beverloo 2014/07/14 18:16:12 Note that |toCircularRegion| would be a private BL
35 }
36
37 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698