History log of /frameworks/base/core/java/android/webkit/WebTextView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b2676f76b6dd078604754b0a7b3fc3095835570e 02-Mar-2012 John Reck <jreck@google.com> Delete more navcache stuff

Change-Id: Ic32559948b90abb3e8e755c5eb533dd9e83b3190
/frameworks/base/core/java/android/webkit/WebTextView.java
3c90952036a5ff7ddb2946c643f1a0bf1c31d53a 28-Feb-2012 Jonathan Dixon <joth@google.com> 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
/frameworks/base/core/java/android/webkit/WebTextView.java
0b2cfd8cb168481dbdc674e066e477bc555c9d32 15-Feb-2012 George Mount <mount@google.com> Use input type for IME options.

Bug 5987568
Get the text type from webkit when initializing the field for
text entry and use that type to specify the IME input type
and options.
Webkit Change: I7eceafdbede8b7b463590a2e875a237241479ad1

Change-Id: Ic8c14687a70727148dfc8115c46f09530ca0c0f6
/frameworks/base/core/java/android/webkit/WebTextView.java
8463c88ddf654d35b55b859a55133fad4c7c0a75 07-Dec-2011 John Reck <jreck@google.com> Fix WebTextView rings

Bug: 5718531
Don't scroll the rings and fix the border's alpha

Change-Id: I5e629d2b3b1b2bf4760c01d0f927e3f81949e9bd
/frameworks/base/core/java/android/webkit/WebTextView.java
e4e5fef75ef3da64e1f64834d6874f6d6d6d7baf 05-Dec-2011 Michael Kolb <kolby@google.com> Remove debug log messages

Bug: 5713163

Change-Id: Id8d9845f6ecb7dd90ae4cf42bc82d39a148a5700
/frameworks/base/core/java/android/webkit/WebTextView.java
852585c034d383ea6afe1b484afa57cbf4d04f95 17-Nov-2011 Michael Kolb <kolby@google.com> Merge "Draw input field focus ring in WebTextView" into ics-mr1
edb39ce5b4770c6f53c9b30aeae4589969607e17 17-Nov-2011 Michael Kolb <kolby@google.com> Draw input field focus ring in WebTextView

Bug: 5628053

Change-Id: I1a3d5402e7925e71877be2c278e95f25e75746f3
/frameworks/base/core/java/android/webkit/WebTextView.java
f9a6c91f75a4f08543b045435fd795f475e7e879 17-Nov-2011 John Reck <jreck@google.com> Fix add single character check

Bug: 5618801

Change-Id: I42a19855b188c9175b8f7a293faa96027685052c
/frameworks/base/core/java/android/webkit/WebTextView.java
39036ace768cc3304e4c28b11822c84338a201c7 08-Nov-2011 Michael Kolb <kolby@google.com> Remove flicker from WebTextView

Bug: 5522186

Update LayoutParams when position changed only

Change-Id: I54beb489c261090d7ba258354449501b771fd98e
/frameworks/base/core/java/android/webkit/WebTextView.java
c0e9fb91c8f7ac0e8dd007f00808aae283a79fb0 21-Oct-2011 John Reck <jreck@google.com> Fix rebuildWebTextView issues

Bug: 5488135
Cherry pick from MR0

Change-Id: I2df047b6de42dbe716008f69d720fa5fad3fe19d
/frameworks/base/core/java/android/webkit/WebTextView.java
f23e1679a284b33d29434e80cbacd0e988f31129 17-Oct-2011 George Mount <mount@google.com> Fixed spell check failing to change word.

Bug 5387838
On WebView.rebuildWebTextView, setTextAndKeepSelection was
being called, erasing the selections. Changed it so that
when text is replaced with the exact same value, no replace
is done. Also, on the Google search, when a spelling change
was made, the final character was placed improperly. When
a single character is added, the javascript events for the
character are sent. When multiple characters are changed,
the entire value is replaced with no javascript key events
sent.

Change-Id: I791eeb3c96354cfe3cbfda7e8d05c81fcdeb152f
/frameworks/base/core/java/android/webkit/WebTextView.java
64b4f16adf8a46a848e864200d9f7f4f90441d32 11-Oct-2011 Michael Kolb <kolby@google.com> Support spellcheck attribute in WebTextView

Bug: 5267547

set no suggestions for WebTextView when spellcheck attribute is
false
depends on CL: https://android-git.corp.google.com/g/#/c/141326/2

Change-Id: I4ad476270607e9d600567bbb4d9fd321893707b1
/frameworks/base/core/java/android/webkit/WebTextView.java
923154914d7afa5b434d10daa3da10353109754c 06-Oct-2011 Ben Murdoch <benm@google.com> Merge "Pass correct units for text size in autocomplete drop down."
68b9074a60a8b20235c1887c09eb7073d48c9902 06-Oct-2011 John Reck <jreck@google.com> Merge "Prevent adapter flickering"
f88a56e2b1e54883c021bd2b2497e12710fb77e3 06-Oct-2011 Ben Murdoch <benm@google.com> Pass correct units for text size in autocomplete drop down.

We need to set the size of the text used in the autocomplete
drop down in pixels, as we do when setting the size of the
EditText itself.

Bug: 5420125
Change-Id: Ife6d8c108c57106ffaa8706fa9e4e537a73a1733
/frameworks/base/core/java/android/webkit/WebTextView.java
a607060bbd985560a9fa0218906eddabf522d734 06-Oct-2011 John Reck <jreck@google.com> Prevent adapter flickering

Bug: 5403763
Prevent rapidly switching between a null adapter and a valid
adapter by only clearing if the node pointer changes or the text view
is no longer autocompletable.

Change-Id: Ie594396db807b5ad5e1a5a0e68ec0c7677364aaf
/frameworks/base/core/java/android/webkit/WebTextView.java
67f9d32e5ed55b15b84be4d0bdff828d48abe2eb 06-Oct-2011 George Mount <mount@google.com> Merge "Fix monkey NullPointerException"
1fa26cbfc883ef76a46234d104906a1a9a515fc5 03-Oct-2011 George Mount <mount@google.com> Fix monkey NullPointerException

