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

Side by Side Diff: third_party/WebKit/Source/modules/sensor/SensorReading.h

Issue 1942663003: [sensors]: Introduce the Generic Sensor API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + remove state from global interface listing Created 4 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698