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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 class LocalFrame; | 46 class LocalFrame; |
47 class GeolocationController; | 47 class GeolocationController; |
48 class GeolocationError; | 48 class GeolocationError; |
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 DEFINE_WRAPPERTYPEINFO(); |
56 public: | 57 public: |
57 static Geolocation* create(ExecutionContext*); | 58 static Geolocation* create(ExecutionContext*); |
58 virtual ~Geolocation(); | 59 virtual ~Geolocation(); |
59 void trace(Visitor*); | 60 void trace(Visitor*); |
60 | 61 |
61 virtual void stop() OVERRIDE; | 62 virtual void stop() OVERRIDE; |
62 Document* document() const; | 63 Document* document() const; |
63 LocalFrame* frame() const; | 64 LocalFrame* frame() const; |
64 | 65 |
65 // Creates a oneshot and attempts to obtain a position that meets the | 66 // Creates a oneshot and attempts to obtain a position that meets the |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 }; | 180 }; |
180 | 181 |
181 Permission m_geolocationPermission; | 182 Permission m_geolocationPermission; |
182 | 183 |
183 GeoNotifierSet m_requestsAwaitingCachedPosition; | 184 GeoNotifierSet m_requestsAwaitingCachedPosition; |
184 }; | 185 }; |
185 | 186 |
186 } // namespace blink | 187 } // namespace blink |
187 | 188 |
188 #endif // Geolocation_h | 189 #endif // Geolocation_h |
OLD | NEW |