bug: 5385775
Check mWebViewCore has been destroyed
Remove mWebTextView from WebView when WebView is destroyed
Clear WebTextView's handler when it is removed from WebView

Change-Id: I9c62292d693109e692c341e3e4dba3e04af81fe4
/frameworks/base/core/java/android/webkit/WebTextView.java
b76b3b1c815eea62220ba8a148074897ffb92acf 29-Sep-2011 Russell Brenner <russellbrenner@google.com> Center box text vertically

Apply Gravity.CENTER_VERTICAL for single-line editable text

Bug: 5267547
Change-Id: Ie81354214e6eb97554d1f9e8e47377a2b0e73df6
/frameworks/base/core/java/android/webkit/WebTextView.java
2376f8253f59e70e733bdf338e9cb49535f3d50f 09-Sep-2011 Ben Murdoch <benm@google.com> Relax form autocomplete conditions

Use the URL host and path rather than the complete url to store
form autocomplete data. This helps in the situation that a site
uses some dynamic query string on the page that contains the form.

Also set the autoocmplete threshold to 1 so that we don't flick the
autocomplete options up and down as you type the first few characters.

Bug: 5265606
Change-Id: I7b372400062ae34f70a78b786007910dc179b101
/frameworks/base/core/java/android/webkit/WebTextView.java
3882486dcdd914b5feb4da35af4f804fb2180e5c 11-Aug-2011 Ben Murdoch <benm@google.com> Allow fractional and signed input for number fields.

Bug: 5150575
Change-Id: I36f8dd59f630d77ea3f4ef6271f4cbaaaa3df0ad
/frameworks/base/core/java/android/webkit/WebTextView.java
e3e7a88b4d83d46be5a6c766dc4340cd1687d693 25-Jul-2011 Chris Craik <ccraik@google.com> Use WebTextView overlay to render text fields/areas much faster

bug:5008210

Still has the following issues:

* colors are always black & white

* ignores centering, word wrap from text area

* gray background text (such as with instant search) and other textfield effects
aren't shown

The DebugFlags.DRAW_WEBTEXTVIEW can still be used to overlay red text over the
input box.

Change-Id: I7f22321c31b9edbc5351cac13f2e17b0ee19d563
/frameworks/base/core/java/android/webkit/WebTextView.java
d555e5dccc41174893475d484d0f202d1956c430 28-May-2011 Tadashi G. Takaoka <takaoka@google.com> Fix input type judgment of WebTextView

Bug: 4490948
Cherry-pick: I232b8f13
Change-Id: I09a7e829edd7ca8d54fa109dc14b4a3946de0f1b
/frameworks/base/core/java/android/webkit/WebTextView.java
2c0a80931538a9959007fb6a7c44d8d23731f6b2 27-May-2011 Tadashi G. Takaoka <takaoka@google.com> Fix InputType determination of WebTextView

The InpuType from <input type="email" /> has been broken.

Related-Bug: 4490948
Change-Id: Ibd7f2977a177f1d97e3a29ac44220e5136bbd653
/frameworks/base/core/java/android/webkit/WebTextView.java
52c7ba174ba6edabf7a4c7a69ee124a9e30244e9 10-Mar-2011 Gilles Debunne <debunne@google.com> Removed updateCursorControllerPositions hidden method.

This method is no longer needed since handles' positions are
updated in onPreDraw.

See CL 100549

Change-Id: I7f95d9850c866935c22ecc49c6f4ce89a87861ae
/frameworks/base/core/java/android/webkit/WebTextView.java
d69b701284c14a382565f4d0d194143a09dd5418 09-Mar-2011 Leon Scroggins <scroggo@google.com> Scroll textfield onscreen when the IME shows.

Bug:4079218
Change-Id: I69fe49582effe664c2288401871922a2cacc7c9c
/frameworks/base/core/java/android/webkit/WebTextView.java
e11ce83a96c61cf4f51ea62a32917e5814127516 03-Mar-2011 Leon Scroggins <scroggo@google.com> Use the same width as the TextView created layout.

Bug:3509684

Change-Id: I5fd1e3e73a07a6049eb8336339a1100e2a5f7018
/frameworks/base/core/java/android/webkit/WebTextView.java
6e0e0ec980505c0717d3bf4b1b5e048f25da9c95 01-Mar-2011 Leon Scroggins <scroggo@google.com> Fix password field drawing.

Bug:3499916

Change-Id: Idb10e9780e6a0cfecd6228de0fbfd4a1035ab61e
/frameworks/base/core/java/android/webkit/WebTextView.java
03e0119c93f7a9a9e54cc74dde2a2fd07ae0a944 11-Feb-2011 Leon Scroggins <scroggo@google.com> Do not show the dropdown unless there is something to show.

Bug:3427152
Change-Id: I2f0c36193f762085c2e1e7036387ff04f6f259d0
/frameworks/base/core/java/android/webkit/WebTextView.java
a51063c059d1e445c4a05829c8c93ac7dd64c1b1 21-Jan-2011 Leon Scroggins <scroggo@google.com> Restart input when the webpage changes the text.

Bug:3375518
Change-Id: I0a18d0ca764ce428d86bd5f6d13f8764668acea6
/frameworks/base/core/java/android/webkit/WebTextView.java
d5188657dcde0f40a6954a00d569c0575bf6095a 19-Jan-2011 Leon Scroggins <scroggo@google.com> Do a better job of lining up text with page text.

Bug:3085564
Bug:3196224
Bug:3321608

Remove Touch.getMaxScrollX(), which is incorrect for my
purpose, and is not used anywhere else. Instead use the
layout to determine the maximum horizontal scroll of a
textfield.

Now that textareas use layers, scroll the layer's picture
in the UI thread for vertical movement. When passing a
click to webcore, also pass a message to scroll the actual
textarea so the click will be in the correct place.

