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

Unified Diff: Source/modules/geolocation/Coordinates.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/gamepad/GamepadList.h ('k') | Source/modules/geolocation/Geoposition.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/geolocation/Coordinates.h
diff --git a/Source/modules/geolocation/Coordinates.h b/Source/modules/geolocation/Coordinates.h
index 4fb748d483f53ccaf8fc55fc5c42e9bb9e50e9d4..a62064971552e4c6910b385e980a7d12893af407 100644
--- a/Source/modules/geolocation/Coordinates.h
+++ b/Source/modules/geolocation/Coordinates.h
@@ -26,12 +26,13 @@
#ifndef Coordinates_h
#define Coordinates_h
+#include "bindings/v8/ScriptWrappable.h"
#include "core/dom/Event.h"
#include "wtf/RefCounted.h"
namespace WebCore {
-class Coordinates : public RefCounted<Coordinates> {
+class Coordinates : public RefCounted<Coordinates>, public ScriptWrappable {
public:
static PassRefPtr<Coordinates> create(double latitude, double longitude, bool providesAltitude, double altitude, double accuracy, bool providesAltitudeAccuracy, double altitudeAccuracy, bool providesHeading, double heading, bool providesSpeed, double speed) { return adoptRef(new Coordinates(latitude, longitude, providesAltitude, altitude, accuracy, providesAltitudeAccuracy, altitudeAccuracy, providesHeading, heading, providesSpeed, speed)); }
@@ -47,7 +48,7 @@ public:
double altitudeAccuracy(bool& isNull) const;
double heading(bool& isNull) const;
double speed(bool& isNull) const;
-
+
private:
Coordinates(double latitude, double longitude, bool providesAltitude, double altitude, double accuracy, bool providesAltitudeAccuracy, double altitudeAccuracy, bool providesHeading, double heading, bool providesSpeed, double speed)
: m_latitude(latitude)
@@ -62,6 +63,7 @@ private:
, m_canProvideHeading(providesHeading)
, m_canProvideSpeed(providesSpeed)
{
+ ScriptWrappable::init(this);
}
double m_latitude;
« no previous file with comments | « Source/modules/gamepad/GamepadList.h ('k') | Source/modules/geolocation/Geoposition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698