Chromium Code Reviews| Index: public/web/WebCircularRegion.h |
| diff --git a/public/web/WebCircularRegion.h b/public/web/WebCircularRegion.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..76ff3932e8962bf1bb9d3eeb771e5ac355160221 |
| --- /dev/null |
| +++ b/public/web/WebCircularRegion.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
|
Peter Beverloo
2014/07/14 17:23:09
This should be in public/platform/, as there is no
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef WebCircularRegion_h |
| +#define WebCircularRegion_h |
| + |
| +#include "public/platform/WebGeofencingRegion.h" |
| + |
| +namespace WebCore { class CircularRegion; } |
| + |
| +namespace blink { |
| + |
| +class WebCircularRegion : public WebGeofencingRegion { |
|
Michael van Ouwerkerk
2014/07/15 18:04:42
I think that if you make this a plain interface, C
|
| +public: |
| + WebCircularRegion() { } |
| + WebCircularRegion(const WebCircularRegion& other) { assign(other); } |
| + WebCircularRegion& operator=(const WebCircularRegion& other) |
| + { |
| + assign(other); |
| + return *this; |
| + } |
| + |
| + BLINK_EXPORT double latitude() const; |
| + BLINK_EXPORT double longitude() const; |
| + BLINK_EXPORT double radius() const; |
| + |
| +#if BLINK_IMPLEMENTATION |
| + WebCircularRegion(WebCore::CircularRegion*); |
|
Peter Beverloo
2014/07/14 17:23:09
This constructor should be marked as explicit.
|
| + operator WebCore::CircularRegion*() const; |
| +#endif |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WebCircularRegion_h |