OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2013 Google Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 10 matching lines...) Expand all Loading... |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "modules/geolocation/Coordinates.h" | 27 #include "modules/geolocation/Coordinates.h" |
28 | 28 |
29 namespace WebCore { | 29 namespace WebCore { |
30 | 30 |
31 DEFINE_GC_INFO(Coordinates); | |
32 | |
33 double Coordinates::altitude(bool& isNull) const | 31 double Coordinates::altitude(bool& isNull) const |
34 { | 32 { |
35 if (m_canProvideAltitude) | 33 if (m_canProvideAltitude) |
36 return m_altitude; | 34 return m_altitude; |
37 | 35 |
38 isNull = true; | 36 isNull = true; |
39 return 0; | 37 return 0; |
40 } | 38 } |
41 | 39 |
42 double Coordinates::altitudeAccuracy(bool& isNull) const | 40 double Coordinates::altitudeAccuracy(bool& isNull) const |
(...skipping 17 matching lines...) Expand all Loading... |
60 double Coordinates::speed(bool& isNull) const | 58 double Coordinates::speed(bool& isNull) const |
61 { | 59 { |
62 if (m_canProvideSpeed) | 60 if (m_canProvideSpeed) |
63 return m_speed; | 61 return m_speed; |
64 | 62 |
65 isNull = true; | 63 isNull = true; |
66 return 0; | 64 return 0; |
67 } | 65 } |
68 | 66 |
69 } // namespace WebCore | 67 } // namespace WebCore |
OLD | NEW |