| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class GeolocationPosition; | 49 class GeolocationPosition; |
| 50 class ExecutionContext; | 50 class ExecutionContext; |
| 51 | 51 |
| 52 class Geolocation FINAL | 52 class Geolocation FINAL |
| 53 : public GarbageCollectedFinalized<Geolocation> | 53 : public GarbageCollectedFinalized<Geolocation> |
| 54 , public ScriptWrappable | 54 , public ScriptWrappable |
| 55 , public ActiveDOMObject { | 55 , public ActiveDOMObject { |
| 56 public: | 56 public: |
| 57 static Geolocation* create(ExecutionContext*); | 57 static Geolocation* create(ExecutionContext*); |
| 58 virtual ~Geolocation(); | 58 virtual ~Geolocation(); |
| 59 void trace(Visitor*); | 59 virtual void trace(Visitor*); |
| 60 | 60 |
| 61 virtual void stop() OVERRIDE; | 61 virtual void stop() OVERRIDE; |
| 62 Document* document() const; | 62 Document* document() const; |
| 63 LocalFrame* frame() const; | 63 LocalFrame* frame() const; |
| 64 | 64 |
| 65 // Creates a oneshot and attempts to obtain a position that meets the | 65 // Creates a oneshot and attempts to obtain a position that meets the |
| 66 // constraints of the options. | 66 // constraints of the options. |
| 67 void getCurrentPosition(PassOwnPtr<PositionCallback>, PassOwnPtr<PositionErr
orCallback>, const Dictionary&); | 67 void getCurrentPosition(PassOwnPtr<PositionCallback>, PassOwnPtr<PositionErr
orCallback>, const Dictionary&); |
| 68 | 68 |
| 69 // Creates a watcher that will be notified whenever a new position is | 69 // Creates a watcher that will be notified whenever a new position is |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 Permission m_geolocationPermission; | 181 Permission m_geolocationPermission; |
| 182 | 182 |
| 183 GeoNotifierSet m_requestsAwaitingCachedPosition; | 183 GeoNotifierSet m_requestsAwaitingCachedPosition; |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 } // namespace blink | 186 } // namespace blink |
| 187 | 187 |
| 188 #endif // Geolocation_h | 188 #endif // Geolocation_h |
| OLD | NEW |