Index: Source/modules/geolocation/PositionOptions.h |
diff --git a/Source/modules/geolocation/PositionOptions.h b/Source/modules/geolocation/PositionOptions.h |
index d3d9ffc8a9dfdf7e51e004704e3616ad46f2de82..046e460599c12ea84f17e76196636926eed08051 100644 |
--- a/Source/modules/geolocation/PositionOptions.h |
+++ b/Source/modules/geolocation/PositionOptions.h |
@@ -27,13 +27,14 @@ |
#define PositionOptions_h |
#include "platform/heap/Handle.h" |
-#include <limits.h> |
namespace WebCore { |
+class Dictionary; |
+ |
class PositionOptions : public GarbageCollected<PositionOptions> { |
public: |
- static PositionOptions* create() { return new PositionOptions(); } |
+ static PositionOptions* create(const Dictionary&); |
void trace(Visitor*) { } |
bool enableHighAccuracy() const { return m_highAccuracy; } |
@@ -56,14 +57,7 @@ public: |
} |
private: |
- PositionOptions() |
- : m_highAccuracy(false) |
- , m_maximumAge(0) |
- , m_timeout(std::numeric_limits<unsigned>::max()) |
- |
- { |
- setMaximumAge(0); |
- } |
+ explicit PositionOptions(const Dictionary&); |
bool m_highAccuracy; |
unsigned m_maximumAge; |