OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 15 matching lines...) Expand all Loading... |
26 #ifndef PositionOptions_h | 26 #ifndef PositionOptions_h |
27 #define PositionOptions_h | 27 #define PositionOptions_h |
28 | 28 |
29 #include "heap/Handle.h" | 29 #include "heap/Handle.h" |
30 #include "wtf/PassRefPtr.h" | 30 #include "wtf/PassRefPtr.h" |
31 #include "wtf/RefCounted.h" | 31 #include "wtf/RefCounted.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 | 34 |
35 class PositionOptions : public RefCountedWillBeGarbageCollected<PositionOptions>
{ | 35 class PositionOptions : public RefCountedWillBeGarbageCollected<PositionOptions>
{ |
36 DECLARE_GC_INFO; | |
37 public: | 36 public: |
38 static PassRefPtrWillBeRawPtr<PositionOptions> create() { return adoptRefWil
lBeNoop(new PositionOptions()); } | 37 static PassRefPtrWillBeRawPtr<PositionOptions> create() { return adoptRefWil
lBeNoop(new PositionOptions()); } |
39 void trace(Visitor*) { } | 38 void trace(Visitor*) { } |
40 | 39 |
41 bool enableHighAccuracy() const { return m_highAccuracy; } | 40 bool enableHighAccuracy() const { return m_highAccuracy; } |
42 void setEnableHighAccuracy(bool enable) { m_highAccuracy = enable; } | 41 void setEnableHighAccuracy(bool enable) { m_highAccuracy = enable; } |
43 bool hasTimeout() const { return m_hasTimeout; } | 42 bool hasTimeout() const { return m_hasTimeout; } |
44 int timeout() const | 43 int timeout() const |
45 { | 44 { |
46 ASSERT(hasTimeout()); | 45 ASSERT(hasTimeout()); |
(...skipping 30 matching lines...) Expand all Loading... |
77 bool m_highAccuracy; | 76 bool m_highAccuracy; |
78 bool m_hasTimeout; | 77 bool m_hasTimeout; |
79 int m_timeout; | 78 int m_timeout; |
80 bool m_hasMaximumAge; | 79 bool m_hasMaximumAge; |
81 int m_maximumAge; | 80 int m_maximumAge; |
82 }; | 81 }; |
83 | 82 |
84 } // namespace WebCore | 83 } // namespace WebCore |
85 | 84 |
86 #endif // PositionOptions_h | 85 #endif // PositionOptions_h |
OLD | NEW |