Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef SensorReading_h | |
| 6 #define SensorReading_h | |
| 7 | |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | |
| 9 #include "core/dom/DOMHighResTimeStamp.h" | |
| 10 #include "core/dom/DOMTimeStamp.h" | |
| 11 #include "modules/ModulesExport.h" | |
| 12 #include "platform/heap/Handle.h" | |
|
timvolodine
2016/05/06 17:04:30
are Handle and AtomicString really needed here?
riju_
2016/05/12 14:12:46
Done.
| |
| 13 #include "wtf/text/AtomicString.h" | |
| 14 | |
| 15 namespace blink { | |
| 16 | |
| 17 class MODULES_EXPORT SensorReading : public GarbageCollectedFinalized<SensorRead ing>, public ScriptWrappable { | |
| 18 DEFINE_WRAPPERTYPEINFO(); | |
| 19 | |
| 20 public: | |
| 21 static SensorReading* create() | |
| 22 { | |
| 23 return new SensorReading; | |
| 24 } | |
| 25 | |
| 26 static SensorReading* create(DOMHighResTimeStamp timestamp) | |
| 27 { | |
| 28 return new SensorReading(timestamp); | |
| 29 } | |
| 30 | |
| 31 virtual ~SensorReading(); | |
| 32 | |
| 33 DECLARE_VIRTUAL_TRACE(); | |
| 34 | |
| 35 DOMHighResTimeStamp timeStamp() const { return m_timeStamp; } | |
| 36 | |
| 37 void setTimeStamp(DOMHighResTimeStamp time) { m_timeStamp = time; } | |
| 38 | |
| 39 SensorReading(); | |
| 40 SensorReading(DOMHighResTimeStamp timestamp); | |
| 41 | |
| 42 protected: | |
| 43 DOMHighResTimeStamp m_timeStamp; | |
| 44 }; | |
| 45 | |
| 46 } // namepsace blink | |
| 47 | |
| 48 #endif // SensorReading_h | |
| OLD | NEW |