diff options
| author | Jonathan Dixon <joth@google.com> | 2012-02-28 18:45:06 +0000 |
|---|---|---|
| committer | Jonathan Dixon <joth@google.com> | 2012-03-02 11:17:47 +0000 |
| commit | 3c90952036a5ff7ddb2946c643f1a0bf1c31d53a (patch) | |
| tree | 974ef2a94c60a2c72b8fbd804613792480a9c3e5 /core/java/android/webkit/FindActionModeCallback.java | |
| parent | 0dc0da67d9775b2364a38d015e0610492708a02e (diff) | |
Refactor WebView to be a thin proxy class
Splits interface and implementation; all client calls are forwarded
to an abstract WebViewProvider interface, and the existing implementation
moved into the WebViewClassic implementor of this interface.
Originally taken from a snapshot from the development branch, by:
git diff HEAD 9a4c328a54cc05e5 | git apply
- but then rebased to keep up to date with master
Interdepends on webkit and Browser changes:
https://android-git.corp.google.com/g/158979
https://android-git.corp.google.com/g/167911
Change-Id: I91403f32654ff308934e95c832d17b292a7d9b2e
Diffstat (limited to 'core/java/android/webkit/FindActionModeCallback.java')
| -rw-r--r-- | core/java/android/webkit/FindActionModeCallback.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/webkit/FindActionModeCallback.java b/core/java/android/webkit/FindActionModeCallback.java index 10b0885359db..964cf3ecc316 100644 --- a/core/java/android/webkit/FindActionModeCallback.java +++ b/core/java/android/webkit/FindActionModeCallback.java @@ -38,7 +38,7 @@ class FindActionModeCallback implements ActionMode.Callback, TextWatcher, private View mCustomView; private EditText mEditText; private TextView mMatches; - private WebView mWebView; + private WebViewClassic mWebView; private InputMethodManager mInput; private Resources mResources; private boolean mMatchesFound; @@ -90,7 +90,7 @@ class FindActionModeCallback implements ActionMode.Callback, TextWatcher, * Set the WebView to search. Must be non null, and set before calling * startActionMode. */ - void setWebView(WebView webView) { + void setWebView(WebViewClassic webView) { if (null == webView) { throw new AssertionError("WebView supplied to " + "FindActionModeCallback cannot be null"); @@ -218,7 +218,7 @@ class FindActionModeCallback implements ActionMode.Callback, TextWatcher, public void onDestroyActionMode(ActionMode mode) { mActionMode = null; mWebView.notifyFindDialogDismissed(); - mInput.hideSoftInputFromWindow(mWebView.getWindowToken(), 0); + mInput.hideSoftInputFromWindow(mWebView.getWebView().getWindowToken(), 0); } @Override @@ -232,7 +232,7 @@ class FindActionModeCallback implements ActionMode.Callback, TextWatcher, throw new AssertionError( "No WebView for FindActionModeCallback::onActionItemClicked"); } - mInput.hideSoftInputFromWindow(mWebView.getWindowToken(), 0); + mInput.hideSoftInputFromWindow(mWebView.getWebView().getWindowToken(), 0); switch(item.getItemId()) { case com.android.internal.R.id.find_prev: findNext(false); |
