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 package org.chromium.device.sensors; | |
| 6 | |
| 7 import org.chromium.base.annotations.CalledByNative; | |
| 8 import org.chromium.base.annotations.JNINamespace; | |
| 9 | |
| 10 /** | |
| 11 * Holds information about sensor configuration, wraps data that is provided by native side | |
| 12 * class PlatformSensorConfigurationAndroid. | |
| 13 */ | |
| 14 @JNINamespace("device") | |
| 15 final class PlatformSensorConfiguration { | |
|
Ted C
2016/09/01 00:12:36
This seems like overkill as well. why don't we ju
shalamov
2016/09/06 12:36:43
Removed, will consider adding it back once we have
| |
| 16 private final double mFrequency; | |
| 17 | |
| 18 PlatformSensorConfiguration(double frequency) { | |
| 19 mFrequency = frequency; | |
| 20 } | |
| 21 | |
| 22 @CalledByNative | |
| 23 private static PlatformSensorConfiguration create(double frequency) { | |
| 24 return new PlatformSensorConfiguration(frequency); | |
| 25 } | |
| 26 | |
| 27 @CalledByNative | |
| 28 public double getFrequency() { | |
| 29 return mFrequency; | |
| 30 } | |
| 31 } | |
| OLD | NEW |