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

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

Issue 2885373002: [Sensors] Simplify calculation of the reporting period (Closed)
Patch Set: Created 3 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef OrientationSensor_h 5 #ifndef OrientationSensor_h
6 #define OrientationSensor_h 6 #define OrientationSensor_h
7 7
8 #include "bindings/modules/v8/Float32ArrayOrFloat64ArrayOrDOMMatrix.h" 8 #include "bindings/modules/v8/Float32ArrayOrFloat64ArrayOrDOMMatrix.h"
9 #include "core/dom/DOMTypedArray.h" 9 #include "core/dom/DOMTypedArray.h"
10 #include "modules/sensor/Sensor.h" 10 #include "modules/sensor/Sensor.h"
(...skipping 12 matching lines...) Expand all
23 DECLARE_VIRTUAL_TRACE(); 23 DECLARE_VIRTUAL_TRACE();
24 24
25 protected: 25 protected:
26 OrientationSensor(ExecutionContext*, 26 OrientationSensor(ExecutionContext*,
27 const SensorOptions&, 27 const SensorOptions&,
28 ExceptionState&, 28 ExceptionState&,
29 device::mojom::blink::SensorType); 29 device::mojom::blink::SensorType);
30 30
31 private: 31 private:
32 // SensorProxy override. 32 // SensorProxy override.
33 void OnSensorReadingChanged(double timestamp) override; 33 void OnSensorReadingChanged() override;
34 template <typename Matrix> 34 template <typename Matrix>
35 void PopulateMatrixInternal(Matrix*, ExceptionState&); 35 void PopulateMatrixInternal(Matrix*, ExceptionState&);
36 36
37 bool reading_dirty_; 37 bool reading_dirty_;
38 }; 38 };
39 39
40 } // namespace blink 40 } // namespace blink
41 41
42 #endif // OrientationSensor_h 42 #endif // OrientationSensor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698