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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 DEFINE_WRAPPERTYPEINFO(); | 59 DEFINE_WRAPPERTYPEINFO(); |
60 USING_GARBAGE_COLLECTED_MIXIN(Geolocation); | 60 USING_GARBAGE_COLLECTED_MIXIN(Geolocation); |
61 | 61 |
62 public: | 62 public: |
63 static Geolocation* create(ExecutionContext*); | 63 static Geolocation* create(ExecutionContext*); |
64 ~Geolocation(); | 64 ~Geolocation(); |
65 DECLARE_VIRTUAL_TRACE(); | 65 DECLARE_VIRTUAL_TRACE(); |
66 | 66 |
67 // Inherited from ContextLifecycleObserver and PageVisibilityObserver. | 67 // Inherited from ContextLifecycleObserver and PageVisibilityObserver. |
68 void contextDestroyed(ExecutionContext*) override; | 68 void contextDestroyed(ExecutionContext*) override; |
69 void contextDestroyed(Page*) override; | |
70 | 69 |
71 Document* document() const; | 70 Document* document() const; |
72 LocalFrame* frame() const; | 71 LocalFrame* frame() const; |
73 | 72 |
74 // Creates a oneshot and attempts to obtain a position that meets the | 73 // Creates a oneshot and attempts to obtain a position that meets the |
75 // constraints of the options. | 74 // constraints of the options. |
76 void getCurrentPosition(PositionCallback*, | 75 void getCurrentPosition(PositionCallback*, |
77 PositionErrorCallback*, | 76 PositionErrorCallback*, |
78 const PositionOptions&); | 77 const PositionOptions&); |
79 | 78 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 209 |
211 // Set to true when m_geolocationService is disconnected. This is used to | 210 // Set to true when m_geolocationService is disconnected. This is used to |
212 // detect when m_geolocationService is disconnected and reconnected while | 211 // detect when m_geolocationService is disconnected and reconnected while |
213 // running callbacks in response to a call to onPositionUpdated(). | 212 // running callbacks in response to a call to onPositionUpdated(). |
214 bool m_disconnectedGeolocationService = false; | 213 bool m_disconnectedGeolocationService = false; |
215 }; | 214 }; |
216 | 215 |
217 } // namespace blink | 216 } // namespace blink |
218 | 217 |
219 #endif // Geolocation_h | 218 #endif // Geolocation_h |
OLD | NEW |