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

Unified Diff: Source/modules/geolocation/Geoposition.h

Issue 15232002: Make remaining modules/ objects ScriptWrappable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/geolocation/Coordinates.h ('k') | Source/modules/notifications/Notification.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/geolocation/Geoposition.h
diff --git a/Source/modules/geolocation/Geoposition.h b/Source/modules/geolocation/Geoposition.h
index ac1a57f839ede07016f26dd20a3426c9b7dcadf0..a0d0114ee8d4b6c3bf927cfb595ebc35af5efac7 100644
--- a/Source/modules/geolocation/Geoposition.h
+++ b/Source/modules/geolocation/Geoposition.h
@@ -26,6 +26,7 @@
#ifndef Geoposition_h
#define Geoposition_h
+#include "bindings/v8/ScriptWrappable.h"
#include "core/dom/Event.h"
#include "modules/geolocation/Coordinates.h"
#include "wtf/RefCounted.h"
@@ -33,7 +34,7 @@
namespace WebCore {
-class Geoposition : public RefCounted<Geoposition> {
+class Geoposition : public RefCounted<Geoposition>, public ScriptWrappable {
public:
static PassRefPtr<Geoposition> create(PassRefPtr<Coordinates> coordinates, DOMTimeStamp timestamp)
{
@@ -47,19 +48,20 @@ public:
DOMTimeStamp timestamp() const { return m_timestamp; }
Coordinates* coords() const { return m_coordinates.get(); }
-
+
private:
Geoposition(PassRefPtr<Coordinates> coordinates, DOMTimeStamp timestamp)
: m_coordinates(coordinates)
, m_timestamp(timestamp)
{
ASSERT(m_coordinates);
+ ScriptWrappable::init(this);
}
RefPtr<Coordinates> m_coordinates;
DOMTimeStamp m_timestamp;
};
-
+
} // namespace WebCore
#endif // Geoposition_h
« no previous file with comments | « Source/modules/geolocation/Coordinates.h ('k') | Source/modules/notifications/Notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698