Chromium Code Reviews| Index: device/generic_sensor/android/java/src/org/chromium/device/sensors/PlatformSensorNotifier.java |
| diff --git a/device/generic_sensor/android/java/src/org/chromium/device/sensors/PlatformSensorNotifier.java b/device/generic_sensor/android/java/src/org/chromium/device/sensors/PlatformSensorNotifier.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0afc9fd29bbb63d1aa500540999e41a4332ca046 |
| --- /dev/null |
| +++ b/device/generic_sensor/android/java/src/org/chromium/device/sensors/PlatformSensorNotifier.java |
| @@ -0,0 +1,15 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +package org.chromium.device.sensors; |
| + |
| +/** |
| + * Interface used to notify native PlatformSensor about sensor reading changes or errors. |
| + */ |
| +interface PlatformSensorNotifier { |
|
timvolodine
2016/09/07 14:51:06
Looking at the delta wrt the latest upload, looks
shalamov
2016/09/07 18:49:18
Unfurtunately this is required by to abstract nati
timvolodine
2016/09/08 12:51:03
oh sorry I didn't realize it was for testing only.
shalamov
2016/09/08 13:40:49
Done.
|
| + // Called when sensor reading is changed. |
| + public void sensorReadingChanged(); |
|
Ted C
2016/09/07 18:12:24
public is standard on interfaces, so you don't act
|
| + // Called in case of error. |
| + public void sensorError(); |
| +} |