diff options
| author | Michael Kolb <kolby@google.com> | 2010-11-22 09:11:48 -0800 |
|---|---|---|
| committer | Michael Kolb <kolby@google.com> | 2010-11-22 14:12:55 -0800 |
| commit | 1514bb7ed5656316a8dac966cee21653f3c59aff (patch) | |
| tree | 072d8a3cf8b68732480101105f84275b302059d8 /src/com/android/browser/Controller.java | |
| parent | 026f254cff9d762a9f9c9d9bf74f15809d730cd2 (diff) | |
move subwindow handling to UI
added sub view creation to WebViewFactory
removed WebView from subview layout
use WebVIewFactory for creating the SubWebView
moved layout/view related code to UI
Change-Id: Id5b1905e4c36814fe7cc047cbd97128235d7e65e
Diffstat (limited to 'src/com/android/browser/Controller.java')
| -rw-r--r-- | src/com/android/browser/Controller.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index 9f9b451f..e0b15b43 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -306,11 +306,22 @@ public class Controller mFactory = factory; } - WebViewFactory getWebViewFactory() { + @Override + public WebViewFactory getWebViewFactory() { return mFactory; } @Override + public void createSubWindow(Tab tab) { + endActionMode(); + WebView mainView = tab.getWebView(); + WebView subView = mFactory.createWebView((mainView == null) + ? false + : mainView.isPrivateBrowsingEnabled()); + mUi.createSubWindow(tab, subView); + } + + @Override public Activity getActivity() { return mActivity; } |