Lastly, do not override bringPointIntoView, which allows
moving the insertion handler beyond the edge of a field to
scroll it. Instead, override requestRectangleOnScreen to
do nothing, since my actual goal is to prevent the TextView
from changing the scroll of the WebView, which is done by
webkit.

Requires a change to external/webkit.

Change-Id: Ib91907599b792287c373d3678cb04e0cb5e34471
/frameworks/base/core/java/android/webkit/WebTextView.java
3be1ffab08728ed0f36677e4499d70fbd591f999 19-Jan-2011 Leon Scroggins <scroggo@google.com> Only scroll on screen when necessary.

Bug:3367446

bringPointIntoView was called by TextView in onPreDraw. This was
passing a message to the webcore thread to change the scroll
position. This is unnecessary, because typically the scroll
position will be changed by webkit when keys are pressed. The
one situation where this helped was when the user taps on a
textfield, which brings up the IME, which may cover it. A better
solution is to tell webkit to scroll it on screen once the
screen size changes. I have a CL in external/webkit to do that:
https://android-git.corp.google.com/g/#change,91095

Change-Id: I6e06ad59e1a1c99365bb5be635a43d1b88658c0d
/frameworks/base/core/java/android/webkit/WebTextView.java
407772390f4a1b4e1196820ea22b9327eea54019 18-Jan-2011 Leon Scroggins <scroggo@google.com> Make WebView inactive when title bar takes focus.

Bug:3296938
Change-Id: I656e8582044acf3b0e9b417f41337833fe72c181
/frameworks/base/core/java/android/webkit/WebTextView.java
86e1fa647f7541b091753cf6a2314935b1011406 10-Jan-2011 Leon Scroggins <scroggo@google.com> Remove nativeCursorMatchesFocus, which is no longer necessary.

Bug:3335014

Requires a change in external/webkit.

Change-Id: I1dbaa73e86f312c6142c915e8cb252cf238f09c3
/frameworks/base/core/java/android/webkit/WebTextView.java
ae0238cae5aa3656c4da128c8951cedc902e6092 05-Jan-2011 Leon Scroggins <scroggo@google.com> Do not show past entries if autocomplete=off.

Bug:3300365

Requires a change in external/webkit.

Change-Id: I2f15d9dfce1002d0bf7a77a14605769fd654aa51
/frameworks/base/core/java/android/webkit/WebTextView.java
aa86ac82bc296931d4de6715fa966be8d0f8af2f 28-Dec-2010 Cary Clark <cary@android.com> map keyboard for webview

Treat the numeric keypad enter as the regular enter for the
purposes of completing a text entry or activating the currently
selected link.

Add a little keyboard-related debugging.

Don't call select text to extend the selection if the tap
point hasn't moved.

A separate change to the Browser app adds more keyboard
accelerators.

bug:3270434
bug:3191699
Change-Id: I8a38b26196e93e344dc2a4b39a6968fe0c158d47
/frameworks/base/core/java/android/webkit/WebTextView.java
fcf577665bb7ad029e41fd31d5f582f3c98d3026 15-Dec-2010 Leon Scroggins <scroggo@google.com> Make a long press on a textfield work.

Bug:3268584

Even if the WebTextView has not been set up yet.

Change-Id: I8ec2c4ef8146006d6ee84d08e1ddbdb099125047
/frameworks/base/core/java/android/webkit/WebTextView.java
60344deb7cc3de88b2f2da1f58d93b86e5ed2eab 13-Dec-2010 Leon Scroggins <scroggo@google.com> Use black text on white background for dropdowns.

Bug:3249233
Change-Id: I8c400c4ab043409e40a1180d45effd4513d0657c
/frameworks/base/core/java/android/webkit/WebTextView.java
6e9b327d08f48f0ae4f8b9eba49ad2f67fcb636c 10-Dec-2010 Leon Scroggins <scroggo@google.com> Use drawLines to draw the outline of the WebTextView.

Bug:3214760

Optimize drawing the background of the WebTextView.

Change-Id: Iad44839137ffa3b91dd2044885028c283291b491
/frameworks/base/core/java/android/webkit/WebTextView.java
57914381a80c9f19cf5227b4af9e822fa0c74ea9 16-Nov-2010 Ben Murdoch <benm@google.com> Offer the user the option to configure an AutoFill profile.

When the user selects a form field that is part of a form that can
be autofilled, inform the embedder that this is the case to give
them the opportunity to configure a profile if they the user has
not done so already. A Message is also provided
to the embedder that when sent will trigger the form to be filled
with the profile that the embedder set up.

Change-Id: Ica995e5b1ed92a3ec3e356401b261740d9f90e57
/frameworks/base/core/java/android/webkit/WebTextView.java
1ca562635117e10fae0888689909e6c39d66b0a4 18-Nov-2010 Leon Scroggins <scroggo@google.com> Alter the Layout of WebTextView to match webkit.

Bug:3085564

In order to treat the selection handles properly, the text in
WebTextView needs to line up with the text in webkit. Use the
line spacing style, or the paint if none provided, to determine
the spacing for WebTextView's Layout. When no line spacing is
provided, use the floating point values of ascent and descent,
rather than the rounded result, to determine spacing.

Requires a change in external/webkit:
https://android-git.corp.google.com/g/#change,80641

Change-Id: I51081835e128a0e938028c7c7aeb5111aa5f072c
/frameworks/base/core/java/android/webkit/WebTextView.java
6b53e8daa69cba1a2a5a7c95a01e37ce9c53226c 11-Nov-2010 Jeff Brown <jeffbrown@google.com> Added support for full PC-style keyboards.

BREAKING CHANGE: Redesigned the key character map format to
accomodate full keyboards with more comprehensive suite of modifiers.
Old key character maps will not work anymore and must be updated.
The new format is plain text only and it not compiled to a binary
file (so the "kcm" tool will be removed in a subsequent check-in).

Added FULL keyboard type to support full PC-style keyboards.

