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

Side by Side Diff: Source/web/WebGeofencingRegion.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/platform/WebGeofencingRegion.h"
7
8 #include "modules/geolocation/CircularRegion.h"
9 #include "modules/geolocation/GeofencingRegion.h"
10 #include "public/web/WebCircularRegion.h"
11
12 using namespace WebCore;
13
14 namespace blink {
15
16 void WebGeofencingRegion::assign(const WebGeofencingRegion& other)
17 {
18 m_private = other.m_private;
19 }
20
21 void WebGeofencingRegion::reset()
22 {
23 m_private.reset();
24 }
25
26 WebString WebGeofencingRegion::id() const
27 {
28 return m_private->id();
29 }
30
31 WebGeofencingRegion::WebGeofencingRegion(GeofencingRegion* region)
32 {
33 m_private = region;
34 }
35
36 WebGeofencingRegion::operator GeofencingRegion*() const
37 {
38 return m_private.get();
39 }
40
41 bool WebGeofencingRegion::isCircularRegion() const
Peter Beverloo 2014/07/14 17:23:08 nit: it's nice if the order of methods in a .cpp m
42 {
43 return !m_private.isNull() && m_private->isCircularRegion();
44 }
45
46 WebCircularRegion WebGeofencingRegion::asCircularRegion() const
47 {
48 return WebCircularRegion(static_cast<CircularRegion*>(m_private.get()));
49 }
50
51 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698