Add API to allow plugins to lock their orientation in full-screen
This CL has companion changes in the framework and webkit.
bug: 3398386
Change-Id: Iea198ae6b74c68506e605ca8c401f199e2455416
diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java
index 98d209e..b0a991a 100644
--- a/src/com/android/browser/Tab.java
+++ b/src/com/android/browser/Tab.java
@@ -983,8 +983,14 @@
@Override
public void onShowCustomView(View view,
WebChromeClient.CustomViewCallback callback) {
+ onShowCustomView(view, mActivity.getRequestedOrientation(), callback);
+ }
+
+ @Override
+ public void onShowCustomView(View view, int requestedOrientation,
+ WebChromeClient.CustomViewCallback callback) {
if (mInForeground) mWebViewController.showCustomView(Tab.this, view,
- callback);
+ requestedOrientation, callback);
}
@Override