Added SPECIAL_FUNCTION keyboard type to support special function
keypads that do not have any printable keys suitable for typing
and only have keys like HOME and POWER

Added a special VIRTUAL_KEYBOARD device id convention that maps
to a virtual keyboard with a fixed known layout. This is designed
to work around issues injecting input events on devices whose
built-in keyboard does not have a useful key character map (ie.
when the built-in keyboard is a special function keyboard only.)

Modified several places where events were being synthesized
to use the virtual keyboard.

Removed support for the "qwerty" default layout.
The new default layout is "Generic". For the most part "qwerty"
was being used as a backstop in case the built-in keyboard did
not have a key character map (probably because it was a special
function keypad) and the framework needed to be able to inject
key events anyways. The latter issue is resolved by using the
special VIRTUAL_KEYBOARD device instead of BUILT_IN_KEYBOARD.

Added the concept of a key modifier behavior so that
MetaKeyKeyListener can distinguish between keyboards that use
chorded vs. toggled modifiers.

Wrote more robust key layout and key character map parsers
to enable support for new keyboard features and user installable
key maps.

Fixed a bug in InputReader generating key ups when keys
are released out of sequence.

Updated tons of documentation.

Currently QwertyKeyListener is being used for full keyboards
with autotext and capitalization disabled. This mostly works
but causes some problems with character pickers, etc.
These issues will be resolved in subsequent changes.

Change-Id: Ica48f6097a551141c215bc0d2c6f7b3fb634d354
/frameworks/base/core/java/android/webkit/WebTextView.java
c26dc9f38f8eaac7708eaf08bae98dfb7fde21b0 12-Nov-2010 Leon Scroggins <scroggo@google.com> Provide variable for debugging the text in WebTextView.

Change-Id: I40630e3ab754c9e9805dc674c8c0c6c8688973c3
/frameworks/base/core/java/android/webkit/WebTextView.java
c35f4ac3090e7bc875d84d1f8a655a4ea8baef1b 10-Nov-2010 Leon Scroggins <scroggo@google.com> Work on lining up the TextView and web page text.

Bug:3085564

Do not round the text size when applying it to the WebTextView,
so that it will better line up with the text shown on the web
page.

Modify the WebTextView paint to better match the paint used by
webkit.

Update the padding when the zoom level changes.

Change-Id: I284a6febcba2be21dc1ab3f74c6ab5751e1b19b6
/frameworks/base/core/java/android/webkit/WebTextView.java
b5ce0e05327b4b76da49d2bd3944e66c38c8cb69 01-Nov-2010 Leon Scroggins <scroggo@google.com> Use the new web email and password variations.

Bug:2460543
Bug:3094312
Bug:2692655
Bug:2710595

Use the NEXT flag when there is a following
textfield.

In TextView, treat the new variations like email and password
variations.

Requires a change in LatinIME so that these fields work propely:
https://android-git.corp.google.com/g/#change,77721

Change-Id: Id6517a016db7d50b77570ff77f2635027796da4a
/frameworks/base/core/java/android/webkit/WebTextView.java
c826a69355623ed0e812faa1947259464a4364dd 01-Nov-2010 Leon Scroggins <scroggo@google.com> Merge commit '55381217' into manualmerge

Conflicts:
core/java/android/webkit/WebView.java

Change-Id: I1e93881a55c1d81c1142db03498c68196649b69c
5642625cfb065de38440408c1e2e8a8c6f8fa32d 01-Nov-2010 Leon Scroggins <scroggo@google.com> Update insertion handler for WebTextView.

Bug:3152629
Change-Id: If2a33eb5456493fb9b3b2c54fcc4f5348fe129e1
/frameworks/base/core/java/android/webkit/WebTextView.java
44d2c69ad30878521c6eff66a83893099b3d12ee 19-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Avoid NPE in WebTextView.lineUpScroll -> Touch.getMaxScrollX

Bug: 3110967
Change-Id: I156070956528c8c7d1eb6db5d2e8bb1fe119178d
/frameworks/base/core/java/android/webkit/WebTextView.java
e8aa954e46d002ae89fcfc307956312721b41b5f 18-Oct-2010 Leon Scroggins <scroggo@google.com> resolved conflicts for merge of 46ca6a22 to master

Change-Id: I8302fa2f5acf91fb3793e5978a5dc63ac8f3a457
2a30744cd73233646173d05ebdb28f7829ec7a52 15-Oct-2010 Leon Scroggins <scroggo@google.com> Line up textfield with WebTextView more often.

Bug:3097705

Line up when the selection changes (such as when the
selection is altered by the context menu) or when the
WebTextView scrolls.

Change-Id: Ia491064548131be1ac6f4d701a43cd8419a25367
/frameworks/base/core/java/android/webkit/WebTextView.java
f76f6f5c63df5f22f723cde884dbfbe7a57e4c20 14-Oct-2010 Leon Scroggins <scroggo@google.com> am 00c50b2e: am f348502c: Merge "Allow TextView to do its thing." into gingerbread

Merge commit '00c50b2e49dbb3537a3ee553dc79d6e34cd00065'

* commit '00c50b2e49dbb3537a3ee553dc79d6e34cd00065':
Allow TextView to do its thing.
23cb86a47d566db413d9c7679984ef3cfdfee848 12-Oct-2010 Leon Scroggins <scroggo@google.com> Allow TextView to do its thing.

Bug:3085639

Call super.onTouchEvent for ACTION_UP and ACTION_CANCEL.
This removes the old selection as appropriate.

Bug:3085587

Make the cursor visible so that the insertion handle
appears when tapping on the field.

Change-Id: If5ea6219de9ca351667021743b2e63edc6c47250
/frameworks/base/core/java/android/webkit/WebTextView.java
f39b2cfadba27c0fd18eaf41127dc9fd59e1a2ed 09-Sep-2010 Ben Murdoch <benm@google.com> Make autofill a webview preference

