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 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); |
| 19 double GetFrequency() const; |
| 20 |
| 21 private: |
| 22 double frequency_; |
| 23 }; |
| 24 |
| 25 } // namespace device |
| 26 |
| 27 #endif // DEVICE_SENSORS_PLATFORM_SENSOR_CONFIGURATION_H_ |
OLD | NEW |