| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved. |
| 3 * Copyright 2010, The Android Open Source Project | 3 * Copyright 2010, The Android Open Source Project |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 public: | 93 public: |
| 94 static PassRefPtr<GeoNotifier> create(Geolocation* geolocation, PassRefP
tr<PositionCallback> positionCallback, PassRefPtr<PositionErrorCallback> positio
nErrorCallback, PassRefPtr<PositionOptions> options) { return adoptRef(new GeoNo
tifier(geolocation, positionCallback, positionErrorCallback, options)); } | 94 static PassRefPtr<GeoNotifier> create(Geolocation* geolocation, PassRefP
tr<PositionCallback> positionCallback, PassRefPtr<PositionErrorCallback> positio
nErrorCallback, PassRefPtr<PositionOptions> options) { return adoptRef(new GeoNo
tifier(geolocation, positionCallback, positionErrorCallback, options)); } |
| 95 | 95 |
| 96 void setFatalError(PassRefPtr<PositionError>); | 96 void setFatalError(PassRefPtr<PositionError>); |
| 97 bool hasZeroTimeout() const; | 97 bool hasZeroTimeout() const; |
| 98 void setUseCachedPosition(); | 98 void setUseCachedPosition(); |
| 99 void runSuccessCallback(Geoposition*); | 99 void runSuccessCallback(Geoposition*); |
| 100 void startTimerIfNeeded(); | 100 void startTimerIfNeeded(); |
| 101 void timerFired(Timer<GeoNotifier>*); | 101 void timerFired(Timer<GeoNotifier>*); |
| 102 | 102 |
| 103 Geolocation* m_geolocation; | 103 RefPtr<Geolocation> m_geolocation; |
| 104 RefPtr<PositionCallback> m_successCallback; | 104 RefPtr<PositionCallback> m_successCallback; |
| 105 RefPtr<PositionErrorCallback> m_errorCallback; | 105 RefPtr<PositionErrorCallback> m_errorCallback; |
| 106 RefPtr<PositionOptions> m_options; | 106 RefPtr<PositionOptions> m_options; |
| 107 Timer<GeoNotifier> m_timer; | 107 Timer<GeoNotifier> m_timer; |
| 108 RefPtr<PositionError> m_fatalError; | 108 RefPtr<PositionError> m_fatalError; |
| 109 bool m_useCachedPosition; | 109 bool m_useCachedPosition; |
| 110 | 110 |
| 111 private: | 111 private: |
| 112 GeoNotifier(Geolocation*, PassRefPtr<PositionCallback>, PassRefPtr<Posit
ionErrorCallback>, PassRefPtr<PositionOptions>); | 112 GeoNotifier(Geolocation*, PassRefPtr<PositionCallback>, PassRefPtr<Posit
ionErrorCallback>, PassRefPtr<PositionOptions>); |
| 113 }; | 113 }; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 #if ENABLE(GEOLOCATION) | 212 #if ENABLE(GEOLOCATION) |
| 213 PositionCacheWrapper m_positionCache; | 213 PositionCacheWrapper m_positionCache; |
| 214 #endif | 214 #endif |
| 215 GeoNotifierSet m_requestsAwaitingCachedPosition; | 215 GeoNotifierSet m_requestsAwaitingCachedPosition; |
| 216 }; | 216 }; |
| 217 | 217 |
| 218 } // namespace WebCore | 218 } // namespace WebCore |
| 219 | 219 |
| 220 #endif // Geolocation_h | 220 #endif // Geolocation_h |
| 221 | 221 |
| OLD | NEW |