Change-Id: I2bed0612ad6381dd4c6aedf4af8740fac33748c7
/frameworks/base/core/java/android/webkit/WebTextView.java
62275a461ec4782991826a18fb4cdb85b5430cfc 07-Sep-2010 Ben Murdoch <benm@google.com> Make WebTextView display an "AutoFill this form" option

When the user clicks to AutoFill the form, we propogate a message
to WebCore through WebViewCore to actually perform the action.

Corresponding change in external/webkit needed to implement the
native method that gets called to execute

Change-Id: I6c75ab9b2c5404580de549b69102ab9374493c34
/frameworks/base/core/java/android/webkit/WebTextView.java
200c13d37fb394c218a3824c428a116207266316 14-May-2010 Leon Scroggins <scroggo@google.com> Do not put the selection on screen for non password fields.

Instead, allow webkit to do it.

Requires a change to external/webkit.

Bug 2679411
Bug 2659028

Change-Id: Ibe5dfc90b13d13f7575649e4c90d5166de10dbb2
/frameworks/base/core/java/android/webkit/WebTextView.java
e742c08ce01742c5a864ce0a16bda4735a970bd8 02-Sep-2010 Leon Scroggins III <scroggo@google.com> Use the proper selection when performing a delete.

Bug: 2956964

Change-Id: I488c291b2fb3cfa5c5d510bd4a03afbc8949d8d8
/frameworks/base/core/java/android/webkit/WebTextView.java
71d17e40714407296d0d8c83d35c20f591bb0386 02-Sep-2010 Leon Scroggins III <scroggo@google.com> Only close the IME if it is Active on the WebView.

Bug: 2955391

Some applications want to leave the IME open even though
the WebView is loading a page. Only hide the IME if it
is Active on the WebView or the WebTextView.

Change-Id: I1e7f973f649d78561bd8585c628a83c9b18a66ad
/frameworks/base/core/java/android/webkit/WebTextView.java
3d540842f70f9719ff5abbac3bd492e7949d4aab 27-Aug-2010 Leon Scroggins III <scroggo@google.com> Send delete key events when pressed at beginning of field.

Bug: 2952504
Change-Id: Iafb33a29a3b9e51c5db16e7a123fe91f73480643
/frameworks/base/core/java/android/webkit/WebTextView.java
2aed776142e323b06bc6493fb315643377738733 13-Aug-2010 Leon Scroggins <scroggo@google.com> Change focusController only when WebView gains/loses focus.

Bug: 2582455

A corresponding webkit change eliminates the rest of the calls
to change the active and focused state of the focus controller.

Change-Id: I18868b7480ba5daae71375d109d5a721ecf22b4d
/frameworks/base/core/java/android/webkit/WebTextView.java
03e489157191a7bda903babe9437076bf135bc41 18-May-2010 Derek Sollenberger <djsollen@google.com> Refactoring more webview zoom code into ZoomManager.

This CL is #2 of multiple CL's to remove the zoom code
from webview and place it into webkit.ZoomManager. Each
commit is only part of the entire refactoring so there
are many ZoomManager.* variables still referenced from
WebView.

Change-Id: I21f6517dff46b65a277bc67120ffabe043098e5e
http://b/2671604
/frameworks/base/core/java/android/webkit/WebTextView.java
eb51f3e340d3ddc935367c302167d4b4b706e904 25-May-2010 Leon Scroggins <scroggo@google.com> Check for null before using Layout.

Bug 2713024

Change-Id: Iaad5c774fa1e16c341d481104f8fd38f7add3082
/frameworks/base/core/java/android/webkit/WebTextView.java
da3e835ce500a291938eeb5ce06082bdf2b3b6f7 22-Apr-2010 Leon Scroggins <scroggo@google.com> am 39837c5a: am 986a0380: am 69ec5c22: Remove the WebTextView if it is drawing when it shouldn\'t.
69ec5c22d09690d33f0b87a386de13cc61eb9b42 22-Apr-2010 Leon Scroggins <scroggo@google.com> Remove the WebTextView if it is drawing when it shouldn't.

Bug 2614064

Change-Id: Id5d0a27e862bb783299f6fa4863221a27318f52c
/frameworks/base/core/java/android/webkit/WebTextView.java
b24e18b1c05ce62b5e6530305dd9980943d459b6 20-Apr-2010 Leon Scroggins III <scroggo@google.com> Update mTextGeneration when setting the selection to the default.

Bug 2610682

Change-Id: Ib3b95cd9443ef31a6c736cdac076260b4f3bbe71
/frameworks/base/core/java/android/webkit/WebTextView.java
dfbb1f420962d740e085ab962267de1ab5f4a9da 14-Apr-2010 Leon Scroggins III <scroggo@google.com> Call InputMethodManager.updateSelection at draw time.

Bug 2499860

Change-Id: Ie0b2a16c12ba59d30e3de5b614753e93b526d8cc
/frameworks/base/core/java/android/webkit/WebTextView.java
3fcf4863595f18be0691e19e530b1c0c8e79995e 13-Apr-2010 Leon Scroggins <scroggo@google.com> Ensure the selection does not change in setTextAndKeepSelection.

Bug: 2589778
Change-Id: I72752797003216fdd12cebffbdf4cd9ffbf523e1
/frameworks/base/core/java/android/webkit/WebTextView.java
f9b1a092b6c86549a8257015a03ea59ebcd9a85e 31-Mar-2010 Leon Scroggins <scroggo@google.com> Only include WEB_EDIT if there are more textfields.

Fixes http://b/issue?id=2559070

Requires a change to external/webkit.

Change-Id: I411a04d260c781a91d16832704bb5c34e9751bc1
/frameworks/base/core/java/android/webkit/WebTextView.java
62459c0fa5f379ab7aaaea3159654dd355117b37 09-Mar-2010 Leon Scroggins <scroggo@google.com> If the new text and old text are "", return from onTextChanged.

Fixes http://b/issue?id=2496329

