| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2009, 2010, 2011 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 class GeolocationController; | 43 class GeolocationController; |
| 44 class GeolocationError; | 44 class GeolocationError; |
| 45 class GeolocationPosition; | 45 class GeolocationPosition; |
| 46 class Page; | 46 class Page; |
| 47 class ExecutionContext; | 47 class ExecutionContext; |
| 48 | 48 |
| 49 class Geolocation FINAL : public ScriptWrappable, public RefCounted<Geolocation>
, public ActiveDOMObject | 49 class Geolocation FINAL : public ScriptWrappable, public RefCounted<Geolocation>
, public ActiveDOMObject |
| 50 { | 50 { |
| 51 public: | 51 public: |
| 52 static PassRefPtr<Geolocation> create(ExecutionContext*); | 52 static PassRefPtr<Geolocation> create(ExecutionContext*); |
| 53 ~Geolocation(); | 53 virtual ~Geolocation(); |
| 54 | 54 |
| 55 virtual void stop() OVERRIDE; | 55 virtual void stop() OVERRIDE; |
| 56 Document* document() const; | 56 Document* document() const; |
| 57 Frame* frame() const; | 57 Frame* frame() const; |
| 58 | 58 |
| 59 // Creates a oneshot and attempts to obtain a position that meets the | 59 // Creates a oneshot and attempts to obtain a position that meets the |
| 60 // constraints of the options. | 60 // constraints of the options. |
| 61 void getCurrentPosition(PassOwnPtr<PositionCallback>, PassOwnPtr<PositionErr
orCallback>, PassRefPtr<PositionOptions>); | 61 void getCurrentPosition(PassOwnPtr<PositionCallback>, PassOwnPtr<PositionErr
orCallback>, PassRefPtr<PositionOptions>); |
| 62 | 62 |
| 63 // Creates a watcher that will be notified whenever a new position is | 63 // Creates a watcher that will be notified whenever a new position is |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 Yes, | 234 Yes, |
| 235 No | 235 No |
| 236 } m_allowGeolocation; | 236 } m_allowGeolocation; |
| 237 | 237 |
| 238 GeoNotifierSet m_requestsAwaitingCachedPosition; | 238 GeoNotifierSet m_requestsAwaitingCachedPosition; |
| 239 }; | 239 }; |
| 240 | 240 |
| 241 } // namespace WebCore | 241 } // namespace WebCore |
| 242 | 242 |
| 243 #endif // Geolocation_h | 243 #endif // Geolocation_h |
| OLD | NEW |