| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef GeoNotifier_h | 5 #ifndef GeoNotifier_h |
| 6 #define GeoNotifier_h | 6 #define GeoNotifier_h |
| 7 | 7 |
| 8 #include "modules/geolocation/PositionCallback.h" |
| 9 #include "modules/geolocation/PositionErrorCallback.h" |
| 8 #include "platform/Timer.h" | 10 #include "platform/Timer.h" |
| 9 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 10 | 12 |
| 11 namespace blink { | 13 namespace blink { |
| 12 | 14 |
| 13 class Geolocation; | 15 class Geolocation; |
| 14 class Geoposition; | 16 class Geoposition; |
| 15 class PositionCallback; | |
| 16 class PositionError; | 17 class PositionError; |
| 17 class PositionErrorCallback; | |
| 18 class PositionOptions; | 18 class PositionOptions; |
| 19 | 19 |
| 20 class GeoNotifier : public GarbageCollectedFinalized<GeoNotifier> { | 20 class GeoNotifier : public GarbageCollectedFinalized<GeoNotifier> { |
| 21 public: | 21 public: |
| 22 static GeoNotifier* create(Geolocation* geolocation, PassOwnPtr<PositionCall
back> positionCallback, PassOwnPtr<PositionErrorCallback> positionErrorCallback,
PositionOptions* options) | 22 static GeoNotifier* create(Geolocation* geolocation, PassOwnPtr<PositionCall
back> positionCallback, PassOwnPtr<PositionErrorCallback> positionErrorCallback,
PositionOptions* options) |
| 23 { | 23 { |
| 24 return new GeoNotifier(geolocation, positionCallback, positionErrorCallb
ack, options); | 24 return new GeoNotifier(geolocation, positionCallback, positionErrorCallb
ack, options); |
| 25 } | 25 } |
| 26 void trace(Visitor*); | 26 void trace(Visitor*); |
| 27 | 27 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 56 OwnPtr<PositionErrorCallback> m_errorCallback; | 56 OwnPtr<PositionErrorCallback> m_errorCallback; |
| 57 Member<PositionOptions> m_options; | 57 Member<PositionOptions> m_options; |
| 58 Timer<GeoNotifier> m_timer; | 58 Timer<GeoNotifier> m_timer; |
| 59 Member<PositionError> m_fatalError; | 59 Member<PositionError> m_fatalError; |
| 60 bool m_useCachedPosition; | 60 bool m_useCachedPosition; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace blink | 63 } // namespace blink |
| 64 | 64 |
| 65 #endif // GeoNotifier_h | 65 #endif // GeoNotifier_h |
| OLD | NEW |