Change-Id: I239f143c0e539710342e46783157344a4d7ccc08
/frameworks/base/core/java/android/webkit/WebTextView.java
7af1b837ff7add63cb1494d231ea11d874575b73 03-Mar-2010 Leon Scroggins <scroggo@google.com> Remove the TAB key from <textarea>s.

Do not use flag for web edit, so that the IME does not have the
TAB key.

Fix for http://b/issue?id=2484101
/frameworks/base/core/java/android/webkit/WebTextView.java
1be40985283e77d3fc5d98268f9f6453bcc7223e 01-Mar-2010 Leon Scroggins <scroggo@google.com> Make nativeMoveCursorToNextInput return a boolean and use it.

If nativeMoveCursorToNextTextInput does not succeed, do not set the
default selection or perform the other actions which assumed that the
move worked.

Part of fix for http://b/issue?id=2478052

Requires a change to external/webkit.
/frameworks/base/core/java/android/webkit/WebTextView.java
e265532f30ca460dc0900c4cdfc3c7425ae7714b 16-Feb-2010 Leon Scroggins <scroggo@google.com> Create a default style for WebTextView.

As a result, all apps using WebView (and therefore WebTextView)
will get the same style, and display properly.

Fixes http://b/issue?id=2385422
/frameworks/base/core/java/android/webkit/WebTextView.java
af314e246dd6ee75b0d8d6b5a64d8443c7a8220d 09-Feb-2010 Leon Scroggins <scroggo@google.com> Set the IME action to GO for normal textfields.
/frameworks/base/core/java/android/webkit/WebTextView.java
d5ff5dbfebe9a6b906323b4cc98257a83bbf38b2 08-Feb-2010 Leon Scroggins <scroggo@google.com> Handle the Tab key by moving to the next textfield. And ensure
there is always a way to get to the next field.

http://b/issue?id=2414236 and http://b/issue?id=2414229
/frameworks/base/core/java/android/webkit/WebTextView.java
2edd68260f26cbd6eddd0df16404bb6bcb22b3b6 12-Jan-2010 Leon Scroggins <scroggo@google.com> Create a new ImeOption that disables fullscreen in landscape, and use it.

EditorInfo:
Add a flag to tell the InputMethodService to never go into fullscreen
mode.

InputMethodService:
When the new flag is set, onEvaluateFullscreenMode always returns
false.

WebTextView:
Use the new flag, along with IME_FLAG_NO_EXTRACT_UI. Fixes
http://b/issue?id=2358360
/frameworks/base/core/java/android/webkit/WebTextView.java
3a5033996e9df21abbd5b296d817c2acaedcb0f9 06-Jan-2010 Leon Scroggins <scroggo@google.com> Request <label> info only when accessing a textfield.

Previously, we were storing the label info each time we build the
navigation cache.

Requires a change to external/webkit.
/frameworks/base/core/java/android/webkit/WebTextView.java
e38fc1898183a6bf8b0542a1d2627cdbcbd63198 05-Jan-2010 Leon Scroggins <scroggo@google.com> Show label information as hint text

Fix for http://b/issue?id=2331526

Requires a change to external/webkit.
/frameworks/base/core/java/android/webkit/WebTextView.java
e26efa321c66716d58f3e338022caed8852af07e 15-Dec-2009 Leon Scroggins <scroggo@google.com> If the DOM changes textfield focus, make the IME work properly.

Fix for http://b/issue?id=2219166

Requires a change to external/webkit

Remove the old change to update the WebTextView when a key is pressed,
since the IME does not generate key events. Instead, when the focus
changes, and the IME is serving the WebTextView, immediately clear
the cursor and update the WebTextView, so the user can continue
typing.
/frameworks/base/core/java/android/webkit/WebTextView.java
47fabbfcbf99e5e3b73a6ee09059c77932ef1b7b 08-Dec-2009 Leon Scroggins <scroggo@google.com> Pass a message to move the focus when user hits "Next".

Directly move the focus rather than passing a click.

Fixes http://b/issue?id=2292683

Requires a change to external/webkit
/frameworks/base/core/java/android/webkit/WebTextView.java
6be3bf2393030549306b438b9b17085035729135 08-Dec-2009 Leon Scroggins <scroggo@google.com> Some fixes for positioning the WebTextView.

Move the change in position/size before the call to bring into view,
so that the properly positioned field will be brought into view. It
is also now before we check to see if it is the same textfield, so
it happens in both cases.

