OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 DOMTimeStamp timestamp() const { return m_timestamp; } | 49 DOMTimeStamp timestamp() const { return m_timestamp; } |
50 Coordinates* coords() const { return m_coordinates.get(); } | 50 Coordinates* coords() const { return m_coordinates.get(); } |
51 | 51 |
52 private: | 52 private: |
53 Geoposition(Coordinates* coordinates, DOMTimeStamp timestamp) | 53 Geoposition(Coordinates* coordinates, DOMTimeStamp timestamp) |
54 : m_coordinates(coordinates) | 54 : m_coordinates(coordinates) |
55 , m_timestamp(timestamp) | 55 , m_timestamp(timestamp) |
56 { | 56 { |
57 ASSERT(m_coordinates); | 57 ASSERT(m_coordinates); |
58 ScriptWrappable::init(this); | |
59 } | 58 } |
60 | 59 |
61 Member<Coordinates> m_coordinates; | 60 Member<Coordinates> m_coordinates; |
62 DOMTimeStamp m_timestamp; | 61 DOMTimeStamp m_timestamp; |
63 }; | 62 }; |
64 | 63 |
65 } // namespace blink | 64 } // namespace blink |
66 | 65 |
67 #endif // Geoposition_h | 66 #endif // Geoposition_h |
OLD | NEW |