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

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

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 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 | Annotate | Revision Log
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 class ExecutionContext; 48 class ExecutionContext;
49 49
50 class MODULES_EXPORT Geolocation final 50 class MODULES_EXPORT Geolocation final
51 : public GarbageCollectedFinalized<Geolocation> 51 : public GarbageCollectedFinalized<Geolocation>
52 , public ScriptWrappable 52 , public ScriptWrappable
53 , public ActiveDOMObject { 53 , public ActiveDOMObject {
54 DEFINE_WRAPPERTYPEINFO(); 54 DEFINE_WRAPPERTYPEINFO();
55 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Geolocation); 55 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Geolocation);
56 public: 56 public:
57 static Geolocation* create(ExecutionContext*); 57 static Geolocation* create(ExecutionContext*);
58 virtual ~Geolocation(); 58 ~Geolocation() override;
59 DECLARE_VIRTUAL_TRACE(); 59 DECLARE_VIRTUAL_TRACE();
60 60
61 virtual void stop() override; 61 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(PositionCallback*, PositionErrorCallback*, const Pos itionOptions&); 67 void getCurrentPosition(PositionCallback*, PositionErrorCallback*, const Pos itionOptions&);
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
70 // available that meets the constraints of the options. 70 // available that meets the constraints of the options.
71 int watchPosition(PositionCallback*, PositionErrorCallback*, const PositionO ptions&); 71 int watchPosition(PositionCallback*, PositionErrorCallback*, const PositionO ptions&);
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 }; 184 };
185 185
186 Permission m_geolocationPermission; 186 Permission m_geolocationPermission;
187 187
188 GeoNotifierSet m_requestsAwaitingCachedPosition; 188 GeoNotifierSet m_requestsAwaitingCachedPosition;
189 }; 189 };
190 190
191 } // namespace blink 191 } // namespace blink
192 192
193 #endif // Geolocation_h 193 #endif // Geolocation_h
OLDNEW
« no previous file with comments | « Source/modules/geofencing/GeofencingEvent.h ('k') | Source/modules/geolocation/GeolocationController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698