Also remove some code which checks the selection and then sets it
unnecessarily. It was originally surrounding some code which called
setRect, which had a side-effect of changing the selection. That
code was removed (rendering the remaining code useless), and setRect
no longer has the side effect (the side effect was a result of calling
reqestFocus, which it no longer does - further, the change in selection from
requestFocus no longer affects the textfield's text).
/frameworks/base/core/java/android/webkit/WebTextView.java
aa7b9d78262b1df07a98bcf725958d418ff12ede 07-Dec-2009 Leon Scroggins <scroggo@google.com> Set InputType of WebTextView according to <input> field's type.

Help fix http://b/issue?id=2150538 and http://b/issue?id=1890360

Use the <input type> information to set the InputType, so that
the IME can show the correct options. Also consolidate setup
of WebTextView into setType().

Requires a change in external/webkit.
/frameworks/base/core/java/android/webkit/WebTextView.java
9e3e2d3a6967301730fd383e8b04d53fdfd008e5 04-Dec-2009 Leon Scroggins <scroggo@google.com> Show search icon for <input type="search"> fields.

Along with a change to external/webkit, fixes http://b/issue?id=2299650
/frameworks/base/core/java/android/webkit/WebTextView.java
cfc2915d926cee14380b54d0960262e748eed4f5 02-Dec-2009 Leon Scroggins <scroggo@google.com> In setDefaultSelection ensure that webkit is notified of the new selection.

Fix for http://b/issue?id=2254732
/frameworks/base/core/java/android/webkit/WebTextView.java
ed90811e711065bcc82a45f4173587cd95ef6b6f 01-Dec-2009 Leon Scroggins <scroggo@google.com> Do not peform a click/move if longpress has been performed in WebTextView.
/frameworks/base/core/java/android/webkit/WebTextView.java
bb107bd6f7981cd2b2e31a0afc6f6bf2a6d5118f 23-Oct-2009 Leon Scroggins <scroggo@google.com> Many fixes to text input in the browser, particularly when moving to a new field.

Remove many instances where we are setting selection unnecessarily. Instead, only
set the selection due to a click, touch, or inserting a character. A touch will
now set the selection properly, rather than at the beginning/end, fixing
http://b/issue?id=1650395 Also fixes http://b/issue?id=2208188

Requires a change to external/webkit.
/frameworks/base/core/java/android/webkit/WebTextView.java
1d96ca06d83ef87544a7053ab6c19b3b8233ae4b 23-Oct-2009 Leon Scroggins <scroggo@google.com> Show the soft keyboard when pressing center key/trackball on input field

Fixes http://b/issue?id=2210234

Consolidate center key/trackball presses on input fields, and show
soft keyboard if the field is not readonly. Also rename the method
for a center press, and pass a click rather than a touch. Requires
a change in external/webkit.
/frameworks/base/core/java/android/webkit/WebTextView.java
d9ec29f64827bc703a23b1c33d653906a91713fc 22-Oct-2009 Cary Clark <cary@android.com> fix text area insertion order, partially

While Leon mulls over how to rewrite WebTextView to
handle webkit driven focus changes, these fixes make
the current code slightly more stable.

Keep track of when keyDown is sent again so that the
WebTextView won't be rebuilt in that case.

Don't clear the cursor from WebTextView if the there's
no native focus pointer.

Only set the selection to its initial state once when
passing events down to webkit.

partially fixes http://b/issue?id=2201049
/frameworks/base/core/java/android/webkit/WebTextView.java
fcafa46069a451d09f69a5df8c167596e7554666 21-Oct-2009 Cary Clark <cary@android.com> fix multiple text areas, and text areas without focus rings

If the typed key doesn't go with the current text area, clear
the focus so the key won't return to that text area. However,
don't clear the focus if it is already off the old text area.

fixes http://b/issue?id=2201049
/frameworks/base/core/java/android/webkit/WebTextView.java
0c5924e9dd1befadae8c73505d3acc9813bf8224 30-Sep-2009 Cary Clark <cary@android.com> preserve webkit-side text selection

When webkit modifies a text field programmatically, it may change
the selection. This competes with the UI thread attempting to
set the selection in response to the IME next button and changes
made by the trackball.

One recent fix (https://android-git.corp.google.com/g/#change,26904)
sets the selection from the UI side after the IME generated click.
Unfortunately, this can be generated under other circumstances,
so this change qualifies this with mOkayForFocusNotToMatch, which
is only set after the IME next button is pressed.

The other change qualfies onTextChanged calls so that if it was
triggered by setTextAndKeepSelection, the webkit-side selection
is unchanged.

fixes http://b/issue?id=2096746
/frameworks/base/core/java/android/webkit/WebTextView.java
eaa18dec91b6dd0ce3191a9ab65cdc95ef68b935 28-Sep-2009 Cary Clark <cary@android.com> scroll text field with touch

Add a hidden public method to text/method/Touch.java that
computes the maximum scroll amount for a text field.

Remove 'faketouch' code; it causes a crash and is
no longer required.

Pass the percentage of the current scroll from the UI
thread to webkit. One additional fix is to allow very
small movements which are currently disallowed because
they are smaller than 'smallerSlop' in WebTextView.java.

Companion fix is in external/webkit.

Fixes http://b/issue?id=2133049
/frameworks/base/core/java/android/webkit/WebTextView.java
94c715d662e803b43dde8984a60f937a26706c7d 29-Sep-2009 Grace Kloba <klobag@google.com> Skip requestRectangleOnScreen for WebTextView during
zoom animation. If it is in edit mode, we already adjust
WebTextView in the end of zoom animation.

Fix part 1 of http://b/issue?id=2147168
/frameworks/base/core/java/android/webkit/WebTextView.java
37703b6c875a935e6341d8a710796bc0c87d3044 23-Sep-2009 Cary Clark <cary@android.com> invalidate the webview after pressing the IME 'next' button

fixes http://b/issue?id=2141013
/frameworks/base/core/java/android/webkit/WebTextView.java
d3997e556eb0509248c72b668c2cd955b7842b55 21-Sep-2009 Leon Scroggins <scroggo@google.com> Make scrolling textfields work better in the browser.

The touch slop seems to be too large for scrolling
a small textfield, so use a smaller number. Also,
in WebView, create viewToContentDimension, and use
it for determining the scroll position of the text
field.

Partial fix for http://b/issue?id=2133049

Change-Id: I0ded3be264b179bad39301e6adce86851b649a42
/frameworks/base/core/java/android/webkit/WebTextView.java
241403fd19edc44d089f3860db1562ed523dea07 17-Sep-2009 Leon Scroggins <scroggo@google.com> Update the input method when the selection changes.

Fix http://b/issue?id=2074446

Add in code that is normally called by TextView.onDraw(). Since
drawing does not happen for WebTextView, we need to call it
ourselves.

Change-Id: Icb47f6a58fba6f8b11e2924befc704f26af68d43
/frameworks/base/core/java/android/webkit/WebTextView.java
7ae34197b03313dd3f278b1a995252040ae6e2df 16-Sep-2009 Leon Scroggins <scroggo@google.com> Allow touches to change the selection in WebTextView.

Fix http://b/issue?id=2019857

If the user has not moved beyond the scaled touch slop, do not
turn it into a scroll, so the user can change the selection.

Change-Id: I1d88691a35ea2da4b03ad713b56331b5c268b757
/frameworks/base/core/java/android/webkit/WebTextView.java
ef92e7a606167130d4ae52c1e23f32c3f0af291e 02-Sep-2009 Leon Scroggins <scroggo@google.com> Prevent a crash when webkit changes the selection.

Partial fix for http://b/issue?id=2081673
This prevents a crash. However, if the user continues typing
into the textfield, the selection is incorrect. The real solution
(forthcoming), will make sure that the WebTextView's text gets
updated when webkit updates.

Change-Id: Ic832ec48fd4236c8116c5cbda1467677ad731feb
/frameworks/base/core/java/android/webkit/WebTextView.java
6679f2f70813eb93bf88297dc2de5e56bc7d7ca0 13-Aug-2009 Leon Scroggins <scroggo@google.com> Pass clicks to webkit's textfield to determine the new selection.

Requires a corresponding change to external/webkit. We were previously
letting WebTextView handle clicks, determine the change in selection,
and pass that down to webkit. This sometimes resulted in a different
placement of the caret if the WebTextView and the webkit-rendered
textfield did not line up exactly. Now, we pass the click directly
to webkit, which determines the new selection and passes that info
back to the WebTextView. This also has the benefit of letting
the WebTextView reflect changes in the selection that originated from
webkit. Also remove some unused parameters.
/frameworks/base/core/java/android/webkit/WebTextView.java
010582885cbd5e1becadd6c53816c399465b459d 30-Jul-2009 Leon Scroggins <scroggo@google.com> Allow the user to jump to the next textfield.

Requires a change to external/webkit. Set ImeActions for textfields,
depending on the existence of other textfields on the page, and
react accordingly.
/frameworks/base/core/java/android/webkit/WebTextView.java
72543e1bc386f23f5d8f3f21068887ec16408fef 23-Jul-2009 Leon Scroggins <scroggo@google.com> Improvements to dragging on the WebTextView.

When TextView handles a mouse move as a scroll, scroll the
underlying textfield/textarea. Also do not hide the cursor
while scrolling within a text input. Requires a change to
external/webkit.
/frameworks/base/core/java/android/webkit/WebTextView.java
416a3c7cdd584e327d9f52ad3adf7c6ee2aeca3a 22-Jul-2009 Leon Scroggins <scroggo@google.com> Prevent a drag from both scrolling the page and changing the selection.

Fix for http://issue?id=1995835. If the user uses touch to drag a
web page by the WebTextView, do not change the selection as well.
/frameworks/base/core/java/android/webkit/WebTextView.java
0f5ad842fb3fbc0df2a4c8028940810782cedacc 17-Jul-2009 Leon Scroggins <scroggo@google.com> Allow the user to scroll a webpage by touching a textfield.

Fix for http://b/issue?id=1703971. Because the browser overlays
the WebTextView over textfields, it intercepts all the touch
events, which was preventing the page from scrolling. This
change passes the move events back to the WebView to make
the page scroll.
/frameworks/base/core/java/android/webkit/WebTextView.java
10be4fc63a0d43262f1cfeac3b4a7904fa8fbc14 20-Jul-2009 Leon Scroggins <scroggo@google.com> Do not hide the soft keyboard when the DOM has moved focus.

Instead of calling remove(), which would hide the soft
keyboard, remove the WebTextView manually, so the soft
keyboard remains up (if it was up to begin with). WebView
will properly handle the keys now that the focus has
changed.
/frameworks/base/core/java/android/webkit/WebTextView.java
0857767516a73cc87e10c8ababa5262114fb0578 16-Jul-2009 Leon Scroggins <scroggo@google.com> Show the password in browser password fields.

Fix for http://b/issue?id=1979719 : cannot see password in browser
textfield. Show the system's password transformation in a password
field, which can be set to show the text partially or completely,
rather than webkit's version, which never shows the text.
/frameworks/base/core/java/android/webkit/WebTextView.java
4890feb048e4f0510c577babe3bfd08521a3996b 02-Jul-2009 Leon Scroggins <scroggo@google.com> In WebTextView, check the focus before sending a key.

This fixes a bug where the DOM has moved the focus, but the WebTextView
is still sending keys to the old focus. Requires a change in
external/webkit.
/frameworks/base/core/java/android/webkit/WebTextView.java
409812691def88027dc16ac930646eb260536c69 01-Jul-2009 Leon Scroggins <scroggo@google.com> Fixes for moving a focused textfield on screen when entering a character.

When the focused node is a textfield, but the WebView has focus
(for example if the page had an initial focus) and the cursor
is not over a plugin or textfield, rebuild the WebTextView
to handle the keys. Also, remove mScrollToAccommodateCursor,
since now the WebTextView is only showing when we want to
scroll.
/frameworks/base/core/java/android/webkit/WebTextView.java
0ca70883d752cce77b918421ef81f3134f6ccd1e 26-Jun-2009 Leon Scroggins <scroggo@google.com> Assign a field name for textfields in the browser.

Fix for http://b/issue?id=1605291. Store the url and name of the
textfield in EditorInfo.fieldName.
/frameworks/base/core/java/android/webkit/WebTextView.java
243ea06d2bf67e8b54da51977687b08f49aeb093 25-Jun-2009 Cary Clark <cary@android.com> Remove the web text view if the key cannot be handled

Also add some debugging to WebTextView
Requires companion change in external/webkit
/frameworks/base/core/java/android/webkit/WebTextView.java
49f372210b09c461f7c32dddd9170f9e8dad076f 05-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 12bba912: Merge change 3238 into donut

Merge commit '12bba912238f305d385b30c278a4bdbb027b7a03'

* commit '12bba912238f305d385b30c278a4bdbb027b7a03':
Browser edit fields should report variation WEB_EDIT_TEXT.
d3465f6021c23ab2fbdbb1b08cde72caac1c2018 02-Jun-2009 Leon Scroggins <scroggo@google.com> Rename the TextDialog to WebTextView.

Rename the TextDialog to be a more accurate description of what it is.
Also rename some methods and variables which pertain to it, and preload
the newly created class.
/frameworks/base/core/java/android/webkit/WebTextView.java