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

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: 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..37770b27d6d4b71018eed3676a7352198d5736de 100644
--- a/content/browser/device_orientation/data_fetcher_impl_android.cc
+++ b/content/browser/device_orientation/data_fetcher_impl_android.cc
@@ -111,4 +111,9 @@ void DataFetcherImplAndroid::Stop(DeviceData::Type event_type) {
static_cast<jint>(event_type));
}
+int DataFetcherImplAndroid::GetNumberActiveDeviceMotionSensors() {
+ return Java_DeviceMotionAndOrientation_getNumberActiveDeviceMotionSensors(
bulach 2013/06/13 09:49:35 nit: for consistency, DCHECK(!device_orientation_
timvolodine 2013/06/13 14:00:40 Done.
+ AttachCurrentThread(), device_orientation_.obj());
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698