Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WebCircularRegion_h | |
| 6 #define WebCircularRegion_h | |
| 7 | |
| 8 #include "WebCommon.h" | |
| 9 #include "WebGeofencingRegion.h" | |
| 10 #include "WebPrivatePtr.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class WebCircularRegionPrivate; | |
| 15 | |
| 16 class WebCircularRegion : public WebGeofencingRegion { | |
|
esprehn
2014/08/19 01:15:59
FINAL
Marijn Kruisselbrink
2014/08/19 18:55:14
Done.
| |
| 17 public: | |
| 18 WebCircularRegion(const WebCircularRegion& other) { assign(other); } | |
| 19 WebCircularRegion& operator=(const WebCircularRegion& other) | |
| 20 { | |
| 21 assign(other); | |
| 22 return *this; | |
| 23 } | |
| 24 | |
| 25 BLINK_PLATFORM_EXPORT static WebCircularRegion create(const WebString& id, d ouble latitude, double longitude, double radius); | |
| 26 | |
| 27 BLINK_PLATFORM_EXPORT double latitude() const; | |
| 28 BLINK_PLATFORM_EXPORT double longitude() const; | |
| 29 BLINK_PLATFORM_EXPORT double radius() const; | |
| 30 | |
| 31 private: | |
| 32 friend class WebGeofencingRegion; | |
|
esprehn
2014/08/19 01:15:59
Why do you need friends?
Marijn Kruisselbrink
2014/08/19 18:55:14
because WebGeofencingRegion::to and constTo create
| |
| 33 | |
| 34 WebCircularRegion() { } | |
| 35 | |
| 36 WebCircularRegionPrivate* privateData() const; | |
| 37 }; | |
| 38 | |
| 39 } // namespace blink | |
| 40 | |
| 41 #endif // WebCircularRegion_h | |
| OLD | NEW |