summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2011-01-04 16:05:43 -0500
committerDerek Sollenberger <djsollen@google.com>2011-01-04 16:05:43 -0500
commit36a4f232c6afeeb43d5561ff27dae9ac2e1303fc (patch)
treed09869b920d3cdeede67800ff5f9862c5b606411
parentcf7775a88f8c88fc3a902799fc1d5100f6f7e0d6 (diff)
downloadframeworks_base-36a4f232c6afeeb43d5561ff27dae9ac2e1303fc.zip
frameworks_base-36a4f232c6afeeb43d5561ff27dae9ac2e1303fc.tar.gz
frameworks_base-36a4f232c6afeeb43d5561ff27dae9ac2e1303fc.tar.bz2
Add full-screen support for OpenGL based plugins.
bug: 3321891 Change-Id: Ief8ef6d3c4b9ea535054b80b84df080567b9b163
-rw-r--r--core/java/android/webkit/WebViewCore.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/core/java/android/webkit/WebViewCore.java b/core/java/android/webkit/WebViewCore.java
index 45927f9..43ec378 100644
--- a/core/java/android/webkit/WebViewCore.java
+++ b/core/java/android/webkit/WebViewCore.java
@@ -2577,10 +2577,7 @@ final class WebViewCore {
.sendToTarget();
}
- // called by JNI. PluginWidget functions for creating an embedded View for
- // the surface drawing model.
- private ViewManager.ChildView addSurface(View pluginView, int x, int y,
- int width, int height) {
+ private ViewManager.ChildView createSurface(View pluginView) {
if (mWebView == null) {
return null;
}
@@ -2598,6 +2595,14 @@ final class WebViewCore {
ViewManager.ChildView view = mWebView.mViewManager.createView();
view.mView = pluginView;
+ return view;
+ }
+
+ // called by JNI. PluginWidget functions for creating an embedded View for
+ // the surface drawing model.
+ private ViewManager.ChildView addSurface(View pluginView, int x, int y,
+ int width, int height) {
+ ViewManager.ChildView view = createSurface(pluginView);
view.attachView(x, y, width, height);
return view;
}