Back out bug 735330, bug 737462, bug 734854 because they broke XUL Fennec
This commit is contained in:
@@ -318,6 +318,28 @@ AndroidBridge::AcknowledgeEventSync()
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jAcknowledgeEventSync);
|
||||
}
|
||||
|
||||
void
|
||||
AndroidBridge::EnableDeviceMotion(bool aEnable)
|
||||
{
|
||||
ALOG_BRIDGE("AndroidBridge::EnableDeviceMotion");
|
||||
|
||||
// bug 734855 - we probably can make this finer grain based on
|
||||
// the DOM APIs that are being invoked.
|
||||
if (aEnable) {
|
||||
EnableSensor(hal::SENSOR_ORIENTATION);
|
||||
EnableSensor(hal::SENSOR_ACCELERATION);
|
||||
EnableSensor(hal::SENSOR_LINEAR_ACCELERATION);
|
||||
EnableSensor(hal::SENSOR_GYROSCOPE);
|
||||
}
|
||||
else {
|
||||
DisableSensor(hal::SENSOR_ORIENTATION);
|
||||
DisableSensor(hal::SENSOR_ACCELERATION);
|
||||
DisableSensor(hal::SENSOR_LINEAR_ACCELERATION);
|
||||
DisableSensor(hal::SENSOR_GYROSCOPE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
AndroidBridge::EnableLocation(bool aEnable)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user