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

Side by Side Diff: device/sensors/platform_sensor_configuration.h

Issue 2078433002: [sensors] Introduce Generic Sensor API interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + fixes for dcheng's comments. Created 4 years, 5 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 DEVICE_SENSORS_PLATFORM_SENSOR_CONFIGURATION_H_
6 #define DEVICE_SENSORS_PLATFORM_SENSOR_CONFIGURATION_H_
7
8 namespace device {
9
10 class PlatformSensorConfiguration {
11 public:
12 PlatformSensorConfiguration();
13 explicit PlatformSensorConfiguration(double frequency);
14 ~PlatformSensorConfiguration();
15
16 bool operator==(const PlatformSensorConfiguration& other) const;
17
18 void SetFrequency(double frequency);
dcheng 2016/07/06 02:07:29 Note that usually simple getters / setters like th
shalamov 2016/07/06 07:15:10 Done.
19 double GetFrequency() const;
20
21 private:
22 double frequency_;
23 };
24
25 } // namespace device
26
27 #endif // DEVICE_SENSORS_PLATFORM_SENSOR_CONFIGURATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698