Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: third_party/WebKit/Source/modules/geolocation/Geolocation.h

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 public ContextLifecycleObserver, 57 public ContextLifecycleObserver,
58 public PageVisibilityObserver { 58 public PageVisibilityObserver {
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() override; 68 void contextDestroyed(ExecutionContext*) override;
69 void contextDestroyed(Page*) override;
69 70
70 Document* document() const; 71 Document* document() const;
71 LocalFrame* frame() const; 72 LocalFrame* frame() const;
72 73
73 // Creates a oneshot and attempts to obtain a position that meets the 74 // Creates a oneshot and attempts to obtain a position that meets the
74 // constraints of the options. 75 // constraints of the options.
75 void getCurrentPosition(PositionCallback*, 76 void getCurrentPosition(PositionCallback*,
76 PositionErrorCallback*, 77 PositionErrorCallback*,
77 const PositionOptions&); 78 const PositionOptions&);
78 79
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 210
210 // Set to true when m_geolocationService is disconnected. This is used to 211 // Set to true when m_geolocationService is disconnected. This is used to
211 // detect when m_geolocationService is disconnected and reconnected while 212 // detect when m_geolocationService is disconnected and reconnected while
212 // running callbacks in response to a call to onPositionUpdated(). 213 // running callbacks in response to a call to onPositionUpdated().
213 bool m_disconnectedGeolocationService = false; 214 bool m_disconnectedGeolocationService = false;
214 }; 215 };
215 216
216 } // namespace blink 217 } // namespace blink
217 218
218 #endif // Geolocation_h 219 #endif // Geolocation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698