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

Side by Side Diff: device/generic_sensor/android/java/src/org/chromium/device/sensors/PlatformSensorConfiguration.java

Issue 2284613002: [sensors] Android platform adaptation for Generic Sensor API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 years, 3 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 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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698