| Index: Source/platform/exported/WebCircularRegion.cpp
|
| diff --git a/Source/platform/exported/WebCircularRegion.cpp b/Source/platform/exported/WebCircularRegion.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..84546b334de9e96cf48814998437041afe6f8b8d
|
| --- /dev/null
|
| +++ b/Source/platform/exported/WebCircularRegion.cpp
|
| @@ -0,0 +1,40 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "config.h"
|
| +#include "public/platform/WebCircularRegion.h"
|
| +
|
| +#include "platform/exported/WebCircularRegionPrivate.h"
|
| +
|
| +namespace blink {
|
| +
|
| +WebCircularRegion WebCircularRegion::create(const WebString& id, double latitude, double longitude, double radius)
|
| +{
|
| + WebCircularRegion region;
|
| + region.m_private = adoptRef(new WebCircularRegionPrivate(id, latitude, longitude, radius));
|
| + return region;
|
| +}
|
| +
|
| +double WebCircularRegion::latitude() const
|
| +{
|
| + return privateData()->latitude;
|
| +}
|
| +
|
| +double WebCircularRegion::longitude() const
|
| +{
|
| + return privateData()->longitude;
|
| +}
|
| +
|
| +double WebCircularRegion::radius() const
|
| +{
|
| + return privateData()->radius;
|
| +}
|
| +
|
| +WebCircularRegionPrivate* WebCircularRegion::privateData() const
|
| +{
|
| + ASSERT(regionType() == WebGeofencingRegion::CircularRegionType);
|
| + return static_cast<WebCircularRegionPrivate*>(m_private.get());
|
| +}
|
| +
|
| +} // namespace blink
|
|
|