Bug 1287946 - Update existing code to use mozilla::java; r=me

This commit is contained in:
Jim Chen
2016-07-21 00:42:26 -04:00
parent 550a6c6f80
commit 0ea27022be
67 changed files with 209 additions and 218 deletions

View File

@@ -788,7 +788,7 @@ void nsNPAPIPluginInstance::NotifyFullScreen(bool aFullScreen)
SendLifecycleEvent(this, mFullScreen ? kEnterFullScreen_ANPLifecycleAction : kExitFullScreen_ANPLifecycleAction);
if (mFullScreen && mFullScreenOrientation != dom::eScreenOrientation_None) {
widget::GeckoAppShell::LockScreenOrientation(mFullScreenOrientation);
java::GeckoAppShell::LockScreenOrientation(mFullScreenOrientation);
}
}
@@ -845,11 +845,11 @@ void nsNPAPIPluginInstance::SetFullScreenOrientation(uint32_t orientation)
// We're already fullscreen so immediately apply the orientation change
if (mFullScreenOrientation != dom::eScreenOrientation_None) {
widget::GeckoAppShell::LockScreenOrientation(mFullScreenOrientation);
java::GeckoAppShell::LockScreenOrientation(mFullScreenOrientation);
} else if (oldOrientation != dom::eScreenOrientation_None) {
// We applied an orientation when we entered fullscreen, but
// we don't want it anymore
widget::GeckoAppShell::UnlockScreenOrientation();
java::GeckoAppShell::UnlockScreenOrientation();
}
}
}