am f0f7a913: Merge "Support spellcheck attribute in WebTextView" into ics-mr0

* commit 'f0f7a9139b40e9b90a2981aa7aba49fa2c24ca1d':
  Support spellcheck attribute in WebTextView
This commit is contained in:
Michael Kolb
2011-10-11 15:33:37 -07:00
committed by Android Git Automerger
2 changed files with 4 additions and 0 deletions

View File

@@ -1002,6 +1002,9 @@ import junit.framework.Assert;
| InputType.TYPE_TEXT_VARIATION_WEB_EDIT_TEXT;
int imeOptions = EditorInfo.IME_FLAG_NO_EXTRACT_UI
| EditorInfo.IME_FLAG_NO_FULLSCREEN;
if (!mWebView.nativeFocusCandidateIsSpellcheck()) {
inputType |= InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS;
}
if (TEXT_AREA != type
&& mWebView.nativeFocusCandidateHasNextTextfield()) {
imeOptions |= EditorInfo.IME_FLAG_NAVIGATE_NEXT;

View File

@@ -9459,6 +9459,7 @@ public class WebView extends AbsoluteLayout
private native boolean nativeFocusCandidateIsTextInput();
/* package */ native int nativeFocusCandidateMaxLength();
/* package */ native boolean nativeFocusCandidateIsAutoComplete();
/* package */ native boolean nativeFocusCandidateIsSpellcheck();
/* package */ native String nativeFocusCandidateName();
private native Rect nativeFocusCandidateNodeBounds();
/**