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

Unified Diff: content/browser/device_orientation/data_fetcher_impl_android.cc

Issue 15817019: Additions to the Android java-side Device Motion/Orientation fetching (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed comments from Marcus Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/device_orientation/data_fetcher_impl_android.cc
diff --git a/content/browser/device_orientation/data_fetcher_impl_android.cc b/content/browser/device_orientation/data_fetcher_impl_android.cc
index c7a066f221fd6f99c497d4841fcf4758813af58e..def5d8a3d7e807213c04be86a2f7fc638eda7b17 100644
--- a/content/browser/device_orientation/data_fetcher_impl_android.cc
+++ b/content/browser/device_orientation/data_fetcher_impl_android.cc
@@ -111,4 +111,10 @@ void DataFetcherImplAndroid::Stop(DeviceData::Type event_type) {
static_cast<jint>(event_type));
}
+int DataFetcherImplAndroid::GetNumberActiveDeviceMotionSensors() {
+ DCHECK(!device_orientation_.is_null());
+ return Java_DeviceMotionAndOrientation_getNumberActiveDeviceMotionSensors(
+ AttachCurrentThread(), device_orientation_.obj());
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698