History log of /frameworks/base/core/java/android/webkit/WebView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
96a1b3cf6759970c6d3dc9e9b3762dca74b87193 11-Oct-2012 Jonathan Dixon <joth@google.com> Unhide setPictureListener

The replacement isn't available yet, so we need to leave this in for now.

BUG: 7332831
Change-Id: I311c44c45ef71461572afbe4060d134cdaefd3ae
/frameworks/base/core/java/android/webkit/WebView.java
4cb846b8defa298fe62e6420d1dcd7d8f65a1d74 14-Sep-2012 Kristian Monsen <kristianm@google.com> Merge "Hiding some of the deprecated android.webkit API's" into jb-mr1-dev
b4c02e6ffd8e7099f925f1b286be5c3a0a8ebb48 12-Sep-2012 Selim Gurun <sgurun@google.com> Minor update to addjavascriptinterface documentation

Change-Id: I67525673e3d061e00fbe8989c08050ad84e78920
/frameworks/base/core/java/android/webkit/WebView.java
4f8da32ffaf7aaf1f670e74caa7cd8a70ddb63c6 12-Sep-2012 Selim Gurun <sgurun@google.com> Merge "Make JavascriptInterface annotation public." into jb-mr1-dev
bd0fe8783407bc760b8e9a9952cb96a600d26ea9 12-Sep-2012 Kristian Monsen <kristianm@google.com> Merge "Deprecating methods (and a constant) for JB MR1" into jb-mr1-dev
e91d5bee241f30513b82263bc71b56abfde8ad8d 12-Sep-2012 Selim Gurun <sgurun@google.com> Make JavascriptInterface annotation public.

Bug: 7073422

This change makes @JavascriptInterface public and it requires
using this annotation to allow javascript access to public java
methods for API level JELLY_BEAN_MR1 and above. The behavior
does not change for API levels JELLY_BEAN and below.

Change-Id: I4108b17cf71b9ac273d7b61b1c8f7f5581e922ee
/frameworks/base/core/java/android/webkit/WebView.java
94740e6c333a109be7516abbd17dd418f23b4f0c 05-Sep-2012 Selim Gurun <sgurun@google.com> Control access to inherited methods of jsinterface objects

Bug: 7073422

Create the plumbing to use an annotation to allow access to
inherited methods of jsinterface objects. The default webview
behavior has not changed yet. However internally an a flag is
introduced to restrict javascript access to methods that have an annotation.

Change-Id: I41927248e6bc4b09d17c0707c60fe5e6ab681e66
/frameworks/base/core/java/android/webkit/WebView.java
f4912580e6adc90ab37b07b8108c7334f359e317 16-Aug-2012 Kristian Monsen <kristianm@google.com> Hiding some of the deprecated android.webkit API's

Change-Id: I1775a2ff615d1633fe9a20a5af49623222d3d27b
/frameworks/base/core/java/android/webkit/WebView.java
5cc2351ded6a13fadcc3bb14fdaf31ac66c05b2d 09-Aug-2012 Kristian Monsen <kristianm@google.com> Deprecating methods (and a constant) for JB MR1

Change-Id: I3eb0eaff5ea5d8984ad143f801efa19e25bd0685
/frameworks/base/core/java/android/webkit/WebView.java
92b81a3e4b793aa139c002c110dae4285240412f 22-Aug-2012 Selim Gurun <sgurun@google.com> Fix onFindResultReceived API

This is to fix open source bug 36509, i.e.
http://code.google.com/p/android/issues/detail?id=36509
the parameters are swapped.

Change-Id: I6245d254943c7c97e847a241d0069d85118763f7
/frameworks/base/core/java/android/webkit/WebView.java
951fcabef694ce3a78c1e7a8d03a27bd337db021 21-Aug-2012 Jonathan Dixon <joth@google.com> Small tidy up to getDefaultUserAgent. DO NOT MERGE

- no need for WebSettings to bounce via WebView to get to the factory
- move this static (non-factory) method into the Statics inner class.

Bug: 6329117

Clean cherry pick: d1c4faa5a4c2be71d529d35572c5f807beee7ddc

Change-Id: I96807df0171c7308421ca8811cfcb1bf710cb007
/frameworks/base/core/java/android/webkit/WebView.java
9f410c540ad593dd83e34266ccffd70867a600ab 11-Aug-2012 George Mount <mount@google.com> Add getDefaultUserAgent to WebSettings.

Bug 6329117
Add ability to get the default user-agent without creating
a WebView. The method is implemented for WebSettingsClassic.

Change-Id: Id15fb57f65875752ccf644481a22b88644635f5d
/frameworks/base/core/java/android/webkit/WebView.java
b5622dad6561482ddd331bd826689634b5fa2c4f 17-Aug-2012 John Reck <jreck@google.com> Remove checkThread() from findAddress

Bug: 6811978
This doesn't need checked thread safety - static util methods should
be thread safe.

Change-Id: Ib652d74ced66e3fa332464106a38522cd941a4cd
/frameworks/base/core/java/android/webkit/WebView.java
c723e35336e764a1e708f1a4a8ee3f7bff711c0f 14-Aug-2012 Steve Block <steveblock@google.com> Clean up JavaDoc for CookieManager

Bug: 5461416
Change-Id: I0ae09943007cf3866daad97a76f5008e61c471ed
/frameworks/base/core/java/android/webkit/WebView.java
27f3e32ee181ccd809fbe74ec5f7fb43aea197f7 23-Jul-2012 Steve Block <steveblock@google.com> Clarify JavaDoc for WebView.loadData()

Bug: 5461416
Change-Id: I3f0955677ea64bb4073c97aabea34096298cd710
/frameworks/base/core/java/android/webkit/WebView.java
75bea2e8d35044233ba892bedf102ed08406d653 26-Jul-2012 Scott Main <smain@google.com> am 7c00f816: am 2f5b61a7: Merge "docs: fix a bunch of links from javadocs to api guides and add some attributes to Spinner and Switch" into jb-dev

* commit '7c00f81606de1880c3f28e54cea064c3b90da3e7':
docs: fix a bunch of links from javadocs to api guides and add some attributes to Spinner and Switch
4c359b76f9a030f92a302ba74a528faa170bad4e 25-Jul-2012 Scott Main <smain@google.com> docs: fix a bunch of links from javadocs to api guides
and add some attributes to Spinner and Switch

Change-Id: If015ad000c1a36e19904c132e98ebff1ceaf718b
/frameworks/base/core/java/android/webkit/WebView.java
46ce1db6ff3290b82b12f11715fbe82734a44322 17-Jul-2012 Steve Block <steveblock@google.com> Improve JavaDoc for HTTP basic authentication methods

Bug: 5461416

Change-Id: Ie3bfbf6acde34ea184aa8c8b1d3841e2a2aa8a22
/frameworks/base/core/java/android/webkit/WebView.java
219dfa4d392851c1ffd7147cb78d4236658a79d8 20-Jul-2012 Steve Block <steveblock@google.com> Improve JavaDoc for saved form data

Change-Id: I962df5678081920c30f8a2b1fe79389f702ef3fb
/frameworks/base/core/java/android/webkit/WebView.java
32fe410a5d750096dfb902fda384e58e513f53e4 17-Jul-2012 Steve Block <steveblock@google.com> Improve JavaDoc for saved username/password pairs

Change-Id: Ief079666eb1250f0a57089c778669b638a259194
/frameworks/base/core/java/android/webkit/WebView.java
72498edd88557218f1b72454c84ec2a2630beab6 17-Jul-2012 Steve Block <steveblock@google.com> Update JavaDoc for PictureListener after fix to capture layers

Bug: 6389297
Change-Id: I970942f926effbb072ae306c994d25c0e77e3810
/frameworks/base/core/java/android/webkit/WebView.java
f6468ca4dc66c48098874d12f605e14ba77b93e5 18-Jul-2012 Jonathan Dixon <joth@google.com> Merge "Remove deprecated methods from webview provider interface"
42499061be34c6173aa3a55b1acf59d876114030 17-Jul-2012 Steve Block <steveblock@google.com> Improve JavaDoc for WebView.restoreState()

Change-Id: I01b3f8ac78b08ef0a6f563fa63978934a23fd183
/frameworks/base/core/java/android/webkit/WebView.java
19274f5a86d30c5ec8bc94bdcc2454f84e17c87e 13-Jul-2012 Jonathan Dixon <joth@google.com> Remove deprecated methods from webview provider interface

As these methods are a no-op, no need to foward it to the provider.
Also fixed some missing @Override annotations.

Change-Id: I6ba87cea49d95499de3f62db85c6f6947634bb6f
/frameworks/base/core/java/android/webkit/WebView.java
ce252553fdb4f142f24931d83399b5a59fc93775 18-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am 05fa21fa: am 4cb3b76c: Merge "Ensure WebViewClassic calls super.onHoverEvent()" into jb-dev

* commit '05fa21fa77962d302b040f66a1785e0dd84f3e0a':
Ensure WebViewClassic calls super.onHoverEvent()
eebebc9ff66808d738fbbaec6c3f1b16dc07d362 16-Jun-2012 alanv <alanv@google.com> Ensure WebViewClassic calls super.onHoverEvent()

Bug: 6679763
Change-Id: I9b182f25fa1c4050ea3a046c896e82ffbb4651ad
/frameworks/base/core/java/android/webkit/WebView.java
f2361156c4aee3dad26f25c410fcf255656922d1 15-Jun-2012 John Reck <jreck@google.com> Fix doc link

Change-Id: I5d2e6f04ed0ece6bf66b0b969c345108a1d372c5
/frameworks/base/core/java/android/webkit/WebView.java
926cf56676d760579573470c7848dbf119a86779 14-Jun-2012 John Reck <jreck@google.com> Show WebView layers in hierarchyviewer

Change-Id: I373e084d236baafe17982cfc367d167b81ca3e20
/frameworks/base/core/java/android/webkit/WebView.java
448902d757bb5d5f0284a06b0193549f1e1f369f 17-May-2012 alanv <alanv@google.com> Add movement actions to JS accessibility.

Bug: 5932640
Change-Id: I80e210adbef266b1ec9bc1cad7eeacb70529bdba
/frameworks/base/core/java/android/webkit/WebView.java
4e584df4cee8334bc371c04a67bcd0a32e2f9480 25-Apr-2012 Steve Block <steveblock@google.com> Fix JavaDoc style for several WebView classes

This fixes the JavaDoc style for the following classes ...
- CacheManager.java
- CookieManager.java
- GeolocationPermissions.java
- WebResourceResponse.java
- WebSettings.java
- WebStorage.java
- WebView.java

In particular, this applies the guidelines at
https://wiki.corp.google.com/twiki/bin/view/Main/APIDocumentation

This should help to ensure that future JavaDoc comments use correct style,
rather than using incorrect style for consistency.

Note that this change does not attempt to improve the content of the JavaDoc
comments. This will be done in later changes.

Bug: 5461416
Change-Id: I79e9b15a8cf3597195d58e154a7eb1bcc462944c
/frameworks/base/core/java/android/webkit/WebView.java
3aa800b9f93a99d6f25623ed24ab5f6fec213c15 24-Apr-2012 Steve Block <steveblock@google.com> Add tests for reflection and improve JavaDoc for Java Bridge

Bug: 5461416
Change-Id: Ic339b97a9424d8848f8afd47ba00cbbee4d60c9d
/frameworks/base/core/java/android/webkit/WebView.java
406aeb2a9da867f2f5211bc20fa4d6faff3efae8 23-Apr-2012 Steve Block <steveblock@google.com> Update WebViewClassic JavaDoc to refer to WebView

Change-Id: I5152ce82111dc661e5dc723d5c3402f2765b7312
/frameworks/base/core/java/android/webkit/WebView.java
b838aef488b4bb7b1cd6f4c0055476b2afdfd468 23-Apr-2012 Steve Block <steveblock@google.com> Fix use of API level in android.webkit JavaDoc

Bug: 5461416
Change-Id: Id17b10fec6bebc46260db6abe6df5f7d44a711ae
/frameworks/base/core/java/android/webkit/WebView.java
d3101b1d300f5942fdb7dfa323dc8830c4edc007 12-Apr-2012 Jonathan Dixon <joth@google.com> Seperate interface and implementation of 4 WebView classes

GeolocationPermissionsClassic
CookieManagerClassic
WebIconDatabaseClassic
WebStorageClassic

Also creats a WebViewFactory top level class - this remains hidden
for now, as it's currently only used implicitly by the other
public WebView classes to create the provider instances.

Bug: 5626244

Change-Id: Id0ca1c16d8058f31a86414bbc0e8a55db4b907ba
/frameworks/base/core/java/android/webkit/WebView.java
06d268e3ad1129814829af5d3b84752d84c1acf2 16-Apr-2012 Steve Block <steveblock@google.com> Clean up JavaDoc for WebView.getZoomControls()

Bug: 5461416
Change-Id: I4f2b5c9e4b4c2b1a38d678cb6756f128670ee490
/frameworks/base/core/java/android/webkit/WebView.java
9f21c1c73fccd21fa2f7be566f2ca863b3ece27f 12-Apr-2012 Jonathan Dixon <joth@google.com> Add deprecated tag and note StrictMode violation

This method is already @deprecated in docs anyway.
StrictMode.noteSlowCall can help apps discover the error.

Change-Id: Ie131d938b0dd32f85ec1886e2139ce3c3f511209
/frameworks/base/core/java/android/webkit/WebView.java
39edeeefe7778162e3b0c4c584a43b4bb6c0c788 12-Apr-2012 Jonathan Dixon <joth@google.com> Merge "Hide WebView.getZoomControls()"
63b81472a33b0bccf38a23c07661f7bcb4c119f7 09-Apr-2012 Victoria Lease <violets@google.com> Merge "Make WebView.findAllAsync() and WebView.setFindListener() public."
0b8413bbeb528c854e28c5ba1550239867da5c2e 26-Mar-2012 Victoria Lease <violets@google.com> Make WebView.findAllAsync() and WebView.setFindListener() public.

Deprecate WebView.findAll() while we're at it.

Bug: 6052412
Change-Id: I2f7116786109b4d6a01d24ac892c13b5d1f498f4
/frameworks/base/core/java/android/webkit/WebView.java
c69be70afecdd1094da279a4543a151388a27537 03-Apr-2012 Jonathan Dixon <joth@google.com> Hide WebView.getZoomControls()

This was deprecated and the replacement provided in API level 3.
Hiding it in API 16 as a step toward removing support for it in 17.

Bug: 5012841

Change-Id: Ice66a0fc1031c0d6705973dae7cbc11b028e14c9
/frameworks/base/core/java/android/webkit/WebView.java
8116da5ff64c293cba376dc9551cf81dd00cb6bd 03-Apr-2012 Michael Kolb <kolby@google.com> Remove embedded titlebar rendering

Bug: 5032345

During the zoom, the embedded titlebar doesn't get rendered
in the correct spot. Browser renders the titlebar differently
now, so the old code can be removed

Change-Id: I6affc9e6119dc17e89d15dad77e14e1cdf139662
/frameworks/base/core/java/android/webkit/WebView.java
ea0772122f39591fb858341d7d247a448473a1af 30-Mar-2012 alanv <alanv@google.com> Set class name for WebView on A11y events and infos.

Bug: 6209073
Change-Id: I08b2b0010e619ed9b3afaeb4f4fc92e3afbcffd1
/frameworks/base/core/java/android/webkit/WebView.java
d405a433e66a7bff086c5ba5653ae4268b2b994d 22-Mar-2012 Victoria Lease <violets@google.com> move FindListener into WebView

Also took advantage of the opportunity to adjust the javadoc.

Bug: 6052412
Change-Id: I3de2cc6f2b5af20acb87d6e0a105ac12b1be679b
/frameworks/base/core/java/android/webkit/WebView.java
3a382b58c89090a0051a58a8255e681f7266835d 20-Mar-2012 John Reck <jreck@google.com> Merge "Pipe down isHardwareAccelerated"
abeb6a791501151308d06db6aebb438e16c1a784 06-Mar-2012 Victoria Lease <violets@google.com> proposed public API for asynchronous find-on-page

Bug: 6052412

Change-Id: I63bff3bfda50eede958cb885f5068ae94bdcfe7d
/frameworks/base/core/java/android/webkit/WebView.java
a5408e619a0d9f4b516d76ee053da05a5d94227d 16-Mar-2012 John Reck <jreck@google.com> Pipe down isHardwareAccelerated

Change-Id: I19285ea03409279aea09f9e44a1870364762f877
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
148c5dadf44cf14a2fb617ce1e3a9e71ee0ce0bc 01-Mar-2012 Teng-Hui Zhu <ztenghui@google.com> Merge "Clean up Surface Texture on Java side"
fdd646b2b105e23cdc8517ac055448340a667e37 01-Mar-2012 Teng-Hui Zhu <ztenghui@google.com> Clean up Surface Texture on Java side

bug:6079959

Change-Id: I5869d4fe4dc6eb12a117937b95a8277897d71ebb
/frameworks/base/core/java/android/webkit/WebView.java
b290caafa7ea4e13aae8af7877df4e4891ef46b3 29-Feb-2012 George Mount <mount@google.com> Merge "Add support for maxlength text fields to WebViewInputConnection."
6012edec287cf081a1aacafd55aac1adfbd90b19 29-Feb-2012 George Mount <mount@google.com> Add support for maxlength text fields to WebViewInputConnection.

Bug 6083776
While WebKit limits the length of a field with maxlength, the
InputConnection can get out of sync with it when it doesn't
recognize that the characters haven't been changed. Adds
maximum field length to WebViewInputConnection to limit the
characters typed.
WebKit Change: Ie02f82a3f5b3527c378938d93bac2dece802af26

Change-Id: I135871db7809e8dc28a3ad8d3aa852976a274555
/frameworks/base/core/java/android/webkit/WebView.java
42fb45588f9fc469a9217c06ef0241b3de657922 28-Feb-2012 John Reck <jreck@google.com> Merge "Fix cursorRingBounds NPE"
5528d7ccd1a02798af076ff07717f1f2dab4e11a 28-Feb-2012 John Reck <jreck@google.com> Fix cursorRingBounds NPE

Bug: 6083657

Change-Id: I0aa30bc1df266b2f74b0fedfb635b71d63638fdb
/frameworks/base/core/java/android/webkit/WebView.java
79d99bebc19cf20cb486953ef2e9f6d96b27ab18 28-Feb-2012 John Reck <jreck@google.com> Fix NPE

Bug: 6083360

Change-Id: I8d4a4cfb4ca0bbefd848a6ed7a628bc3838e4f91
/frameworks/base/core/java/android/webkit/WebView.java
e7b57be185422a136fa2ba6b78c0a08497cdd4bc 28-Feb-2012 George Mount <mount@google.com> Merge "Perform action when action button pressed during text input."
e12dd8fd969e0664bfaee457567f654ac937461d 27-Feb-2012 George Mount <mount@google.com> Perform action when action button pressed during text input.

Bug 6059576

Change-Id: Ia87f323873b86b22930a2a39bf1c20756f06beec
/frameworks/base/core/java/android/webkit/WebView.java
1023aa44ef23067c9660e782e9b48d63bf65d1a2 23-Feb-2012 George Mount <mount@google.com> Paste window instead of action bar when cursor shown.

Use the paste window shown with TextView when the
cursor is shown rather than use the action bar.

Change-Id: I47d0bc2d5cba066399532a9e75171a75628ac7ed
/frameworks/base/core/java/android/webkit/WebView.java
0d4134834eeceffa6b75e02d2c8a1ffce1deffea 24-Feb-2012 John Reck <jreck@google.com> Merge "Fix HitTest type detection"
59265e896a87502d07c981d26e93ad078920999c 24-Feb-2012 John Reck <jreck@google.com> Fix HitTest type detection

Change-Id: Ide3d137de18302d2bb83437c3709a31afcdef9ff
/frameworks/base/core/java/android/webkit/WebView.java
374d243a1a1eb79b7fbccc55f1b3f5715e81f6ab 24-Feb-2012 George Mount <mount@google.com> Merge "Disable selection when nothing selected."
5d5b378383cfcdb70efb94c6d6c66ed5623141ec 24-Feb-2012 John Reck <jreck@google.com> Merge "Support email and phone types"
3a0e011fac50212c98b298e59615ac325671377f 24-Feb-2012 John Reck <jreck@google.com> Support email and phone types

Change-Id: I16571048954495aaaa11f25bf658dc128430460e
/frameworks/base/core/java/android/webkit/WebView.java
9a6077e22eeb0364b6b66d92f594f30cfdf5448c 24-Feb-2012 George Mount <mount@google.com> Disable selection when nothing selected.

Bug 6059606

Change-Id: I2c9acaa601e38a2cd0eec516709aa63f31ce0e29
/frameworks/base/core/java/android/webkit/WebView.java
583e885bef9891f582d19b06d575fc0cd96620a0 23-Feb-2012 George Mount <mount@google.com> Merge "Add javascript key events for special characters."
4d0a8cf06797cd596c0f1f35b295ce001c41eef5 23-Feb-2012 John Reck <jreck@google.com> Support mIntentUrl for addresses

Change-Id: I61abf7f333608fa91629ce62e348dda83a795e45
/frameworks/base/core/java/android/webkit/WebView.java
53519eacacbd238a0030bacdda3d31fa5b12af67 23-Feb-2012 George Mount <mount@google.com> Add javascript key events for special characters.

Bug 6033096

Change-Id: I6c10db405266eee3e25f7446a43f4d7a566f3ef7
/frameworks/base/core/java/android/webkit/WebView.java
2eb7309388644db2ad3be18986804422611fd90e 23-Feb-2012 Steve Block <steveblock@google.com> Merge "Drop support for Android HTTP stack"
6420ec4cd559065f494ef443d73ec161b741e5f6 23-Feb-2012 George Mount <mount@google.com> Characters sent directly to InputConnection treated as changes.

Bug 6045123

Change-Id: Iab8c1e3c307ec84c4f6934abfa2d0cea726d9efe
/frameworks/base/core/java/android/webkit/WebView.java
49cc3d98e296d115f1816b8a96b8ff713cf7abe3 23-Feb-2012 George Mount <mount@google.com> Merge "Changes that don't map to keys sent as text changes."
29cc47e62e1372f020c0488592c0bb1747f9a1f2 23-Feb-2012 John Reck <jreck@google.com> Merge "Fix drawing focus node rect in touch mode"
7bc111cc9ddec303b64990c80b98824420c45f88 14-Feb-2012 George Mount <mount@google.com> Add caret thumb following selection handle logic.

Webkit Change: I3cb0499c5fa3a7de241025d9be04ff44f54f2a74

Change-Id: I669653ca6890fe1136fdd42e24f4c3a34c00d1e4
/frameworks/base/core/java/android/webkit/WebView.java
3c30d145602261a1c33f39ab143146b511e8b564 23-Feb-2012 George Mount <mount@google.com> Changes that don't map to keys sent as text changes.

Bug 6033096

Change-Id: I61da4d398ac140fdacfdd344dc0e2885da907ce0
/frameworks/base/core/java/android/webkit/WebView.java
2b3d842a1c4bdbbc9ada932bbaac5561cede17ea 22-Feb-2012 John Reck <jreck@google.com> Fix drawing focus node rect in touch mode

Change-Id: I5981d038e48a7218cb5f6dcd09ef909746de158d
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
fbf9cf8d6bfd3ab1f0bc25675d57663f892804f3 22-Feb-2012 John Reck <jreck@google.com> Turn off the focus animation

Change-Id: I860220622415c6d3f93f526c854237ac1dd001ce
/frameworks/base/core/java/android/webkit/WebView.java
0acb1c32fa002a648c8090f622b0094f406d5411 16-Feb-2012 Steve Block <steveblock@google.com> Drop support for Android HTTP stack

All future releases will use the Chromium HTTP stack and maintaining two HTTP
stacks adds maintenance overhead. The Chromium HTTP stack requires V8, but we
now use V8 in all build targets (b/5495373), so we can safely drop the Android
HTTP stack.

LoadListener, HttpAuthHandlerImpl, Network, SslErrorHandlerImpl, WebViewWorker
- Android-stack specific, removed
StreamLoader, FrameLoader
- Require LoadListener, removed
CacheLoader, ContentLoader, DataLoader, FileLoader
- Extend StreamLoader, removed

BrowserFrame
- Removed methods that create LoadListener
- BrowserFrame.startLoadingResource() is called from native
CallbackProxy, WebView
- Removed calls to Network methods
CacheManager, CookieManager, CookieSyncManager, WebViewCore, WebResourceResponse
- Removed other Android-stack specific code
JniUtlil
- Removed useChromiumHttpStack()
WebViewDatabase
- Removed all code to create cookies and cache databases for Android HTTP stack

See corresponding WebKit change https://android-git.corp.google.com/g/166327.

Bug: 5495616
Change-Id: If491675516f6eb187077af4220214bb6e6a8d045
/frameworks/base/core/java/android/webkit/WebView.java
8352e51db3e92a6fb50fa1714f2e3516bb538be1 22-Feb-2012 John Reck <jreck@google.com> Merge "Improved keyboard navigation cursor rings"
47d0ee9766fb972f49d5116d2d7d3a23b5321211 14-Feb-2012 Victoria Lease <violets@google.com> async find-on-page implementation via WebKit

Change-Id: I63c6f8fc97bf452ea4456c77a89c5d2540c3d1ea
/frameworks/base/core/java/android/webkit/WebView.java
37c4a9f99a32748682b56d501cbc03c4b3c5b3cf 18-Feb-2012 John Reck <jreck@google.com> Improved keyboard navigation cursor rings

Change-Id: I77b974bb9eae0f9dc8e57320632e5915e8295839
/frameworks/base/core/java/android/webkit/WebView.java
4c69fc575e3bc76536c167969a098e776ba53143 21-Feb-2012 Martin Kosiba <mkosiba@google.com> Merge "Update the JavaDoc on getVisibleTitleHeight."
dd409dfbc44b11028f354d7b01a890f4bc7d6c29 20-Feb-2012 Martin Kosiba <mkosiba@google.com> Update the JavaDoc on getVisibleTitleHeight.

Changed 'titlebarview' to 'embedded title bar' and added information
about the return value of the method.

Change-Id: I970ab76282bfed4949f1d738f34359d8c1950aba
/frameworks/base/core/java/android/webkit/WebView.java
93ba4fedebb78ba47c24e8472c8960ea8fdc933a 14-Feb-2012 Selim Gurun <sgurun@google.com> Act on credential storage updates.

Bug: 6009802

Cherry pick fcd93b72a3dde2b20fa0d8b04d3f47311b0856a1
Listen to credential storage updates and clean state when necessary.

Change-Id: I2c63e6771e9373da8b39781fdcf3d21583c4e3b2
/frameworks/base/core/java/android/webkit/WebView.java
d8d6afdc068e8aa31fddd06f5946311d2b961026 16-Feb-2012 Selim Gurun <sgurun@google.com> Merge "Revert "Act on credential storage updates.""
43e41580e4c700e970cc5e62180a767ab424da6d 16-Feb-2012 Selim Gurun <sgurun@google.com> Revert "Act on credential storage updates."

This reverts commit fcd93b72a3dde2b20fa0d8b04d3f47311b0856a1
/frameworks/base/core/java/android/webkit/WebView.java
d22bf4b09a819a342e87ac5c2ac881cda31e8e27 16-Feb-2012 John Reck <jreck@google.com> Merge "Initial support for keyboard navigation"
e83b83fe20aa89f9bf730bb07006890f6c65e89c 16-Feb-2012 Selim Gurun <sgurun@google.com> Merge "Act on credential storage updates."
9b24dad746718df41f6260e36f2e824868896d02 14-Feb-2012 John Reck <jreck@google.com> Initial support for keyboard navigation

Bug: 6019693

Change-Id: I8d29a5cb46fc59bb2f53e8d334bc767b5ed16901
/frameworks/base/core/java/android/webkit/WebView.java
fcd93b72a3dde2b20fa0d8b04d3f47311b0856a1 14-Feb-2012 Selim Gurun <sgurun@google.com> Act on credential storage updates.

Bug: 6009802

Listen to credential storage updates and clean state when necessary.

Change-Id: I48f2e7d6e036882c2b4a29fbd357ca018fd4e4c7
/frameworks/base/core/java/android/webkit/WebView.java
d658c024ea35ec267be98f1d0b9b3cec7cbde888 15-Feb-2012 Chris Craik <ccraik@google.com> Merge "disable webkit paint pausing"
644b7d95f0baf077e4b228bf72defec29b5ff3e5 15-Feb-2012 Chris Craik <ccraik@google.com> disable webkit paint pausing

Temporary measure for investigating potentially related bug:5964385

Change-Id: I6eb0ba25991bdf7eab506b51a9eae71e9ddd436b
/frameworks/base/core/java/android/webkit/WebView.java
728f1ed5e35c7191bcf9fd57d09e380f4e89930f 14-Feb-2012 Teng-Hui Zhu <ztenghui@google.com> Merge "Update the scale while updating the drawGL functor"
7e2346d51a4511879d92a73fd35c30c71d0f3003 14-Feb-2012 Teng-Hui Zhu <ztenghui@google.com> Update the scale while updating the drawGL functor

bug:6008955

webkit change:
https://android-git.corp.google.com/g/#/c/165734/

Change-Id: I5ba7998a6b8f33b44582b0158ba966054aaad2a8
/frameworks/base/core/java/android/webkit/WebView.java
5bd41b2949fe25e19ba8ec62da7e204403c51061 07-Feb-2012 Mangesh Ghiware <mghiware@google.com> Merge "Use WebKit hit testing result for centering on double-tap zoom."
5fe6f951ac0b013be76f2b34b8e87ca6d11010b3 03-Feb-2012 Mangesh Ghiware <mghiware@google.com> Use WebKit hit testing result for centering on double-tap zoom.

Iterate over the bounding boxes and find one large enough to fit the
screen width at reading scale. Align to left edge of said box.

Bug: 5175030
Bug: 5768421
Change-Id: Iac01e145336918b0a2b21d2864f46ba532aaf18f
/frameworks/base/core/java/android/webkit/WebView.java
d5544ac710f5ae9ee023c850e4490ccb5ebdf74b 06-Feb-2012 Chris Craik <ccraik@google.com> Merge "Pause webkit painting when UI tile painting queue is full"
4390c6b4a6b38b1c25fdf6b10b1310ff73c4f9ce 03-Feb-2012 Chris Craik <ccraik@google.com> Pause webkit painting when UI tile painting queue is full

Change-Id: I8836d7951f8f02d7f966dc22d807ea785ac9e637
/frameworks/base/core/java/android/webkit/WebView.java
3debfa68c4bbccfd9112a0e3d2b7ad30195fbb4a 03-Feb-2012 George Mount <mount@google.com> Merge "Enable webkit text entry for all fields"
0caa4cef2224243a6b8dc0d990a3aa7ad57d331f 01-Feb-2012 George Mount <mount@google.com> Use a node pointer to identify content-editable fields.

Bug 5946645
Webkit change: I915b49c6161fc0604e584699ec96cc86ba96ac79

Change-Id: I0b1c52a6c78f2a2bc16a69fa97f21655af3209d3
/frameworks/base/core/java/android/webkit/WebView.java
71d3641d4e337e4804bb0590c8bb77ca18fdaf2d 02-Feb-2012 George Mount <mount@google.com> Enable webkit text entry for all fields

Change-Id: Ie0385e93ac6ebb1834277b6e6cedfee77dbb4f58
/frameworks/base/core/java/android/webkit/WebView.java
9cf84627512cb87f9c664bff0763b6ad457ca9d7 01-Feb-2012 John Reck <jreck@google.com> Fix NPE

Change-Id: I9c05a11f971f033322b8988abf852c95cbaba8a5
/frameworks/base/core/java/android/webkit/WebView.java
540643bff56eb1283eb2804b592fad37221710ca 31-Jan-2012 John Reck <jreck@google.com> Support select all

external/webkit CL: 161648

Change-Id: I9cdff2e2e9a1e986ef10946924da85c7b577352b
/frameworks/base/core/java/android/webkit/WebView.java
74ffdc30e01f21d49bef8ce1f96d12950b4311f3 25-Jan-2012 John Reck <jreck@google.com> Webkit text selection

Change-Id: Idec1ea19b773f100a88ebdb903a250ab923651d9
/frameworks/base/core/java/android/webkit/WebView.java
913917449d4b5da28056a02b81fb49e73f98d9a1 27-Jan-2012 Teng-Hui Zhu <ztenghui@google.com> Merge "Revert "Hack to workaround the fact that the EGL context can be""
096f5579cb6d02f6d1cd4b66123452c26a0c09f1 25-Jan-2012 Teng-Hui Zhu <ztenghui@google.com> Revert "Hack to workaround the fact that the EGL context can be"

This reverts commit 2bc0b01ffe481af877de312f3a87fa769642d2f4.

A hack no longer needed.

Change-Id: Ia5162535e6683919c368f93428bac0fb258af506
/frameworks/base/core/java/android/webkit/WebView.java
fbcd98305ec8a99bd5b412577b7f8e6bcdff9b21 20-Jan-2012 George Mount <mount@google.com> Fix auto-complete for content-editable fields.

Bug 5608192
Text content for content-editable fields is
retrieved and given to the WebViewInputConnection
so that suggestions will work appropriately.
Edits with WebViewInputConnection uses
replaceTextfieldText just like WebTextView.

Webkit Change: Idcf8d99d9e844669ea68122a7509990f5ce8dcca

Change-Id: I5f1fcc13a0abe204db301e027954dc47c3a48db0
/frameworks/base/core/java/android/webkit/WebView.java
50aca29a0b00c3f8f09b0c246da022df482ca56d 24-Jan-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug # 5863709 API request: Change param names of deleteSurroundingText to "before" and "after""
0c95dd3f4f02564fab9b86a221bbcbb4aafc2981 24-Jan-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug # 5863709 API request: Change param names of deleteSurroundingText to "before" and "after"

Change-Id: I727fad9a59cda915899674569bfabd29b9f5da60
/frameworks/base/core/java/android/webkit/WebView.java
3d09531f89238953be9065e0e2c1a755d424d392 10-Jan-2012 George Mount <mount@google.com> Add cut and paste to ContentEditable.

Bug 5806267
Use visual selection to determine the webkit selection.
The webkit selection can be used to cut text from an editable
area. It can also be used to do better complex character text
copy.

Webkit change: I194c6d9e2add67151b97092a1a54f5c081296000

Change-Id: I56543d17670a8c98484314c89c7fa6a94cb809e4
/frameworks/base/core/java/android/webkit/WebView.java
d9fdd9fd7862b0d56094fa9846fb7c730ec305a8 18-Jan-2012 Michael Kolb <kolby@google.com> Merge "Prevent IME from popping up on startup"
17146c7cc007c21b3ec36f8dec76aded15e7a53f 18-Jan-2012 Michael Kolb <kolby@google.com> Prevent IME from popping up on startup

Bug: 5869028

Change-Id: Ie5c7004def16eeac4147d19fb00fc9631a17579e
/frameworks/base/core/java/android/webkit/WebView.java
955fdda057363dbf1ae95ffeb542cde8ace28b54 18-Jan-2012 John Reck <jreck@google.com> Add tapHighlightColor support

Change-Id: I419eb3d8f1050efd05bb989a6b353ad45ee77acf
/frameworks/base/core/java/android/webkit/WebView.java
48592a3d212b64dabb4b4b6fdf52c68fc857e721 18-Jan-2012 Teng-Hui Zhu <ztenghui@google.com> Merge "Support javascript to exit full screen video."
d7678a1684966cac10717b34b161b5241b9865c5 17-Jan-2012 Teng-Hui Zhu <ztenghui@google.com> Support javascript to exit full screen video.

When javascript request exit full screen, WebViewCore need to handle the
message from webkit thread and hide the custom view.

Webkit part:
https://android-git.corp.google.com/g/#/c/158652/

Change-Id: I9edbb5a4059f330fb29df116ae076ec52f81a1af
/frameworks/base/core/java/android/webkit/WebView.java
01cc1d1e8c917ef2e63f0bd3ac38232d41820ad0 17-Jan-2012 Teng-Hui Zhu <ztenghui@google.com> Merge "Document update for WebView user to support HTML5 video"
c83a666fe6f808f99a88a34f3fe00ee16ed48fd9 17-Jan-2012 John Reck <jreck@google.com> Merge "Expand WebKitHitTest and do some preliminary caching"
06e09f6928ee50835ea156f55e95a3ccb4047f16 13-Jan-2012 John Reck <jreck@google.com> Expand WebKitHitTest and do some preliminary caching

Change-Id: Id9e9cc11f1482f434133e70b14970d7248a39008
/frameworks/base/core/java/android/webkit/WebView.java
4695e20aa50845ccb8470b4fcd74229503d81d49 14-Jan-2012 Michael Kolb <kolby@google.com> fix layer scrollbar updates

Bug: 5868791

tell webkit the layer has been scrolled

Change-Id: Ib12963340d950be992fbe5f9520c9a33c04404e8
/frameworks/base/core/java/android/webkit/WebView.java
50ba5a26e6d48928b94e44fc67f057d29f40b261 12-Jan-2012 Teng-Hui Zhu <ztenghui@google.com> Document update for WebView user to support HTML5 video

Change-Id: I299d2f2b3ec8dbf640e613b28635972e0a707903
/frameworks/base/core/java/android/webkit/WebView.java
4eda105cdb3ac0c33fee0deb3b6eb15be2672f30 20-Dec-2011 John Reck <jreck@google.com> Initial NavCache removal support

Change-Id: I927005093b620a1b1b60703bc8a58de539bdf3c8
/frameworks/base/core/java/android/webkit/WebView.java
81754949e0110b9db44bef421d6282a3bf831138 11-Jan-2012 Narayan Kamath <narayan@google.com> Merge "Write unit tests for android.speech.tts."
3d00578529966ba3ad8d6440d47d6c506e1fe0fe 09-Jan-2012 Ben Murdoch <benm@google.com> Merge "Prompt the user to terminate unresponsive pages."
c0c3025cf2b887b4eb7020c1b7e6f0db69a51aef 28-Dec-2011 George Mount <mount@google.com> Fix delete key with ContentEditable fields.

Bug 5806859
Bug 5795341
Add a custom InputConnection to capture the deleteSurroundingText
command and use it to send delete key codes to the WebView for
single deletes or calling into WebViewCore to delete contents for
more complex changes.
Also makes the IME options "normal text" for webkit-based text
entry.
Webkit change: Ic938d6fa

Change-Id: I18606014a034194928a61981dc3e2400a7db5fac
/frameworks/base/core/java/android/webkit/WebView.java
e2e20835835c1ef214e72d9874671aba212e0a94 20-Oct-2011 Ben Murdoch <benm@google.com> Prompt the user to terminate unresponsive pages.

Run a background "watchdog" thread that will check for
the WebCore thread stopping processing messages (this
can happen if a piece of JavaScript goes into an infinite
loop, for example) and offer to close the WebView app when
it detects such a case, much like the normal system ANR.

Bug: 2563868
Change-Id: Ic74813b1e630d657c340a7017a4b0814071eb041
/frameworks/base/core/java/android/webkit/WebView.java
c60aad2a8ab519a9f9ac03f4f9f929ded7ba2db5 06-Dec-2011 Narayan Kamath <narayan@google.com> Write unit tests for android.speech.tts.

Change-Id: Ie5b3b4cdd13be2babee9a44bae00da179b372d12
/frameworks/base/core/java/android/webkit/WebView.java
d88f26e3aa11e09706211c88babbf09b5a214e93 06-Jan-2012 George Mount <mount@google.com> Merge "Clean up code using eclipse's automatic cleanup feature."
5883520fd7c9b3426d0fcc107f647f999a0a3232 06-Jan-2012 Jonathan Dixon <joth@google.com> Merge "Make WebView.HitTestResult static"
fab67a1532f228871a7b6b36d1318503b21928ea 05-Jan-2012 George Mount <mount@google.com> Clean up code using eclipse's automatic cleanup feature.

Bug 5826249

Change-Id: Iacd233625e144cdc522644aafee424aabd6a7f5d
/frameworks/base/core/java/android/webkit/WebView.java
02630bfe40d9f8505b4469e4b5b110772566c6b6 21-Dec-2011 Jonathan Dixon <joth@google.com> Fix silly comment order error

Incorrectly resolved rebase of my previous two commits...

Change-Id: Ie778774deb7ee0979568ca0a8963db2d72bc7a1a
/frameworks/base/core/java/android/webkit/WebView.java
19644b613ef14434abe11e6cd16eb9e06057c9c6 21-Dec-2011 Jonathan Dixon <joth@google.com> Make WebView.HitTestResult static

- we can do this, because HitTestResult never had a published constructor
so the only code that can create it has always lived in this package.
- doing this makes the class design cleaner, and smooths the way for allowing
the new WebView implementation to deal in these results in contexts where
the appropriate WebView instance is not readily available.

Change-Id: I9e1f1c0faeb16436b1861aab3c2871a5851dfb54
/frameworks/base/core/java/android/webkit/WebView.java
e230e54f09116056e34c7fedd50838ad551c24df 21-Dec-2011 Jonathan Dixon <joth@google.com> Minor WebView docs improvement

Change-Id: Ib0389be456755fac24ad130edd0dd091d9acfaae
/frameworks/base/core/java/android/webkit/WebView.java
4cde13a3bbf29e065a278dc6c31c2cd9fd16f7f6 16-Dec-2011 Jonathan Dixon <joth@google.com> Remove misleading API council comments

Most of these APIs have no intention of being published, at least not in anything like the current form.

Change-Id: I1df3ae00320f909caea8a0d42d50ee7400577635
/frameworks/base/core/java/android/webkit/WebView.java
4d8ea3bcc60d25e74e79bc9e97496b6795d36587 15-Dec-2011 Victoria Lease <violets@google.com> URL-decode tel: URIs.

bug: 5688406

Change-Id: I2e3906c22d02b6333ccad7dba529d44ae572a368
/frameworks/base/core/java/android/webkit/WebView.java
09a71e073aaa8566d3ca5c4881a1411841189858 13-Dec-2011 Chris Craik <ccraik@google.com> Update tilebenchmark to work with current drawing infrastructure

bug:5062896

depends on external/webkit change: https://android-git.corp.google.com/g/#/c/154840/

- directly discard textures, instead of sending an invalidate through webkit
- better ui on smaller screens
- pass native pointer through jni calls

Change-Id: Icadbf8944edc5a2b1f8dc27bab53ac665c975462
/frameworks/base/core/java/android/webkit/WebView.java
66b2ff818bdc58465e54d7fc42772857c07fa262 08-Dec-2011 Mangesh Ghiware <mghiware@google.com> Update computation of reading level scale.

Fixes bug 5726043 (Extra double-tap needed to zoom out to overview mode
on nytimes.com on a Stingray)

Change-Id: I54dc303f4aa81ddc38c234228adc915b9f6749dc
/frameworks/base/core/java/android/webkit/WebView.java
3ca5a74c17a27e44ce13b39bc2f63edaa88c3ef5 07-Dec-2011 Svetoslav Ganov <svetoslavganov@google.com> Make the URL for the JavaScript based screen-reader used by WebView configurable.

The URl from which to inject a screen-reader for WebView accessiblity support should be
configurable because: 1) The accessibility engineering team should be able to point
devices to a staging build of the screen-reader; 2) We would like to be able to change
this URL via the Google services mechanism.

bug:5718543

Change-Id: I3d4d343f1c93e0e0173f04b2912949fe8a3566b9
/frameworks/base/core/java/android/webkit/WebView.java
5d3f6e6d25f98af2dd158bac8da7516bd976a8a5 06-Dec-2011 George Mount <mount@google.com> Remove inFullScreenMode JNI call during drawGL call.

Bug 5629367
Corresponding WebKit change: Ia6f11636

Change-Id: Icc2fb6b778ce1c9bb4dc216a558652de544028b1
/frameworks/base/core/java/android/webkit/WebView.java
51340e0fb74a11885b667dc16c9d21a9199211c9 01-Dec-2011 Bart Sears <bsears@google.com> am 5a4e807a: am 41a5774a: Merge "fix position of WebTextView on scrolling layers" into ics-mr1

* commit '5a4e807af8661d35e27157fa224a8e4db0e66f7c':
fix position of WebTextView on scrolling layers
5da91bd6740ef910350edb2ed1df127da445a785 30-Nov-2011 Michael Kolb <kolby@google.com> fix position of WebTextView on scrolling layers

Bug: 5677828

depends on CL: 152845

Change-Id: Ia6fce3ef64954d99fe044e801d7f083055c8b880
/frameworks/base/core/java/android/webkit/WebView.java
267a4b0627f98b020725e860b0a3c128067131b1 30-Nov-2011 Chris Craik <ccraik@google.com> am c649180d: am f296ee69: Merge "Send animation start notification back to webkit from ui thread" into ics-mr1

* commit 'c649180d7c12b0b4bc3c183a6431da26cff74819':
Send animation start notification back to webkit from ui thread
d0051c06c2585398ca4ae54efb673d4a2d24aa5d 29-Nov-2011 Chris Craik <ccraik@google.com> Send animation start notification back to webkit from ui thread

bug:5239801

depends on external/webkit CL: https://android-git.corp.google.com/g/#/c/152559/

Change-Id: I647b5a82680f570c918227dbf57521b862dcfe25
/frameworks/base/core/java/android/webkit/WebView.java
31825c119907af5b24dc916df56a3efd2715af79 28-Nov-2011 Narayan Kamath <narayan@google.com> am be1b5ce4: am a6f8ebc6: Merge "Fix TTS instantiation from webview accessibility handlers." into ics-mr1

* commit 'be1b5ce498a68e28d47a167495f47787d6461e88':
Fix TTS instantiation from webview accessibility handlers.
a6f8ebc616cfe3185ae2513ef2f846e8d32b551e 28-Nov-2011 Narayan Kamath <narayan@google.com> Merge "Fix TTS instantiation from webview accessibility handlers." into ics-mr1
e189f0c6db60021251f688ed76874ad1d1e1d962 28-Nov-2011 Ben Murdoch <benm@google.com> am b11387a6: am 2ffc9ec3: Ensure we dismiss the <select> option dialog.

* commit 'b11387a6e51c424e421b0951de20db46a5f5c992':
Ensure we dismiss the <select> option dialog.
68e2af55d65d2e61fbf8096eccaa2e4ca02b6c5a 28-Nov-2011 Narayan Kamath <narayan@google.com> Fix TTS instantiation from webview accessibility handlers.

The TTS instantiated from here shouldn't clobber any
existing TTS objects opened within the same package context.

Ideally, the TTS API should work fine with multiple TTS object
instances within the same package context but making that happen
correctly is a larger change.

bug:5659758
Change-Id: Ia1f63c61b9f12ac92ff42a427a004d414e42a759
/frameworks/base/core/java/android/webkit/WebView.java
2ffc9ec3d69d8ee95bce1ccf17163a70b0bd9003 28-Nov-2011 Ben Murdoch <benm@google.com> Ensure we dismiss the <select> option dialog.

When the WebView is paused, or another action (such as navigating to
a new URL) occurs, cancel any ongoing <select> tag dialog that is open.

Bug: 5666545
Change-Id: Ifc35a239b729ed93cbf82b2096334f7d63f8993d
/frameworks/base/core/java/android/webkit/WebView.java
07679d191e9ae03b8ad78020968a79ad89e6cde0 22-Nov-2011 Mangesh Ghiware <mghiware@google.com> am d7b06977: am 8d03007f: Merge "Update zoom (aka display) density from WebView thread." into ics-mr1

* commit 'd7b06977e927557923a6101493c0af1aa857271b':
Update zoom (aka display) density from WebView thread.
8d03007f80d74abadfc96926e7cca40d38380bc0 22-Nov-2011 Mangesh Ghiware <mghiware@google.com> Merge "Update zoom (aka display) density from WebView thread." into ics-mr1
7b0fdc100e1dd711ba5534534b9405475c57566b 22-Nov-2011 John Reck <jreck@google.com> am 786513ab: am 0507ac4d: Use isHighEndGfx to determine texture pool

* commit '786513aba608d958e69deee3fbdf003bdf5d9632':
Use isHighEndGfx to determine texture pool
31f263db65552106d9290da740c50e6918c1eaea 22-Nov-2011 Mangesh Ghiware <mghiware@google.com> Update zoom (aka display) density from WebView thread.

Fixes bug 5639675.

Change-Id: I982ca0787f5c050c5d1a288cd8751299ee351214
/frameworks/base/core/java/android/webkit/WebView.java
0507ac4d94fc0ecb775391a7e80c921614f88a58 21-Nov-2011 John Reck <jreck@google.com> Use isHighEndGfx to determine texture pool

Bug: 5639612

Change-Id: I0ccbf74c2638b61b7eb0769c851e74700f0aa191
/frameworks/base/core/java/android/webkit/WebView.java
38bc731875fec30d1a39f50cf3bf7234656f6698 20-Nov-2011 Kristian Monsen <kristianm@google.com> am 376e93fc: am 7859c184: Merge "Improving PictureListener deprecating comments" into ics-mr1

* commit '376e93fcea19cd491af59631f3934ab036e1e846':
Improving PictureListener deprecating comments
7859c1842c1f2e3c43415dfb5337a0b005bdb1c4 20-Nov-2011 Kristian Monsen <kristianm@google.com> Merge "Improving PictureListener deprecating comments" into ics-mr1
3f6114164f87567d069fe37962b3d1952f5905e5 19-Nov-2011 Bart Sears <bsears@google.com> am cb513ba7: am e6a96560: Merge "Content and viewport rects set in one step." into ics-mr1

* commit 'cb513ba7f14fdf08b5729edef5baf22e302e3e08':
Content and viewport rects set in one step.
e6a96560ed96e5121db2e22168698f14338c8f1d 18-Nov-2011 Bart Sears <bsears@google.com> Merge "Content and viewport rects set in one step." into ics-mr1
4aad1022eb0c364c204caafb6ebc977aa23449bf 17-Nov-2011 Kristian Monsen <kristianm@google.com> Improving PictureListener deprecating comments

Change-Id: If189823962c49db9681845996e97eec31fedcca6
/frameworks/base/core/java/android/webkit/WebView.java
778f146cf422edabf140a18afa8746e542a49ebd 18-Nov-2011 Michael Kolb <kolby@google.com> am 5397bb52: am 852585c0: Merge "Draw input field focus ring in WebTextView" into ics-mr1

* commit '5397bb52fba04e8dc8496d731611210213847308':
Draw input field focus ring in WebTextView
852585c034d383ea6afe1b484afa57cbf4d04f95 17-Nov-2011 Michael Kolb <kolby@google.com> Merge "Draw input field focus ring in WebTextView" into ics-mr1
0ecd89bce353e2d25047628eca7ffa3c79cd5c7b 17-Nov-2011 Nicolas Roard <nicolasroard@google.com> am e788fa84: am e88ca718: Merge "Hack to workaround the fact that the EGL context can be removed from under us by framework in low memory condition." into ics-mr1

* commit 'e788fa84f1fac845e50922fc536694ce1cc2fbdb':
Hack to workaround the fact that the EGL context can be removed from under us by framework in low memory condition.
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/WebView.java
82ed95f41007391adc1676c745b0642d32870b95 15-Nov-2011 George Mount <mount@google.com> Content and viewport rects set in one step.

Bug 5342918
The content rect of the WebView was being retrieved during
the draw while the viewport rect was being set when the
draw functor was setup. During animations, the content
rect was changing between the time the draw functor was
retrieved and it was executed. The content rect is now
being set with the viewport rect.

Wekbkit Change: I05d68dcc

Change-Id: I1b0978eeb27d9f1deddfeba3ede869f735f74394
/frameworks/base/core/java/android/webkit/WebView.java
163994c1d4206813f621bad04b808d08f753fb7d 17-Nov-2011 Mangesh Ghiware <mghiware@google.com> am 55116350: am 4fdfdeed: Merge "Revert change to setInitialScale() to take display density into account." into ics-mr1

* commit '5511635090072ce02a4fb07ec25a7c279a7bbc8a':
Revert change to setInitialScale() to take display density into account.
e88ca718ed9af788f2dc46b5f2db494906bbf41d 17-Nov-2011 Nicolas Roard <nicolasroard@google.com> Merge "Hack to workaround the fact that the EGL context can be removed from under us by framework in low memory condition." into ics-mr1
2bc0b01ffe481af877de312f3a87fa769642d2f4 17-Nov-2011 Nicolas Roard <nicolasroard@google.com> Hack to workaround the fact that the EGL context can be
removed from under us by framework in low memory condition.

bug:5627977
Change-Id: I3c138985e3e6c16f7c15497a1a11ffed93cd8e78
/frameworks/base/core/java/android/webkit/WebView.java
4fdfdeedc64eef2efe3811198e8fad40aa1b8fc3 17-Nov-2011 Mangesh Ghiware <mghiware@google.com> Merge "Revert change to setInitialScale() to take display density into account." into ics-mr1
e832b63c97c18c8170643c5a1c565e07893c5368 16-Nov-2011 Mangesh Ghiware <mghiware@google.com> Revert change to setInitialScale() to take display density into account.

Updated WebView documentation to clarify this behavior.

Additionally, if target-densityDpi is specified in the meta viewport
tag, update the display density in ZoomManager.

Bug: 5477652
Bug: 5327492
Change-Id: I176e87489f76a2ee6595d76a006e302b07595de1
/frameworks/base/core/java/android/webkit/WebView.java
9a77be5dace13bcd5965a88f4fecb8112e5c5894 16-Nov-2011 Kristian Monsen <kristianm@google.com> Fix fix for bug 2816327

Remove native methods define for ANDROID_INSTRUMENT calls.

Need to that after the native registering is done in CL:
https://android-git.corp.google.com/g/#/c/148917/

Change-Id: Ic91aec54cb052c29aa06aee028cf8023cd69ed15
/frameworks/base/core/java/android/webkit/WebView.java
a952f8abfddef8744245e93024314b01f6bfd0fb 15-Nov-2011 John Reck <jreck@google.com> am 6a622c56: am a0c6bf5a: Merge "Call onScrollChanged when scrolling layers" into ics-mr1

* commit '6a622c5608e3f67efb7ba6a346ea4d8cfa5267ec':
Call onScrollChanged when scrolling layers
83b9e1d99d85091bd4f22be0dba1e634e40a1fb7 02-Nov-2011 John Reck <jreck@google.com> Call onScrollChanged when scrolling layers

Bug: 5533389
Treat layer scrolling as a no-op scroll by calling
onScrollChanged with old scroll == new scroll

Change-Id: I1dc2b94b37c65bf088806b8d28be32883e3b8bee
/frameworks/base/core/java/android/webkit/WebView.java
e1d2f3cf8574bc99b44c450da9603b1c3c874411 14-Nov-2011 Kristian Monsen <kristianm@google.com> Fix build

Change-Id: I8198f7a8470e7c9500ab2f6512162bbb55ea6ee7
/frameworks/base/core/java/android/webkit/WebView.java
10a09dc16387db216d5756309e3695096aedd9d0 14-Nov-2011 Kristian Monsen <kristianm@google.com> Merge "Removing the ability to get native instrumentation as part of nav dump"
a3c157eef0521e1d0b288b07f5c79aa942b9b135 09-Nov-2011 Kristian Monsen <kristianm@google.com> Removing the ability to get native instrumentation as part of nav dump

This is to be able to remove ANDROID_INSTRUMENTATION code.

Note that it would only print useful information if webcore
was compiled with ANDROID_INSTRUMENTATION on.

There is an open bug for problems with ANDROID_INSTRUMENTATION:
http://b/issue?id=2816327

Needs Browser CL:
https://android-git.corp.google.com/g/#/c/149442

Change-Id: Ie8c3c3a08a8bb15936831e25faac3155906bae70
/frameworks/base/core/java/android/webkit/WebView.java
1333742bedc9b462024302f302e3a7f27053df66 11-Nov-2011 Akwasi Boateng <akwasi.boateng@ti.com> am cb0db030: Merge branch \'ics-mr1-plus-aosp\' of ssh://android-git:29418/platform/frameworks/base into ics-mr1-plus-aosp

* commit 'cb0db0306b5849a35d3d99eea1b34ce019c6f0d8':
Make the overridden ImageView#setVisibility remotable
Clamp non-monotonic stats instead of dropping.
DO NOT MERGE. Fix leak in LayoutTransition
Fix lastVisible/global rects
Fix Wimax-less build.
Fix leak in LayoutTransition
Deferring wallpaper update to improve workspace scrolling (issue 5506959)
Terminate EGL when an app goes in the background
boot animation is dithered and scaled
Fix NdefRecord byte-stream constructor.
PopupWindow dismiss() can get into a recursive loop.
Fold WiMAX state into the mobile RSSI.
Remove dedicated wimax icon to fix RSSI layout.
9f9fac0ad227941950efd8d09617064e5d4a37be 11-Nov-2011 John Reck <jreck@google.com> Fix lastVisible/global rects

Bug: 5601629
References tend to always be equal to the things they are referencing,
use copies instead.

Change-Id: I0827878e91ef1fa6e0abe2d6499d55f4a211d890
/frameworks/base/core/java/android/webkit/WebView.java
2c7db013bc002316c654e5384aaa36015cea5313 10-Nov-2011 John Reck <jreck@google.com> am 0f077739: am 843e04d9: Merge "Pause drawing when not visible" into ics-mr1

* commit '0f0777399defe6bca965d9c33e9dfe256eb56fee':
Pause drawing when not visible
843e04d977fd348ed474da1d3c6a62e7dc837444 10-Nov-2011 John Reck <jreck@google.com> Merge "Pause drawing when not visible" into ics-mr1
c60baec7a737d3c3cd596c5c4378a6e12450da3d 10-Nov-2011 George Mount <mount@google.com> Merge "DO NOT MERGE Set the initial scroll position for RTL." into ics-mr1
e9a291e781dd280cc385f8e2b4ac3e863a682734 10-Nov-2011 John Reck <jreck@google.com> am 0e17f653: am 36a7f2a9: Merge "Fix determining find on page overlap" into ics-mr1

* commit '0e17f65312e57c7f1489010284987c505142b778':
Fix determining find on page overlap
5f1c549132150c85edfa8982c4da5c0fd41d8919 10-Nov-2011 John Reck <jreck@google.com> Pause drawing when not visible

Bug: 5594608
If onPause is called or if the view or view's window is no longer
visible, pause webview drawing. Calls to onDraw will continue to work,
but animations and other continual drawing will stop

Change-Id: I11640f087852d1a9a33b945ff72297fab1d25b94
/frameworks/base/core/java/android/webkit/WebView.java
331493085d7afd88158c83d0f1f9605da671049c 31-Oct-2011 George Mount <mount@google.com> DO NOT MERGE Set the initial scroll position for RTL.

Bug 5268793
Webkit knows about the correct initial position for web pages.
On initial show, scroll to the webkit position.

Cherry-picked from master CL: I2537b84a

External WebKit CL: I6a91b97f

Change-Id: I2537b84a30a26a79a8a0f23fe62b9ed757f9c5a4
/frameworks/base/core/java/android/webkit/WebView.java
e263bc1a36c539d0d0f16a17b23cb862742e0bf0 31-Oct-2011 George Mount <mount@google.com> Set the initial scroll position for RTL.

Bug 5268793
Webkit knows about the correct initial position for web pages.
On initial show, scroll to the webkit position.

External WebKit CL: I6a91b97f

Change-Id: I2537b84a30a26a79a8a0f23fe62b9ed757f9c5a4
/frameworks/base/core/java/android/webkit/WebView.java
d9514738593ff2e96dcdeff98516c57bab09e9bf 09-Nov-2011 Steve Block <steveblock@google.com> Merge "Clean up JavaDoc for WebView.addJavascriptInterface()"
4cd73c5bfd441be8dec53f8fc7ad726fddd80413 09-Nov-2011 Steve Block <steveblock@google.com> Clean up JavaDoc for WebView.addJavascriptInterface()

Bug: 5461416
Change-Id: Ic83e0e4035f6230134e4f36938e53f106c468876
/frameworks/base/core/java/android/webkit/WebView.java
d6ac727234b9be45c3df4021dc83584e9849c00a 09-Nov-2011 John Reck <jreck@google.com> Fix determining find on page overlap

Bug: 5572138

Change-Id: Ie528e1cf9df363307018e01a898e8d9dfff1cd45
/frameworks/base/core/java/android/webkit/WebView.java
aefc28a1b666f3e9b19eb5a8955e70297119f03d 08-Nov-2011 John Reck <jreck@google.com> Remove unnecessary memory allocations

Bug: 5581637
Also delete some dead, unused code

Change-Id: If6efd11f5032141dadbfcd0b3215e89b464e5f35
/frameworks/base/core/java/android/webkit/WebView.java
99f7b7b7b2295e6b919b773fc68ed719376d9ce9 07-Nov-2011 John Reck <jreck@google.com> Remove nativeRecordButtons

Bug: 5572238
Bug: 5558699

Change-Id: I8e275849f4f04c094a93528dd1fb59683d30e9cc
/frameworks/base/core/java/android/webkit/WebView.java
effabe8d8b23b44bb68663082f66aa98b9cf13a2 27-Oct-2011 John Reck <jreck@google.com> Keep text handles in sync with native touch targets

Bug: 5522153
Also add some slop to the handle targets, cleaned
up the JNI and improved debugging.

Change-Id: I9ac637d793f2bd88d5315aa1483a4513d2496716
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
bb99e28cd69c7a3ab355873130242373282295a5 21-Oct-2011 Mangesh Ghiware <mghiware@google.com> Fix issue# 5492404: Reading level check thread error.

Remove access to WebSettings from getReadingLevelScale() by saving the
double-tap zoom scale factor in ZoomManager. WebSettings can only be
accessed in the UI thread.

Change-Id: Ic7289bf3c14d800797f2e85546a088a9071e0468
/frameworks/base/core/java/android/webkit/WebView.java
08eaa9de7637a634f65d943582583699855ef20c 18-Oct-2011 John Reck <jreck@google.com> am 7788c51d: Merge "Fix onFirstLayout path for saved pages" into ics-mr0

* commit '7788c51d82963a8645655675c675424db694ad85':
Fix onFirstLayout path for saved pages
23a446cf270b1df8fe0e013a4328cd6b0ed9dde1 18-Oct-2011 John Reck <jreck@google.com> Fix onFirstLayout path for saved pages

Bug: 5464993
Saved pages are taking the onFirstLayout path in
onConfigurationChange incorrectly. Fix that by clearing out the
view state after actual first layout.

Change-Id: I61578f35ee6be349df49a63c464f532e0a87df28
/frameworks/base/core/java/android/webkit/WebView.java
35934148635e6c5f4dce75c305a54f741f991085 17-Oct-2011 Steve Block <steveblock@google.com> Merge "Clean up documentation for WebView.loadUrl()"
f71dea025a6212a238fdcfa0d56104def2a97d29 01-Aug-2011 Steve Block <steveblock@google.com> Clean up documentation for WebView.loadUrl()

Bug: 5461416
Change-Id: I3bb6ac4abab7def8e06de087c5ae7be906bc962e
/frameworks/base/core/java/android/webkit/WebView.java
61d3449d1a135f17f8aa664f39f6cafcf595ba29 14-Oct-2011 John Reck <jreck@google.com> am d82cc1de: Merge "Fixup JNI" into ics-mr0

* commit 'd82cc1de848a678fa4bcaefdbc763307f3df4a75':
Fixup JNI
d82cc1de848a678fa4bcaefdbc763307f3df4a75 14-Oct-2011 John Reck <jreck@google.com> Merge "Fixup JNI" into ics-mr0
b61bfed7b102bbb7a8b4159b9bf013861619742b 14-Oct-2011 John Reck <jreck@google.com> Fixup JNI

Bug: 5459736

Change-Id: Iefb5daaf52eb56f2a4c3aaeedc977a16a1cfa086
/frameworks/base/core/java/android/webkit/WebView.java
0272df85061304683a1fa9aa5825ba8dbf102841 14-Oct-2011 Bart Sears <bsears@google.com> am bcfe4152: Merge "Improve JavaDoc for WebView.loadData()" into ics-mr0

* commit 'bcfe41529b7bd9f572a2eff31375dc9fdf35b518':
Improve JavaDoc for WebView.loadData()
33f962b22ec4ce30368a1b2847a868205ad6b99b 11-Oct-2011 Steve Block <steveblock@google.com> Improve JavaDoc for WebView.loadData()

Make clear that the charset specified in the mediatype portion of a data URL
overrides that specified in the HTML or XML document itself.

Bug: 5418915
Change-Id: Iff7305b6ac9e656d0fb7ed1b2ffe6fd0e21be49b
/frameworks/base/core/java/android/webkit/WebView.java
64f93d4f91df8830d3d6cd4490ac2f157a7f0325 13-Oct-2011 Ben Murdoch <benm@google.com> Merge "Don't redraw when not scrolling, even if finger is held down."
a6708c6a462d2a30e51e7ded2559a4054cb651fc 13-Oct-2011 Mangesh Ghiware <mghiware@google.com> Merge "Add setting for configuring zoom level on double-tap." into ics-mr0
fd8d3dede2f3d1b22e1c69d4c14d392d0aa2b2ab 13-Oct-2011 Ben Murdoch <benm@google.com> Don't redraw when not scrolling, even if finger is held down.

Signal the native side that we are not scrolling when a drag is
held motionless to stop screen updates.

Additionally, in the case that a drag is being held motionless,
send a timed message to keep the scroll bars on screen otherwise
they fade in and out, again causing repaints that shouldn't be
necessary.

Bug: 5440335
Change-Id: I94db0323879885fa48924b41d29e8af03e3b5e7f
/frameworks/base/core/java/android/webkit/WebView.java
edb528ef52fd9b0148d559c5e596cf9bb9a6d2f9 12-Oct-2011 Mangesh Ghiware <mghiware@google.com> Add setting for configuring zoom level on double-tap.

In overview mode, text wrap is done at reading level scale. If user
changes double-tap zoom in overview mode, reflow text at the new scale.
In any other mode, a double-tap will take user to overview mode, at
which point, the text will be reflowed at the updated reading level
scale.

Bug: 5312461
Change-Id: I29be34a32246019101a9a875e1758e22b5af2bd3
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
1d805c2b90f67a394016a138995c4c1eeb855ff7 10-Oct-2011 Derek Sollenberger <djsollen@google.com> Merge "Delay sending Plugin Draw event until the surface is ready."
281432c4672ddcce762cd4964d613f6b7cf2a27a 22-Aug-2011 Derek Sollenberger <djsollen@google.com> Delay sending Plugin Draw event until the surface is ready.

bug: 5436630
Change-Id: Ib66859b94b60fc5ea2a8db5e2e40690a084d5b0a
/frameworks/base/core/java/android/webkit/WebView.java
cca606d7c33e6cfd7f67e96e5229f676703b150a 07-Oct-2011 John Reck <jreck@google.com> Improve loadData JavaDoc

Bug: 5425567

Change-Id: I2feff8ac69b2bb790aec8c5f710af0df257e28fb
/frameworks/base/core/java/android/webkit/WebView.java
b19c7878cc48746b7dda7ebdf1c85f6a7e6996a3 10-Oct-2011 Steve Block <steveblock@google.com> Improve documentation for WebView.loadUrl() to specify charset

Bug: 5435233
Change-Id: I69a8e0c551b58f284cfa95dccfc0ea49b0bbf05f
/frameworks/base/core/java/android/webkit/WebView.java
25d888b5ff23acf1a9d41bef3e74ee897baf5ad7 07-Oct-2011 John Reck <jreck@google.com> Merge "Fix calc visible to account for action bar"
fffce6fe99f7ae80f448790371b8c0fa90277d1a 07-Oct-2011 John Reck <jreck@google.com> Fix calc visible to account for action bar

Bug: 5425892

Change-Id: I15bc1779013dbb33511d9c5bff9b678115dec102
/frameworks/base/core/java/android/webkit/WebView.java
7853c579fa52e4365c6e44ba38aeb3299d776f44 07-Oct-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Fixing errors in position information of scrollable views reported for accessibility."
d9ee72fddb8be40e414a831fb80458dc48699613 06-Oct-2011 Svetoslav Ganov <svetoslavganov@google.com> Fixing errors in position information of scrollable views reported for accessibility.

1. ScrollView/HorizontalScroll view were reporting only the scroll X and Y but
failed to convey the max scroll along X and Y so the position can be determined.

2. WebView was not reporting correctly its scroll position for accessibility.

3. Some descendants of AdapterView were reporting incorrect position information.

4. Updated the accessibility docs with some details about the scroll information.

5. Cleaned up duplicated code.

bug:5412132
bug:5412265

Change-Id: I165e73ecde027dad811425b9f395a3f758c923ba
/frameworks/base/core/java/android/webkit/WebView.java
68b9074a60a8b20235c1887c09eb7073d48c9902 06-Oct-2011 John Reck <jreck@google.com> Merge "Prevent adapter flickering"
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/WebView.java
67f9d32e5ed55b15b84be4d0bdff828d48abe2eb 06-Oct-2011 George Mount <mount@google.com> Merge "Fix monkey NullPointerException"
213478b8587c693782ec4f02f554047df9f18412 04-Oct-2011 John Reck <jreck@google.com> Merge "Hardware accelerated button focus rings"
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/WebView.java
bdfb3c5a69af0ae8ee725efff405ac13a66070bf 22-Sep-2011 John Reck <jreck@google.com> Hardware accelerated button focus rings

Bug: 5353510

Change-Id: Ie6a2c509b5890d3d091465a36804648999228553
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
e8b05e858a95c900c1bebb993857ed0ff8770e4e 29-Sep-2011 Mangesh Ghiware <mghiware@google.com> Force a WebView pictureset reset on screen rotation.

This fixes some stale content issues when rotating the screen.

Bug: 5357237
Bug: 5361852
Change-Id: I574dac15dbb1a35a8830377848f38ba2b766f095
/frameworks/base/core/java/android/webkit/WebView.java
1cfe8ddf620b269d998fe37b1eeb0d090312770c 28-Sep-2011 John Reck <jreck@google.com> Support for correctly scaling text selection handles

Bug: 5367280

Change-Id: If32fdc9cd82d1a66bc96446a123c44d9edd9d340
/frameworks/base/core/java/android/webkit/WebView.java
2cdbe2f1cf0157bf49913c46cc806169e0f9ecc6 26-Sep-2011 Steve Block <steveblock@google.com> Merge "Update the error for WebView thread violations to make clear that it's not fatal"
7a01d94c5e54f4e24ec88c0a26bdf08477ee86d0 26-Sep-2011 Steve Block <steveblock@google.com> Update the error for WebView thread violations to make clear that it's not fatal

- Update the description
- Use Throwable rather than RuntimeException
- Log as a warning rather than an error

Bug: 5313494
Change-Id: If13ce2088e7080122db14e5e0565f64e6d6f4320
/frameworks/base/core/java/android/webkit/WebView.java
e0b0578a1efe6dc3ed259835ce0ceb939a0ecee6 26-Sep-2011 Ben Murdoch <benm@google.com> Merge "Force a WebView pictureset invalidation on screen rotation."
9bb55bf01558ebe2fefa1c7eee5a335cb4a92588 23-Sep-2011 Ben Murdoch <benm@google.com> Force a WebView pictureset invalidation on screen rotation.

This fixes some stale content issues when rotating the screen.

Bug: 5357237
Change-Id: Ib41a659ec99419cdf94ad5321c224a33b1f21359
/frameworks/base/core/java/android/webkit/WebView.java
2df8f425f64173bf7866e49804e84683746d28a7 23-Sep-2011 John Reck <jreck@google.com> Add detail to restorePicture deprecation

Bug: 5361506

Change-Id: I4bf6583170df50b218051f4700700ff1b8874d17
/frameworks/base/core/java/android/webkit/WebView.java
faab93d1acb9738c8e2d90e20e19facc0e3eea6e 21-Sep-2011 Mangesh Ghiware <mghiware@google.com> Use overview scale when restored scale is 0.

If restored scale and text wrap scale are set to 0 (meaning the previous
scale wasn't saved), set them to overview and reading level scale
respectively.

Bug: 5230909
Change-Id: If7724e9a0cd948c88d0a001728266a3282083bdc
/frameworks/base/core/java/android/webkit/WebView.java
f9580d594a489aab2a3bbaf8ffc1bdbbe3aaf8b6 20-Sep-2011 Ben Murdoch <benm@google.com> Merge "Cleanup for bug 5278763"
2210fff475e2d4ef6f5cf20eaa0a183058bfb68a 19-Sep-2011 John Reck <jreck@google.com> Merge "Bringing back the 'cache"
0966dd22ec196e5fca0b5f4533d2a44aeb47ba93 18-Sep-2011 John Reck <jreck@google.com> Bringing back the 'cache

Bug: 5333083

Change-Id: I9b693ad0a0d4ee2979a7dabad6575ffada962b16
/frameworks/base/core/java/android/webkit/WebView.java
c99e447ea7202baed5e516102d780dae1863f03d 16-Sep-2011 John Reck <jreck@google.com> Don't switch to handle drag mode when starting selection

Bug: 5327408

Change-Id: Ibda37b1a661d9cdc80a86bc16488178b69fac4a2
/frameworks/base/core/java/android/webkit/WebView.java
5dd1916c247f27284e4af8be5125633fddae6452 16-Sep-2011 John Reck <jreck@google.com> Merge "Fix text selection drawing on SW"
57efcffc7f7290a5510bd1f4f1880a32cc37ad6d 15-Sep-2011 John Reck <jreck@google.com> Fix text selection drawing on SW

Bug: 5312770
Helps if you actually draw stuff...

Change-Id: I5ab8cd0726cac77a91fb476c7db0873132ba91d9
/frameworks/base/core/java/android/webkit/WebView.java
5540abcdef5f2e7037fc4a1fd525ca823b6a1a58 15-Sep-2011 John Reck <jreck@google.com> DO NOT MERGE Fix finalization

Bug: 5321358
Destroy does run with this. Ideally we should get rid of the need
to run this on the UI thread at all. GL destroy should instead
take place when the view is detached or something like that.

Cherry picked from master

Change-Id: I693ce83cd607186173d8cf58485c5df28004e52c
/frameworks/base/core/java/android/webkit/WebView.java
ad804e34b94a05382f8806f2b5e83481ecbaade5 15-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5321195 - Starting WebView text selection with long press does
not invoke haptic feedback

Change-Id: I6ba6b7e5b0ecedf721ab6d1bf87d7d2a92dc7200
/frameworks/base/core/java/android/webkit/WebView.java
f4f520ae9fcde928ba66d533012ca17fc0bfd66a 14-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5314559 - Slow menu scrolling in browser on some devices

nativeSetIsScrolling has other side effects. Just pause picture
updating when WebView loses focus.

Change-Id: I917851c806f35a91a12a25c7457712123669384f
/frameworks/base/core/java/android/webkit/WebView.java
911d63d1598b4e8105e9a14d8e1c120f54548cbc 14-Sep-2011 Adam Powell <adamp@google.com> Merge "Fix bug 5309557 - Monkeys and SIGSEGV do not mix!"
cc2264fe470440febe979da468abecf287a013ee 14-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5309557 - Monkeys and SIGSEGV do not mix!

Make sure that the native component of WebView has been initialized
before any native-level optimization involving window focus occurs.

Change-Id: I24ca5fe21657aeb1a1faf5bc36fba5ea11064f86
/frameworks/base/core/java/android/webkit/WebView.java
b9376464ab3bbbf1c97aa6675987d4555c8c51e9 13-Sep-2011 John Reck <jreck@google.com> Make sure the finalizer destroy runs on the UI thread

Bug: 5208786
The finalizer runs on its own thread, but destroy must be called
on the UI thread

Change-Id: I01ddd675b8aea49aa4e212693551e808a83e45d5
/frameworks/base/core/java/android/webkit/WebView.java
e00e8a78374cdcf01a25bd6327d2b94944b2bc3f 12-Sep-2011 Adam Powell <adamp@google.com> Pause WebKit drawing when WebView loses window focus.

This prevents animations and other live page content from consuming
too many resources while the user is interacting with a popup window.

Bug 5300522

Change-Id: I40fb6d16d56b540c431172052a1ae7fead7109be
/frameworks/base/core/java/android/webkit/WebView.java
87af7314d4319a0ccaaf466a25e3fe4f416cc953 09-Sep-2011 Kristian Monsen <kristianm@google.com> Cleanup for bug 5278763

Variable is not needed, and removing unneeded check

Also throwing an exception if sContext gets set to null.

Change-Id: Ic61ba4c88a162eb730e166f0e9f477e809b51f42
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
34a676bd083ecbff6f5ddc0157723b3f543ad358 07-Sep-2011 John Reck <jreck@google.com> Register to receive onTrimMemory callbacks

Bug: 5269460

Change-Id: Ic2429af1ba0b6e86157f6ba16d420d10c17920e5
/frameworks/base/core/java/android/webkit/WebView.java
faa42dbede4d839dc52957bb984be70df682adea 07-Sep-2011 John Reck <jreck@google.com> OnTrimMemory plumbing

Bug: 5269460

Change-Id: I012e2eb077c3671b856d0163de6b10ad7bd4d577
/frameworks/base/core/java/android/webkit/WebView.java
e2f3aee9d5d8b4aa70950bef98ba688e29e27a8c 03-Sep-2011 Chris Craik <ccraik@google.com> Notify native that scrolling has stopped correctly

bug:5255022
bug:5218838

When the view starts scrolling, we tell native so it can block updates until the
view stops scrolling. This change fixes an issue where wouldn't tell native that
we stopped scrolling because the view didn't have room to move.

Change-Id: I5f2eec31493570937f7b8b2992a85283de06fb60
/frameworks/base/core/java/android/webkit/WebView.java
5afd2bd02ae44d5a38f9e560047723ddab176405 02-Sep-2011 Mangesh Ghiware <mghiware@google.com> Merge "Set reading level scale to display density instead of a fixed minimum."
f9fa8be5e37b47d01ae37afb08f68428072e4aa3 01-Sep-2011 John Reck <jreck@google.com> Merge "Prevent serialization after being destroyed"
90afe21dbb3cbed56a67e17b2260622e501255ea 01-Sep-2011 John Reck <jreck@google.com> Prevent serialization after being destroyed

Bug: 5246900

Change-Id: Ic0be139b26e1b52203b8d0286c12175df6a1a46c
/frameworks/base/core/java/android/webkit/WebView.java
39bb698cd255962fb69c99bc5179b9590b6efbb3 01-Sep-2011 John Reck <jreck@google.com> Partial rollback of I9ebc92dc

Bug: 5239166
Turns out nativeRecordButtons is necessary even if we are not
using the native selection rings.

Change-Id: I8e7713928b77c0098640b51ce8e8815dad0c9545
/frameworks/base/core/java/android/webkit/WebView.java
b5f9fc32ec3972694b626ab93991b0b9de97749a 01-Sep-2011 Mangesh Ghiware <mghiware@google.com> Set reading level scale to display density instead of a fixed minimum.

On a double tap, zoom to either reading level scale or 0.5f more than
current (overview) scale, whichever is greater. This addresses the
scenario for large screen devices where overview and reading level scale
are the same.

Bug: 5165527
Change-Id: I50216d60f98b2904f06742336b9c8c7c512328a6
/frameworks/base/core/java/android/webkit/WebView.java
086a514e6bc25b4cacd41802b12ca0d05aca70aa 01-Sep-2011 John Reck <jreck@google.com> Draw text selection in Java

Bug: 5208328
Bug: 5224394
Also use framework assets

Change-Id: If704fd7df5aa95648d78e615571d4a2658d29534
/frameworks/base/core/java/android/webkit/WebView.java
30cca6020df6fede4043a9f6715be470d3132c57 30-Aug-2011 John Reck <jreck@google.com> Merge "Fix contentInvalidateAll NPE"
c87b7705a0207798b3dc9168f4e91ebbe21f08a7 29-Aug-2011 John Reck <jreck@google.com> Fix contentInvalidateAll NPE

Bug: 5220835
It is possible to call setProperty before webcore has initialized.
In that case, the content invalidate is unnecessary as there is no
content to invalidate, so just ignore the request.

Change-Id: I52471a1739443ba8f1e514a5908678552246d80b
/frameworks/base/core/java/android/webkit/WebView.java
0ba72ad45b724dfe8ce6fd5c0702e5da95dae514 29-Aug-2011 John Reck <jreck@google.com> Tap highlight fix + small perf increase

Bug: 5229717

Change-Id: I9ebc92dc96d77ff9051517b717d203686b574f7a
/frameworks/base/core/java/android/webkit/WebView.java
2c5423da4e3b23c0381952da2671f05a7501f9af 27-Aug-2011 John Reck <jreck@google.com> Merge "Better touch rects"
335f4547530b58d60003b844139ba25de9486124 26-Aug-2011 John Reck <jreck@google.com> Better touch rects

Bug: 5164486
Get the focus rings from webkit instead of the navcache
and draw them in Java.

Change-Id: Ib44d3f6972b3cdbca4d2f0a3034f53d9ae5bb2a8
/frameworks/base/core/java/android/webkit/WebView.java
58d94af5395c5d72b7f284837cf33ff59f3e18ed 18-Aug-2011 Chris Craik <ccraik@google.com> actually pause webkit thread, remove costly invalidate

pass isScrolling info to glwebviewstate
pause webkit in a way that doesn't require full inval on resume

depends on change https://android-git.corp.google.com/g/#/c/130210/

bug:5106313
Change-Id: Icbe57e3a163c17c99bd1ea49ab42e40f9d41cc6d
/frameworks/base/core/java/android/webkit/WebView.java
fc8f2ca6216181e95e30ad96be842e0b12b3d46d 19-Aug-2011 Nicolas Roard <nicolasroard@google.com> Merge "Modify nativeSetProperty to return a boolean indicating if we need to invalidate the content or not."
872cf224f30c8d083f1f8f14633fa029c9d3866b 18-Aug-2011 Nicolas Roard <nicolasroard@google.com> Modify nativeSetProperty to return a boolean indicating if we
need to invalidate the content or not.

corresponding C++ CL: https://android-git.corp.google.com/g/#/c/129130/

bug:5167645
Change-Id: I48a3dd252e2a7ef24f3828e1e2955f86867423dd
/frameworks/base/core/java/android/webkit/WebView.java
cb4184790184a086ddd840f52d22b4667b7905d4 18-Aug-2011 Chris Craik <ccraik@google.com> Removed setExtendedTileBounds

bug:5178457
for real this time
Change-Id: I4f40206d66feb8ddf6fd844e9fe5cce2096317bc
/frameworks/base/core/java/android/webkit/WebView.java
4d830071fa0e447a5b7fc694886204bc820897a8 28-Jul-2011 Ben Murdoch <benm@google.com> No need to pass an AssetManager to native when creating a WebView

See external/webkit change:
Ia6c17634f535ed75b2a0757ac4d53f1a0befb78a

Bug: 5084146
Change-Id: I5a2e87d03d73fa74ebb00c33567783225ed97d3a
/frameworks/base/core/java/android/webkit/WebView.java
adf096c85259af2f7e8b42766989d1e195c00831 12-Aug-2011 Ben Murdoch <benm@google.com> Increase WebView.TAP_TIMEOUT to 300ms to account for trackpad taps.

Track pad taps will have a duration of 300ms, so we need to take this
into account when handling touch events in the WebView.

Bug: 5076008
Change-Id: Ia0d7ad88637b1f6b85440283ab29086a5f60fdba
/frameworks/base/core/java/android/webkit/WebView.java
555c55ed65056e2236430f92e81c1fb6acd05dcd 29-Jul-2011 Chris Craik <ccraik@google.com> Added automated performance test to TileBenchmark

bug:5062896

Depends on external/webkit change:
https://android-git.corp.google.com/g/#change,125566

Loads pages from SD card, and scrolls through them reporting results. Added
contentInvalidateAll hidden WebView method, and made pageSwapCallback
extensible.

Change-Id: I9f7377aad6fd7c101177dde552a72357c8b4e400
/frameworks/base/core/java/android/webkit/WebView.java
ecfeebebfff639ba4b66a334bd46dc37b1ab25da 29-Jul-2011 Derek Sollenberger <djsollen@google.com> Merge "Add a runtime switch between Raster and Ganesh rendering modes."
5cf78f7bd87d1382fde42bf81fef6b16fe130985 28-Jul-2011 Chris Craik <ccraik@google.com> use pageswap callback to sync WebTextView with drawing of page

bug:5008210

Redraw the WebTextView when the page swaps (and thus the background is updated)
That way it updates at (approximately) the same time as the page. In software
rendering, do as before.

Depends on following external/webkit change:
https://android-git.corp.google.com/g/#change,124606

Change-Id: I59d7266a49d0ba734efdb88fef5fafe68aecfbce
/frameworks/base/core/java/android/webkit/WebView.java
24f2936d352e8938a02ec10ace57cac8671fc68f 28-Jul-2011 Chris Craik <ccraik@google.com> Merge "Use WebTextView overlay to render text fields/areas much faster"
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/WebView.java
50799a99484d50d79edab2ec6d64ad3287ed03f8 25-Jul-2011 Ben Murdoch <benm@google.com> Fix for Autofill calling WebView.getSettings on background thread.

Autofill was reading the WebView's WebSettings on a background thread.
Move it to the UI thread to conform to the WebView API and get rid of a
Strict Mode violation.

Bug: 5072283
Change-Id: Ib0ac60697f1e629ac1ef1743545b5cf0ac2cf52a
/frameworks/base/core/java/android/webkit/WebView.java
b4cd566767f736e723acb5444cbfb26117a2fbb8 22-Jul-2011 Chris Craik <ccraik@google.com> Merge "New log format, Manual log generation, plus logging of invalidates"
21555abad7ba5f5377052e2644974d3ce8c37869 21-Jul-2011 Chris Craik <ccraik@google.com> New log format, Manual log generation, plus logging of invalidates

bug:5062896

Added features to TileProfiler, updated jni interface to allow querying of
arbitrary log data via strings. Depends on the following webkit change:

https://android-git.corp.google.com/g/#change,122779

For new logging jni interface, and logging of invalidates.

Change-Id: I80ba6702b87e86ec76e5b0eafde45f4ef3a80ad3
/frameworks/base/core/java/android/webkit/WebView.java
5f4835af72418cd13a746b5b7677ae130c20d46a 21-Jul-2011 Huahui Wu <hwu@google.com> b/4070489 Jumpy motion when switching fingers during zoom gesture.

Change-Id: Ia7845cef5e58b4922e4475e48085b7b95e15bea2
/frameworks/base/core/java/android/webkit/WebView.java
9a3d51f596e2fcf6630592aa76b9e078c74f3603 15-Jul-2011 John Reck <jreck@google.com> Merge "Add a hidden generic property interface"
637758940f784d5ec31b6c8eece022832ee705ce 15-Jul-2011 John Reck <jreck@google.com> Add a hidden generic property interface

Change-Id: Iff890d7802af00a80b0148c7cc3233c6fc4d5dad
/frameworks/base/core/java/android/webkit/WebView.java
445ab74a21bae90e5ed9a4d4a5867866f1d7de13 13-Jul-2011 Chris Craik <ccraik@google.com> Tile profiling interface

Allows access to underlying WebView benchmarking calls.

Uses C++ backend from the following CL:
https://android-git.corp.google.com/g/#change,121035

Change-Id: Ib205340451aadfd40425f492afa4f2e46d314ebc
/frameworks/base/core/java/android/webkit/WebView.java
1d335f30f208223a70ec3e38a881f509d0c0b5d8 08-Jul-2011 Derek Sollenberger <djsollen@google.com> Add a runtime switch between Raster and Ganesh rendering modes.

There are corresponding changes in:

external/webkit -- change ID: 120660
packages/apps/Browser -- change ID: 120664

bug: 5013645
Change-Id: I4fc8ca6735a06682671ee06378c738ccf172e576
/frameworks/base/core/java/android/webkit/WebView.java
98933f3f6875a7327a44fca7271ae997e45d3779 07-Jul-2011 Huahui Wu <hwu@google.com> Revert "b/3302378 Passes touch pressures, size and timestamps to webkit."

This reverts commit 6e64e0c61720244894dbd1fd6b36394adc63b2de.
It introduced a null pointer crash for pinch-and-zoom.

Change-Id: I886057053b4cd2aded0f58618a806f7a67e58968
/frameworks/base/core/java/android/webkit/WebView.java
6e64e0c61720244894dbd1fd6b36394adc63b2de 29-Jun-2011 Huahui Wu <hwu@google.com> b/3302378 Passes touch pressures, size and timestamps to webkit.

Related CL in WebKit:
https://android-git.corp.google.com/g/#change,118422

Change-Id: Ibf209131a6d9ca8186c461b0c5b6286e5f669d0d
/frameworks/base/core/java/android/webkit/WebView.java
e482d89b82feb8abc1af594c38e674c48984f0ac 01-Jul-2011 Steve Block <steveblock@google.com> Clarify the documentation for WebView.loadDataWithBaseURL() when the base URL uses the 'data' scheme

Bug: 4726284
Change-Id: If4fd3c1a6517a69e0b007f8a67563330eca04449
/frameworks/base/core/java/android/webkit/WebView.java
b28b22af1316b44c1ce8a158c544f11a3c6625fe 04-Jul-2011 Steve Block <steveblock@google.com> Clarify documentation for WebView.loadData()

This method can access the network, but is subject to the usual same
origin policy.

Bug: 4985285
Change-Id: Ia3afa6ed1eeea9127d3ba5a2ecfead8149138b8e
/frameworks/base/core/java/android/webkit/WebView.java
fbb1560d6e2fa2305f33d65a7447a99631f721d6 22-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Touch exploration hover events don't map coordinates correctly on scrollable WebViews.

1. While mapping Android hover to WebKit mouse events I was not
taking into account the horizontal and vertical scroll.

bug:4807087

Change-Id: Ie24a8a30ce6a20d27b627ae7c7fbff1b74d140c8
/frameworks/base/core/java/android/webkit/WebView.java
9b90d553bb0a404ab62305bbedaab97b07d90e03 15-Jun-2011 John Reck <jreck@google.com> Support for getting the background color

Change-Id: I58a52f79e5a50dbb2cd1ba81d13e95ed9a1b7095
/frameworks/base/core/java/android/webkit/WebView.java
3f71cfc14990e28c0de1af81933bf3f6e25c00f9 14-Jun-2011 Steve Block <steveblock@google.com> Merge "Fix thread violation in WebView.getViewHeight()"
2664d85f58823c95c5046e799047bf73892cf70d 13-Jun-2011 John Reck <jreck@google.com> Tweaks for webview snap

Changed weighted average
Increase horizontal snap

Change-Id: I7ed50e13b0b0ba409a8e655d38c704f72a3f2f78
/frameworks/base/core/java/android/webkit/WebView.java
b0e81da4b85b0a6a0c354616e3ff23ea2e666c34 10-Jun-2011 John Reck <jreck@google.com> Merge "Tweak snap settings"
75738725e73838cb14993f067aea6da922f94a8e 10-Jun-2011 John Reck <jreck@google.com> Tweak snap settings

Different settings for horiz vs. vert snap
Snap angle increase in snap mode

Change-Id: I105e79b0c6fae239beef0c311cddd748def2ad8b
/frameworks/base/core/java/android/webkit/WebView.java
4bfd6f0fe52a6e839f725605ae6b3e175224e857 10-Jun-2011 John Reck <jreck@google.com> Expose hook for crash backup

Allows browser to know when to update the crash state in response
to a textfield's contents changing

Change-Id: Idda7a2931f4c9ae01418b91bbabb1e237f118664
/frameworks/base/core/java/android/webkit/WebView.java
b924ab5bdaf9b29faaf4714ad2bb553fa61f29f6 10-Jun-2011 Shimeng (Simon) Wang <swang@google.com> Merge "Fix height measure state."
e7c2ee75e935f056b25992d100d0a8d45c7bd817 10-Jun-2011 Shimeng (Simon) Wang <swang@google.com> Fix height measure state.

issue: 4257815
Change-Id: I6fc164767f805cfd13cf31707f3d53aa2714f9fc
/frameworks/base/core/java/android/webkit/WebView.java
6d70fcf83070f9e632b8236d029627a82f86ea19 09-Jun-2011 John Reck <jreck@google.com> Merge "Don't cut velocity"
7c272964c2f7a83f6c314df5dffa559500911fcd 09-Jun-2011 John Reck <jreck@google.com> Don't cut velocity

Bug: 4545016

Change-Id: I0ebad82c1cc54c2e4e29f3827c3755edda9f47a5
/frameworks/base/core/java/android/webkit/WebView.java
430ad4733472592a7bb3ff3f88db7385a7728edb 09-Jun-2011 Steve Block <steveblock@google.com> Merge "Fixes WebView.loadData() to avoid constructing invalid URLs."
f95d490b787f88dbd848a15f2a24b9ea929874db 09-Jun-2011 Steve Block <steveblock@google.com> Fixes WebView.loadData() to avoid constructing invalid URLs.

Also updates the documentation to make clear how the encoding parameter should be used.

Bug:4541798
Change-Id: I9283513fbd8bcc3dc54056cfa2d0ab2425681824
/frameworks/base/core/java/android/webkit/WebView.java
21ac7a84fc4fc98793fe9a4ecd955f16a862ae9f 09-Jun-2011 Steve Block <steveblock@google.com> Merge "Fix some poorly worded API documentation for WebView.loadDataWithBaseURL()"
ae32857ebd3ef427f4fbcb98b4d1f66b434f7c83 08-Jun-2011 Steve Block <steveblock@google.com> Fix some poorly worded API documentation for WebView.loadDataWithBaseURL()

See https://mondrian.corp.google.com/changelist/110819-p9

Change-Id: I35fc65752687322ddfec39f5e2d7e5e5b89951e7
/frameworks/base/core/java/android/webkit/WebView.java
60c84d67c5dc6e1895d49f1050fc6ea55cebef8a 09-Jun-2011 John Reck <jreck@google.com> Fix initial zoom with loadViewState

Change-Id: I06ee6a44c6e102ed84b44c68a83ab7db29d9f160
/frameworks/base/core/java/android/webkit/WebView.java
48076da85cfd0c68214b719167c958dae6a25ebd 08-Jun-2011 Jeff Brown <jeffbrown@android.com> am c3709f25: am 277bfd7c: am c1830a77: Merge "Improve browser scrolling when using the mouse wheel." into honeycomb-mr2

* commit 'c3709f2509bfc15d13a590b8342503f858ee67e2':
Improve browser scrolling when using the mouse wheel.
7f5b99676f2fda710c2182cae16f6b9094a1d98c 07-Jun-2011 Jeff Brown <jeffbrown@android.com> Improve browser scrolling when using the mouse wheel.

The way that smooth scrolling is implemented in the Browser,
repeated requests to scroll by a certain amount do not add up
to one large scroll by the cumulative amount. This makes
the mouse wheel unusable on large pages because the Browser
will scroll at a more or less constant rate no matter how often
the wheel is turned.

The fix is to not animate scrolls when using the mouse wheel.

Change-Id: I23c05cdd2383944b8730deb225b7f3f57f1729df
/frameworks/base/core/java/android/webkit/WebView.java
83e5929d4cee2d69ff98d1656d91c7f408ea0afb 04-Jun-2011 John Reck <jreck@google.com> Delay set picture if necessary

Normally this wouldn't happen as a new picture should come after
webcore has initialized. However, now that a view state can be loaded,
setting a new picture needs to be delayed until after everything has
initialized.

Change-Id: I823bc17eb939eab0436d7a398ebcbe849c0fb945
/frameworks/base/core/java/android/webkit/WebView.java
95b7d6f9c236b348c1df0dd5ad6c443d08cc756b 04-Jun-2011 John Reck <jreck@google.com> Prevent WebKit updates in loadViewState case

Change-Id: I466f10c308b43f8683e537620e1c3e922a2cd465
/frameworks/base/core/java/android/webkit/WebView.java
5e02e09565a8aef720a73b2d3e49a94f9bbe557e 04-Jun-2011 John Reck <jreck@google.com> Merge "Initial support for view state serialization"
816c0defc73b6604a12c3f409b24ca3823897af5 03-Jun-2011 John Reck <jreck@google.com> Initial support for view state serialization

Framework for serializing the view state
Still needs to prevent sending messages to webkit (pinch
zoom doesn't work correctly as a result)

Change-Id: Ic3f8fe19b27ff1f841b556e87f582dab2a6d903b
/frameworks/base/core/java/android/webkit/WebView.java
7ab3d673ba341db5a44a9c754a25961cfd16f8cd 01-Jun-2011 Derek Sollenberger <djsollen@google.com> Add API to allow plugins to lock their orientation in full-screen mode.

This CL has companion changes in the browser and webkit.

bug: 3398386
Change-Id: I09eee11e3a22ba3ce0af67e2a068dc7331dc49c2
/frameworks/base/core/java/android/webkit/WebView.java
2032eee0c178a15fd41cebbdec71c7622d2aab23 23-May-2011 Kristian Monsen <kristianm@google.com> Fix for bug 4144936: [Proxy setting]: traffic to a bypass domain doesn't bypass proxy

This is the WebView part, passing the bypass list to
the native side.

Moved some code to JWebCoreJavaBridge.java because
because sendStaticMessage only takes one argument.

Needs CL in external/webkit:
https://android-git.corp.google.com/g/#change,112401

Needs following CL in external/chromium:
https://android-git.corp.google.com/g/#change,111832

Change-Id: Ib548bdcbc9eb22bbb8f2754808840052bd3ec80e
/frameworks/base/core/java/android/webkit/WebView.java
f147b5f2a61ab0842adaa430d9a8bbe98a83e4a4 23-May-2011 Kristian Monsen <kristianm@google.com> Fix for bug 4144936: [Proxy setting]: traffic to a bypass domain doesn't bypass proxy DO NOT MERGE

This is the WebView part, passing the bypass list to
the native side.

Moved some code to JWebCoreJavaBridge.java because
because sendStaticMessage only takes one argument.

Needs CL in external/webkit:
https://android-git.corp.google.com/g/#change,111108

Needs following CL in external/chromium:
https://android-git.corp.google.com/g/#change,111107

Change-Id: Ib548bdcbc9eb22bbb8f2754808840052bd3ec80e
/frameworks/base/core/java/android/webkit/WebView.java
92c99162ae512a68cb8364943f28b2aff0f6b54c 23-May-2011 Steve Block <steveblock@google.com> Fix thread violation in WebView.getViewHeight()

WebView.getVisibleTitleHeight() is a public method so should only be
called on the UI thread. The implementation is already threadsafe, so
this patch simply moves it to a helper method.

Bug: 4424859
Change-Id: I6d938fb1b231debfdd54f87032cb2b4acc59c1e5
/frameworks/base/core/java/android/webkit/WebView.java
08d584cd1cba05284ccd2d0ea128c297624f0c47 17-May-2011 Steve Block <steveblock@google.com> Log a StrictMode violation when WebView methods are called on the wrong thread

Bug: 4373919
Change-Id: I1f526e033ce316e51b3de7fe4ac88119fbc65b4e
/frameworks/base/core/java/android/webkit/WebView.java
c51ab9b93ddf964f79cde3c2b47d6ac0a53cac2f 13-May-2011 John Reck <jreck@google.com> Merge "Adding functions to query the state of a WebElement."
7882a7839ad6e01eaa990cb415877e6f8a1c059d 12-May-2011 Svetoslav Ganov <svetoslavganov@google.com> Propagating hover events to JavaScript in WebView

Propagating hover events to JavaScript to enable
touch exploration of web content. All hover events
are mapped to mouse move events and then WebKit
generates the appropriate mousemove, mouseover and
mouseout actions.

Change-Id: Ib96cd22baf471df045629ca9e254e5a5f7023961
/frameworks/base/core/java/android/webkit/WebView.java
fc77165d446520716f18cdc14e30b39a6d8b9bac 10-May-2011 Kristian Monsen <kristianm@google.com> Deprecating webkit API's that might not be supported in the future

Change-Id: I992ae207f29a95daff991768cc6fe190471978cd
/frameworks/base/core/java/android/webkit/WebView.java
cbb59db7ee1743fdd147c5cbdb179870bf08f849 09-May-2011 Kristian Monsen <kristianm@google.com> Enable platform notifications for chrome http stack

Change-Id: I386aef25010c95b15fb6a8edc96e59e538540306
/frameworks/base/core/java/android/webkit/WebView.java
940a198f5232d98b61541edcceb3fe06e40de429 27-Apr-2011 Dounia Berrada <berrada@google.com> Adding functions to query the state of a WebElement.

Change-Id: I85dbbfbf6b6172d6a8cf6e437f414ecef0872e36
/frameworks/base/core/java/android/webkit/WebView.java
b51cc1dd63808da505cd8beb7300f57dc98ff1d3 05-May-2011 Patrick Dubroy <dubroy@google.com> Merge "Only delay pressed feedback for Views inside a scrolling parent"
e0a799a2ac1ca78e30fbac9e4e12a063425c08d3 05-May-2011 Patrick Dubroy <dubroy@google.com> Only delay pressed feedback for Views inside a scrolling parent

Add a method on ViewGroup to determine whether it supports scrolling.
This allows us to show the pressed feedback immediately in many cases,
improving responsiveness of buttons, etc.

This patch also lengthens the timeout in order to reduce flashes
when the user is scrolling.

Change-Id: Ieb91ae7a1f8e8f7e87448f2a730381a53947996f
/frameworks/base/core/java/android/webkit/WebView.java
51b089103835afab5907f9b71ac7def1a92d21d0 27-Apr-2011 Steve Block <steveblock@google.com> Log an error message if WebView methods are called on the wrong thread.

All public WebView methods should be called on the UI thread. This
change adds a check to all public non-inherited methods, other than
those that have always been hidden.

Bug: 4373919
Change-Id: I573fc704faa58287a7b14a971958fa5417855d70
/frameworks/base/core/java/android/webkit/WebView.java
1854ddb6d930b95ceeb6448482e2c76a45935018 19-Apr-2011 Steve Block <steveblock@google.com> Deprecate ANCHOR_TYPE and IMAGE_ANCHOR_TYPE from WebView.HitTestResult

These constants are no longer used anywhere, so should be deprecated.

Change-Id: I1456782fbafc540148c51477dd9727b11684d5d3
/frameworks/base/core/java/android/webkit/WebView.java
280dda75f3a974a7f519c8c99ea1c56100f01677 08-Apr-2011 Nicolas Roard <nicolasroard@google.com> am 16d8de7a: am 3e37a2f3: am fcba2353: Merge "Remove uncalled function -- java counterpart of the fix for bug:4183801" into honeycomb-mr1

* commit '16d8de7a293e5d626823a59f2d8b74e0d4a75cbd':
Remove uncalled function -- java counterpart of the fix for bug:4183801
fcba23536b1b432a5977e1ba4ea70ae0ff5aed4a 08-Apr-2011 Nicolas Roard <nicolasroard@google.com> Merge "Remove uncalled function -- java counterpart of the fix for bug:4183801" into honeycomb-mr1
4bae8367841fb6215c46efe0adec818588211410 08-Apr-2011 Nicolas Roard <nicolasroard@google.com> Remove uncalled function -- java counterpart of
the fix for bug:4183801

Change-Id: Icaaa83743976be180ba570158bd4016e7f53c95a
/frameworks/base/core/java/android/webkit/WebView.java
63052ac7ba85b4df89286ef4f22d196732c6a682 07-Apr-2011 Michael Kolb <kolby@google.com> invalidate WebView after Title change

Change-Id: Icae5462bddd4983b83c3383e8727e16c51a42fd5
/frameworks/base/core/java/android/webkit/WebView.java
67ed4f547ebcec208ce3fde379562e0c610a9bb3 05-Apr-2011 Adam Powell <adamp@google.com> am 2e68ec1b: am 2bb59637: am 030b38ff: Merge "Fix bug 4207704 - Gestures can be lost when Flash is enabled" into honeycomb-mr1

* commit '2e68ec1bc6e9ab57cd884d32b08dbb389189e7a4':
Fix bug 4207704 - Gestures can be lost when Flash is enabled
3c534772de84276062eec2435f21df1dfc13a0d2 04-Apr-2011 Adam Powell <adamp@google.com> Fix bug 4207704 - Gestures can be lost when Flash is enabled

Pre-queue WebView touch events as we send them to webkit so that we
can run them through WebView later if webkit or hosted plugins go out
to lunch.

Change-Id: Id4e9f56beeb0c1d55e77233423844b15f6f00aef
/frameworks/base/core/java/android/webkit/WebView.java
1453f0926f4e0dee99963eb28c86767194ea968c 25-Mar-2011 Adam Powell <adamp@google.com> am 7dfc6a9e: am c8c78eed: am baa3380d: Fix bug 4170809 - Pages with flash lose touch events

* commit '7dfc6a9e322e9c0367a6372b25694d926d79a618':
Fix bug 4170809 - Pages with flash lose touch events
baa3380d74928baf6a5685c54c719af37171a625 25-Mar-2011 Adam Powell <adamp@google.com> Fix bug 4170809 - Pages with flash lose touch events

Fix WebView touch cancel behavior when we time out waiting for a
response from webkit.

Change-Id: I0aeeea64b156e204dbe2dda913a42df28704ed16
/frameworks/base/core/java/android/webkit/WebView.java
45a746a107b4a28c2570811809cbc36557a32092 18-Mar-2011 Huahui Wu <hwu@google.com> am f5cf85d0: am d1e89c41: am b1c43c32: Merge "b/4116658 Fix the jumpy scrolling with some flash site." into honeycomb-mr1

* commit 'f5cf85d07c99ae834d1b58bf5109982f9a4f3604':
b/4116658 Fix the jumpy scrolling with some flash site.
88b869a40a0eb386385a5de1f37585458c65b548 18-Mar-2011 Huahui Wu <hwu@google.com> b/4116658 Fix the jumpy scrolling with some flash site.

In the case that a touch event is passed to WebKit then back to
WebView, the coordinates will be converted from view to content
then back to view and the convertion could lose some accuracies.
For a flash content that only consumes TouchDown, all the
TouchMove events will go through this path and each time, the
data becomes more inaccurate. Even worse, the TouchMove event
updates the mScrollX/Y which will then be used for the convertion.
The effect amplifies really quick and the scrolling looks jumpy.

The fix is just to store the original view coordinates when pass
the event around.

Change-Id: Ie1424d7cfc6272348b194732e97168efe2dcf17b
/frameworks/base/core/java/android/webkit/WebView.java
7270f62c1fcdf1e1133ba10f9765109c49e725ed 17-Mar-2011 Adam Powell <adamp@google.com> am 9cd93f09: am ea775ca3: am f8d1533b: Merge "Fix bug 4111271 and bug 4077526 - WebView touch event handling when WebCore is too slow" into honeycomb-mr1

* commit '9cd93f09d451afacb8fffeee5e71806e0f91cf31':
Fix bug 4111271 and bug 4077526 - WebView touch event handling when WebCore is too slow
d0197f3669efda060c7ee2069ff41bd970fd6d9c 17-Mar-2011 Adam Powell <adamp@google.com> Fix bug 4111271 and bug 4077526 - WebView touch event handling when
WebCore is too slow

Make sure that we can recover properly from a bad gesture with missing
events that never come back from webcore. Lower timeout to 1 second.

Confirm movement on touch event enqueue so that we don't get phantom
taps or long presses when webcore is slow to respond.

Add sanity check in ScaleGestureDetector to end a gesture early on a
bad MotionEvent stream rather than throwing up.

Change-Id: I69690409d7edd6b4320dbcf3b052aba4023360fe
/frameworks/base/core/java/android/webkit/WebView.java
607a10c5c94e1f7a657a54c9ee8a9a9f31b50e25 17-Mar-2011 Teng-Hui Zhu <ztenghui@google.com> am a13640b9: am 7a0949c6: am 7af7e00b: Merge "Support html5 video switching b/t full screen and inline mode" into honeycomb-mr1

* commit 'a13640b9efe1706ad0b6b608ccfca800166d7c01':
Support html5 video switching b/t full screen and inline mode
7af7e00b9112f15d1683ae93975a6fcd9dd34da8 17-Mar-2011 Teng-Hui Zhu <ztenghui@google.com> Merge "Support html5 video switching b/t full screen and inline mode" into honeycomb-mr1
10ab654943b386c0816a33dbd639c3b8d6260b01 17-Mar-2011 Teng-Hui Zhu <ztenghui@google.com> Support html5 video switching b/t full screen and inline mode

bug:2126902

Change-Id: I5c4b25358c76e35f0f51794d6d04fcc5098a0d70
/frameworks/base/core/java/android/webkit/WebView.java
16c4f35692902a203983b6b0e1d50bfe44fca27c 17-Mar-2011 Bart Sears <bsears@google.com> am 2983bb6a: am 247820c0: am 8e42d39f: Merge "partial inval" into honeycomb-mr1

* commit '2983bb6a363010403668d39fdc42f5712bff5eb3':
partial inval
f2674c1a2c93e8cf5b44608e8d7fd62669187aa4 17-Mar-2011 Nicolas Roard <nicolasroard@google.com> partial inval

Change-Id: Ib8ba0fdbbbcae3061692043d33fecb8ffa8ee100
/frameworks/base/core/java/android/webkit/WebView.java
0ec5c78a804b91291b546e6c6fd61ecdbaa578f5 16-Mar-2011 Shimeng (Simon) Wang <swang@google.com> am 0c4f09be: am f2532d16: am 464b690a: Pass firstLayout info to native webview when setting baseLayer.

* commit '0c4f09be5b73bd6bf19921d907fadc50d853deaf':
Pass firstLayout info to native webview when setting baseLayer.
464b690ada24428f3dff4102659048db7128835f 16-Mar-2011 Shimeng (Simon) Wang <swang@google.com> Pass firstLayout info to native webview when setting baseLayer.

issue: 4094300
Change-Id: I4fdbc0cee73230a731b1356f44372cd86a5c4ad1
/frameworks/base/core/java/android/webkit/WebView.java
dce574a191cef75234f8930ffe54bb3ed5126e56 16-Mar-2011 Michael Kolb <kolby@google.com> am 5b7a1bd7: am b0a07f0c: am 6bb2020e: Merge "add comment to deprecated tag" into honeycomb-mr1

* commit '5b7a1bd7906b24e92d61b967abe736cc3559bf08':
add comment to deprecated tag
24e53b00b0588f19f8f31ecc545e62ab3a89e014 16-Mar-2011 Michael Kolb <kolby@google.com> add comment to deprecated tag

Change-Id: Id0c30c43abfeb9005f9b69e0a565644c7c956295
/frameworks/base/core/java/android/webkit/WebView.java
0677d2526d7b0a00114fb6ba00add1ccaaa2da86 16-Mar-2011 Michael Kolb <kolby@google.com> am d799caa9: am 9a0df3c5: am 95fd065e: Merge "deprecate getVisibleTitleHeight" into honeycomb-mr1

* commit 'd799caa9a6623de4af581bebc9759272c10b6588':
deprecate getVisibleTitleHeight
e54f66524e8beaa681015c6ac20036a5fbf0aa92 16-Mar-2011 Michael Kolb <kolby@google.com> deprecate getVisibleTitleHeight

Bug: 4104535

Change-Id: I8a6ef21d38a25848efa28e2c06cf2da0ff7af9c4
/frameworks/base/core/java/android/webkit/WebView.java
75a1ef8d14de25850a171ee80fc7f9a5b70611b5 15-Mar-2011 Adam Powell <adamp@google.com> am 15c9ab33: am 57fccf12: Merge "Fix bug 4099023 - Phantom clicks on some websites" into honeycomb-mr1

* commit '15c9ab336eff66cafa365e9ea3a81f9f1b5c2635':
Fix bug 4099023 - Phantom clicks on some websites
57fccf12e1e71089aa01cbf9867314f82db4e6f9 15-Mar-2011 Adam Powell <adamp@google.com> Merge "Fix bug 4099023 - Phantom clicks on some websites" into honeycomb-mr1
a0def7223f67f1783a795c7e9cff1c9862eb4778 15-Mar-2011 Adam Powell <adamp@google.com> Fix bug 4099023 - Phantom clicks on some websites

Don't forward touch events when webkit has already claimed it doesn't
want them.

Change-Id: Ib00f9014bb23ff544dde6ec9a50ce71ebcb2bb26
/frameworks/base/core/java/android/webkit/WebView.java
a492e1a14bd7ad3728942936725a27c634bcfe90 14-Mar-2011 Huahui Wu <hwu@google.com> am ddba200b: am 9691d3f3: am b71020ef: Merge "b/3392594 keep the remain touch points when one is ended." into honeycomb-mr1

* commit 'ddba200b425c56b3b66ead23e8d5fd51a17c6cc4':
b/3392594 keep the remain touch points when one is ended.
b71020ef4018195a21d2538ea3767b901610daf4 14-Mar-2011 Huahui Wu <hwu@google.com> Merge "b/3392594 keep the remain touch points when one is ended." into honeycomb-mr1
2d3ef37ae6ce91c759e57dda7f16d148fdeee35a 14-Mar-2011 Huahui Wu <hwu@google.com> b/3392594 keep the remain touch points when one is ended.

This is the Java side code change for b/3392594.
It adds an action index into the touch event data and pass it
to the native side.

Change-Id: Ibb393e62a590d0fff1dd3172041748e2b10501d6
/frameworks/base/core/java/android/webkit/WebView.java
9a3595c2c8895c1b158c91bf58ed2389dde8c66b 12-Mar-2011 Nicolas Roard <nicolasroard@google.com> am c6c311f7: am f0230cca: Merge "HTML5 Video improvements" into honeycomb-mr1

* commit 'c6c311f77459c3852d4a8c887657f6a135ad4cdf':
HTML5 Video improvements
f0230cca194c840684bab959856c56725fc40b87 11-Mar-2011 Nicolas Roard <nicolasroard@google.com> Merge "HTML5 Video improvements" into honeycomb-mr1
0e778a1ab0c7040e04782ec752103ae64fb24940 11-Mar-2011 Nicolas Roard <nicolasroard@google.com> HTML5 Video improvements

- add support for the fullscreen button

counterpart webkit CL: https://android-git.corp.google.com/g/#change,101484

bug:2126902
Change-Id: Ibcc8c5b115089ad1f30ebe76e4d5c31b2d6389f9
/frameworks/base/core/java/android/webkit/WebView.java
680cfe28a860a10c6aebf269ff441a9330ed2758 11-Mar-2011 Adam Powell <adamp@google.com> am 2737dfe0: am 5ec35c17: Merge "Fix bug 4082512 IAE "pointerIndex out of range" while zooming over flashplayer in browser" into honeycomb-mr1

* commit '2737dfe0a50379ae2524e95065b1b0afe222c83f':
Fix bug 4082512 IAE "pointerIndex out of range" while zooming over flashplayer in browser
5ec35c172ad0628b7092ab34f962ff2c063905d8 11-Mar-2011 Adam Powell <adamp@google.com> Merge "Fix bug 4082512 IAE "pointerIndex out of range" while zooming over flashplayer in browser" into honeycomb-mr1
8f626a19174c1c33b4798489d8633d20196d7191 11-Mar-2011 Adam Powell <adamp@google.com> Fix bug 4082512 IAE "pointerIndex out of range" while zooming over
flashplayer in browser

Fix an issue where gestures weren't being fully canceled by webkit to
the multitouch detector. This will prevent ScaleGestureDetector from
attempting to resume its regularly scheduled gesture already in
progress.

Change-Id: Id4881eeb1df8414dfa23174481bd7dc70fd08fee
/frameworks/base/core/java/android/webkit/WebView.java
36f822a4d95c64dc978f3b338da1e2c464623b72 11-Mar-2011 Teng-Hui Zhu <ztenghui@google.com> am 37ee248b: am 2fc79763: Merge "Inline HTML5 Video support" into honeycomb-mr1

* commit '37ee248b526d3cdefbb0d401ec14b740b655896b':
Inline HTML5 Video support
2fc7976399e5f0f4c6e1dae528df727e7dcbdc8e 11-Mar-2011 Teng-Hui Zhu <ztenghui@google.com> Merge "Inline HTML5 Video support" into honeycomb-mr1
f8a72123c03adb60fd6c857c06ea523879f12578 11-Mar-2011 Adam Powell <adamp@google.com> am 6615362b: am cf63b66c: Merge "Fix bug 4080407 - Browser stuck after scrolling- page stops responding" into honeycomb-mr1

* commit '6615362b14131052c5055c0b17c3a2ade474a57d':
Fix bug 4080407 - Browser stuck after scrolling- page stops responding
661e8b1f21f03ea429ff34f8fdb58b68a5049092 03-Mar-2011 Teng-Hui Zhu <ztenghui@google.com> Inline HTML5 Video support

Use the HTML5VideoView to make inline HTML5 video possible.
Full screen support will be the next step.

The native side change is at 101310.

bug:3506407, 2126902
Change-Id: I012f33a4d0c7b83d37b184fceb3923e1fb277b80
/frameworks/base/core/java/android/webkit/WebView.java
80615b0075aaa6ee9fdd2a0300190aa00a35f5b1 11-Mar-2011 Adam Powell <adamp@google.com> Fix bug 4080407 - Browser stuck after scrolling- page stops responding

Account for gaps in touch queue sequence numbering when we flush out
canceled events from webcore's queue. Add a 2-second timeout to auto-flush
old events when a new gesture begins.

Change-Id: I764a7fcd673b3afb629055b001e9346f5b959dba
/frameworks/base/core/java/android/webkit/WebView.java
9610d3e98f11d1d78d0e2a612b047508222386b4 10-Mar-2011 Kristian Monsen <kristianm@google.com> am 4543b8d4: am 79b87df5: Merge "Fix for bug 4064291 WebView uses PackageManager#getInstalledApps" into honeycomb-mr1

* commit '4543b8d4b0fe6bebbf619fa7793a55e41eb1eeff':
Fix for bug 4064291 WebView uses PackageManager#getInstalledApps
63a1b0cefef3c27d3b5b062dfaf36501aff44d56 09-Mar-2011 Kristian Monsen <kristianm@google.com> Fix for bug 4064291 WebView uses PackageManager#getInstalledApps

Checking each app if they exist instead of iterating through
all packages.

Change-Id: Ic4934fa1e8dbbab2f90134e3701d39b1d4739d83
/frameworks/base/core/java/android/webkit/WebView.java
2408954d7bd0864a889bef490a58efea25bfce48 09-Mar-2011 Leon Scroggins <scroggo@google.com> am e1413a9e: am 23c5861c: Merge "Scroll textfield onscreen when the IME shows." into honeycomb-mr1

* commit 'e1413a9e9cdb2dd2792d318542db483b188276c8':
Scroll textfield onscreen when the IME shows.
23c5861cde7efef568fa3c61e0f1fa4fe97c7cfa 09-Mar-2011 Leon Scroggins <scroggo@google.com> Merge "Scroll textfield onscreen when the IME shows." into honeycomb-mr1
02d7fe132683381da243139eb03cbd3f0dbd6b10 09-Mar-2011 Huahui Wu <hwu@google.com> am 45e5db99: am 166b190e: Merge "b/3307761 Clean up the flag mIsHandlingMultiTouch." into honeycomb-mr1

* commit '45e5db99979d9f85e7c3cad3e750b886e3abb105':
b/3307761 Clean up the flag mIsHandlingMultiTouch.
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/WebView.java
9386a24eb10ce5cac55abe295a625cc562af7003 08-Mar-2011 Huahui Wu <hwu@google.com> b/3307761 Clean up the flag mIsHandlingMultiTouch.

The flag mIsHandlingMultiTouch was used to remove the out of order
touchMove events. After the fix b/3307761, it is no more needed.

Change-Id: I4d03131e2a22c53cc79c4105e39f078f1bea88ca
/frameworks/base/core/java/android/webkit/WebView.java
4fdda700260cd0b8a175ae147a316a9119237fb5 09-Mar-2011 Adam Powell <adamp@google.com> am 4763777e: am 1250c94b: Merge "Bug 3509417 - Refine touch event serialization" into honeycomb-mr1

* commit '4763777ebfa9d0d40ea7d117a351eaf96c5ac816':
Bug 3509417 - Refine touch event serialization
f610c421ea498720c11d46129d5c5bf89fad8bf4 09-Mar-2011 Nicolas Roard <nicolas@android.com> am acafb26d: am f986d496: Merge "Partial invalidation of the browser textures" into honeycomb-mr1

* commit 'acafb26d34963807fc8f4c1a46763c51821d194e':
Partial invalidation of the browser textures
1250c94b50a3322e44c8ded7ab15bd6da9cc82a7 09-Mar-2011 Adam Powell <adamp@google.com> Merge "Bug 3509417 - Refine touch event serialization" into honeycomb-mr1
ae9d2640f3502eae7bd5bed2cfc7d8f190d1fcb4 09-Mar-2011 Adam Powell <adamp@google.com> Bug 3509417 - Refine touch event serialization

Fix an issue with single-touch events handled by webkit.

Change-Id: Ief4e9ec91cda7dd3940241c684d0907cb8c9890f
/frameworks/base/core/java/android/webkit/WebView.java
3cb5ded990452dd7ee909a02261aabf32ebdc45a 24-Feb-2011 Nicolas Roard <nicolas@android.com> Partial invalidation of the browser textures

corresponding webkit CL: https://android-git.corp.google.com/g/#change,100673

bug:3461349 bug:3464483
Change-Id: I913b07a27129e37d8d949dd62e71d350ed119569
/frameworks/base/core/java/android/webkit/WebView.java
bb085ff0d2e76f7cb775cf0cb1edbb226e7ddd31 08-Mar-2011 Leon Scroggins <scroggo@google.com> am f279269a: am 055a8585: Merge "Do not attempt to start action mode if there is no parent." into honeycomb-mr1

* commit 'f279269a4c2e86092b99b67766b9fc1077f2526d':
Do not attempt to start action mode if there is no parent.
055a858562e04c903988d09973accc8aeeece02c 08-Mar-2011 Leon Scroggins <scroggo@google.com> Merge "Do not attempt to start action mode if there is no parent." into honeycomb-mr1
93553d7fb32cf888806bff8e179d724b53d43bbd 08-Mar-2011 Leon Scroggins <scroggo@google.com> Do not attempt to start action mode if there is no parent.

Bug:3514747
Change-Id: Id4c5c803bfb8bb2f5f81fa15599784e808e0d223
/frameworks/base/core/java/android/webkit/WebView.java
f7098ce95dde39a33ca280bd1ef9a13259e7b7e5 08-Mar-2011 Romain Guy <romainguy@google.com> am d00353fe: am bc8a8e8c: Merge "Add support for partial invalidates in WebView Bug #3461349" into honeycomb-mr1

* commit 'd00353fe3191571a6773ef2d11921cfcff260bc4':
Add support for partial invalidates in WebView Bug #3461349
cabfcc1364eb7e4de0b15b3574fba45027b45cfc 08-Mar-2011 Romain Guy <romainguy@google.com> Add support for partial invalidates in WebView
Bug #3461349

This change also fixes two bugs that prevented partial invalidates
from working with other views. Both bugs were in our EGL implementation:
they were preventing the caller from comparing the current context/surface
with another context/surface. This was causing HardwareRenderer to always
redraw the entire screen.

Change-Id: I33e096b304d4a0b7e6c8f92930f71d2ece9bebf5
/frameworks/base/core/java/android/webkit/WebView.java
5a383c1f75b11b76c793fefa4d8a81b8e39caee0 07-Mar-2011 Romain Guy <romainguy@google.com> am 15c6b719: am 0aaa11ed: Merge "Remove many unnecessary save/restore calls." into honeycomb-mr1

* commit '15c6b719fe8d1f4b27b4fa66ac94eede3957caf2':
Remove many unnecessary save/restore calls.
0aaa11ed5be45170fb2535a6ce021c92b18d8878 07-Mar-2011 Romain Guy <romainguy@google.com> Merge "Remove many unnecessary save/restore calls." into honeycomb-mr1
e9e7b24bce11f2da7a064d4bfa467f72970b9611 07-Mar-2011 Adam Powell <adamp@google.com> am 1c94feb0: am 9ab91b84: Merge "Fix bug 3509417 - Serialize touch event handling in webview" into honeycomb-mr1

* commit '1c94feb04f20c0c3e193746a6f413557f4d12a30':
Fix bug 3509417 - Serialize touch event handling in webview
9ab91b843a82ccc853b78cc3c0f21c86e668418e 07-Mar-2011 Adam Powell <adamp@google.com> Merge "Fix bug 3509417 - Serialize touch event handling in webview" into honeycomb-mr1
9f5f7af6ccaf14303c109bfd5b2605eac16c46c6 24-Feb-2011 Kristian Monsen <kristianm@google.com> Deprecating webkit API's that might not be supported in the future do not merge

Change-Id: I7ed9498a24aceee529397bbe1ed96a15f834b4eb
/frameworks/base/core/java/android/webkit/WebView.java
4fb35d4ddc954ff318516c13547c27e7ae1ff2fa 04-Mar-2011 Adam Powell <adamp@google.com> Fix bug 3509417 - Serialize touch event handling in webview

Make sure WebView doesn't process touch events out of order.

Change-Id: Id046139af99d0d3f32cc481ca1d85d32ced67f75
/frameworks/base/core/java/android/webkit/WebView.java
d6cf477e5d6245a63f71958b75c3d658cd6c100e 05-Mar-2011 Romain Guy <romainguy@google.com> Remove many unnecessary save/restore calls.

This should help complex applications by reducing the amount of
unnecessary work performed by the renderer.

Change-Id: I9bdebb1a35cdbcc3d926b7485f19d9e88a019040
/frameworks/base/core/java/android/webkit/WebView.java
cdaff15bda66f6a208c5bdc4b73730ae09a852f1 04-Mar-2011 Leon Scroggins <scroggo@google.com> Create a RenderSkinButton in UI side.

Part of bug:3009375

Create a RenderSkinButton on the UI side, so that we can
use it to draw buttons and free memory, rather than depend
on globals.

Change-Id: If234ec50c42b5c9d63421ab570ea829ba56db048
/frameworks/base/core/java/android/webkit/WebView.java
b748186c7099b1b3ffc9bf28f4c5a47c81689a43 04-Mar-2011 Michael Kolb <kolby@google.com> fix NPE in getSearchBox

Bug: 3510741
added null check

Change-Id: I256375b2168942f0b4b700912f2f2ae40ce90492
/frameworks/base/core/java/android/webkit/WebView.java
4a85a7dc84407df8e92de4f89e7840af9e8dd3fc 03-Mar-2011 Bjorn Bringert <bringert@android.com> Merge "A Java implementation of the SearchBox API."
fa44314d3afda1797f48321c7daaf999fc8677bf 02-Mar-2011 Svetoslav Ganov <svetoslavganov@google.com> Force close in WebView.

bug:3504589

WebView#removeJavascriptInterface was not performing check if
a mWebViewCore instance is present. Added such a check.

Change-Id: I7f6dfe51a08f23dddf2fc94df635fdfa68e9a7cf
/frameworks/base/core/java/android/webkit/WebView.java
5bf7658cb85a1e70f3ea89a3a674a96c2eb7531f 01-Mar-2011 Gilles Debunne <debunne@google.com> Merge "Removed ViewTreeObserver null checks"
9497c5f8c4bc7c47789e5ccde01179abc31ffeb2 22-Feb-2011 Narayan Kamath <narayan@google.com> A Java implementation of the SearchBox API.

Implemented as a Java bridge object and a JS adapter.
Works on both V8 and JSC.

Change-Id: I8a4268fb3c6688b5ece9e27c11724c0776017255
/frameworks/base/core/java/android/webkit/WebView.java
5960626016e1291d37b9ee0f1f9da33dc6f2aee7 28-Feb-2011 Leon Scroggins <scroggo@google.com> Merge "No radio buttons on <select>"
d2e91d1dc7c9fcbf792cbc21d283a5915b32cb54 25-Feb-2011 Ben Murdoch <benm@google.com> Improve caching of localised strings for Chromium

We read localised strings for Chromium (e.g. for Autofill)
from Java. Now we've added more large strings, keep them
in WeakReferences and load them lazily rather than on startup.

Change-Id: Ibedcaab5ee781699b41b5c03aae866d1d82bb570
/frameworks/base/core/java/android/webkit/WebView.java
33bbfd2232ea9eaae9a9d87a05a95a430f09bd83 25-Feb-2011 Jeff Brown <jeffbrown@google.com> Add support for mouse hover and scroll wheel.

Dispatch ACTION_HOVER_MOVE and ACTION_SCROLL through the View
hierarchy as onGenericTouchEvent. Pointer events dispatched
this way are delivered to the view under the pointer. Non-pointer
events continue to be delivered to the focused view.

Added scroll wheel support to AbsListView, ScrollView,
HorizontalScrollView and WebView. Shift+VSCROLL is translated
to HSCROLL as appropriate.

Added logging of new pointer events in PointerLocationView.

Fixed a problem in EventHub when a USB device is removed that
resulted in a long stream of ENODEV errors being logged until INotify
noticed the device was gone.

Note that the new events are not supported by wallpapers at this time
because the wallpaper engine only delivers touch events.

Make all mouse buttons behave identically. (Effectively we only
support one button.)

Change-Id: I9ab445ffb63c813fcb07db6693987b02475f3756
/frameworks/base/core/java/android/webkit/WebView.java
d529bfd1a45f75c3f5f8a8d52cd07260b5b700a1 15-Feb-2011 Leon Scroggins <scroggo@google.com> No radio buttons on <select>

Bug:3369625

Change-Id: Ie0ce67ad041aff5e91e2353779b82a091fddb9b6
/frameworks/base/core/java/android/webkit/WebView.java
e33cef8037cb87386e17bcf8701a47452d262fa6 24-Feb-2011 Adam Powell <adamp@google.com> Ensure WebView passes a complete/in-order event stream to
ScaleGestureDetector. Prerequisite for several ScaleGestureDetector
bugfixes.

Bugfixes for ScaleGestureDetector.

Make ScaleGestureDetector properly support >2 pointers. Track the most
recent two pointers for scale gestures.

Change-Id: I966319ad438c1c8e1103f245b53b3862c2d4e3c0
/frameworks/base/core/java/android/webkit/WebView.java
808e8f683731dceb6e1bf9486b816c9cbe11cd35 24-Feb-2011 Cary Clark <cary@android.com> Merge "center long press to account for sloppy nodes"
3ecd7db52a4e5e541526103f699a5c3fddf6fc17 24-Feb-2011 Cary Clark <cary@android.com> center long press to account for sloppy nodes

If a tap is close to, but not on a node, slop allows the tap
to find the node. Pass the slop-corrected values to
requestFocusNodeHref() as well.

bug:3412519
Change-Id: I7543354b6270976e1f99518581de23c567432b98
/frameworks/base/core/java/android/webkit/WebView.java
b611213ea1a590ba2fa70c3abb933f919b84d527 24-Feb-2011 Leon Scroggins <scroggo@google.com> Stop the blinking caret when moving to another field.

Bug:2930013

Requires a change in external/webkit.

Change-Id: Ie768efd02da0afe317c0f93e32148ceb5516a1ec
/frameworks/base/core/java/android/webkit/WebView.java
256d603d11a6ecc15550593ff13fb555c2542ca8 24-Feb-2011 Kristian Monsen <kristianm@google.com> Merge "Hiding deprecated classes and methods"
601e779ae7e19f20670b5ce008b18b3d683e4033 24-Feb-2011 Michael Kolb <kolby@google.com> make @hide actually hide

Change-Id: I84f09acd551d0dc81081322fbeda883d271f8256
/frameworks/base/core/java/android/webkit/WebView.java
75a03f9a3c142f935f6242822ebe66e21f2c56fd 24-Feb-2011 Michael Kolb <kolby@google.com> use getTitleHeight for measuring

Bug: 3473996
change getTitleHeight to be protected so that subclass
can override it
use getTitleHeight for rendering
use getHeight for clipping

Change-Id: I6e9a85d88eba176886e53b260d02082d26b410d8
/frameworks/base/core/java/android/webkit/WebView.java
f0d973131389621609dfad5befb9afe8b767e08c 12-Jan-2011 Kristian Monsen <kristianm@google.com> Hiding deprecated classes and methods

These have been deprecated for more than a yearm so hiding them.

Note that this CL was approved in honeycomb, but moved to MR1:
https://android-git.corp.google.com/g/#change,89487
/frameworks/base/core/java/android/webkit/WebView.java
0e7d652dbd7cc6415685bece745a752da39179c6 23-Feb-2011 Gilles Debunne <debunne@google.com> Removed ViewTreeObserver null checks

Change-Id: Ib11cbe188ac059cc3eaa24c178b2746a8b519918
/frameworks/base/core/java/android/webkit/WebView.java
e835fd721283853eabdfd5ea6a8055c62bfeef99 22-Feb-2011 Patrick Scott <phanna@android.com> Merge "Scroll layers on touch events."
e9290826dbf61b50441ad3ec0f42e54096b693b4 22-Feb-2011 Cary Clark <cary@android.com> don't scale nav slop when zooming

Map the nav slop from device dimensions to content dimensions
so that the nav slop is not scaled when the screen is zoomed.

bug:3465598
Change-Id: I764e7d0ef59107f3f8b3781744df532dd45005b6
/frameworks/base/core/java/android/webkit/WebView.java
cfa734a359083a518b0c37391c1a37d8c07c28a5 22-Feb-2011 Patrick Scott <phanna@android.com> Scroll layers on touch events.

Send the LayerAndroid unique id and the current scroll rect during motion up
events and all touch events.

Bug: 3442108
Change-Id: I09a18ded7b7ce15984f61a329b2666f7cfadd0dc
/frameworks/base/core/java/android/webkit/WebView.java
43f608f928cec782f0f7dad248f4430fe2581016 18-Feb-2011 Cary Clark <cary@android.com> don't start long press when selecting text

The timers to initiate short press and long press shouldn't
be started if text is selected. Since these presses won't
provide any feedback (e.g., the context menu doesn't show
up), with them disabled, the long press can turn into a
drag.

bug:3440375
Change-Id: I019796334a8f3090922747ae3c9e21d3b87b4a3c
/frameworks/base/core/java/android/webkit/WebView.java
defba0cabe800672b152f89904e4203635c74926 17-Feb-2011 Leon Scroggins <scroggo@google.com> Only give WebTextView keys if it has focus.

Bug:3460690
Change-Id: Iab82dc2c6e07a83062338ede8428e9d81ef0b949
/frameworks/base/core/java/android/webkit/WebView.java
90e711670af9a1d48aec04dda85272d8ec4334dc 17-Feb-2011 Leon Scroggins <scroggo@google.com> Merge "Keep track of which keys are pressed."
115626a656b4c6e99d8ff07a376a6d75a7416676 17-Feb-2011 Leon Scroggins <scroggo@google.com> Keep track of which keys are pressed.

Bug:3460798

Rather than using a boolean which may not work properly,
keep track of which keys are pressed and handle up for
each key that was pressed.

Change-Id: I381bf617d1752aa194d9d8e8cf8380f9a87fc334
/frameworks/base/core/java/android/webkit/WebView.java
d75fd491eaa7b10c20759a2b98ca78104c7047ce 16-Feb-2011 Shimeng (Simon) Wang <swang@google.com> Fine tune the zoom overview behavior.

issue: 3451476
Change-Id: Idc267979ae0b33f4f2fbcb9aab7739bdd1dc1eff
/frameworks/base/core/java/android/webkit/WebView.java
da7378e86e6d6e7522dfd1e83091545fa93aa84d 16-Feb-2011 Teng-Hui Zhu <ztenghui@google.com> Adding a debug setting to enable visual indicator for GL

[This is the WebView part]
The idea is to turn on the visual indicator without building the code.

The implementation included:
1. Setup the UI on browser side to check whether or not this is enabled.
2. Transfer the info from browser setting to web setting.
3. Send this info down from WebView to webkit.
4. In the webkit, we save this info in TilesManager.
5. At texture generation time, we query this info to decide whether or
not add the visual indicator on the texture.

One design decision we made is we don't want to restart the browser for
debugging purpose. This is better preserving the browser current activity,
the only pitfall is that the visual indicator is NOT updated on different
textures simultaneously.

The corresponding browser change is: #change,97058
The dependent webkit change is: #change,97052

bug:3458721

Change-Id: I34a0514048df61b414c3386b292f2586efbde74e
/frameworks/base/core/java/android/webkit/WebView.java
53a3081bd9ab03b3154147e41bf636fb09f9493b 15-Feb-2011 Teng-Hui Zhu <ztenghui@google.com> Merge "WebView's scrollBarStyle need to be set at init"
15bfa5358e5e3829cfaa1e88f7c46e93e50458e1 15-Feb-2011 Teng-Hui Zhu <ztenghui@google.com> WebView's scrollBarStyle need to be set at init

At initialization time of WebView, the View's scrollBarStyle is set
according to the xml file.
But WebView didn't pick that info up to specialize its own variable.

The fix is to call WebView's setScrollBarStyle according to the View's
ScrollBarStyle at the init() time.
This will help Gmail to pick up the scrollBarStyle from xml file
correctly.

bug:3409308

Change-Id: I3792b12a36bd989b6c31e0054ebacce4269300da
/frameworks/base/core/java/android/webkit/WebView.java
28dcdd77edd0b072f67f5db82a47cc276339a508 14-Feb-2011 Michael Kolb <kolby@google.com> Merge "Add title bar gravity"
03f00225187988952be5b2389fa99f37789725da 11-Feb-2011 Cary Clark <cary@android.com> delay action CAB until word select succeeds

bug:3442865
Change-Id: Ic13ac7abfe43b9b6d9ec1444a960ba24ed444855
/frameworks/base/core/java/android/webkit/WebView.java
c4ca53fedf6cd08103033b646d242b0a11f9e5a9 05-Feb-2011 Michael Kolb <kolby@google.com> Add title bar gravity

Enable rendering of the embedded title bar
at the top of the page or
at the top of the screen

Change-Id: Ic979b641c8cc80acb83eeab49c4f700fc5c50e72
/frameworks/base/core/java/android/webkit/WebView.java
a22a011fabc644684dfda7bcea3ec684730f49b8 11-Feb-2011 Shimeng (Simon) Wang <swang@google.com> Merge "Don't send scroll events in case of new picture from webkit."
c566185c707addffcfb8598c8b4cd8898839e7ed 10-Feb-2011 Shimeng (Simon) Wang <swang@google.com> Don't send scroll events in case of new picture from webkit.

When user goes back to a page, the new picture may potentially cause
a scroll event which overrides the history scroll position, since
the scroll position may be bigger than the initial new picture.

Setting the scroll event to be not-user-scrolled will preserve the
history scroll position.

issue: 3433562
Change-Id: Ida176a4bc3a22de0385aed71e11f8b8e0db06f24
/frameworks/base/core/java/android/webkit/WebView.java
1477b8f34d2239e58f1537d52654689a813bcfef 10-Feb-2011 Cary Clark <cary@android.com> only allow dpad center for key long press

Holding down the enter key on a physical keyboard
doesn't make sense to map to long press; the desktop
doesn't work that way either.

bug:3344108
Change-Id: Icf02940dcadf194357b680ae1e3028751d16a1ea
/frameworks/base/core/java/android/webkit/WebView.java
fa8be1cccca57f9433c3fafa50e3be3f31b44fb1 02-Feb-2011 Patrick Scott <phanna@android.com> Call window.onscroll event at the end of scrolling.

Remove some old cruft code that isn't necessary anymore. We almost always send
the scroll event to webkit except when restoring the scroll position when going
back.

I have verified that the scroll position is restored when going between pages
and that gmail receives the final scroll position.

Bug: 3187015
Change-Id: I0b1dfd1096d44247729bdd13bdad908310c2f19a
/frameworks/base/core/java/android/webkit/WebView.java
6a0b5ca11487d02c420eb09f680aafd90cb447f5 08-Feb-2011 Shimeng (Simon) Wang <swang@google.com> Fix bug: use content height instead of view height.

issue: 3396895
Change-Id: I3012fa2c48d3e215d5b877ac525fdba89c0f9251
/frameworks/base/core/java/android/webkit/WebView.java
ae7272d8cb8838a1978fa8b8e2b26eca468af61f 08-Feb-2011 Shimeng (Simon) Wang <swang@google.com> Merge "Send actual view height to webkit for window.innerHeight."
48fc9097cc5fad7e57342a1ecf584394e089c7e3 03-Feb-2011 Shimeng (Simon) Wang <swang@google.com> Send actual view height to webkit for window.innerHeight.

Currently only fixed height is sent over to webkit, which is to
avoid relayout when url bar is being scrolled.
And this fixed height is used also as the visible height and shown up
as window.innerheight, which is not correct.

This change sends the actual view height as the screen height to
webkit, so window.innerheight is correct. This may potentially
help fixed elments in a page's bottom. The relayout is still avoided
as before.

issue: 3396895
Change-Id: I0426a7d6dc76a823d8d26943a92689f49026fba8
/frameworks/base/core/java/android/webkit/WebView.java
39530f8fc7e6660b56493b9a1950bd3d697167fe 04-Feb-2011 Cary Clark <cary@android.com> am 859563eb: am aa7dc928: Merge "stop GL drawing thread before killing WebCore" into honeycomb

* commit '859563ebf7edbb6d556ef10bac7315fdc564e73a':
stop GL drawing thread before killing WebCore
4eb02a13b33a868ac323d3079cea663f50fbbddb 03-Feb-2011 Shimeng (Simon) Wang <swang@google.com> Merge "Use more accurate height/width ratio."
a0cc8642cc03f02d27d0d3c81ff7398817f47c87 03-Feb-2011 Shimeng (Simon) Wang <swang@google.com> Use more accurate height/width ratio.

When calculating the view height, use more accurate height/width
ratio, instead of the second hand ratio after height and width
are calculated and rounded.

This prevents the height value to be fluctuated by 1 sometimes
when zooming.

issue: 3385757
Change-Id: I08bf5478ae8b8fd799df892e19f450cb558d8b7f
/frameworks/base/core/java/android/webkit/WebView.java
aa7dc92838f4e3d423b2a738f54de9b83f83794b 03-Feb-2011 Cary Clark <cary@android.com> Merge "stop GL drawing thread before killing WebCore" into honeycomb
d9fd857ca9910f914dfba2502928666f7a0e3a49 03-Feb-2011 Cary Clark <cary@android.com> stop GL drawing thread before killing WebCore

The TexturesGenerator thread references pictures owned by the
WebCore thread, so must be stopped before the WebCore thread
is deleted.

Requires a companion change in external/webkit

bug:3406185
Change-Id: I5b2f8b3b52367b05301c76e5bd22a95fcd0338d5
/frameworks/base/core/java/android/webkit/WebView.java
4acac231b092981b940b7e3ec98a8fc702f8b846 03-Feb-2011 Svetoslav Ganov <svetoslavganov@google.com> Leaking connection to the Text-To-Speech service.

bug:3417215

1. Now the Text-To-Speech instance is exposed to JavaScript
and removed from JavaScript in the attach and detach from
window callbacks which is consistent with what WebView
does with its tree observer callbacks.

Change-Id: I3e084ba938ba6f13c578317129264dbcbdcf6450
/frameworks/base/core/java/android/webkit/WebView.java
e89d6418bee849880eca3bc232d1579e6f6813e4 01-Feb-2011 Leon Scroggins <scroggo@google.com> DO NOT MERGE. Only scroll if the IME is open in certain cases.

Bug:3411564

Requires a change in external/webkit.

Already submitted to master.

Change-Id: Id5b8765bde4070f04fce0743c56a038f88e816ec
/frameworks/base/core/java/android/webkit/WebView.java
c5f520aa09b75b53d212e9c23b488a343e89751f 02-Feb-2011 Ben Murdoch <benm@google.com> am 6a48ba74: am 3b8657de: Merge "Move setExpandedTileBounds from WC to UI thread" into honeycomb

* commit '6a48ba740e8d93c945ce7d829a25de2b004d0452':
Move setExpandedTileBounds from WC to UI thread
fa148f6889db3429e793dd0314f690fca4a31fe8 01-Feb-2011 Ben Murdoch <benm@google.com> Move setExpandedTileBounds from WC to UI thread

Bug: 3412928
Change-Id: I2d5c8cc1ba188152dd570ef3a0f2f2f14d64465f
/frameworks/base/core/java/android/webkit/WebView.java
e54d2dadcd44e63078e63b6314b44d689157fe57 01-Feb-2011 Dave Burke <daveburke@google.com> am 508556a8: am 84a34059: Smoother scrolling by preparing offscreen tiles (credit: Ben Murdoch)

* commit '508556a837287455e1a1181befe1ad8745613487':
Smoother scrolling by preparing offscreen tiles (credit: Ben Murdoch)
fe77eb6140541a4bfb5932cad8b8c5ac11732dfd 01-Feb-2011 Leon Scroggins <scroggo@google.com> Only scroll if the IME is open in certain cases.

Bug:3411564

Requires a change in external/webkit.

Change-Id: I0a9a1d4ff99646e006716271f2cb1cdf0ad9b778
/frameworks/base/core/java/android/webkit/WebView.java
84a34059ebee2258c77a393bba423837155aad2b 01-Feb-2011 Dave Burke <daveburke@google.com> Smoother scrolling by preparing offscreen tiles (credit: Ben Murdoch)

Change-Id: If8f6aa38174e742e869bce7144de8db84b2f7150
/frameworks/base/core/java/android/webkit/WebView.java
22e883dd4a400122003506f47b228378000dd12f 31-Jan-2011 Leon Scroggins <scroggo@google.com> For Textareas, do not use UI side layers.

Bug:3402831
Bug:3401242

Requires a change in external/webkit.

Change-Id: I391d9133b3953d213520cbba5ed49b11ebeaef2d
/frameworks/base/core/java/android/webkit/WebView.java
636ce004df692d609c6ec9bef63ca8837fd95dc9 31-Jan-2011 John Reck <jreck@google.com> Prevent SET_SCROLL_OFFSET spam from clogging tubes

Bug: 3393571
Limit the event queue to a single pending SET_SCROLL_OFFSET. The
problem on slashdot.org was that the event thread was being flooded
with SET_SCROLL_OFFSET messages faster than it could process them,
causing the handler to get jammed up.

Change-Id: Ia4a90a030959d0b3769067791089cdb261ae403a
/frameworks/base/core/java/android/webkit/WebView.java
e891a115a01d377dc17c0dd658ba23fb5d033e23 28-Jan-2011 Leon Scroggins <scroggo@google.com> Merge "Only send a direction key if we are not in touch mode." into honeycomb
fe38b7b79325782f682365ec9d1b8fe2932eec78 28-Jan-2011 Chet Haase <chet@google.com> Merge "Fix artifact with clipped webview content" into honeycomb
572ba782021389b30c61ce31e8a193c1de1d16df 28-Jan-2011 Leon Scroggins <scroggo@google.com> Only send a direction key if we are not in touch mode.

Bug:3395047

requestFocus() sends a direction key, in case the user
focused the WebView using that direction key. However,
in touch mode, the user used touch to give focus, so
do not send a directional key.

Change-Id: I052d30639d1caefd39077b0498a1e0d21c157a9a
/frameworks/base/core/java/android/webkit/WebView.java
c38b7c820af52c4d5f6f51c750136d18d9897e5e 28-Jan-2011 Ben Murdoch <benm@google.com> Merge "Implement the double tap to zoom animation with HW accleration." into honeycomb
91fc3cf3b62833515a48ceb59546200994c6af5c 28-Jan-2011 Chet Haase <chet@google.com> Fix artifact with clipped webview content

We were incorrectly calculating the webview viewport in cases
where the viewport was clipped. We now pass down null for the
viewport, which is an indicator for the native code to noop
drawGL calls with a null viewport.

Change-Id: Iecf191eb447869819e357a15a360f0f08c47c273
/frameworks/base/core/java/android/webkit/WebView.java
f3196cd70a45d14929d3b8d72cec3bdaf96cc744 27-Jan-2011 Derek Sollenberger <djsollen@google.com> Add Plugin API for controling the device power states

This is an initial API that will allow the plugin to request to
keep the screen on.

companion change is in external/webkit

bug: 3331493
Change-Id: Ic18787e7ecd705a5b2e31a34ea884fd39ad9d11a
/frameworks/base/core/java/android/webkit/WebView.java
811ba6c6a270f3ba248a61f12c3112d85da8b99a 26-Jan-2011 Ben Murdoch <benm@google.com> Implement the double tap to zoom animation with HW accleration.

Bug: 3164010

Change-Id: I6d3b5973ee0aa95dd810755263e615e226cc965b
/frameworks/base/core/java/android/webkit/WebView.java
85fd2c9102f7cf105bf498f05ca35360a4bcede5 27-Jan-2011 Michael Kolb <kolby@google.com> Merge "fix incognito url loading" into honeycomb
2c8b1f77a31c13100a0c96cc9eb8eda4d211ec35 27-Jan-2011 Michael Kolb <kolby@google.com> fix incognito url loading

http://b/issue?id=3349090
removed the loading of the "browser:incognito" url

Change-Id: I47f952d372b4d69e91d4b29b3b5e5ec46a4f4fc3
/frameworks/base/core/java/android/webkit/WebView.java
df4672643b92208b4ab7f9ab995dca8b69d3c458 26-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Final polish of WebView accessibility support for no JavaScript case." into honeycomb
8b2d4825e1d7ca22aab9ae9fdfa1ecd34f154e22 26-Jan-2011 Leon Scroggins <scroggo@google.com> Merge "Move last touch point when moving the cursor node." into honeycomb
cef1c59efca2323122c3b69b75862aecd03b56c1 26-Jan-2011 Leon Scroggins <scroggo@google.com> Move last touch point when moving the cursor node.

Bug:3241968
Bug:3387455

The code was already in place, but needs to happen before we
return if mHeightCanMeasure == false.

Change-Id: Ic07dac4c4471bf4e2189f3fee322adeb23703f41
/frameworks/base/core/java/android/webkit/WebView.java
9504f5753db3309b67e74ccecb400a18d23ca2d1 14-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> Final polish of WebView accessibility support for no JavaScript case.

1. Added tests for the new code added by change:I5a796aef

2. WebCore thread now calls the UI thread to set the cursor to
the current position enabling the user to interact with
the content that is being selected on the page.

3. Removed the code that changes the selection on movement of the
cursor ring. We are dropping the "default web view behavior"
as granularity of reading the document since with this change
a user can freely access inputs/buttons/links.

Change-Id: I7a3f6677eff0bc95e8127973d07cec78e3465c7b
/frameworks/base/core/java/android/webkit/WebView.java
c45ec3440bcdc00542e5e08cfa7ba29593cb7609 26-Jan-2011 Patrick Scott <phanna@android.com> Merge "Turn off picture splitting for now." into honeycomb
85b69e03907b99b4011ea54dc210d74249f546fa 25-Jan-2011 Patrick Scott <phanna@android.com> Turn off picture splitting for now.

Splitting the content was causing a mismatch between the base content picture
and composited layers. It was also happening on every single inval.

Bug: 3372320
Change-Id: I09da2d0f3cba028c355ceba2b4c8e34da5a77028
/frameworks/base/core/java/android/webkit/WebView.java
8801ad35264b6780697fcdcfbac0e17c7ca2d771 25-Jan-2011 Leon Scroggins <scroggo@google.com> Merge "Disable focus controller when WebView loses focus." into honeycomb
b4ffd112840c5a7fa3f6d0b51ef1806d8b8c66c5 24-Jan-2011 Leon Scroggins <scroggo@google.com> Disable focus controller when WebView loses focus.

Bug:3370821
Change-Id: Ia26a54e1c5ec050d76e60762f9a5eb4502d8c6e3
/frameworks/base/core/java/android/webkit/WebView.java
f93246923f0a8c85fddb508533d63d59977f75eb 24-Jan-2011 Huahui Wu <hwu@google.com> A few small cleanning-ups.

1. Remove mDeferMultiTouch in WebView, it was for testing only but
we don't need it now since we always pass MultiTouch to WebKit.

2. Remove the use of mDeferMultiTouch in DRT tests.

3. Correct the index of getX(Y) for the second touch point in the
debug string of MotionEvent.

Change-Id: Ib63cfc5935af1a169ed26b2b138f74908492bc18
/frameworks/base/core/java/android/webkit/WebView.java
daf98e941e140e8739458126640183b9f296a2ab 10-Jan-2011 Chet Haase <chet@google.com> Use optimized display lists for all hwaccelerated rendering

Previously, display lists were used only if hardware acceleration
was enabled for an application (hardwareAccelerated=true) *and* if
setDrawingCacheEnabled(true) was called. This change makes the framework
use display lists for all views in an application if hardware acceleration
is enabled.

In addition, display list renderering has been optimized so that
any view's recreation of its own display list (which is necessary whenever
the visuals of that view change) will not cause any other display list
in its parent hierarchy to change. Instead, when there are any visual
changes in the hierarchy, only those views which need to have new
display list content will recreate their display lists.

This optimization works by caching display list references in each
parent display list (so the container of some child will refer to its
child's display list by a reference to the child's display list). Then when
a view needs to recreate its display list, it will do so inside the same
display list object. This will cause the content to get refreshed, but not
the reference to that content. Then when the view hierarchy is redrawn,
it will automatically pick up the new content from the old reference.

This optimization will not necessarily improve performance when applications
need to update the entire view hierarchy or redraw the entire screen, but it does
show significant improvements when redrawing only a portion of the screen,
especially when the regions that are not refreshed are complex and time-
consuming to redraw.

Change-Id: I68d21cac6a224a05703070ec85253220cb001eb4
/frameworks/base/core/java/android/webkit/WebView.java
e2ff529b3f69a3d2ccd55e283f3d0e446a087ed6 22-Jan-2011 Bart Sears <bsears@google.com> Merge "b/3377597 Improve zooming performance." into honeycomb
5d4064c8633d3d6bd8e937374a1fc72be5c8383a 22-Jan-2011 Huahui Wu <hwu@google.com> b/3377597 Improve zooming performance.

Once WebKit claimed it doesn't want to consume the multi-touch events,
we remember that and handle the events in WebView directly.

Change-Id: Idfc99c16b3f4d7f4719791c64fb2355ff66aba5e
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
bc7c148285ee39f2eafbfbe98d8fbbbe4bcc53bd 20-Jan-2011 Huahui Wu <hwu@google.com> b/3350774 Enforce clearing the flag mIsHandlingMultiTouch.

b/3350774 was fixed by https://android-git.corp.google.com/g/#change,91337
But there is small chance that the flag mIsHandlingMultiTouch is not cleared
correctly. This CL enforces to clear the flag.

Change-Id: I79ba6b401a7d7b3c772d3f123912343491551507
/frameworks/base/core/java/android/webkit/WebView.java
1f30125c1c1efb1e8f2e6ce9ed79f768c243d63e 20-Jan-2011 Huahui Wu <hwu@google.com> b/3350774 avoid screen jumping when pinching to zoom.

After the change that sends multi-touch to WebKit first, there is
a chance that the single-touch move event is handled before multi-
touch events are finished and this makes the page jumps.
This change skips those single-touch move events to avoid that.

Change-Id: I03992ef18c1de8e07933bd7cc6c12ffc02c014a8
/frameworks/base/core/java/android/webkit/WebView.java
b501f77f1f2cdcfa9b190f33285a2b3a10e782a9 19-Jan-2011 Shimeng (Simon) Wang <swang@google.com> Merge "Use rounded interger to represent the last touch point." into honeycomb
1e07da3651e1234d8476e441caf34d1bb09bd581 19-Jan-2011 Shimeng (Simon) Wang <swang@google.com> Use rounded interger to represent the last touch point.

This prevents loss of delta calculation accurracy when dragging, which
was done in float and converted to integer.

issue: 3366067
Change-Id: Ia121a6ef4619c9abfb1f76a01db3272d41d02b81
/frameworks/base/core/java/android/webkit/WebView.java
aa2275e31d1ab6d672013e82a7b8da2559b0e085 19-Jan-2011 Derek Sollenberger <djsollen@google.com> Fix complex character support for plugins.

bug: 3369527
Change-Id: I48c3442d7de54589f9f9578f6375b7ad291677db
/frameworks/base/core/java/android/webkit/WebView.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/WebView.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/WebView.java
dd1173bc9be22a2bb5054a760a74d3d5e49161ed 18-Jan-2011 Derek Sollenberger <djsollen@google.com> Fix smart zoom for plugins that use OpenGL.

bug: 3331323
Change-Id: I4f1d4e0ecdb75283fc781bf5afe579f43610506c
/frameworks/base/core/java/android/webkit/WebView.java
b2601359ea8d9675266c6b72b7209b1f6fae0b89 11-Jan-2011 Cary Clark <cary@android.com> add interface to return if (x/y) is a plugin

Use the nav cache to determine if a given
coordinate corresponds to a plugin.

Requires a companion change in external/webkit

bug:3331323
Change-Id: I07d7fdfd643768d600cd6ba81165fac8b553a77f
/frameworks/base/core/java/android/webkit/WebView.java
6f6b64095093fbeece8970d3e4240745c72aef6f 18-Jan-2011 Kristian Monsen <kristianm@google.com> Motorola request to fix proxy

Change-Id: I2beecc2bef5a21294cc5fab0f11d4026f8ad3c2d
/frameworks/base/core/java/android/webkit/WebView.java
cbe397f243c4f1706cf7bbd9fcd07c1c13ccb097 14-Jan-2011 Huahui Wu <hwu@google.com> Merge "b/3348192 re-enable snap scrolling mode." into honeycomb
c010924da969a67156c6c227a6458df851072971 14-Jan-2011 Huahui Wu <hwu@google.com> b/3348192 re-enable snap scrolling mode.

Change-Id: I19c9a2afdf28367f623bd9bd6b25e822a06a215c
/frameworks/base/core/java/android/webkit/WebView.java
bfbb089c7fcb2bc74f55fe3c171ef1b6df78b2da 14-Jan-2011 Huahui Wu <hwu@google.com> Merge "b/3133123 Pass touch point ids to WebKit." into honeycomb
e838a427786f136155b618962bd18781be8e012d 14-Jan-2011 Huahui Wu <hwu@google.com> b/3133123 Pass touch point ids to WebKit.

This is the CL in framework side and it needs the WebKit part CL:
https://android-git.corp.google.com/g/#change,89627

Change-Id: I11d4ffa29fa106d918332e6983090b06726ebd36
/frameworks/base/core/java/android/webkit/WebView.java
558730510963ad80d7a539351b3f1cb16e3040c2 13-Jan-2011 Huahui Wu <hwu@google.com> Merge "b/3344966 pan following the focus point instead the first point." into honeycomb
f147d456a586cfb0de9be8ef6220c4f075189211 12-Jan-2011 Huahui Wu <hwu@google.com> b/3344966 pan following the focus point instead the first point.

Change-Id: Iaed482c7c4e8a616cbabf8c5af706b8160c880b1
/frameworks/base/core/java/android/webkit/WebView.java
1415bb7a948e0add9f6beb6dccbea70e9d2bedd0 12-Jan-2011 Leon Scroggins <scroggo@google.com> Merge "Differentiate between clicks for focus and actual clicks." into honeycomb
b45a263343d9c17d36c43d0f195ab5480e4bfa35 12-Jan-2011 Leon Scroggins <scroggo@google.com> Differentiate between clicks for focus and actual clicks.

Bug:3344162

Requires a change in external/webkit.

Change-Id: I6650a3084926fe4c241ccd7deca146e44460f29c
/frameworks/base/core/java/android/webkit/WebView.java
342bfbf94fa806be8fefa7ff905ba0a0b0b98df0 12-Jan-2011 Huahui Wu <hwu@google.com> Merge "b/3340946 Fix NPE caused by null gesture detector." into honeycomb
8465cc9d88d9511a2fe03185b6d2ac3051eddd56 12-Jan-2011 Huahui Wu <hwu@google.com> b/3340946 Fix NPE caused by null gesture detector.

Gmail use WebView without instantiating the gesture detector. The Gmail team replied that they don't need the pinch to zoom feature so we can safely skip multi-touch events for them.

Change-Id: Id60a4d4583979ef5b420fff04c4ca097c0594024
/frameworks/base/core/java/android/webkit/WebView.java
7170bb6391f233ef09fdbfd2ea9d1dd77f306e68 12-Jan-2011 Cary Clark <cary@android.com> add null check to copy selection

This prevents a toast from appearing
if copyselection is done initially.

bug:3339016
Change-Id: If6f91b8f3794b3807fb3319fc542838abd431c64
/frameworks/base/core/java/android/webkit/WebView.java
b01c3d2bf2d81d30b6b0b1f8012a2bcbbad5acd2 11-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> WebView accessibility key bindings do not allow mapping of all meta keys. Exception when turning off acessibility and having a WebView showing content.

bug:3341772

1. Now a key in the binding is represented as a long with 32 MSB for modifiers and 32 LSB for keyCode.

bug: 3340732

1. Added check in the WebView key handling code to diable the accessibility injector/injected script in
case accessibility is been disabled after loading the content.

Change-Id: Ic3746dff16ec77ba682a5b139cec0e6afd8fc839
/frameworks/base/core/java/android/webkit/WebView.java
eafbce55714dbd1f89fe8c131d9c2adcbbc9383e 10-Jan-2011 Shimeng (Simon) Wang <swang@google.com> Ignore overflow:hidden in overview mode.

The feature was enabled to prevent flash sites from flickering due to
viewport height change when the site is scrolled.

Now fixed viewport height is in honeycomb, this flickering shall be
a non-issue. So to support better scrolling of overflow:hidden sites
and better consistency, overflow:hidden in overview mode is ignored
as well.

Tested on flash site http://home.disney.go.com/mwc.index to make sure
no flickering happens. More testing shall be done once good flash
player is there.

issue: 3330038
Change-Id: Ia3f61ce49cfb970d26976d4e876c337d210a9df2
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
0904c0dcfb11da9bb756b8d4f8a817b5efc9edc0 08-Jan-2011 Huahui Wu <hwu@google.com> b/3302354 Always pass multi-touch events into WebKit, then handle them in WebView if preventDefault is not set.
WebViewCore.java: add a MotionEvent field into TouchEventData for multi-touch so the extra data such as pressure, size can be preserved.
WebView.java:
1. Extracted the common code for multi-touch and single touch to a new private function: handleTouchEventCommon()
2. Extracted the multi-touch code, including zooming and panning, to a new private function: handleMultiTouchInWebView()
3. In onTouchEvent(), single touch events keep the code path, but multi-touch events are always passed to Webkit first.
4. In Privatehandler.handleMessage(), if WebKit didn't consume the multi-touch event, the private handler calls the handleMultiTouchInWebView() to zoom and pan.

Change-Id: I3eba8812bd7cf6a298ff12e0b66223dae6725060
/frameworks/base/core/java/android/webkit/WebView.java
19abf2d7a5e05ed86e10e93cfcfd286b37a6dab8 10-Jan-2011 Leon Scroggins <scroggo@google.com> Do not store the find callback until action mode starts.

Bug:3331652

Prevents a bug where showFindDialog was apparently
called twice.

Change-Id: Ida473ef1b9b1b8b641fa3432b55d7a92eb7d0808
/frameworks/base/core/java/android/webkit/WebView.java
9cac3c31d29134f9bf4de10765b81ed45c13d31a 07-Jan-2011 Leon Scroggins <scroggo@google.com> Remove the option to use shift to start selection mode.

Bug:3329956

Also ensure that keys dispatched while the WebTextView
is attached get sent to the WebTextView.

Change-Id: Icd9125a85929089a6f376b71c1cb40e885264168
/frameworks/base/core/java/android/webkit/WebView.java
a3ee56f4ae7c55da4663ae475a60b5382ac41655 10-Jan-2011 Cary Clark <cary@android.com> add more alt key acceleration in webview

Make key accceleration exact; if alt is required,
allow only alt, and so on.

Also, set the touch point when nav'ing with the arrows
or trackball so that context menus have a point to
work with.

bug:3301564
bug:3241968
Change-Id: I574ce145941e84ac0934efd323d9db71eec11663
/frameworks/base/core/java/android/webkit/WebView.java
b9aaa776a66a7a70beb7f579898ddbe1fb4078df 07-Jan-2011 Cary Clark <cary@android.com> scroll selected text in scrollable layers

Compute whether the initial tap point is in
a scrollable layer or not. If it is, get
the bounds of the scrollable layer and use them,
clipped to the view, to determine when the
select anchor is dragged close to the layer's
edge, to invoke autoscrolling.

Fix some bugs around stopping the autoscrolling
when there is nothing to do, and when a motion
up event is sent.

requires companion change in external/webkit

bug:3191699
Change-Id: Ic9229b063a8102ec93d0cd5bcaba774cc170c106
/frameworks/base/core/java/android/webkit/WebView.java
c93fb656dc9393f194c623dc897c5352d9192544 06-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> bug:3325039 Making the cursor ring movement send accessibility events.

1. Added a mechanism to select the cursor ring content if accessibility is
enabled - This is achieved by sending an event to the WebCore thread
(if accessibility is enabled) to select the content of the cursor when
the latter moves. Added code in WebViewCore to select the given node
and notify the UI thread for the selection markup which is delivered
of the accessibility injector which manages sending accessibility
events. This is relevant for adding accessibility to WebView if
JavaScript is not enabled. (If JS is enabled we inject a screenreader
written in JS).

2. Fixed the event delegation to the accessibility injector since it
should be able to consume key events of interest and perform some
action which leads to sending appropriate accessibility event.
In the previous implementation it was possible that the injector
consumes the event but the latter was bubbled up.

3. Added function to scroll the selection into view while moving it
around based on user commands.

Note: This is a part of two project commmit.

Change-Id: Ibb81d0468726efbe3bf6e3add1b19c69e3206638
/frameworks/base/core/java/android/webkit/WebView.java
ddbda005ad6c14bac49a5548753552c8eabb0e3d 06-Jan-2011 Cary Clark <cary@android.com> pass enter key to webkit more often

If the cursor is active and on a node that doesn't want
key events, treat the enter key as a click.

Otherwise, pass key down and key up to webkit.

A companion change in external/webkit adds frames
as nodes that wants key events.

bug:3325093
Change-Id: I134d2999505925ee1e571841759cb295103b5a30
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
571354fd29db3e4855e2f179c2c6ad47f4eefd77 04-Jan-2011 Leon Scroggins <scroggo@google.com> Do not open the keyboard when opening Find from CAB.

Bug:3312049

Do not start Find on page if the action mode fails to
start. Clean up showFindDialog.

Requires a change to packages/apps/Browser

Change-Id: I204315665d3bf9f3ac78e78c4059c5a6f24695db
/frameworks/base/core/java/android/webkit/WebView.java
2cdee233125a6cc4b00a2962d5a50273d6bb5410 29-Dec-2010 Cary Clark <cary@android.com> make select all, copy text public but hidden

For keyboard accelerators, add public interfaces
to copy text and select all.

bug:3270434
Change-Id: I4a38b95a373dcf73575f66fe13b082205d2423ce
/frameworks/base/core/java/android/webkit/WebView.java
12bed78d23c28930b9340a734f633c1b860a169f 03-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> Fixing bugs 3315632 3235958, performing a clean up of the WebView accessibility feature. Updated event hadndling to deliver all key events to javaScript if a screen reader is injected since the latter is responsible for the full set of navigation and exploration actions.

Change-Id: Id1639828559161e0850dee04baa0a7afb2576ea8
/frameworks/base/core/java/android/webkit/WebView.java
122da932e0fd8a261c9440008306eba0f30693f4 28-Dec-2010 Cary Clark <cary@android.com> defer accelerator keys to hosting application

Allow the hosting application to do what they want if the
control key is pressed. In particular, let our Browser
map Ctrl-arrow to back and forward.

bug:3270434
Change-Id: I2dfa648edbf5a0e48b674df5023182b4a70985f6
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
9437d916f41be4a360db6ab983724be5d7253f28 23-Dec-2010 Kristian Monsen <kristianm@google.com> Only register one ProxyReceiver

Change-Id: I0a86a0149fd944faca775cca4360774d9cba250d
/frameworks/base/core/java/android/webkit/WebView.java
6b91b45e3151bf07d761939694c18158e4eed4fe 23-Dec-2010 Kristian Monsen <kristianm@google.com> Only store Application context

Context from an Activity are not meant to be store past the
lifetime of the Activity.

Fix for bug 3306898

Change-Id: Ib2f12cbdc3ec8aa0a6adf4770e6be4569fa6402c
/frameworks/base/core/java/android/webkit/WebView.java
41e7e6f9339cd9181df26ca96f0ac133371bc524 21-Dec-2010 Kristian Monsen <kristianm@google.com> Retrying sending proxy changes to webkit

Now checking if the ProxyProperties object is null, and if the
string returned by getHost() is null.

Change-Id: I727e26c2a41fe057501c3b610ba6fa221d16da45
/frameworks/base/core/java/android/webkit/WebView.java
77788f815374cd0d611f8be0d00b45f0e1dd45ec 20-Dec-2010 Huahui Wu <hwu@google.com> Revert "Merge "Send proxy changes on the webcore thread to WebKit""

This reverts commit ea8f4e0d667b1da70960e35f16ed371ffb4ad2ed, reversing
changes made to fd4dda8d77231db01b26686f61601a999a2d96f3.
/frameworks/base/core/java/android/webkit/WebView.java
64a2f6bd06d4df1a34b4187ff750ec559a4d0597 17-Dec-2010 Kristian Monsen <kristianm@google.com> Send proxy changes on the webcore thread to WebKit

Change-Id: I16995b4595e931715b064702ae570c387cf453f3
/frameworks/base/core/java/android/webkit/WebView.java
4190aab1c970780126f1d9db7a91579065cd6870 16-Dec-2010 Kristian Monsen <kristianm@google.com> Remove WebView leak

We were leaking the first WebView created since we kept a reference
in a static variable. Using the new way of sending messages in a
static method to avoid this.

Change-Id: Ibb665e32c22c16c17176cd69bf8f7e83fd94894f
/frameworks/base/core/java/android/webkit/WebView.java
8a4fd2f8e7f78538adad82f4c95e8746f880abcc 17-Dec-2010 Leon Scroggins <scroggo@google.com> Do not allow text selection if there is no ActionBar.

Bug:3276538
Change-Id: I060f14471e26e4bc1bf9773b847e0dbac9228426
/frameworks/base/core/java/android/webkit/WebView.java
633567468ac1d1dd4c4a46d7cc5e79a14218beb9 15-Dec-2010 Leon Scroggins <scroggo@google.com> Do not remove WebTextView when focus size changed.

Bug:3244237
Change-Id: I3302a4c0544a19f0f96bce833010889c4742a3a0
/frameworks/base/core/java/android/webkit/WebView.java
e2975f17ccd87399ecbc7b4c0ee93253706a9b6f 14-Dec-2010 Huahui Wu <hwu@google.com> b/2946595 Remove the touch events filter upon maps.google.com team's request.

Change-Id: I83966bc447f67abdce47a77cb682bc3e834184c3
/frameworks/base/core/java/android/webkit/WebView.java
861368a307cb1763b567ba90e418b1523359ee71 15-Dec-2010 Cary Clark <cary@android.com> extract anchor href and image src separately

Long pressing a link may return an anchor, an image, or an
image in an anchor. Sometimes we want one, sometimes the other.

Make both available so the context menu can choose.

Update the documentation in WebView.java

Companion changes are in external/webkit, packages/apps/Browser

bug:3282745
bug:3263340

Change-Id: I9917a2c69d26601a230051f2e95c9464ba6155e9
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
7400be47b7644c27151d79f77a10067024c96875 13-Dec-2010 Kristian Monsen <kristianm@google.com> Cleanup of private browsing files are now done in webkit

Bug 3243891

Change-Id: I51e63a96bf1c95cd8e675a3d94a4aa210418e216
/frameworks/base/core/java/android/webkit/WebView.java
5b87e296c5bd24b9df00723b51cc80f4777f413d 13-Dec-2010 Patrick Scott <phanna@android.com> Suppress scrollbars during layer fling.

Change-Id: Ia6bc1f48e464212d5b9cebef27e4527b0bc93713
/frameworks/base/core/java/android/webkit/WebView.java
5513337a4c812a6ffaed07edcf654c8bf921ad89 08-Dec-2010 Teng-Hui Zhu <ztenghui@google.com> Webview listen to Scroll event to update the viewport

In the case of unchanged layout, like replying in email/gmail,
scrolling should cause a viewport calculation update.
Otherwise, the content will be skewed.

Also, rename the mListener to mGlobalLayoutListener to avoid
confusion with added listener.

bug : 3143829

Change-Id: I7f5ee2e2cc9524e21cfffeef40b8650b6ee9a387
/frameworks/base/core/java/android/webkit/WebView.java
5e17a1a18c47d2e37e8b93582caa30d147924293 07-Dec-2010 Cary Clark <cary@android.com> don't scroll past the document bounds

bug:3260869
Change-Id: I255d2b18d738a422bd9d2948621b65e2f54ca0cd
/frameworks/base/core/java/android/webkit/WebView.java
81f19ffb943eeabddd4b04770e974a2a6825f5a8 01-Nov-2010 Steve Block <steveblock@google.com> Expose WebView.onPause() and onResume() in the public API

Also fixes up captialization of 'JavaScript' to be consistent.

Bug: 3054638
Change-Id: Ib60da17edb818c97013b399b4442f72c3bb386bd
/frameworks/base/core/java/android/webkit/WebView.java
689a342b0f8badbc87e67938f7a2fd3798e6f8eb 07-Dec-2010 Steve Block <steveblock@google.com> Add WebView.removeJavascriptInterface()

Bug: 3234178
Change-Id: I7136f8d76b20f90a7e9e1c55b6755ffe6c35b77b
/frameworks/base/core/java/android/webkit/WebView.java
6231091feb616fb4cab1bdbf4c2e23a73df69454 06-Dec-2010 Patrick Scott <phanna@android.com> Add fling to scrollable layers.

Requires a change in external/webkit.

Use the normal drag/fling pipeline but handle layers in each of the callbacks.
Record the scrolling range for a layer and use it to compute the fling/drag
ranges. If the user reaches the edge of a layer, switch to scrolling the main
page unless the user switches direction.

Change-Id: Ifedde8fcf4f76d533586164c75defcebffec16e9
/frameworks/base/core/java/android/webkit/WebView.java
dc09b5ae896fcef3e862411cf6a0208d8ff9988a 07-Dec-2010 Cary Clark <cary@android.com> check for native instance before calling

bug:3258992
Change-Id: Ia9bf7bdbbe2b5566121113174d032d316664f3b1
/frameworks/base/core/java/android/webkit/WebView.java
244d2d4e9d92afaba2cb497d035305e50f431940 06-Dec-2010 Leon Scroggins <scroggo@google.com> Delay message for <select> choice.

Bug:3230016

Pass the message after the page is set to active, which
calls a focus event, which may modify the page.

Change-Id: I594ba30a7a105595b27bc0356c164c41e48dcd15
/frameworks/base/core/java/android/webkit/WebView.java
3331f2be93902694ccda848d88b4008eb3a22baa 03-Dec-2010 Mindy Pereira <mindyp@google.com> Make webview edges behave the same way abslistview overscroll edges do.

The assets are not scaled to start before the left or after the
right edge of the view.
For the top edge, start the canvas for rendering the glow
after the title bar (if it is visible) or most of the glow
gets cut off.
Change-Id: Ia1a513fda4d1106d671919bb289aa83f8800c2c2
/frameworks/base/core/java/android/webkit/WebView.java
961d55fe00577921c9a803a315bed0a7f87544cb 02-Dec-2010 Ben Murdoch <benm@google.com> Prevent autofilling directly after autofilling.

Clear the WebTextView's data adapter after autofill fills
out the form. This ensures that the dropdown disappears.

Change-Id: I2fd1e8b5d249f6ff3943d0a0b5d2f2b55beac70a
/frameworks/base/core/java/android/webkit/WebView.java
3712754941df698a80c6aafbe0ce3c038e69403e 04-Dec-2010 Shimeng (Simon) Wang <swang@google.com> Make sure the returned web view width is at least 0.

This will fix issue 3241963; since in WebViewCore.java there's a way
to deal with a 0-width view, but not with negative width.

issue: 3241963
Change-Id: I177bee48e53ba5108889bc2c06aebffbc6cb44c6
/frameworks/base/core/java/android/webkit/WebView.java
c99821d01ab0c1cee54ccb0556e621dfe2ddb55f 03-Dec-2010 Teng-Hui Zhu <ztenghui@google.com> Fix the stretching issue when viewport change.

When native webkit code ask java to provide the visibleRect,
the calculation should not take the overscrolling into concern.

The original change was added for this issue, http://b/issue?id=2496502,
and we don't have overscroll any more, so it should be safe to
revert the original change.

bug:3212547

Change-Id: I57e3353b3277f83302ccfd9916a38aa691fa15c7
/frameworks/base/core/java/android/webkit/WebView.java
189ee18d6c6483ad63cc864267328259e2e00b95 03-Dec-2010 Dianne Hackborn <hackbod@google.com> Implement smarter sizing of WRAP_CONTENT windows.

This extends the view hierarchy's measure pass to allow view to
propagate up to their parent additional information besides just
their measured size. They can now report that their measured width
and/or height should be larger than the size their parent is
limiting them to (even though by definition they need to contrain
their reported measurements to the limits imposed by the parent).

ViewRoot uses this information to determine if it should remeasure
the window with a larger size limit to try to make it fit.

Change-Id: I90af3b7a8ec45d0a5c003fb009857025209d83eb
/frameworks/base/core/java/android/webkit/WebView.java
32820249adbcacb7a7a1d35f22a892badda03f3e 03-Dec-2010 Cary Clark <cary@android.com> abandon long press on scroll; clear hit on keydown

If the application scrolls the webview without allowing
WebView.java to receive the motion event, stop any long
press timer in progress. This prevents select text from
appearing in applications that host webviews and do their
own flinging.

If the cursor is moved with the dpad or trackball,
reset the hit test state used by long press. This allows
cts tests to run reliably; they emulate key presses
to move between links.

bug:3250291 (app fling)
bug:3241830 (cts fail)
Change-Id: Ida364051ffa090455ddc6c3c3dd41baea5615293
/frameworks/base/core/java/android/webkit/WebView.java
2f492277eac43ce0b0a064d509c3016674e25a27 03-Dec-2010 Patrick Scott <phanna@android.com> Attempt to scroll layers everytime the user drags.

This allows the user to continue scrolling a layer even after reaching the end
of it. Only pin the fling velocity in the direction of the fling. This is
preparation for flinging layers.

Record the inval region when updating layers so that the new layer will draw.

TODO: Keep track of whether the user started on a layer to prevent scrolling a
layer if the user drags across one.

Bug: 3022562

Change-Id: I25f84497a67dfb1e0fc424207f6c97817715501c
/frameworks/base/core/java/android/webkit/WebView.java
544295eebc1257e8c37b80b1ea7605a7915f0f06 02-Dec-2010 Steve Block <steveblock@google.com> Update WebView.addJavascriptInterface() to ignore null instances

Bug: 3247571
Change-Id: If6a108fe926e45dc3e298f197f6534c575c560e2
/frameworks/base/core/java/android/webkit/WebView.java
a7f76874f5493e6f18be91c1d13e572d68f1dd20 29-Nov-2010 Teng-Hui Zhu <ztenghui@google.com> Use the globalLayout to notify the GlViewport change

Given the fact that our optimization is enforced to avoid sending
the onLayout message down to webView, utilizing the globalLayoutChange
message seems like the best solution here.

http://b/issue?id=3103077

Change-Id: I9a2d5576454641802019a5eeb64908026b40dd9b
/frameworks/base/core/java/android/webkit/WebView.java
e6fb0f1d7cb90b00abc2d6ecac1442d23856f0f1 24-Nov-2010 Teng-Hui Zhu <ztenghui@google.com> Properly set the viewport for WebView when using GL

This is the first step, get the calculation right.
We still need to get the right message handling to get
the correct animation in Gmail .

http://b/issue?id=3103077

Change-Id: I3ed186b62ddb285e92a71d3ba5c02d4965068282
/frameworks/base/core/java/android/webkit/WebView.java
2ac445cbb736f405695abaed1232969a4e2c7728 01-Dec-2010 Leon Scroggins <scroggo@google.com> Do not remove the embedded title bar when starting Find.

Bug:2927138
Change-Id: I97adb4431aedca172a5951d727ad559de5101924
/frameworks/base/core/java/android/webkit/WebView.java
4b90378af027dcaa8deed84f3295169c48468573 30-Nov-2010 Patrick Scott <phanna@android.com> Allow one finger to scroll layers.

TODO: Add velocity.
Change-Id: I548ef6332b260a2aecc39422012523cb6f8e2523
/frameworks/base/core/java/android/webkit/WebView.java
4a2fe17fef94fac3543e3c6345b55616a4db94f5 01-Dec-2010 Cary Clark <cary@android.com> start drag of text selection on initial press

bug:3182813
Change-Id: Id27b1caa31881ce543d395461f0504d894cf0403
/frameworks/base/core/java/android/webkit/WebView.java
e41bb535a3aefa3f830d828f7f0ebfa6aee60f20 30-Nov-2010 Cary Clark <cary@android.com> pass the x and y to retrieve anchor data

During a long press, the original pointer to the
node and frame may change. Pass the location instead
to attempt to find the anchor.

companion change is in external/webkit

bug:3240869
Change-Id: Id86107c1f8ce8680786163c1030421dbec062036
/frameworks/base/core/java/android/webkit/WebView.java
45991bc13fd705044af2e7f3aa194e72e51f493f 01-Dec-2010 Ben Murdoch <benm@google.com> resolved conflicts for merge of d2607118 to master

Change-Id: Id6092a762af775e9b5db390feaba3e10bd98ef7c
f7f07e5762ad45d3b16c3450e7fb051c0da4162a 30-Nov-2010 Michael Kolb <kolby@google.com> Fix page scroll during text selection

Bug: 3190609
Leave embedded title bar in place during text selection CAB mode

Change-Id: I7140241ac7eeb442cfe7665580525d8cdfce220f
/frameworks/base/core/java/android/webkit/WebView.java
d2607118edf7a5204181dd118dd2f64d1d5b12c4 30-Nov-2010 Ben Murdoch <benm@google.com> am 27e728f2: Merge "Hide plugin views when we start playing HTML5 video" into gingerbread

* commit '27e728f22d954caa7252be6c19a67a9277e1db3b':
Hide plugin views when we start playing HTML5 video
b849134c1e4d2400e1241d293f3835fc8ef02eb5 29-Nov-2010 Cary Clark <cary@android.com> use the original hit if the cache is killed

The nav cache may not have a cursor set if it is
rebuilt while the long press timer is running. Use
the original hit test data in this case.

bug:3198707
Change-Id: I795a3afb31de3667b3a69abbe898381912806802
/frameworks/base/core/java/android/webkit/WebView.java
6f5dfc6b3c18752a3123e7e8b7a801ef3d55d5a4 11-Nov-2010 Cary Clark <cary@android.com> scroll the selection when dragging near the edge

Also move a debug statement so it can report the
extra selection choice.

This does not scrolls overflow divs for now; once
Pat has that code checked in, this can adapt to
work for that as well.

requires a companion change in external/webkit

bug:3186988
Change-Id: I071ecd31d589e9ef715d2ecb12b1768696075686
/frameworks/base/core/java/android/webkit/WebView.java
5fd5d74f794cc92d24882803dcf355ac24e01ac4 26-Nov-2010 Steve Block <steveblock@google.com> No longer need to pass storage paths to WebRequestContext.cleanupPrivateBrowsingFiles()

Requires the following changes to external/webkit and packages/apps/Browser
https://android-git.corp.google.com/g/81781
https://android-git.corp.google.com/g/81780

Bug: 3232569
Change-Id: I0247f3db25edfdc95363a5a94296458b20456a46
/frameworks/base/core/java/android/webkit/WebView.java
0df0269832a5a400d5c103457ade32b1f9734a3b 24-Nov-2010 Cary Clark <cary@android.com> defer resume while selecting text

Allow scrolling, dragging, zooming to process normally
while selecting text, but prevent them from resuming
the webkit update until the selection is done.

Also, resume the webkit priority when resuming the
updates.

bug:3226364
Change-Id: Idfad6b63b6eb02208f977d89a8409377e9d731e7
/frameworks/base/core/java/android/webkit/WebView.java
4c3ce84864407abb85964eb09cb566bc1f164076 24-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3226108 - WebView would not update content properly after a fling.

Change-Id: Ie5d163740ab1b919fef497c06caeb6807db0df52
/frameworks/base/core/java/android/webkit/WebView.java
3ebb51daa4da3a11782b505860ac3d0457bdf9e9 12-Nov-2010 Huahui Wu <hwu@google.com> b/3186860: fix failing layout tests:
fast/events/touch/basic-multi-touch-events-limited.html
fast/events/touch/touch-target-limited.html

Change-Id: I55ecc9944c888a005885704e296de7b7513a8172
/frameworks/base/core/java/android/webkit/WebView.java
c5cd5e9079955fa43ba4b75d3d2d5935419df61b 22-Nov-2010 Cary Clark <cary@android.com> cancel text selection on rotate

Rotating the screen may cause it to layout differently. The
selected text may be hard to match or may not be visible at
all. Cancel the text selection mode when a rotate is detected.

bug:3205291
Change-Id: If7e8f98a1cc396bf21f8261f2a7b4a342907ef2f
/frameworks/base/core/java/android/webkit/WebView.java
637d337b58d8eec6de19230a5dd5ca5581c0478d 25-Aug-2010 Adam Powell <adamp@google.com> Merge overscrolling from gingerbread.

Change-Id: I3eb4413261b38ddd8c609d6153bdfd4ae46c6a0f
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
fc8bf749dab43b7e2d43e7fe23440cc6d66cbc41 22-Nov-2010 Cary Clark <cary@android.com> add select text to context menu

Make select text available as an external interface
so that the browser can initiate it from a context
menu.

Interface is marked hidden pending API council approval.

companion change in packages/apps/Browser

bug:3214410
Change-Id: I7d513a38cc3a5ac9c0d1b3be39c02e0835bea90a
/frameworks/base/core/java/android/webkit/WebView.java
b62f8a5450f1d1192c524746df8900f1bf7e1848 22-Nov-2010 Ben Murdoch <benm@google.com> Fix potential NPE in L10nUtils.

It is possible that a call to the L10nUtils class will
come before it has been properly initialised (if the
user highlights a form very quickly onload for example) so move
the initialisation earlier in the WebView ctor so that it is
set up before the WebCore thread is started.

Change-Id: Iff5a1c16d04c47d001146184f753d2cc0cbbb404
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
0a3ab5d632e16ef86bdc05bc45a16b016f02e3f1 19-Nov-2010 Dianne Hackborn <hackbod@google.com> Goodbye title_bar_shadow.

May you rest in HELL.

Change-Id: I1e9e5f509a7860e4aeb4f6598b8c6551a59a8714
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
1e8e10db3f17558b23f5cbef986f3289cc917bc6 17-Nov-2010 Cary Clark <cary@android.com> don't put up a context menu while selecting text

Move the check for selecting text before calling
the parent, so that the context menu isn't an
available option.

bug:3205306
Change-Id: I5d2c3f6b71c74cda56153fbc773eb5be98e44be7
/frameworks/base/core/java/android/webkit/WebView.java
1bf397ffbdaae9a5354c9bb0b5121c4a9f1c8c76 16-Nov-2010 Leon Scroggins <scroggo@google.com> Do not retry failed attempts to retry scrolls.

Bug:3174399

If the page requests to scroll beyond the edge of the
screen, we send a message to try again on a draw, in case
our picture is out of date and the page should be larger.
However, sometimes we get stuck in a loop of retrying the
same scroll position over and over again. End this loop.

Change-Id: I53fcd4c2fa70c7ef63d4537d8b24eabb6b924b0b
/frameworks/base/core/java/android/webkit/WebView.java
d89a30af1f37317a51088a207dda865a2f60c83a 16-Nov-2010 Kristian Monsen <kristianm@google.com> Move getDatabaseDirectory and getCacheDirectory to a new class

The reason for this is that the CookieSyncManager might not be
initialized right after a webview is created since the initialization
is done with a message.

If someone creates a webview and tries to access a cookie right
afterwards that would cause an unintended exception.

This requires a change in external/webkit

Bug 3172863

Change-Id: I4f4f162253e2af09f63ee582bfce9f75ccf4037b
/frameworks/base/core/java/android/webkit/WebView.java
9b756acfbd55b901e37766b034e7af3ad08dc757 05-Nov-2010 Svetoslav Ganov <svetoslavganov@google.com> Metakeys incorrectly delivered to JavaScript

Change-Id: I373eee0c4eb44c2dfd1e8534f5cb241e0c04a473
/frameworks/base/core/java/android/webkit/WebView.java
21a97ef9f2d907f910f4a5f5cff6f321aca825d3 16-Nov-2010 Cary Clark <cary@android.com> make tap initiated scrolls more reliable

Programmatic scrolls fail when the scroll has not had a chance
to start. In this case, the current position equals the last
position; the logic erroneously cancels the scrolls, assuming
that in this case the scroll has finished.

Also, new scrolls should cancel the old velocity whether they
are animated or not.

This has a companion change in external/webkit, which is not
required, but makes tap initiated scrolls work more reliably.

bug:1331125
bug:3099569
Change-Id: I80ae8e8cdefce2d8d09532f79d1b2e1ae4738fa6
/frameworks/base/core/java/android/webkit/WebView.java
56a102c02e7af0f8a9a52b2a33452abaeeacb1da 12-Nov-2010 Leon Scroggins <scroggo@google.com> nativeFocusCandidateTextSize now returns a float.

Bug:3085564

Requires a change in external/webkit.

Change-Id: Id2960226766e87b4d0ff364c2e5b3bee6b6757ad
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
ef7af2897530f556e2353a35a00da2fcd1666639 11-Nov-2010 Leon Scroggins <scroggo@google.com> Ensure that text passed in is non-null.

Bug:3183112
Change-Id: Icf00e2793cb9b62dd0ebb4f60b8ddcafea3e581f
/frameworks/base/core/java/android/webkit/WebView.java
1708ad53c3669b72d20724e52301eecd35e86377 11-Nov-2010 Ben Murdoch <benm@google.com> Hide plugin views when we start playing HTML5 video

Plugins like Flash draw directly to the screen on top
of all other views - including the fullscreen HTML5 video
view. This means that if you start an HTML5 video on a page
also serving a flash clip then flash will obscure the video.

This patch hides plugin views before start the video and shows
them again when the VideoView is destroyed.

Bug: 3183521
Change-Id: I9839c47e9d64b081651b952057e9283630362b29
/frameworks/base/core/java/android/webkit/WebView.java
7f7bd525680ec5f3c0437993b8016f7cad70f29e 05-Nov-2010 Leon Scroggins <scroggo@google.com> Disallow scroll intercepts while changing text selection.

Bug:3107564
Change-Id: I81d173b3d7b6fdbe335ef351917402fc01a4c52e
/frameworks/base/core/java/android/webkit/WebView.java
01b04e10df00dcf16bfb92f88b3b1932f579632e 08-Nov-2010 Ben Murdoch <benm@google.com> Fix potential NPE in WebView

New up and initialise the data structure for tracking autofillable
form fields properly. We should not wait for the first autofill
message from WebCore as we have some special state values we need
to set.

Change-Id: Ic30b9ac69436f784d65e50dcabe6af1ef3326ff4
/frameworks/base/core/java/android/webkit/WebView.java
4debfcb3d49ada0386c4ae496e9e4cf573ef4a57 05-Nov-2010 Cary Clark <cary@android.com> Don't draw the selection pointer on long press.

bug:3169375
Change-Id: I76cedf0951213c1ee869ccbaa97938f0c6385942
/frameworks/base/core/java/android/webkit/WebView.java
f3e5fcc91734d8e39b396f1b70b9903a6b3dd2c0 05-Nov-2010 Patrick Scott <phanna@android.com> Fix the build and scrollable layers gesture.

Change-Id: I06f7c379f187df982ac82c9a52cc643358987085
/frameworks/base/core/java/android/webkit/WebView.java
db8d19c9cb6b3f0d595831a8fd648c468e70dfa6 29-Oct-2010 Ben Murdoch <benm@google.com> Display the AutoFill preview string in the drop down box.

Native code now provides us with a preview string as well as
an autofill query id. Display the preview string in the
drop down box.

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

Change-Id: Ia5e26b98546cda1090142f1720f6a7836be6595c
/frameworks/base/core/java/android/webkit/WebView.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
553812178ad3dccc467a6a96ff0a7e246da52e8e 01-Nov-2010 Leon Scroggins <scroggo@google.com> am 3073646f: Merge "Update insertion handler for WebTextView." into gingerbread

* commit '3073646f61dcbbfe5c9e65b8e3a1d9266c3f7276':
Update insertion handler for WebTextView.
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/WebView.java
ffcc49eb420e70e57e7bcef28a01e4c04ba8ab77 28-Oct-2010 Ben Murdoch <benm@google.com> Add a class that stores localised strings used by libchromium.

These are loaded by the first WebView to be instantiated and read
over JNI by libchromium in external/chromium/android/app/l10n_util.cc

Change-Id: I43d6e5a061691689d28cba2697fedcd27548af08
/frameworks/base/core/java/android/webkit/WebView.java
7e6bf6ff0f585a12e9c1effc5755137b2612a709 28-Oct-2010 Derek Sollenberger <djsollen@google.com> Rename some variable to make it clear what data is being stored.

The object that carries drawing data between WebViewCore and WebView
uses ambiguous variable names that do not fully convey the meaning
of the values. This change updates those names to make it clear to
the reader what the intention of those values is.

Change-Id: I5a403d44881e1fad366f3ec9930ee59134eccd88
/frameworks/base/core/java/android/webkit/WebView.java
81bd788ecf1cd2f460c19f9a29464ee00f5ef8cf 26-Oct-2010 Leon Scroggins <scroggo@google.com> Make sure nativeMotionUp is called.

If someone sets mLogEvent to false to prevent logging,
nativeMotionUp will not be called, so touches to WebView
will no longer work. Make sure this does not happen.

Change-Id: Ie79ccc68677cea2f686f7c7da734bf719910f583
/frameworks/base/core/java/android/webkit/WebView.java
346f97f82f5515a283f0fadaa819f7442472d962 25-Oct-2010 Shimeng (Simon) Wang <swang@google.com> Fix the viewport height to view height when title bar is visible.

issue: 3097787
Change-Id: Ie685a94262cecd94f32dbb94991fea76ceb43b94
/frameworks/base/core/java/android/webkit/WebView.java
50b1034d35e6582d7587d429b90886530c70ae8f 22-Oct-2010 Shimeng (Simon) Wang <swang@google.com> Pass whether a scroll is user-scrolled or not to webkit.

This is to eliminate false scrollEvent to webkit. And the side effect
is that the history scroll position will be correctly restored;
otherwise, webkit think there's user scrolled and not send back history
scroll position.

Particulary for NEW_PICTURE_MSG from webkit, the scroll event because of
it are not user-scrolled.

issue: 3063945
Change-Id: I9fdbfcb8baf07baf2331e2c4eed66f88aea744ef
/frameworks/base/core/java/android/webkit/WebView.java
f8ca2d71d50c7568e2edd16edeaa3412fa445bd2 21-Oct-2010 Leon Scroggins <scroggo@google.com> Do not call WebTextView.requestFocus if WebView is not focused.

Bug:3118097
Bug:3039912

Change-Id: I4c43f394c9dc3c9db58fb744d588dfb36f3221f4
/frameworks/base/core/java/android/webkit/WebView.java
4f4a567217158b26231867f55bba75d711436c0b 19-Oct-2010 Leon Scroggins <scroggo@google.com> Tell nativeFindAll whether the new search matches the last one.

Bug:3108852

Requires a change in external/webkit.

Change-Id: I4333532b4febfa9e832272cf903c3f96ebff0203
/frameworks/base/core/java/android/webkit/WebView.java
6018745fb7d61f456f3fd96e79d03de28cd40a07 18-Oct-2010 Adam Powell <adamp@google.com> am 9f85ef4a: Merge "DO NOT MERGE Fix bug 3107560 - Edge glow appears delayed in WebView" into gingerbread

Merge commit '9f85ef4aebf510546355866b7cc458551ae3aa7f' into gingerbread-plus-aosp

* commit '9f85ef4aebf510546355866b7cc458551ae3aa7f':
DO NOT MERGE Fix bug 3107560 - Edge glow appears delayed in WebView
48b99ace195035286df604636f04860b2a0ee1f4 18-Oct-2010 Adam Powell <adamp@google.com> DO NOT MERGE Fix bug 3107560 - Edge glow appears delayed in WebView

Change-Id: I7f31270c713cdfa3b49f7e9f8d8457c77067516a
/frameworks/base/core/java/android/webkit/WebView.java
af95d12b12056b4f88cbb35e61209a953739009b 15-Oct-2010 Leon Scroggins <scroggo@google.com> am c7ee44cb: am dfc07279: Line up WebTextView text with the page.

Merge commit 'c7ee44cbe155c2272687a0e82133f3e729eac137'

* commit 'c7ee44cbe155c2272687a0e82133f3e729eac137':
Line up WebTextView text with the page.
12c18e691c27375b75d8929d3a3dab0300ba2533 14-Oct-2010 Nicolas Roard <nicolas@android.com> Fix embed webview

Change-Id: Iac8b3aeb7e5370ce06a3437684e21e8a7fcf7c73
/frameworks/base/core/java/android/webkit/WebView.java
c9332fa3e9e9e0897482a9c26cf9d997e57376b7 13-Oct-2010 Bjorn Bringert <bringert@android.com> Delete unused WebView drag tracking code

This also removes android.graphics.utils.BoundaryPatch
which was only used by the Browser for the unused drag
tracking (and by a demo app that I'm also removing).

Change-Id: I48253ae005ab11cb4c70d132bc1ea4f2692e2bd2
/frameworks/base/core/java/android/webkit/WebView.java
baf5608941ae4de2bb5620fc81291f33da9d57ac 14-Oct-2010 Mindy Pereira <mindyp@google.com> am 998c6777: Merge "Never show overscroll if the page scrolls at all." into gingerbread

Merge commit '998c67774aa2260ed05a39df45d983feb72e683c' into gingerbread-plus-aosp

* commit '998c67774aa2260ed05a39df45d983feb72e683c':
Never show overscroll if the page scrolls at all.
22c5ff22822beefa4426015dafb42698cf535d94 14-Oct-2010 Mindy Pereira <mindyp@google.com> Never show overscroll if the page scrolls at all.

Fixes b/3092852 Tune overscroll in web views that can scroll both horizontally and vertically

Change-Id: I92cb6d1fa7d2034837654f2d2ddb7c3c997ce893
/frameworks/base/core/java/android/webkit/WebView.java
67a9f2ab97086349e8fda9ce31f6ed7859d4a9cc 07-Sep-2010 Nicolas Roard <nicolas@android.com> GL Rendering

This is a two-parts CL, Its counterpart is https://android-git.corp.google.com/g/#change,71690

Change-Id: I8ebe7f3bce84e76c903908768d010f46f3a30a4c
/frameworks/base/core/java/android/webkit/WebView.java
c7ee44cbe155c2272687a0e82133f3e729eac137 13-Oct-2010 Leon Scroggins <scroggo@google.com> am dfc07279: Line up WebTextView text with the page.

Merge commit 'dfc07279fc6205c38f5f39cb5ba4f0aef6b593a4' into gingerbread-plus-aosp

* commit 'dfc07279fc6205c38f5f39cb5ba4f0aef6b593a4':
Line up WebTextView text with the page.
dfc07279fc6205c38f5f39cb5ba4f0aef6b593a4 12-Oct-2010 Leon Scroggins <scroggo@google.com> Line up WebTextView text with the page.

Bug:3085564

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

Change-Id: I4c3fa1314bdac39cc071f583a418c433ea897de8
/frameworks/base/core/java/android/webkit/WebView.java
2b87dbc3b89f19bd5cde58b2b178cb7be50d77f9 13-Oct-2010 Adam Powell <adamp@google.com> am c417612a: Merge "Fix bug 3083631 - Links no longer get tapped during scale gestures" into gingerbread

Merge commit 'c417612a1abb6281697a9738a1a19eb8814ae8a6' into gingerbread-plus-aosp

* commit 'c417612a1abb6281697a9738a1a19eb8814ae8a6':
Fix bug 3083631 - Links no longer get tapped during scale gestures
d7bd2eb0321936e377592be9039de957b8794ab1 13-Oct-2010 Adam Powell <adamp@google.com> Fix bug 3083631 - Links no longer get tapped during scale gestures

Change-Id: I57bf740c5063f30d763fc720a3ad77edff20f867
/frameworks/base/core/java/android/webkit/WebView.java
9c9430b30f31713971d8f9f53df9588a3ba01340 12-Oct-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of e69f1f1a to master

Change-Id: I32b34e4f6ae83ff40398c6e9e2881af12abc4aa8
e69f1f1a748da99c82bcb56f6c7107a5618ba906 11-Oct-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of e3cfd35b to gingerbread-plus-aosp

Change-Id: I2f90572163e7cb98e4e2762998a2ac63cc267dea
5ffbb81e20ceb1ad1bac4fb87906bd25bcf0c694 08-Oct-2010 Cary Clark <cary@android.com> Check mNativeClass != null in public functions

Change-Id: I74ec88626458870cf4d76d0bfe17e65f603977ef
http://3033688
/frameworks/base/core/java/android/webkit/WebView.java
ee7e0efcc1314b994ba70d91f6e8fa951044c916 06-Oct-2010 Adam Powell <adamp@google.com> am 59c4cb9e: Merge "DO NOT MERGE Fix bug 3001751 and bug 3001584 - Gingerbread API review for over-scroll" into gingerbread

Merge commit '59c4cb9e8fee03f770aa0fa1a2f0ec84ffb945b8' into gingerbread-plus-aosp

* commit '59c4cb9e8fee03f770aa0fa1a2f0ec84ffb945b8':
DO NOT MERGE Fix bug 3001751 and bug 3001584 - Gingerbread API review for over-scroll
737e8fe2c7ce167bc68ad779160488007a5e0b1d 05-Oct-2010 Adam Powell <adamp@google.com> DO NOT MERGE Fix bug 3001751 and bug 3001584 - Gingerbread API review for over-scroll

Change-Id: If34c8ea4e15697420adad0bc404f3c278efd7c1b
/frameworks/base/core/java/android/webkit/WebView.java
0ae2ec88ec8f170cb5548d52bf89fa744b390991 16-Sep-2010 Mattias Falk <mattias.falk@sonyericsson.com> Dismissing AlertDialog before destroying WebView.

Added dismiss method for the Alertdialog in destroy to avoid
a leaked window.

Change-Id: Ia6a6e733b8bdd583dae15b854e4d69ef4f5cbff1
/frameworks/base/core/java/android/webkit/WebView.java
fa89c50ae7ca06b3a9c42ee8d4b8eea6567b5e2e 01-Oct-2010 Derek Sollenberger <djsollen@google.com> Ensure full screen plugin is dismissed when necessary.

Dismiss the full screen plugin view when the user navigates to a
new page or tab. This ensures the plugin does not cover up new
content when the browser switches tabs or loads a new URL.

Change-Id: I35d65073dbc772ab5babd20287d4d2fe598178e5
http://b/2908332
/frameworks/base/core/java/android/webkit/WebView.java
8aeeda9123783807a5dcb44133dc30b94ea7be1e 28-Sep-2010 Andy Stadler <stadler@android.com> am cb6f29eb: am a16682b5: Merge "Allow touch events when clickable *or* longClickable" into gingerbread

Merge commit 'cb6f29ebc6a8cde6ed600d233e23b962d06ea43f'

* commit 'cb6f29ebc6a8cde6ed600d233e23b962d06ea43f':
Allow touch events when clickable *or* longClickable
cb6f29ebc6a8cde6ed600d233e23b962d06ea43f 28-Sep-2010 Andy Stadler <stadler@android.com> am a16682b5: Merge "Allow touch events when clickable *or* longClickable" into gingerbread

Merge commit 'a16682b5e8ed635910eada23272ba6548922c02e' into gingerbread-plus-aosp

* commit 'a16682b5e8ed635910eada23272ba6548922c02e':
Allow touch events when clickable *or* longClickable
f2e17a86833b051b3ed3d82537f543c073468881 24-Sep-2010 Leon Scroggins <scroggo@google.com> Hide the soft keyboard when a textfield is blurred.

Bug: 2953257

Requires a change to external/webkit

Change-Id: I8ca82dc7cb6bc1494400f5e5c38050023c94a513
/frameworks/base/core/java/android/webkit/WebView.java
5c23ebadd48c8c3190878030a9974f1ff36b0419 28-Sep-2010 Steve Block <steveblock@google.com> Update the storage locations used by the Chromium HTTP stack

This updates the strorage locations to better match those used by the
Android HTTP stack.

The corresponding external/webkit change is
https://android-git.corp.google.com/g/70643

Bug: 3039536
Change-Id: Ia7ea68d1472e96788a7fbaa6e8f7aa1ee51b3fb0
/frameworks/base/core/java/android/webkit/WebView.java
b34fd1ff5c3e363a845fee8e18f11951e41fbd0a 28-Sep-2010 Andy Stadler <stadler@android.com> Allow touch events when clickable *or* longClickable

This matches more closely the behavior or View.onTouchEvent()

Bug: 3036477
Change-Id: I8a9135da7f9aeeb1e0537dce15295049013a0243
/frameworks/base/core/java/android/webkit/WebView.java
560ba6e1a9dbd8a57fdee2040185981162ed09d6 27-Sep-2010 Mindy Pereira <mindyp@google.com> am 08c09b0f: Merge "DO NOT MERGE. Only 1 edge glow should be growing at a time." into gingerbread

Merge commit '08c09b0f84b23627b4cd02e1b9a642952fbd2e7f' into gingerbread-plus-aosp

* commit '08c09b0f84b23627b4cd02e1b9a642952fbd2e7f':
DO NOT MERGE. Only 1 edge glow should be growing at a time.
7d4995d250a771b9705286e28fa4be7afbd44722 27-Sep-2010 Mindy Pereira <mindyp@google.com> DO NOT MERGE. Only 1 edge glow should be growing at a time.

When a user action starts a new edge glow (on pull or absorb), cause
the edge glow on the opposite side to decay.
Fixes b/ star 3028395 Yellow color bar is displayed when user reaches the end of the message and keeps scrolling in Gmail.

Change-Id: Id06e00d1843b0467f6f9149c22b233e639fc55ac
/frameworks/base/core/java/android/webkit/WebView.java
41865f4b0c5670369bf957ad72a867757fc6b356 02-Sep-2010 Huahui Wu <hwu@google.com> Bug 2372180: pass multi-touch events from browser to webkit.
Since the UI uses multi-touch for zooming, the event is passed to webkit
only when the webpage doesn't allow zooming.
1. Updated the data structure TouchEventData in WebViewCore.java
to take multiple points and used it everywhere.
2. Added a passMultiTouchToWebkit() function to do what its name means.
3. Added the multi-point touch support to dumprendertree.

Change-Id: Iafc1aa7b21a587ad26efd2f124b9a66316297ab8
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
27c65e26c9b395e5cc5db63ea7a1443bb91e8118 22-Sep-2010 Cary Clark <cary@android.com> am dd8f13fa: Merge "Do not merge: clear text selection on rotate" into gingerbread

Merge commit 'dd8f13faf1cb8ad7a5f2573f09fe8436ec8a4ac2' into gingerbread-plus-aosp

* commit 'dd8f13faf1cb8ad7a5f2573f09fe8436ec8a4ac2':
Do not merge: clear text selection on rotate
ef60890ee215db4405df6bd7f0b94c1cb7028745 22-Sep-2010 Cary Clark <cary@android.com> Do not merge: clear text selection on rotate

Change-Id: Ic7cb33d830779a75dc6e71db064ceac3c1f90298
http://b/3025142
/frameworks/base/core/java/android/webkit/WebView.java
100cc263b465242c01dc9eb280d77ffaadbddd39 21-Sep-2010 Cary Clark <cary@android.com> am b5631f59: Merge "Do not merge : cancel text select mode when pressing back, etc." into gingerbread

Merge commit 'b5631f59d3b0411ed493dc382bb96ab15ca3304d' into gingerbread-plus-aosp

* commit 'b5631f59d3b0411ed493dc382bb96ab15ca3304d':
Do not merge : cancel text select mode when pressing back, etc.
2fddc21a466dfa97a86c4fae5c40662d75547ea5 21-Sep-2010 Cary Clark <cary@android.com> Do not merge : cancel text select mode when pressing back, etc.

This was taken from scroggo's excellent change
https://android-git.corp.google.com/g/#change,68114

Change-Id: Idd18e08f1aaeb2fee47bfeed9e7d57e38cb1c62f
http://b/3000317
/frameworks/base/core/java/android/webkit/WebView.java
a3bec150bf1203e9a7cd8a6573db79a75cd6855a 21-Sep-2010 Cary Clark <cary@android.com> In clearView(), see if native exists before calling it.

Change-Id: I069678ef8f4dbdb6b62109c53b352127f5eec7cf
http://b/2999966
/frameworks/base/core/java/android/webkit/WebView.java
14bcc0e7fe4e2cfddb0d98079ec0fbdbe33c5e87 17-Sep-2010 Shimeng (Simon) Wang <swang@google.com> Use website preferred width as the fixed viewport.

This preferred width will be set between the default viewport width and
the max fixed viewport width. The default viewport width serves as the
minimum fixed viewport width, so it's lowered to 980.

This change will make the shirt.woot.com/blog site works better, since it's using
1080 as the preferred width, so user needs not to scroll in overview mode.

issue: 3003933
Change-Id: Ie3eed44a54d277f5bc5f63cd394d463012a80d80
/frameworks/base/core/java/android/webkit/WebView.java
05919f2133f8af89ab69c3a39aa34c6a32e78f05 14-Sep-2010 Leon Scroggins <scroggo@google.com> Exit action mode when destroying the WebView or loading.

Bug: 3000317

Change-Id: I7f131d5c159058c33c3249ee4e0fee3a667ec6d8
/frameworks/base/core/java/android/webkit/WebView.java
7924a4a3a032f97fb587732d188513adec1420a4 14-Sep-2010 Shimeng (Simon) Wang <swang@google.com> Fix comment.

Change-Id: I927565aadc7f4a5aac6c0a11c28210440600e8a4
/frameworks/base/core/java/android/webkit/WebView.java
4de4f09e8ed95255c1077cfbbaf018877221455d 13-Sep-2010 Shimeng (Simon) Wang <swang@google.com> am fbd26467: Merge "DO NOT MERGE" into gingerbread

Merge commit 'fbd2646705c52c111f041b16d7cb34cb922a2a64' into gingerbread-plus-aosp

* commit 'fbd2646705c52c111f041b16d7cb34cb922a2a64':
DO NOT MERGE
dc9f2b6668b408d451cf63527ef2ce074f678ae0 13-Sep-2010 Shimeng (Simon) Wang <swang@google.com> DO NOT MERGE

Use a static variable and methods for the current WebView.

sJavaBridge may not exist by the time onWindowFocusChanged is called.
To avoid an NPE, just static methods that modify a global field.
JWebCoreJavaBridge is a global object anyway so using a static field
will be fine. To avoid any garbage collection issues, store the
WebView in a WeakReference.

Bug: 2908023
Change-Id: I05e9261f2c3d13c10c73c9b34f3aeea1d12a08a6
/frameworks/base/core/java/android/webkit/WebView.java
585f13f8dec4cbf55b3bc04d95425d647f0577b2 10-Aug-2010 Svetoslav Ganov <svetoslavganov@google.com> Accessibility support for WebViews

Change-Id: Ibb139192bae4d60fd53a7872b19c06312bb41558
/frameworks/base/core/java/android/webkit/WebView.java
0a8bf86413f3456c5afc3028b8ba145a3bebe493 12-Sep-2010 Adam Powell <adamp@google.com> Fix a bug that could cause improper detection of long press selection mode in WebView after a scale gesture

Change-Id: I171ccad91ddc7e7983664dbf52d3104508493538
/frameworks/base/core/java/android/webkit/WebView.java
be36668499683d838e9b0c81d6de6abc1a8bc429 12-Sep-2010 Adam Powell <adamp@google.com> resolved conflicts for merge of 12e08f3a to master

Change-Id: Ic691ec7716d5c450406717d3748847cb9c6b7e82
12e08f3a8853ef4248ee9c18583c3b4917dd0c40 12-Sep-2010 Adam Powell <adamp@google.com> am 26cab064: Merge "Allow two finger pan and scale on touchscreens with FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT." into gingerbread

Merge commit '26cab06472badee374ac854f5a210991c37c4493' into gingerbread-plus-aosp

* commit '26cab06472badee374ac854f5a210991c37c4493':
Allow two finger pan and scale on touchscreens with
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/WebView.java
6c09ef01da0721ee9c49d96bd0c260bb9d9b4f15 09-Sep-2010 Shimeng (Simon) Wang <swang@google.com> Use the default scale for text input.

The default scale is 1.0 for tablet, instead of the 1.5 reading scale.

For small screen device, the default scale will be 1.5, so the new
code is backward compatible.

issue: 2988531
Change-Id: I8f00b0e9180402b2135573c019bea7d217119dad
/frameworks/base/core/java/android/webkit/WebView.java
048a3a5b1891cba08ffdfa338fe01f3154a4d294 09-Sep-2010 Adam Powell <adamp@google.com> Allow two finger pan and scale on touchscreens with
FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT.

Change-Id: Ia5a1655d3bd9bf13cc8d84a1f7ee2bc9dca8ac49
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
0358def77633b6548da06985cb22955a7e85abac 02-Sep-2010 Adam Powell <adamp@google.com> am 79492a0d: Merge "DO NOT MERGE Overscroll continues; asset and behavior tweaks." into gingerbread

Merge commit '79492a0d75b0b02f11f35500f79dd3fcbc6e2211' into gingerbread-plus-aosp

* commit '79492a0d75b0b02f11f35500f79dd3fcbc6e2211':
DO NOT MERGE Overscroll continues; asset and behavior tweaks.
5916882c3f13429d29f95b89dd94bd2d5733da85 02-Sep-2010 Adam Powell <adamp@google.com> DO NOT MERGE Overscroll continues; asset and behavior tweaks.

Change-Id: I367643877a397e7b4fa9bd8c40639ff69436e7f0
/frameworks/base/core/java/android/webkit/WebView.java
6fb81376b6e062d9b0ce4d91e23c2a88572b8186 01-Sep-2010 Adam Powell <adamp@google.com> am e34fe69e: Merge "DO NOT MERGE Integrate edge effects into WebView." into gingerbread

Merge commit 'e34fe69e66d8c9bc76453347ba84261b060300f3' into gingerbread-plus-aosp

* commit 'e34fe69e66d8c9bc76453347ba84261b060300f3':
DO NOT MERGE Integrate edge effects into WebView.
7c2d1353f518971ca87861c2e3dd650b3eeb1e10 21-Aug-2010 Elliott Slaughter <eds@google.com> Cleanup temporary incognito mode files after last tab closes.

Change-Id: Iae5df353fdfd36c8eefa273a8812e80309e42841
/frameworks/base/core/java/android/webkit/WebView.java
230269d43bccccefdcb219c74c96a63ae04f4af9 31-Aug-2010 Adam Powell <adamp@google.com> DO NOT MERGE Integrate edge effects into WebView.

TODO Effect for scaling gestures; asset/polish tweaks.

Change-Id: Ifbc201cb64e0610dbc92a7c57ba0d3a4ee686c43
/frameworks/base/core/java/android/webkit/WebView.java
fe026bdd3c0fd7543ceaf0732aeb824cfddb5b23 24-Aug-2010 Leon Scroggins <scroggo@google.com> Move Find on page and Select ActionModes to framework.

Bug: 2938052

Requires a change to packages/apps/Browser

Change-Id: I1bb1a47610b06c4bb02ef08647c02cc1dcaddb15
/frameworks/base/core/java/android/webkit/WebView.java
c92de67da33cecc0795902af543c8ff5db57f9c0 01-Sep-2010 Derek Sollenberger <djsollen@google.com> Fix NPE when WebView is being destroyed prior to callback completion.

Change-Id: I964c8b7846e37b554b9bda8cda4f62f3e3851691
http://b/2947192
/frameworks/base/core/java/android/webkit/WebView.java
0171bfba04af5964f8863e334df3ed072a9675ef 01-Sep-2010 Derek Sollenberger <djsollen@google.com> am 73ef5d4e: DO NOT MERGE. CHERRY-PICKED GERRIT CHANGE 60365.

Merge commit '73ef5d4e2bcbf28ccb84580439f2f79d5cea1ec7' into gingerbread-plus-aosp

* commit '73ef5d4e2bcbf28ccb84580439f2f79d5cea1ec7':
DO NOT MERGE. CHERRY-PICKED GERRIT CHANGE 60365.
73ef5d4e2bcbf28ccb84580439f2f79d5cea1ec7 06-Aug-2010 Derek Sollenberger <djsollen@google.com> DO NOT MERGE. CHERRY-PICKED GERRIT CHANGE 60365.

Support complex characters in plugins.

Complex characters like chinese are sent via the onKeyMultiple()
callback. The WebView passes these characters to Webkit so that
non-text inputs (e.g. plugins) can process them.

Change-Id: I49575bb8a583f9f3580f5734ad87cc7c00b2bda9
http://b/2900114
/frameworks/base/core/java/android/webkit/WebView.java
a9c43aaa4482819ca14bb5f036b328dd4e5f2211 31-Aug-2010 Adam Powell <adamp@google.com> am 0a77ce27: New edge effects for scrolling widgets (overscroll)

Merge commit '0a77ce277c6ed2aa25bbea5f8cd5687c0720cb68' into gingerbread-plus-aosp

* commit '0a77ce277c6ed2aa25bbea5f8cd5687c0720cb68':
New edge effects for scrolling widgets (overscroll)
0a77ce277c6ed2aa25bbea5f8cd5687c0720cb68 25-Aug-2010 Adam Powell <adamp@google.com> New edge effects for scrolling widgets (overscroll)

TODO: Currently disabled for WebView. Assets used for the glow effect
need to be themable/styleable. Overscroll effect should take place
even when the user did not grab the widget within actual content.

Change-Id: I68277d14d37dc5bcdb9254eaddf6e4998b3f2bf4
/frameworks/base/core/java/android/webkit/WebView.java
04108437eda79fc2bad1eb2adf5247c9f4dbc480 27-Aug-2010 Cary Clark <cary@android.com> am c28bf25b: Merge "DO NOT MERGE copy selected text on tap" into gingerbread

Merge commit 'c28bf25bc5d9fd729b9e6593168cf61a87cf586c' into gingerbread-plus-aosp

* commit 'c28bf25bc5d9fd729b9e6593168cf61a87cf586c':
DO NOT MERGE copy selected text on tap
4e43744301009ad6bdb380fc454b46f981eba096 26-Aug-2010 Cary Clark <cary@android.com> DO NOT MERGE copy selected text on tap

Change-Id: I4175a3e66cda7f26353fbbd98e65639fd91b2bb9
http://b/2626451
/frameworks/base/core/java/android/webkit/WebView.java
4e8620f868e2490782ebb960404140ea9482c91d 25-Aug-2010 Ben Dodson <bjdodson@google.com> Updated documentation for upcoming fix for @code tags

Change-Id: Id7b163179132b9cf180afecb4e9e10ee39bcd415
/frameworks/base/core/java/android/webkit/WebView.java
3a6bfd4cbf35343f5a784d9f970962becdeb0633 26-Aug-2010 Cary Clark <cary@android.com> am ed101933: Merge "DO NOT MERGE -- copy on tapping outside of selected text in gmail" into gingerbread

Merge commit 'ed101933ab7506d841d6eaa7bebda4b674c38088' into gingerbread-plus-aosp

* commit 'ed101933ab7506d841d6eaa7bebda4b674c38088':
DO NOT MERGE -- copy on tapping outside of selected text in gmail
8b0b77233682547e6a496ec25db32c2d12b68241 26-Aug-2010 Cary Clark <cary@android.com> DO NOT MERGE -- copy on tapping outside of selected text in gmail

Text can be selected in gmail by choosing Select Text from the
menu and dragging the selection. There's no pretend action bar
like there is in the Browser to commit the selection.

When tapping outside of the selection, copy the text, if
the client (like gmail) has mapped the trackball to the
arrow keys.

Change-Id: I7dd133fd860d392bb01ec103e379e1f1d2a43e64
http://b/2626451
/frameworks/base/core/java/android/webkit/WebView.java
4ae1f6f2ae0a06f5424e930cca1eeab26fd942ab 26-Aug-2010 Shimeng (Simon) Wang <swang@google.com> Restore zoom level when browser is restored.

issue: 2950667
Change-Id: If335813eed6311d3d01354147bd62f90ffbdacfb
/frameworks/base/core/java/android/webkit/WebView.java
1ef41605bbde97fb3979003a652fd365a0d034aa 25-Aug-2010 Cary Clark <cary@android.com> am d64f4a98: DO NOT MERGE fix null check

Merge commit 'd64f4a983df4fd11795e04896d8c48852f6b1777' into gingerbread-plus-aosp

* commit 'd64f4a983df4fd11795e04896d8c48852f6b1777':
DO NOT MERGE fix null check
d64f4a983df4fd11795e04896d8c48852f6b1777 25-Aug-2010 Cary Clark <cary@android.com> DO NOT MERGE fix null check

Check to see if the WebChromeClient is null.

Checked into master in change 63008

Change-Id: If2ef1889ce3633c0b35c078a46bde84982dd1eb3
http://b/2945171
/frameworks/base/core/java/android/webkit/WebView.java
e60cb7f914acbfc7aca6cb9848b8247078d0b3ad 25-Aug-2010 Cary Clark <cary@android.com> simplify cursor ring draw state; fix null check

Rename jni call to note that, when pressing the dpad, the
cursor ring is to shown for a short time. The old name suggested
that this was tracking whether the link was followed.

Fix an unrelated change (from gingerbread, automated
merge unlikely to succeed) to check for a null
WebChromeClient.

Requires a companion change in external/webkit

http://b/2135321 (rename jni call)
http://b/2945171 (null check)

Change-Id: I9d4a92dbba1f92da8dc8cde755a2066de59514f9
/frameworks/base/core/java/android/webkit/WebView.java
41d5e93bbdff5dc6383ebd9391e3f1c492dee215 23-Aug-2010 Derek Sollenberger <djsollen@google.com> Move APK monitoring into WebView.

This CL adds the monitoring logic that was removed from the Browser
in a companion CL. This allows applications other than the Browser
to use special features offered by YouTube and plugins. Additionally,
the pluginManager was refactored to prevent code duplication between
the manager and WebView.

Change-Id: Ie37f248c8edd9d06ae1fd6675dd5f06f04774b09
http://b/2834603
/frameworks/base/core/java/android/webkit/WebView.java
d62847997be926991424e4fba30ff3f5ef71258b 19-Aug-2010 Elliott Slaughter <eds@google.com> Fix WebView saveState and restoreState for private browsing mode.

Change-Id: Ia254ee853d73e56c6f0a5b7762a1cefc1dad0894
/frameworks/base/core/java/android/webkit/WebView.java
385a655b8e8bf85024e4f24f1d7f6c2d7d7e900d 21-Aug-2010 Scott Main <smain@google.com> am bb8d314b: am 70c9ffbc: am 11a72482: Merge "docs: add links from widget classes to tutorials" into froyo

Merge commit 'bb8d314b6c5ff9b51af29daa687d66dfd996914f'

* commit 'bb8d314b6c5ff9b51af29daa687d66dfd996914f':
docs: add links from widget classes to tutorials
d93ecb3fab669bb563fcb903966e854a593ceace 20-Aug-2010 Cary Clark <cary@android.com> am 581f7861: DO NOT MERGE Refactor find and select dialogs

Merge commit '581f78615a9dc65ee264b3619ef6cdd0b0e8355c' into gingerbread-plus-aosp

* commit '581f78615a9dc65ee264b3619ef6cdd0b0e8355c':
DO NOT MERGE Refactor find and select dialogs
581f78615a9dc65ee264b3619ef6cdd0b0e8355c 20-Aug-2010 Cary Clark <cary@android.com> DO NOT MERGE Refactor find and select dialogs

(Merged by hand from master, based on
https://android-git.corp.google.com/g/#change,53490 )

In WebView:
- Remove the select mode, so that while text is selected,
the view may respond to scroll or zoom gestures.
- Remove the getFindIsUp() method -- let the host application
track if the dialog is visible.
- Map long press to select text if the host application does
not already intercept it.
- Draw find 'extras' during zoom animation.
- Draw select 'extras' during animation and scrolling as well.
- Distinguish between selecting text and pressing a shift key
(the shift key is still a possible select text shortcut)
- Add more public (but hidden) interfaces: setUpSelect, selectAll, etc.

In WebChromeClient, add interfaces to allow WebView to tell the host
application that selection has started or finished. A long press on
a part of the view that does not trigger a host context menu may
start the selection (if text is underneath the press), and clicking
the trackball or tapping away from the current selection may
end the selection.

Companion changes in external/webkit and packages/apps/Browser

Change-Id: I2d41662acbdb8bdaa8219b35f18a9276e34636a7
http://b/262451
/frameworks/base/core/java/android/webkit/WebView.java
bb8d314b6c5ff9b51af29daa687d66dfd996914f 20-Aug-2010 Scott Main <smain@google.com> am 70c9ffbc: am 11a72482: Merge "docs: add links from widget classes to tutorials" into froyo

Merge commit '70c9ffbc838271f0ea27a4780eb146287de53ef6' into gingerbread-plus-aosp

* commit '70c9ffbc838271f0ea27a4780eb146287de53ef6':
docs: add links from widget classes to tutorials
70c9ffbc838271f0ea27a4780eb146287de53ef6 20-Aug-2010 Scott Main <smain@google.com> am 11a72482: Merge "docs: add links from widget classes to tutorials" into froyo

Merge commit '11a72482a0cdc45ceaf4ca83957e682381455aee' into gingerbread

* commit '11a72482a0cdc45ceaf4ca83957e682381455aee':
docs: add links from widget classes to tutorials
41ec65355bd6ded652769725b276d47c54a0d913 20-Aug-2010 Scott Main <smain@google.com> docs: add links from widget classes to tutorials

Change-Id: I817e885524951853182b0458df4a32dea1614243
/frameworks/base/core/java/android/webkit/WebView.java
c1cba781d37910e61591cffda50633f1db6cc4ea 17-Aug-2010 Shimeng (Simon) Wang <swang@google.com> Use fixed viewpport for tablet device.

This makes the zoom animation much more smooth. With previous dynamic
viewport, the animation jumps because of viewport adjustment and big
screen.

Also the viewport width is changed from 800 to 1040 to better suit
the tablet device. It's the middle point of 1280 and 800.

The text reflow re-alignment for non-double-tap zoom is disabled for
tablet, since most of the time the reflow has no effect.

issue: 2919307
Change-Id: I74493df6408291c24ef8511512d7ed0b81bf507a
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
8a5d335a5533eef89aa8e4b701b692673145eef1 18-Aug-2010 Patrick Scott <phanna@android.com> Use a static variable and methods for the current WebView.

sJavaBridge may not exist by the time onWindowFocusChanged is called.
To avoid an NPE, just static methods that modify a global field.
JWebCoreJavaBridge is a global object anyway so using a static field
will be fine. To avoid any garbage collection issues, store the
WebView in a WeakReference.

Bug: 2894682
Change-Id: I73de9237ddbbdc55841a9b2639437e26856439c8
/frameworks/base/core/java/android/webkit/WebView.java
dde858cbb6dd96e621616b20bb5a6866565b4874 12-Aug-2010 Shimeng (Simon) Wang <swang@google.com> Change scale for large screen reading when double tapped.

This happens when default and overview scales have not much difference.

This solves the double tap issue for large screen devices,
where overview and default scale are the same. The code works well
with phone device as well.

Change-Id: Iac7f66369d58a152de8de7025b326d1672da30d4
/frameworks/base/core/java/android/webkit/WebView.java
6f99270cbe2d3385962a895d387f9024b829bc22 12-Aug-2010 Leon Scroggins III <scroggo@google.com> Hide the soft keyboard even if WebTextView is not in use.

Sometimes clearTextEntry is called when mWebTextView is not
being used. In those cases, we still want to hide the soft
keyboard, since the user is no longer attempting to type.

Bug: 2835685
Change-Id: I4e8d4bc60b23028e2840d6205caf13699bce6031
/frameworks/base/core/java/android/webkit/WebView.java
f4a705f045ccd00e01e68bc8d5825007809d1c1e 11-Aug-2010 Steve Block <steveblock@google.com> Update DeviceOrientationManager to be specific to a WebViewCore

This avoids the need to pass the WebViewCore to its methods.

Change-Id: Ieec414f0819f06c8f5568ae5d6dd81a48d05fd6e
/frameworks/base/core/java/android/webkit/WebView.java
68dede3d6664d91302d727531d13f7f5862d3a50 04-Aug-2010 Steve Block <steveblock@google.com> Hook up mock for testing DeviceOrientation in DRT

Change-Id: I99fbe328807428aa0d94893545bad0697ccb71d7
/frameworks/base/core/java/android/webkit/WebView.java
ff0f973442d22ba6bb1231fb6e97e5f3051a7f48 06-Aug-2010 Derek Sollenberger <djsollen@google.com> Support complex characters in plugins.

Complex characters like chinese are sent via the onKeyMultiple()
callback. The WebView passes these characters to Webkit so that
non-text inputs (e.g. plugins) can process them.

Change-Id: I159c4a404c195b60cc7f63ef4bff0aa80db96c3f
http://b/2900114
/frameworks/base/core/java/android/webkit/WebView.java
73980a949d0d5fb9f1fb3979c73aef52ef8ddc2c 06-Aug-2010 Michael Kolb <kolby@google.com> added scroll control support to WebView

Change-Id: Ie0ddaa6b532e31fb0e2904e6bab9d67c06599b66
/frameworks/base/core/java/android/webkit/WebView.java
f21d2e305961b0df4d1c3d5d45a3ff7723b293af 15-Jul-2010 Elliott Slaughter <eds@google.com> Initial work on browser incognito mode history feature.

Change-Id: I050edf263d5c4ee0c0373692e267d7e19f47ba1b
/frameworks/base/core/java/android/webkit/WebView.java
90d5e8c08ba0b3fd86fa8077bf90c88133f82382 05-Aug-2010 Dianne Hackborn <hackbod@google.com> Fix build.

Change-Id: I18c0af97c7e204f023cea77e3e5d08eb37596222
/frameworks/base/core/java/android/webkit/WebView.java
b080636da66680f0f3d526ea70acea9febcd753c 23-Jul-2010 Mac Wang <Mac_Wang@acer.com.tw> Remove compilation warnings by removing illegal characters

Change-Id: I8522be88b628a12fbde7825354730de4b4d4635a
/frameworks/base/core/java/android/webkit/WebView.java
b77bcd1bb45a801de1d6e362cfe4775dd0b10080 22-Jul-2010 Patrick Scott <phanna@android.com> Fix gmail crash.

Change-Id: I009d44fce36e365e915b2ecbdfd94fdcee40adf8
/frameworks/base/core/java/android/webkit/WebView.java
a3ebcc9d2ea15614529e112880e1d16e81a178e1 16-Jul-2010 Patrick Scott <phanna@android.com> Support scrolling divs.

Detect two fingers close together and enter drag layer mode. Add a
few checks for this mode (mostly to not change the WebView's scroll
position).

Bug: 1566791
Change-Id: I019bb36479884a51c7ca046ca40c05f7c5706b22
/frameworks/base/core/java/android/webkit/WebView.java
387b6580b8723d738ffd99d93d0f8357d55b3dc3 16-Jul-2010 Leon Clarke <leonclarke@google.com> Cancel test selections when they start if the client hasn't overridden the
selection behavior.
http://b/issue?id=2847546

Change-Id: I0d8529add54b3dfbf0af239fda1b15edd7bd32e0
/frameworks/base/core/java/android/webkit/WebView.java
b48fdbe79260b1603cfef5e304e068c29d4bc257 30-Jun-2010 Elliott Slaughter <eds@google.com> Browser save page as web archive.

Change-Id: Id34a93b2e9bb6c185338989d1eeb6929d0bd06c5
/frameworks/base/core/java/android/webkit/WebView.java
8abd50b74850b45553db1b1f567edc6b01956f13 09-Jul-2010 Grace Kloba <klobag@google.com> Combine base PictureSet with composite layers into
one SkLayer tree to get ready for GL rendering.

Now UI holds its copy of SkLayer tree. The top node
is BaseLayerAndroid which has the PictureSet as its
content.

There is a matching change in external/webkit.
/frameworks/base/core/java/android/webkit/WebView.java
0b2395c1935bf34b2671209ae817dc14331d418a 24-Jun-2010 Dirk Dougherty <ddougherty@google.com> Doc change: Add revision notes for Android 2.2_r2 development platform. Fix some umappable characters in WebView class doc.

Change-Id: I5522406335fbf96164a5b812ec4891c499343d1e
/frameworks/base/core/java/android/webkit/WebView.java
372dfc8bd40446e04ea22f2752cc99f0566fa077 01-Jul-2010 Ben Murdoch <benm@google.com> If no touch icon is specified by a <link> tag, return <host>/apple-touch-icon.png as
the touch incon url instead. The DownloadTouchIcon class will handle the case that
this file does not exist on the server.

Change-Id: I8ab8fd65b571584d7b648af72c568f0b01c2dcaf
/frameworks/base/core/java/android/webkit/WebView.java
9a9fd64ab79f064f55000ef18e094b7459d03222 01-Jul-2010 Grace Kloba <klobag@google.com> Remove the TODO as it has been fixed with changes
for http://b/issue?id=2666473.
/frameworks/base/core/java/android/webkit/WebView.java
0a4a70daba81351e4d12ca4faae6d135c1f0d2e2 30-Jun-2010 Shimeng (Simon) Wang <swang@google.com> Fix the initial reflow width when switch between basic pages.

issue: 2778976
Change-Id: Ib77c91628792258db8197459656b8f42bf787c9c
/frameworks/base/core/java/android/webkit/WebView.java
b983c893d4307caec8504e6b46ca69ae859b25d3 28-Jun-2010 Derek Sollenberger <djsollen@google.com> Rename a data storage object to better reflect its intended usage.

Change-Id: I18eae0665b59e7fee389a0e09955c5860a7e65f2
/frameworks/base/core/java/android/webkit/WebView.java
4aef697d58bc142b96953cb2623b06981af2abc9 24-Jun-2010 Derek Sollenberger <djsollen@google.com> Initial pass at unit tests for ZoomManager.

This CL also includes some minor changes to the ZoomManager that
make the manager easier to test as well as fix some uncovered issues.

Change-Id: I66a84d70ee75e765ccf9cccb2d123757a9470f93
/frameworks/base/core/java/android/webkit/WebView.java
924af70019f1cc82d850a0c29c2606a2f4faf5cf 04-Jun-2010 Cary Clark <cary@android.com> Refactor find and select dialogs

In WebView:
- Remove the select mode, so that while text is selected,
the view may respond to scroll or zoom gestures.
- Remove the getFindIsUp() method -- let the host application
track if the dialog is visible.
- Map long press to select text if the host application does
not already intercept it.
- Draw find 'extras' during zoom animation.
- Draw select 'extras' during animation and scrolling as well.
- Distinguish between selecting text and pressing a shift key
(the shift key is still a possible select text shortcut)
- Add more public (but hidden) interfaces: setUpSelect, selectAll, etc.

In WebChromeClient, add interfaces to allow WebView to tell the host
application that selection has started or finished. A long press on
a part of the view that does not trigger a host context menu may
start the selection (if text is underneath the press), and clicking
the trackball or tapping away from the current selection may
end the selection.

Companion changes in external/webkit and packages/apps/Browser

Change-Id: I81f549181249c38d8d4c10fd7064f513d11318fa
http://b/262451
/frameworks/base/core/java/android/webkit/WebView.java
f39d26605d5cb603e2cddddbe1d1b0e269a400d1 24-Jun-2010 Derek Sollenberger <djsollen@google.com> fix NullPointerException caused by inflating XML Webview that is
defined to be non-visible.

Change-Id: I3233428d1cc74e90c6431cc1796592af6a7a62d8
http://b/2794841
/frameworks/base/core/java/android/webkit/WebView.java
e377032899fd7a9f88ad1313847e77c098b9f248 14-Jun-2010 The Android Open Source Project <initial-contribution@android.com> am 864c68ea: merge from froyo-plus-aosp

Merge commit '864c68ea452baa0f4f298faf2155af45a9b6d60c'

* commit '864c68ea452baa0f4f298faf2155af45a9b6d60c':
Added an addAll to the ArrayAdapter
WLAN: Reset power save mode to startup value after DHCP response.
Add PageUp and PageDown hot keys
Should accept "application/vnd.wap.multipart.alternative" message.
replaced deprecated getIntent with parseURI
864c68ea452baa0f4f298faf2155af45a9b6d60c 14-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from froyo-plus-aosp

Change-Id: I9cede57e10df9d6ba411b2960a77d7b9b60a1489
07d814075583230e92f79d52845ecc3fa36df0fd 11-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Ia668b322a02e220b74c222dbbcc5b4fdc3c59ab0
bffa851f042abe1b123b24ba332ff0095ec18a92 10-Jun-2010 Derek Sollenberger <djsollen@google.com> Finish refactoring zoom logic from WebView to ZoomManager.

This is the final CL in a series of CL's that moved the
location of the zoom logic from WebView to ZoomManager.

Change-Id: Ie1e80b9b3108bd4cb0b0ee2822dc984da91c2d86
http://b/2671604
/frameworks/base/core/java/android/webkit/WebView.java
15c5ddb7fd6357ea8ba2cccb18284137b8113401 10-Jun-2010 Derek Sollenberger <djsollen@google.com> Refactor the double tap zoom code into ZoomManager.

This CL is one in a series of CL's that is intended to refactor
the zoom logic from WebView to ZoomManager.

Change-Id: Icf88f7bd45068dddb31913903403acc7a8f21063
http://b/2671604
/frameworks/base/core/java/android/webkit/WebView.java
b60c941811cc15ab34fcc2f038aba56f862659b8 11-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of f37cbe6b to master

Change-Id: I529b17e55b9668f900f685f92e9831e14a82db05
438d0595121a7a2cdf19741e76e3c0e21a5c173d 10-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> Introduce "StrictMode"

This is a new public API for developers to opt-in to strict rules
about what they're allowed to do on certain threads. (this is the
public face of the @hide dalvik.system.BlockGuard, added recently...)

In practice this will be used for developers to opt-in to declaring
that they don't want to be allowed to do various operations (such as
disk I/O or network operations) on their main UI threads. (these
operations are often accidental, or even when they are fast come with
a good chance of being slow or very slow in some cases....)

Implementation wise, this is just a thread-local integer that has a
bitmask of the things that aren't allowed, and more bits for saying
what the violation penalty is. The penalties, of which multiple can
be chosen, include:

* logging
* dropbox uploading for analysis/reporting
* annoying dialog
* full-on crashing

These are all only very roughly implemented at this point, but all
parts now minimally work end-to-end now, so this is a good checkpoint
commit before this gets too large.

Future CLs will polish all the above 4 penalties, including
checksumming of stacktraces and minimizing penalties for duplicate
violations.

Change-Id: Icbe61a2e950119519e7364030b10c3c28d243abe
/frameworks/base/core/java/android/webkit/WebView.java
4e916ad8c96fd7425e34ca1a8db82720fe046b73 10-Jun-2010 Chih-Wei Huang <cwhuang@linux.org.tw> Add PageUp and PageDown hot keys

Change-Id: I588f70d74bc5c02e1fb60c7a2821d8801f2333e0
/frameworks/base/core/java/android/webkit/WebView.java
369aca27ec44274d9e70e91513914fa2564c6aef 09-Jun-2010 Derek Sollenberger <djsollen@google.com> Consolidate common zoom code and tighten access to some ZoomManager variables.

This is a single CL in a series of CL's that is focused on moving the
zoom logic from WebView to ZoomManager.

Change-Id: I741fc34d5dd481b89f6e0b33503834c33f4fe69e
http://b/2671604
/frameworks/base/core/java/android/webkit/WebView.java
293c360ffe2980b4d5d2d7c4aff69166ff265e9c 04-Jun-2010 Derek Sollenberger <djsollen@google.com> Move pinch-to-zoom logic into ZoomManager.

This CL is one in a series of CL's that moves the zoom logic
from WebView into ZoomManager.

Change-Id: I9980dd78dbc3345d465d4f39afcfd2f025f45bcb
http://b/2671604
/frameworks/base/core/java/android/webkit/WebView.java
eefd63e3579c0de1c8a3bb737c6dd28668251b63 04-Jun-2010 The Android Open Source Project <initial-contribution@android.com> am 0a0c57f9: am 7c035d8a: am 2d743fe2: merge from open-source master
2d743fe2f39397d41334001d897eb78da56e94ef 04-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Ic9060d92c014d6cbe9d90ce8deca8fa111711471
341e22ffceb5be2dd143e749aa2d85ef1e0dd53f 02-Jun-2010 Derek Sollenberger <djsollen@google.com> Refactor zoom logic from WebView to ZoomManager.

This CL is one in a series of CL's intended to remove the zoom
logic from WebView. This CL focuses on refactoring the initialScale
variable as well as the onSizeChanged() and NEW_PICTURE_MSG portions
of the code.

Change-Id: Id44bce50378aa7cdfc1c8110818e18500679c517
http://b/2671604
/frameworks/base/core/java/android/webkit/WebView.java
dad86349bea3aec1d48793adc61b446f82311d15 02-Jun-2010 John Eckerdal <john.eckerdal@sonyericsson.com> Add better error handling for savePicture and restorePicture

If an Exception occurs when storing the file treat this as an error
and always fail to try to prevent corrupted pictures to be stored to
the file system.

Close files if they were opened, the caller might want to perform other
file operations on the file and if it is still open these may fail.

Change-Id: Ic68596b5c745bbe413096c22684c388e853a7643
/frameworks/base/core/java/android/webkit/WebView.java
ec9a104ce99b0338d13b77ed5d8fdc8a9cbc7146 02-Jun-2010 Grace Kloba <klobag@google.com> If the WebView can't be scaled, don't check for
double tap. This will make the click event on the
non-scalable page much responsive.

Fix http://b/issue?id=2645880
/frameworks/base/core/java/android/webkit/WebView.java
6164ef1b78602a41f81b02355cfbe8516837dcd6 02-Jun-2010 Grace Kloba <klobag@google.com> Expose canZoomIn and canZoomOut for WebView.
/frameworks/base/core/java/android/webkit/WebView.java
a393a85d2b2f319a29c52c354a8b5e44fc1621ed 01-Jun-2010 Romain Guy <romainguy@google.com> Fix build warnings about improper ASCII encoding.

Change-Id: I5f26278e74a0a7018059db75ca44a36c42c559f3
/frameworks/base/core/java/android/webkit/WebView.java
87b17be55e02e3d5aef146bfd3caa5116088afd8 01-Jun-2010 Derek Sollenberger <djsollen@google.com> eoving Zoom animation logic from WebView into ZoomManager. This is
pick bad5ede Revert "Refactor the on-screen zoom controls into a separate class."

one part of a series of CL's that is intended to refactor all zoom
logic into the ZoomManager.

Change-Id: I6260c7d2daade4861df1296c9db364ee2a892bd0
http://b/2671604
/frameworks/base/core/java/android/webkit/WebView.java
acea08d20ff34248814e14f3e3bafc86825c2d72 27-May-2010 Leon Scroggins <scroggo@google.com> Prevent a null pointer exception.

Bug 2721268

Change-Id: I3a9e838ed3f2f9dccdf7b4bf42a0dbad58e62e02
/frameworks/base/core/java/android/webkit/WebView.java
178db41234abd08925fea9a4dc5180218f7da737 19-May-2010 Grace Kloba <klobag@google.com> Experimental feature: use WebKit to find out the selection
highlight.

The new setting, supportTouchOnly(), is currently not
fully implemented. It is overloaded with mLightTouchEnabled
for short term testing. To test the feature, please
use the "Enable Light Touch" in the debug settings.

When supportTouchOnly is true, we are not using nav
cache to display the yellow ring. Instead we show
the gray rectangle(s) based on the calculation from
WebKit. When short press happens, we current use 0
for mMoveGeneration so that it will trigger WebKit
to use the same point when it calculates the highlight.

If you turn on NavDump in the debug settings, it will
also draw the fat point where you tap on the screen.

Known issues, it is not fully synced with IME. If you
tap a text input box also in focus, the yellow ring
will show up. If you leave the text input field, the
IME is not dismissed. If this passes the user tests,
we will make a special mode and fix all these issues.

There is another matching CL in external/webkit
/frameworks/base/core/java/android/webkit/WebView.java
a3f055e205b29a6bf6a7bb294916c9019d1b3402 26-May-2010 Ben Murdoch <benm@google.com> Fix layout test failure with fast/events/touch/touch-stale-node-crash.html

This layout test is currently failing due to timing out in DRT.

The issue is that the test sends a down, up, down sequence quickly. For
each down event, we post a PREVENT_DEFAULT_TIMEOUT message to the
WebView's message handler. WebCore responds to the first touch event and
we update the mPreventDefault state variable correctly. The second touch down
resets mPreventDefault as it's the start of a new touch sequence and a second touch down is posted
to the WebCore thread.

At this point we still have the first TIMEOUT message in the WebView queue. The problem occurs
when the WebView processes this timeout message before the WebCore thread processes the second
touch down message. In this case the WebView clears the WebCore thread's message queue and instead posts
touch cancel events, erroneously removing the second touch event. This timeout message should not have been
processed as it was associated with the first touch down that had already been completed. Without the
second touch the test never completes.

The fix is to remove PREVENT_DEFAULT_TIMEOUT messages from the queue before starting
a new touch sequence.

Change-Id: Ief054239529d710a79a0e58a589bd7a92434dbf2
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
5ddfac4239193b1fcb987bfebc7f3d06ecedff33 18-May-2010 Scott Main <smain@google.com> am 68cc7187: am 8473259d: am 74e151c5: am 5f1d1002: Merge "docs: fix markup error" into froyo
e3b9f8b9b295baca000c0a23d90d76c984168735 18-May-2010 Scott Main <smain@google.com> docs: fix markup error

Change-Id: I59a42f47483d76b6a3220b1d88e9d6bd96f83daf
/frameworks/base/core/java/android/webkit/WebView.java
5e02c431a3680368fa60a4a32a86e0dc31139666 18-May-2010 Grace Kloba <klobag@google.com> If we can't scroll any more, stop the animation and
resume update. Otherwise, we can't touch select until
the scroller animation is done.

Fix http://b/issue?id=2666473
/frameworks/base/core/java/android/webkit/WebView.java
3c19d99042ee6ebbfda23cdfb65e3cc7fda72031 18-May-2010 Grace Kloba <klobag@google.com> If the new fling is much slower (less than 1/5 of
the previous fling), don't accelerate it.

Fix http://b/issue?id=2672074
/frameworks/base/core/java/android/webkit/WebView.java
b3976bb395ee08eac09c6b0d0e64176f30c588e5 18-May-2010 Scott Main <smain@google.com> am 0583ac4c: am 9719fe11: am fbb285e6: am e64256d6: Merge "docs: revise webview description and add info for targeting screen densities" into froyo
8b3cea01bffa440c17c5381f887fb6b02f6c2230 14-May-2010 Scott Main <smain@google.com> docs: revise webview description and add info for targeting screen densities

Change-Id: Ib0293b497adef23330ee3f5f71904ad78a55a3a3
/frameworks/base/core/java/android/webkit/WebView.java
90b6e4879304c6ac8240cdeb9a4aea94a27cda58 10-May-2010 Derek Sollenberger <djsollen@google.com> Refactor the on-screen zoom controls into a separate class.

This CL is the first in a series of CL's that will extract the
zoom code from WebView and put it into ZoomManager. This initial
CL only extracts the on-screen zoom controls and required variables
into the ZoomManager. Since the on-screen controls are well defined
I put them into their own class called ZoomControls.

All of WebView's zoom interactions are handled by the ZoomManager.
The ZoomManager can then handle the request internally or as in the
case of on-screen controls pass the request to another class.

Change-Id: Icfc91ed0456c88d633249c26b9afc7dd216f75a1
http://b/2671604
/frameworks/base/core/java/android/webkit/WebView.java
da35551845b1ab47dbbae2194f1628442b6115d7 13-May-2010 Svetoslav Ganov <svetoslavganov@google.com> Adding accessibility content provider responsible for user script injection. Adding support for injecting accessibility in WebViews with disabled JavaScript.

Change-Id: I1576238a0f855bb54e25d19404b8404d7d0f6037
/frameworks/base/core/java/android/webkit/WebView.java
2c8e051508daaa605a9fb4a8123b09b9dae50329 11-May-2010 Leon Scroggins <scroggo@google.com> Remove text options when longpressing off a textfield.

Bug 2676172

Change-Id: Ib1eff9a6e7a8ff3e83897a89b6bb4fab9bb7b0c4
/frameworks/base/core/java/android/webkit/WebView.java
810f5ccb99a8a05a6d1617b19a4efb2399450318 11-May-2010 Leon Scroggins <scroggo@google.com> Remove unnecessary calls to rebuildWebTextView.

Bug 2674635

Change-Id: Ib33a5486b880868de7182c36a22f204383c58149
/frameworks/base/core/java/android/webkit/WebView.java
9863ba94f09999c456e0f14c91bcfa342c4183c1 11-May-2010 Nicolas Roard <nicolas@android.com> resolved conflicts for merge of bfd6805a to master

Change-Id: Ie975e4cd7391d62949c563453358aa999c8a4b45
f78acacb0d7a8e4d9e85a1cd6eed0f6bb38d6776 11-May-2010 Nicolas Roard <nicolas@android.com> Fix the 'wobbling fixed elements' bug.
Cherry-picked from master.
This CL has a corresponding C++ counterpart (https://android-git.corp.google.com/g/#change,51149)

Bug:2665696
Change-Id: I0a044661ff21ef601ba34782db8acdc9531f98e7
/frameworks/base/core/java/android/webkit/WebView.java
46318cf9bf5aeb7f885b7511c3e8c379c9c788b6 11-May-2010 Nicolas Roard <nicolas@android.com> Fix the 'wobbling fixed elements' bug.
This CL has a corresponding C++ counterpart (https://android-git.corp.google.com/g/#change,51149)

Bug:2665696
Change-Id: I28516005d03afa866efed2677197120ac6e2d579
/frameworks/base/core/java/android/webkit/WebView.java
6a367f5cb0aac91ec420e00e5b12fd1748d9f4dd 06-May-2010 Leon Scroggins <scroggo@google.com> Provide a getter to tell the index of the current found match.

Part of fix for bug 2663680

Requires a change to external/webkit.

Change-Id: I1279963cf219eb365dd72262710f87c83acd8c4d
/frameworks/base/core/java/android/webkit/WebView.java
26723fc89d9f6396d5a38a6f6f9976d59d2a17e4 19-Apr-2010 Leon Scroggins III <scroggo@google.com> Adjustments to accommodate changes in Find dialog.

Remove mFindHeight, and the associated adjustements. It
is no longer needed because the FindDialog is no longer
on top of the WebView; instead, the WebView is resized to
accommodate it.
Do not take focus if the user touches the WebView while
Find is up.
Add a (hidden) getter to check to see if Find is showing.

Requires a change to packages/apps/Browser

Change-Id: I08cedb02d29eeeaac6860aa0933ccab43ed5c39f
/frameworks/base/core/java/android/webkit/WebView.java
9ab32b66428cea7d0f8edb49d7e358d014c3d39b 03-May-2010 Leon Scroggins <scroggo@google.com> Enable contentEditable.

WebView.java:
If the cursor and focus are on a contentEditable element, allow it
to handle navigation keys and shift rather than the navigation system.
Also rename method for its new more general use.

WebViewCore.java:
Change the name of MOVE_OUT_OF_PLUGIN to a more generic name, and
fix a bug in the message being sent.

Bug 1788820

Requires a change to external/webkit

Caveats:
Does not ensure that the caret remains on screen. Frame::revealSelection
is called, but we ignore it for other reasons. Need to investigate that.
The cursor will blink if the contentEditable node has focus, even if the
user has not clicked on it or has moved to a different input field. Further,
while in this state, the user can input text.

Change-Id: Iaa935363fd324925a1e338418d32f362f58c4494
/frameworks/base/core/java/android/webkit/WebView.java
ea58d14e235bbb8c6310a83c7a9bd707821bab5a 28-Apr-2010 Adam Powell <adamp@google.com> am 067521f9: am b40cfc16: am 2ea21a84: Merge "Fix a WebView scrolling regression - bug 2633572." into froyo
7bcf5172aa454967ee05902fb97d867ef57e0aa8 27-Apr-2010 Adam Powell <adamp@google.com> Fix a WebView scrolling regression - bug 2633572.

Update mLastTouchX/Y on every drag. This prevents the creation of
dead zones that the user has to drag back out of at the edges of
a document.

Change-Id: I348d96dfd3907dba7c6ddd86b678329d65063ba9
/frameworks/base/core/java/android/webkit/WebView.java
28ca72e9b9f5fbe4befaf6f18e148bc3db451001 26-Apr-2010 Grace Kloba <klobag@google.com> am 3c8c6919: am bd17156f: am 85a8dcec: Merge "Only honor the scrollbar mode at the minimum zoom level. This reduced the impact of https://android-git.corp.google.com/g/#change,48683. In GB, we need to revisit this issue." into froyo
fc0bcdd92a36cdd61cbf9d57e338dd5a137cc667 23-Apr-2010 Ben Murdoch <benm@google.com> If the user performed a very quick touch sequence without a response
from WebCore, then we would enter the ACTION_UP handler and cancel
pending touch events in WebCore's message queue. This cancellation
was orginally needed for Flash but the touch model for Flash has now changed
and it's no longer necessary. In the case of the layout test controller
the events do come very fast, and we were hitting this case so
WebCore was losing the events that got cancelled meaning that the
JS touch callbacks weren't getting invoked.

This was exposed by fast/events/basic-single-touch-events.html.

Change-Id: Icea09fb55a5b77f7ab9c19473cfa5ae272867a9a
/frameworks/base/core/java/android/webkit/WebView.java
0653d22f6279a81cbad27d8b0d5729f43ae1d66e 24-Apr-2010 Grace Kloba <klobag@google.com> Only honor the scrollbar mode at the minimum zoom
level. This reduced the impact of https://android-git.corp.google.com/g/#change,48683.
In GB, we need to revisit this issue.

Wit this CL, http://b/issue?id=2512549 is still fine.

Fix http://b/issue?id=2619398
It should fix http://b/issue?id=2619415 when it is not in zoom out case.
It doesn't fix http://b/issue?id=2620979 as the site
is a mobile site. We have conflict with the requirement
from http://b/issue?id=2512549
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
901a7c230c295f4798d44679e1eea14c7cb42f95 20-Apr-2010 Leon Scroggins III <scroggo@google.com> Remove call to rebuildWebTextView from handling selection change.

The call was originally added to fix bug 2431351, where touching
a <textarea> sent a message with the new selection, but the UI
thread had not yet updated the WebTextView, so the new selection
was ignored. However, since then,
https://android-git.corp.google.com/g/#change,45476 was submitted
to pass the selection and open the keyboard at the same time. So
when UPDATE_TEXT_SELECTION_MSG_ID is received, we no longer need
to worry about the case where the WebTextView is not set up yet.

Bug 2600847

Change-Id: I19eb102a7188e6edafaa5ac17b19ebd4ab5764f0
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
f343a043efa812f3c331e172f57295d15fb5a397 20-Apr-2010 Nicolas Roard <nicolas@android.com> Speed up layers rendering when using animations
Cherry-pick from master

Bug:2522049
Change-Id: I441f00b6e7551930c4f76983681f4cd0c57ce017
/frameworks/base/core/java/android/webkit/WebView.java
7da0c067b87f92e4f3b849fabff201145dccf12b 20-Apr-2010 Grace Kloba <klobag@google.com> am 20fa839d: am 19fa6d45: am 738a0460: Merge "Don\'t inflate the zoom button controller until we are going to show it. This should shave 5% of Browser start up time on Sapphire." into froyo
cc2c842053bf4c837cc8e8c418834a414e7d7dc0 20-Apr-2010 Nicolas Roard <nicolas@android.com> Speed up layers rendering when using animations

Bug:2522049
Change-Id: Ib3a79a10d46a234343207f27d6e74587e74be493
/frameworks/base/core/java/android/webkit/WebView.java
f4c66efa203c430219809298788ef90b596489ce 20-Apr-2010 Grace Kloba <klobag@google.com> Don't inflate the zoom button controller until we
are going to show it. This should shave 5% of Browser
start up time on Sapphire.

Fix http://b/issue?id=2604295
/frameworks/base/core/java/android/webkit/WebView.java
4ead13caa370e8b00f0b201814cee0acd1695ede 19-Apr-2010 Grace Kloba <klobag@google.com> am e5afb10c: am 66fa5cc7: am 99c5179f: Merge "Force redraw in touch_up if there is a move." into froyo
c36862d53ade2c959eb1ca7ec9c20d7f76a1a4d7 19-Apr-2010 Grace Kloba <klobag@google.com> Force redraw in touch_up if there is a move.

Fix http://b/issue?id=2606815
/frameworks/base/core/java/android/webkit/WebView.java
5a2e428ce8ce6d7f13a8b6caf90534a4ca794e9f 17-Apr-2010 Grace Kloba <klobag@google.com> am eb94c44c: am 17e36d23: am 3c44db3f: Merge "Missed a case to resumeUpdatePicture." into froyo
aa373c986871d1f202ea78fc4a4585a7c1442b0c 17-Apr-2010 Grace Kloba <klobag@google.com> Missed a case to resumeUpdatePicture.

Fix http://b/issue?id=2603882
/frameworks/base/core/java/android/webkit/WebView.java
ae9f8e4abdf49f5da55317643f1e2a6296165356 14-Apr-2010 Leon Scroggins III <scroggo@google.com> Request focus when MotionEvent.ACTION_UP is received.

Bug 2585857

Change-Id: I2e852d2225db4d1ba48815354a31e0823e4d3a8d
/frameworks/base/core/java/android/webkit/WebView.java
bf07bc932b85f3290335d60076e8fbf8df1dbcbd 15-Apr-2010 Grace Kloba <klobag@google.com> am 8579f211: am e35a45b7: am 8a878dde: Merge "Pass WebKit scrollbar mode to Java. When scrollbar is alwaysOff, don\'t trigger scroll." into froyo
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/WebView.java
50004bcd4b77d729d64a229149bc294f33768482 14-Apr-2010 Grace Kloba <klobag@google.com> Pass WebKit scrollbar mode to Java. When scrollbar
is alwaysOff, don't trigger scroll.

If there is no horizontal and vertical scrollbar,
don't trigger the zoom control neither.

Fix http://b/issue?id=2512549
/frameworks/base/core/java/android/webkit/WebView.java
102ed89dbccdebb8d4c1fc0c3ec2957d55be1a22 14-Apr-2010 Grace Kloba <klobag@google.com> If we defer processing the touch events, pass the
original view coordinate with TouchEventData and use
them when we reprocess the events. We can't depend
on contentToView() to convert the doc point to the
view point. When we originally convert the view to
doc, the scroll position in UI doesn't change. When
we convert the doc back to view, we are chasing a
moving target. That is why we saw bigger delta.

Fix http://b/issue?id=2577274
/frameworks/base/core/java/android/webkit/WebView.java
d40746b13d52380b9d41110d6a11b304ddb2f22d 14-Apr-2010 Grace Kloba <klobag@google.com> am 105c58de: am 346c97c4: am 58af51a1: am 763e62a8: Fix a case introduced by https://android-git.corp.google.com/g/#change,47640
16bd9372ee724b78d96fbddd551aa3e42a8451a6 12-Apr-2010 Steve Howard <showard@google.com> Hide zoom buttons when a view gets hidden, i.e. by a TabHost

When a View uses a ZoomButtonsController, it needs to explicitly hide
the zoom controls when it gets hidden itself, such as when it's within
a TabHost. Add a note to the javadoc to do this via
onVisibilityChanged(), and update WebView to follow the instructions.

Thanks to Ross Levinsky for discovering and tracking this one down.

Bug: 2582718
Change-Id: Ia0c9ea4efcb29eb1f321be54f3d8ae1e056df6b7
CC: rosslevinsky@google.com
/frameworks/base/core/java/android/webkit/WebView.java
763e62a831f6cf4e113bff868dab4d48560a3693 13-Apr-2010 Grace Kloba <klobag@google.com> Fix a case introduced by https://android-git.corp.google.com/g/#change,47640

We skipped a call to WebKit at the end of the zoom
animation in the last CL.

Fix http://b/issue?id=2578820
/frameworks/base/core/java/android/webkit/WebView.java
63284ede623ca8a4119f1f44b86fbf017faba8dc 09-Apr-2010 Leon Scroggins <scroggo@google.com> Do not check mWebTextView's focus state to determine editing mode.

Fix for bug 2568400.

Change-Id: I7e285388484bbab3aef9b6f4bb190e001266ce53
/frameworks/base/core/java/android/webkit/WebView.java
9b6578071fbe042b5a77f621d1bdc76e92720e48 08-Apr-2010 Grace Kloba <klobag@google.com> Set mHeldMotionless to a new MOTIONLESS_IGNORE state
for fling, this way we will trigger animateScroll
during fling for the faster performance. We also
avoid keep removing/sending DRAG_HELD_MOTIONLESS
message during fling.

Fix http://b/issue?id=2574172
/frameworks/base/core/java/android/webkit/WebView.java
da9a22bc5cfd87d80d5afa53fa8c1d29b0407a07 08-Apr-2010 Patrick Scott <phanna@android.com> Save/restore the picture in a background thread.

Bug: 2573879
Change-Id: I0962f5286d3a68f8a9093f0c22917b0542ea9291
/frameworks/base/core/java/android/webkit/WebView.java
524aab57cdad19514443e52a0710d0e2b148f281 07-Apr-2010 Grace Kloba <klobag@google.com> For performance reason, we choose to block the picture
update during drag and fling. For sites like nytimes.com,
there is a JavaScript constantly updating the content.
If we don't block the live update during drag/fling,
frame rate can drop by 30%.

This essentially reverted the CL for http://b/issue?id=2310295.
But as we honor preventDefault on touch move now,
the two sites mentioned in that bug do not have problem
even after this CL.

Fix http://b/issue?id=2574172
/frameworks/base/core/java/android/webkit/WebView.java
188bf8deb4468d3901c466352bf88378819d04d6 07-Apr-2010 Grace Kloba <klobag@google.com> Revert "Use the content width to calculate the zoom overview"

This reverts commit 4a4f9886a789ece80f127397c1c7ad7f543b78fa.

Fix http://b/issue?id=2577238
/frameworks/base/core/java/android/webkit/WebView.java
3eefc126e5a0b4af4738332e8d43fe2e2d00424c 05-Apr-2010 Cary Clark <cary@android.com> check for webviewcore before reading settings

In setActive(), the WebViewCore instance may
have already been destroyed before the settings
object can be read.

Change-Id: I46b2a57b2d92fc7216b1c984f7044fea1fc2409e
http://b/2570700
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
327dce9e36f86dcb57bc45da6273df27aab60b02 03-Apr-2010 Grace Kloba <klobag@google.com> Make sure when WebView modified mScrollX/Y directly,
onScrollChanged() is called so that the View system
can do what it needs to adjust.

As WebView's onScrollChanged will call sendOurVisibleRect(),
we don't need to call it explicitly any more.

Fix http://b/issue?id=2438457
/frameworks/base/core/java/android/webkit/WebView.java
9b95ab17ecdaf1e3501f0deb7580cb2b5492331a 02-Apr-2010 Grace Kloba <klobag@google.com> Instead of holding an ApplicationContext, JWebCoreJavaBridge
will have a reference of the current window's main
WebView. It is only non-null if the WebView's window
has the focus.

Extract setActive() from onWindowFocusChanged() so
that onAttachedToWindow() can call it directly. The
old way has a mis-matching call to onWindowFocusChanged.

Fix http://b/issue?id=2559152
/frameworks/base/core/java/android/webkit/WebView.java
ad7a1d79f70db2bcf07b21e1b0d98a04a69888fc 01-Apr-2010 Grace Kloba <klobag@google.com> As we don't support over scroll any more, we need
to pin the (x,y) if we handle the drag after the
plugin choose not to handle the event.

Fix http://b/issue?id=2563143
/frameworks/base/core/java/android/webkit/WebView.java
397ffdfcb0847bf7987cdf6b7214b6222e15ba0f 30-Mar-2010 Grace Kloba <klobag@google.com> Remove the shadow under url bar.

This was introduced when we remove the over scroll.

Fix http://b/issue?id=2557916
/frameworks/base/core/java/android/webkit/WebView.java
9d32d24dbd8a015c9d5c44ed4901d5a666eb8e7f 30-Mar-2010 Adam Powell <adamp@google.com> Remove overscrolling

Change-Id: I7e9db8d8a9b8ef67f0c0c82bf57c9155b7ebabea
/frameworks/base/core/java/android/webkit/WebView.java
51b97011b73c10b832ea4ad10637f761802e125d 29-Mar-2010 Grace Kloba <klobag@google.com> cherry-pick 4a4f9886a789ece80f127397c1c7ad7f543b78fa into froyo

Use the content width to calculate the zoom overview
width. We used to use the minimum preferred width
to calculate the overview width as it is what we
use to define the viewport width. But some sites,
like cbsnews, engadget, the content width will be
slightly wider than the viewport width decided by
the min preferred width. The result is we can still
scroll a little bit in the overview mode. This issue
is magnified when we introduce the overscroll feature.

By using content width as zoom overview width, we
will have content fit in the overview mode. But
some sites, like
"http://www.sfjazz.org/concerts/2010/spring/artists/towner.php"
will be layout wider in the overview mode than it
is in the zoom in state. This is a tradeoff.

Fix http://b/issue?id=2551119
/frameworks/base/core/java/android/webkit/WebView.java
7c3006f53ac02adeac7396726cdc0bf5d6d01926 29-Mar-2010 Leon Clarke <leonclarke@google.com> http://b/issue?id=2496591
When receiving a message to delete the root layer, delay it until the next
new picture message, so that the layers only disappear when we start displaying
the new page, and not the moment the DOM on the old page is destroyed.
/frameworks/base/core/java/android/webkit/WebView.java
378f0280006aa5c81643378100274608941b7502 26-Mar-2010 Grace Kloba <klobag@google.com> Remove long_press when WebView lost window focus.
Reset touch mode too.

Fix http://b/issue?id=2542711.

Also move dismissZoomControl() before calling
super.onDetachedFromWindow(). This is a guess to
fix http://b/issue?id=2547574
/frameworks/base/core/java/android/webkit/WebView.java
7e8bc24f626dc37f3ee9850770f5aa7fae305a09 26-Mar-2010 Grace Kloba <klobag@google.com> cherry-picked bf4650ca39c9153e38c76280ceb5e9af48b67751 to froyo

According to GMail profile, almost half of WebView
init time is spent in creating the zoomControl which
is not used by them. So change to lazy initialize
the ZoomButtonControl which will be used by Browser.

Fix http://b/issue?id=2546481
/frameworks/base/core/java/android/webkit/WebView.java
9c4750a6763ac0833f0d2d22bdeaa86561bbbebb 25-Mar-2010 Grace Kloba <klobag@google.com> Draw a hairline border in the overscroll mode.

Fix http://b/issue?id=2542449
/frameworks/base/core/java/android/webkit/WebView.java
1cd1c8e8be92c12661d577770e90371a79f12825 25-Mar-2010 Grace Kloba <klobag@google.com> There are two computeHorizontalScrollRange() got
missed in the last conversion.

Fix http://b/issue?id=2542555
/frameworks/base/core/java/android/webkit/WebView.java
1bb1a911c35c9df5fdbcaca13f97aa29dcec6cfb 23-Mar-2010 Leon Scroggins <scroggo@google.com> If failUrl(now historyUrl) is null, use "about:blank" instead of "".

This prevents a crash that is caused by calling
WebView.loadDataWithBaseUrl with a null failUrl (which I have renamed
to historyUrl). Also update the docs to be more accurate.

Fixes the general case of bug 2522457

Change-Id: I832351ce1e0016b00e924a2f9b0097ae15fba34a
/frameworks/base/core/java/android/webkit/WebView.java
2cd5c59b5a471a857e304f073c7e8b61e4d14d9c 23-Mar-2010 Adam Powell <adamp@google.com> Make WebView scroll bars compress during overscroll.

Change-Id: Ia0caaf67088134efa78b5a0c87fea7a9be93f467
/frameworks/base/core/java/android/webkit/WebView.java
1fa70928d3207c357bc8834f098b52e9f6107480 22-Mar-2010 Derek Sollenberger <djsollen@google.com> fixing problem with allocating too much memory to a surface by fixing
the size of the surface when it exceeds a threshold and resizing the
surface when it falls beneath the threshold.

This change also causes the surface to fix its size while it is
being zoomed in order to prevent the surface from getting multiple
surfaceChangedEvents as the result of a zoom. This also allows us
to have a smooth zoom animation for the surface.

Change-Id: I30e208f98d3a32660032bf1df9de77d0a813d756
/frameworks/base/core/java/android/webkit/WebView.java
b64f6f895325a4597ee17e9fca8e5bab38d8c3b5 23-Mar-2010 Mike Reed <reed@google.com> only send new visiblerect and size on onscrollchanged if we're not in overscroll mode

Change-Id: Ifa290121db8f0a3612f40c40bab4f92494ce93df
/frameworks/base/core/java/android/webkit/WebView.java
4d8ef420037ccc8fdab33ff2aac8b309a164120a 23-Mar-2010 Shimeng (Simon) Wang <swang@google.com> Check mWebViewCore to prevent potential NPE.

Bug:2532493
Change-Id: I917c57dced8638f36252638bb9814e26cdbc2768
/frameworks/base/core/java/android/webkit/WebView.java
cad9ab60ce3789335c37ca5c684a6b5c3356b7bf 21-Mar-2010 Grace Kloba <klobag@google.com> In some case, like in Email, the WebView can be
detached from Window long after it is destroyed.
As we freed the native side by setting mWebViewCore
to null, we can't access settings any more. In this
case, just hide both styles of zoom control.

Fix http://b/issue?id=2532401
/frameworks/base/core/java/android/webkit/WebView.java
ee8500eeb07aa8f0b73df3f29bf9a0c0ad887377 20-Mar-2010 Grace Kloba <klobag@google.com> Don't overscroll horizontally if the content just
fit in the WebView.

Fix http://b/issue?id=2530843
/frameworks/base/core/java/android/webkit/WebView.java
21817f6e2924217a1c456f3ba7e9a359b00602d2 20-Mar-2010 Grace Kloba <klobag@google.com> Explicitly dismiss the zoom control if
1. start double tap
2. start pinch
3. start a popup window
4. about to detach from window
5. WebView size change which happens when IME is up
or rotation changed.

Partial fix http://b/issue?id=2530401. Dismiss the
zoom control of the main window when bringing up
the sub window
/frameworks/base/core/java/android/webkit/WebView.java
dba8cb76371960457e91b31fa396478f809a5a34 19-Mar-2010 Brian Carlstrom <bdc@google.com> b/2511635 Browser displays incorrect SSL cert information

Two more cases of "View certificate" problems like b/2511635

One problem is that if there are multiple resources downloaded for a
page. In that case the mCertificate shown ends up being from the last
loaded resource instead of the main resource of the page. The solution
is to only set the certificate if the LoadListener is the
mIsMainResourceLoader as well as the mIsMainPageLoader.

A larger problem was the fact that the EventHandler.certificate
interface method (in this case the LoadListener.certificate
implementation) once per https connection instead of once per request
as was documented. That meant if an https connection was reused (which
happens frequently on login pages such as
https://www.google.com/accounts which use the POST -> redirect -> GET
idiom to avoid POST data page refresh warnings) then later pages never
were associated with an SslCertificate.

The solution was to change EventHandler.certificate to be called once
per request, specifcally before the request. This means we no longer
call the certificate method in the handleSslErrorRequest case, which
is okay because it includes the SslCertificate within the SslError and
that is what the BrowserActivity expects.

Change-Id: Icbd9bd98c89db82762d1d06de85e1cde2470300d
/frameworks/base/core/java/android/webkit/WebView.java
f4418b0113ff63c82348844f4c945c81aa9157ad 19-Mar-2010 Grace Kloba <klobag@google.com> Change api for webview overscroll background.
/frameworks/base/core/java/android/webkit/WebView.java
e5e63f492147b6d6dee2f5e7b85fe9a3110ff0ad 19-Mar-2010 Mike Reed <reed@google.com> remove special-case logic to allow the titlebar to always scroll off the screen. This means that we
now won't force pages to resize due to scrolling.

fixes http://b/issue?id=2512549

Change-Id: Icd91d032ccfc78db6011f293b33543ff2f27f3cf
/frameworks/base/core/java/android/webkit/WebView.java
f8338d4a98f87c426c4281d97e5df0fecaa74184 19-Mar-2010 Grace Kloba <klobag@google.com> Change overscroll background to be same as status
bar pulldown.

Fix http://b/issue?id=2520825
/frameworks/base/core/java/android/webkit/WebView.java
b415779e3ba8147704f1d408cd932554c0a45a22 18-Mar-2010 Leon Scroggins <scroggo@google.com> Pass selection data with the message to open the keyboard.

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

Requires a change to external/webkit.

Change-Id: I501c3b1a9ae602458b830d34f779ccedf51dba9b
/frameworks/base/core/java/android/webkit/WebView.java
e84a0db030ac95deb74e59864ff65516a243d3b8 17-Mar-2010 Cary Clark <cary@android.com> simplify utility to hit-test focused plugin

After about 4 taps, this starts to return that the tap was
in the plugin. Before that, the plugin doesn't have focus.
Derek may want to verify that everything is working as it
should -- maybe it just takes that long for webkit to take
focus.

companion fix in external/webkit

Change-Id: I80ffba6c55876b0af9c305c539a10e8e8ed7cb3c
http://b/2521087
/frameworks/base/core/java/android/webkit/WebView.java
8a836a8b98557263152a476f614b6e05e19ffc5a 18-Mar-2010 Adam Powell <adamp@google.com> Eliminate haptic feedback when hitting an overscroll barrier due to a fling.

Change-Id: I434ec3edd95a19677ad9dbd1ac5ca3f3f5d091cb
/frameworks/base/core/java/android/webkit/WebView.java
69a63b0c52499e594536e2483d434b0c53a0fb28 17-Mar-2010 Leon Scroggins <scroggo@google.com> Allow the shift key to be passed to plugin.

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

Do not return so that we can fall through and pass the shift up
to the page.

Change-Id: Ib3c07f2d39e772f88dd6eee6390034e5a3e3e026
/frameworks/base/core/java/android/webkit/WebView.java
4ab72cb7e79c15b94b4b7aca4cdb28677a615f8a 15-Mar-2010 Brian Carlstrom <bdc@google.com> b/2511635 Browser displays incorrect SSL cert information

WebView's mCertificate member was not cleared when going to new
pages. Rather than clearing mCertificate as was done in previously in
WebView.goBackOrForward, we now clear when CallbackProxy receives a
PAGE_STARTED message.

This problem was highlighted whenever we went to a https page that was
in the cache, since the cache does not store certificate information,
so "More > Page Info > View Certifcate" was showing the certificate of
the last non-cached page because it had not been cleared. See also
b/2516638 "SslCertificate information not cached by CacheManager"

Change-Id: I40284f22ceb7150a6b20ecc2741f6153ed9a3276
/frameworks/base/core/java/android/webkit/WebView.java
1e65d9e561bfc72f6f5297613be76883a37f83f0 13-Mar-2010 Grace Kloba <klobag@google.com> Use float instead of cast to int when calculating
the new zoom center. This should avoid the rounding
difference which caused the video in nytimes.com
not fully fit in the current view.

Fix http://b/issue?id=2512510
/frameworks/base/core/java/android/webkit/WebView.java
fc2ece4ab6c057cf133c5a320d49f62840d55c4b 15-Mar-2010 Cary Clark <cary@android.com> update comment on WebView loadData

Change-Id: I20fbfabde7eafb8017036a7360ed83fa457cc42c
http://2400117
/frameworks/base/core/java/android/webkit/WebView.java
c28ff44b1e48c7232065b0a81f64a7accb9d2ebf 09-Mar-2010 Derek Sollenberger <djsollen@google.com> Allow plugin's surface to handle touch when in full-screen.

There is a matching commit in external/webkit

Change-Id: I88d8c533eb821c564c453dfd7293616669b3bf37
/frameworks/base/core/java/android/webkit/WebView.java
e8300a1dc544d2118dd577bf9fe9cf3ad1c0ee57 12-Mar-2010 Grace Kloba <klobag@google.com> Expose smart-zoom, or centerFitRect to native.

Clean up the old centerPluginOnScreen so it can be
used to center fit any rectangle on the screen.

Fix http://b/issue?id=2510670
/frameworks/base/core/java/android/webkit/WebView.java
2563ffb84fc1ef569c06a35aab413258deab6bfe 12-Mar-2010 Grace Kloba <klobag@google.com> If we can't over scroll horizontally, set vx to 0 in
doFling. Otherwise if vx is greater than vy, as we
pin x later in onOverscrolled(), the fling doesn't
work as expected.

Fix http://b/issue?id=2507550
/frameworks/base/core/java/android/webkit/WebView.java
a91e972752211d6731fb6784f3f9b653add58aa8 12-Mar-2010 Cary Clark <cary@android.com> missing checks for native class before calling native code

Change-Id: I1dc77c10e7aff68f8327708291fcff5551722703
http://b/2509668
/frameworks/base/core/java/android/webkit/WebView.java
e47ac47d6c744ea1cc242a002754598eeee79335 11-Mar-2010 Grace Kloba <klobag@google.com> If the Picture is not ready, just draw the background
and return. This should help to avoid the flash in gm.

Fix http://b/issue?id=2494990
/frameworks/base/core/java/android/webkit/WebView.java
c6f95fe5236d8bd60ac01e7feb422f6fac70bf6f 10-Mar-2010 Grace Kloba <klobag@google.com> Implement smart-zoom per Adobe request.

When double tap on plugin object, we toggle between
centering plugin object and overview mode.

Fix http://b/issue?id=2501726
/frameworks/base/core/java/android/webkit/WebView.java
2809631e59f4f967767ca8a97b8c0589030fac27 10-Mar-2010 Cary Clark <cary@android.com> use the correct LayoutParams to fix going to fullscreen view

Change-Id: Id4d1841d720011c6fda6c43fe7ffb55762cef259
http://2467842
/frameworks/base/core/java/android/webkit/WebView.java
180403ac103e8ee1eeb07c5e3377748ee6a03917 10-Mar-2010 Mike Reed <reed@google.com> pin our visible content bounds to the bounds of the doc itself, to account for overscroll

Change-Id: I3c8165338e31da45a70b3f65ba8389a7a50d6e07
http://b/issue?id=2496502
/frameworks/base/core/java/android/webkit/WebView.java
2d17e1d212ed88fdeca4b27bf04c17c56bd5dee1 09-Mar-2010 Grace Kloba <klobag@google.com> Add an api to set WebView over scroll background.

If the WebView doesn't support zoom, or WebView does
not use wide viewport and horizontal is just fit,
don't do over scroll.

Fix http://b/issue?id=2498403
Fix http://b/issue?id=2497901
/frameworks/base/core/java/android/webkit/WebView.java
7a37587664baf274633db415c4a2589288b653b0 09-Mar-2010 Leon Scroggins <scroggo@google.com> Set mShiftIsPressed properly when the focus is a plugin.

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

Change-Id: I3140c3c3a0bd44af85939aceb0bbd07c0861cde4
/frameworks/base/core/java/android/webkit/WebView.java
c2242f2b5f7daa6dcb1821beeacdc649313d8392 05-Mar-2010 Grace Kloba <klobag@google.com> Rewrite the WebView touch to support Flash.

When a page is loaded, Flash won't be the touch target.
This is ensured by another CL in external/webkit. When
user taps or uses nav key to make the Flash to be the
document focused node, it will take all the touch
events without time out. If Flash didn't call prevent
default, these touch events will be reprocessed by
the Browser. For double tap and long press, Browser
needs to detect and generate them for Flash.

While Flash is in full screen mode, it will take all
the touch events. If Flash doesn't consume them, they
won't be reprocessed by the Browser. Browser does need
to detect and generate the special events like double
tap and long press for full screen Flash.

Here are changes made for JavaScript touch events.

1. preventDefault on touchMove works now. If the author
calls preventDefault on touchStart, UI will not handle
this touch sequence. If the author didn't call preventDefault
on touchStart, it can call preventDefault on the first
touchMove to prevent UI from panning the page. We
currently do not support alternating preventDefault
during touchMove.

2. The first touchMove is only sent when the movement
is more than the system slop. There was a bug introduced by
https://android-git.corp.google.com/g/#change,42848
where the touch events are not sent to WebCore if
preventDefault is called. This is fixed now.

3. Move sending TOUCH_EVENT to WebCore into each state.
So if user stops a fling and continue drag, it won't
send the touch_down as we are in drag mode.

4. Remove event time as Adobe doesn't need it any more

Fix http://b/issue?id=2438503
Fix http://b/issue?id=2478701
Fix http://b/issue?id=2390587
/frameworks/base/core/java/android/webkit/WebView.java
0409857f8ff1b140733537db4bf56ccc663318e7 09-Mar-2010 Andrei Popescu <andreip@google.com> Make sure access to WebView::mWebViewCore is synchronized.

Fix bug: 2498784
/frameworks/base/core/java/android/webkit/WebView.java
3dc02fecbe87484133e3c07fe194d7d7327cfe39 09-Mar-2010 Leon Scroggins <scroggo@google.com> For flash trackball, send several downs followed by a single up.

Change-Id: I2ca892bc409372ab1389f2da8254f13b2d84351c
/frameworks/base/core/java/android/webkit/WebView.java
31b83675707a2439995583a12322c9a928b0d361 09-Mar-2010 Cary Clark <cary@android.com> requestChildRectangleOnScreen takes layers into account

Call native LayerAndroid::subtractLayers so
the layers can be removed from the visible portion of the screen
when computing how much to scroll.

companion fix in external/webkit

Change-Id: Ib441b826ab5b2baaba20f41f392848a28a9e09ee
http://b/2453841
/frameworks/base/core/java/android/webkit/WebView.java
b127c8ff0e725fb7124c720578412be576016df3 05-Mar-2010 Leon Scroggins <scroggo@google.com> Pass keys to plugin while shift is held down.

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

Change-Id: Ie252527957958d977cec044a1d383c229d3a3268
/frameworks/base/core/java/android/webkit/WebView.java
ad7dd48361d9d510e8c5b43acef2f43c2fccbb2c 05-Mar-2010 Cary Clark <cary@android.com> scroll into view considers layers

Remove view metrics data, which is a duplicate of
an existing interface (calcOurContentVisibleRect)

companion fix in external/webkit

http://b/2485168
/frameworks/base/core/java/android/webkit/WebView.java
30df237f19228ef38d91b92fa0d0809a5c61d2a4 06-Mar-2010 Raphael <raphael@google.com> ADT: Mark WebView as a Widget. Eclipse/ADT will display it in the GUI creator.

SDK Bug 1588698

Change-Id: I47321a0e21a0761d20ed5e61a1a1db1024a141c5
/frameworks/base/core/java/android/webkit/WebView.java
d7625dd2810e164f270fc680f8b547aa016d8892 04-Mar-2010 Grace Kloba <klobag@google.com> Adding over scroll to webview. We will always apply
over scroll vertically. In horizontal direction, if
the page can't be zoomed and the current content just
fit, we will not do over scroll.

Per UI request, only draw the shadow when title bar
is not visible.
/frameworks/base/core/java/android/webkit/WebView.java
1c02c6a7d8c38571124188b0c70a9337d6d66ccd 05-Mar-2010 Shimeng (Simon) Wang <swang@google.com> Squashed commit of the following:

commit 35ade1c72b5fe34c177712108ccbc070eab11a87
Author: Shimeng (Simon) Wang <swang@google.com>
Date: Thu Mar 4 16:29:01 2010 -0800

Alternative way to fix the history picture drawing issue.

Disable zoom part for history picture mode.

Bug: 2462039

commit 1a27acaa36c60546e5e6b2e1caf4ce5488dad14b
Author: Shimeng (Simon) Wang <swang@google.com>
Date: Thu Mar 4 16:06:41 2010 -0800

Use the screen width to derive the desired scale.

This is to fix the history picture draw issue. Since the mActualScale
will be changed in some other places.

Bug: 2462039
/frameworks/base/core/java/android/webkit/WebView.java
189e7355e6a9455e7559a26ed42f8ae9ab0c6886 05-Mar-2010 Mike Reed <reed@google.com> return false if any exception is thrown from savePicture
/frameworks/base/core/java/android/webkit/WebView.java
966641a8da5361681e14ffaa00f2b69301b7c629 04-Mar-2010 Cary Clark <cary@android.com> add comment for public function

http://b/242036
/frameworks/base/core/java/android/webkit/WebView.java
75a36c2bc70a5b1438b75c8ccb15a41d02d78c62 04-Mar-2010 Leon Scroggins <scroggo@google.com> Remove an overzealous call to setDefaultSelection.

This was added to try and fix an earlier bug,
http://b/issue?id=2431351 However, it results in all
touches setting to the default selection, which
is incorrect.

Fix for http://b/issue?id=2486721
/frameworks/base/core/java/android/webkit/WebView.java
f6bd0ba6308673a8b6bb9f71dd40a09d11c0d90d 02-Mar-2010 Grace Kloba <klobag@google.com> Don't send ACTION_MOVE to webkit until the distance
is confirmed to be a drag.

Always send touch events to webkit if a subview, plugin,
is in full screen mode.

Fix http://b/issue?id=2478701
/frameworks/base/core/java/android/webkit/WebView.java
3403eb3156d5d1e1ac6ee83bc0085e0889805411 03-Mar-2010 Cary Clark <cary@android.com> refactor find state and scrolling

Separate out state when find is up and is empty.
Request a scroll when setting a match, rather than when drawing.
Don't draw if there's no match.

Companion fix in external/webkit and packages/apps/Browser

http://b/2370069
/frameworks/base/core/java/android/webkit/WebView.java
de023c1dddbad3812d5695d5ddf375db06a237d2 03-Mar-2010 Cary Clark <cary@android.com> refactor find state and scrolling

Separate out state when find is up and is empty.
Request a scroll when setting a match, rather than when drawing.
Don't draw if there's no match.

Companion fix in external/webkit and packages/apps/Browser

http://b/2370069
/frameworks/base/core/java/android/webkit/WebView.java
0b2e84b32af48f4b2b17c72adcf12ad29ec7bb7a 02-Mar-2010 Patrick Scott <phanna@android.com> Add a client for WebBackForwardList operations.

Provide a custom data slot in WebHistoryItem to store application data in the
history item. A client of WebBackForwardList can insert their custom data into
the item when created. In onIndexChanged, the custom data can be read by the
client.
/frameworks/base/core/java/android/webkit/WebView.java
4addf9b5d8893ad54eddcf11dff9dea4ef4f82c7 02-Mar-2010 Grace Kloba <klobag@google.com> When titlebar's visible height changed, it means the
WebKit viewsize need to be updated.

Fix http://b/issue?id=2470621
/frameworks/base/core/java/android/webkit/WebView.java
72ab9980cbd9cdeb5a616724343131520514217c 02-Mar-2010 Cary Clark <cary@android.com> account for find dialog height when positioning layers

The Find dialog draws on top of the WebView, including any
layers attached to the bottom of the screen. Adjust the view
dimenions returned to the layer code by the height of the Find
dialog if visible.

http://b/2453769
/frameworks/base/core/java/android/webkit/WebView.java
12f807091db10d30aee53b98a175668abf91f6e0 01-Mar-2010 Grace Kloba <klobag@google.com> am 3ca122df: am cfb50c66: Merge "If we get TOUCH_UP before getting the WebCore\'s response for TOUCH_DOWN, remove the pending TOUCH_EVENT before proceeding to fling." into eclair-mr2

Merge commit '3ca122df9e9a25f7ed1c39ef18c5c4ba2e316fe8'

* commit '3ca122df9e9a25f7ed1c39ef18c5c4ba2e316fe8':
If we get TOUCH_UP before getting the WebCore's
a752a949afab51854bf649873d418bb205981c3b 01-Mar-2010 Grace Kloba <klobag@google.com> If we get TOUCH_UP before getting the WebCore's
response for TOUCH_DOWN, remove the pending TOUCH_EVENT
before proceeding to fling.

This is partial fix for
http://b/issue?id=2450534
/frameworks/base/core/java/android/webkit/WebView.java
b3d0cc5ca99753c7aae3c04a5d7b607ce0aeabbb 01-Mar-2010 Grace Kloba <klobag@google.com> If zoom scale is set to minimum, treat it as in overview
mode.

When view size changed, we will adjust scale factor,
which should update the zoom button states afterwards.

http://b/issue?id=2477282
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
018ff891a04b5849a1cfb15e5272330ee3f1810a 25-Feb-2010 Cary Clark <cary@android.com> don't draw layers with history

The history picture and the layers drawn may be out of sync,
so for now, don't draw the layers when the history picture is
drawn.

Also, remove native class check from drawExtras() since it
is already checked by the caller.

fixes http://b/2457350
fixes http://b/2453780
/frameworks/base/core/java/android/webkit/WebView.java
0aa341f0d1b8729c0b65adedcd1738d87d7a448a 24-Feb-2010 Leon Scroggins <scroggo@google.com> When opening the IME or sending a key to a non-cursored textfield, set the default selection.

Fix for http://b/issue?id=2431351
/frameworks/base/core/java/android/webkit/WebView.java
2ec30697c6cc6812dfaeb9a2e7d1da0443aeb8e6 23-Feb-2010 Cary Clark <cary@android.com> refactor drawing to support layers

Drawing elements that appear atop or below layers need to be
drawn both in the proper order and with the correct canvas to
respect clipping and the matrix.

The logic of what to draw is still in WebView.java, but the
actual drawing calls are now triggered inside the layer code.

This still draws layers incorrectly after drawing the history;
will fix this in a future CL.

Move drawing to WebView.cpp.
Use inverseScale to simplify viewPort metrics.
Remove root layer; let WebView.cpp handle it exclusively.

Requires companion fix in external/webkit.

http://b/2457316
http://b/2454127
http://b/2454149
/frameworks/base/core/java/android/webkit/WebView.java
a406fb90805adf36fe0fabd3a79018e33706453c 24-Feb-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

If mPreventDrag is cancelled due to time out, remove
the pending TOUCH_EVENTS and then send an ACTION_CANCEL
and skip the rest of touch events.

This should address the drag problem Flash plugin has.

Fix http://b/issue?id=245053
/frameworks/base/core/java/android/webkit/WebView.java
93f5831ef27093ccd939077c00a6981a026a6c21 24-Feb-2010 Grace Kloba <klobag@google.com> If mPreventDrag is cancelled due to time out, remove
the pending TOUCH_EVENTS and then send an ACTION_CANCEL
and skip the rest of touch events.

This should address the drag problem Flash plugin has.

Fix http://b/issue?id=245053
/frameworks/base/core/java/android/webkit/WebView.java
e3844eeb349b9aa9437be6c43b0e1ecc151f6bd1 23-Feb-2010 Leon Scroggins <scroggo@google.com> Focus the IME on WebView when no textfield is in focus.

This is to fix a particular case where the navigation cache
does not recognize that a textfield is now in focus. A message
was sent from the WebCore thread telling us to open the IME on
the textfield. Open it with the WebView as the served view.

Fix for http://b/issue?id=2457459
/frameworks/base/core/java/android/webkit/WebView.java
8a032a3b29e7708e468e2078ff88a39e083db1da 02-Feb-2010 Ben Murdoch <benm@google.com> Pass key modifier state to webcore for touch events and update DRT so it can simulate them.

Change-Id: Ic5aa8cb0376f6a3eecaa6340d57f28fa97f016bd
/frameworks/base/core/java/android/webkit/WebView.java
bcbf564a3f527266693233cacd6728770d1a65fd 17-Feb-2010 Leon Scroggins <scroggo@google.com> At the end of a zoom, only check if the textfield is onscreen.

Previously, we checked to see if the IME was active on the WebTextView,
in an attempt to fix http://b/issue?id=2266066 . If so, we move the
textfield on screen. However, that is resulting in
http://b/issue?id=2147168 , where a textfield far offscreen is being
scrolled on screen at the end of a zoom, and with this change, the
latter bug is fixed. Further, I am no longer able to reproduce the
earlier bug with this change.
/frameworks/base/core/java/android/webkit/WebView.java
6088e83374d768aef441ea71ba9db1a00f57d80c 17-Feb-2010 Leon Scroggins <scroggo@google.com> Changes to remove WebTextView at end of touch/press rather than during.

Add a parameter for clearTextEntry to disable the focus controller,
and call clearTextEntry when releasing the trackball.

Requires a change to external/webkit

Fix for http://b/issue?id=2340871
/frameworks/base/core/java/android/webkit/WebView.java
855dd9e074c4dcb9c90deaeff1eb33d6394dd5da 27-Jan-2010 Cary Clark <cary@android.com> Add UI considerations to layers

companion fix is in external/webkit

- Add class to return view metrics.
- Draw cursor rings and find matches in proper order.

http://b/2369549
/frameworks/base/core/java/android/webkit/WebView.java
bd27544098a9fd50bf7964f108d656a905216caf 09-Feb-2010 Leon Scroggins <scroggo@google.com> Set up the WebTextView before setting its selection.

Fixes http://b/issue?id=2431351
/frameworks/base/core/java/android/webkit/WebView.java
a6d747d5c74558d73a95a69a52907c37815d3ba1 11-Feb-2010 Andrei Popescu <andreip@google.com> Implement navigator.isApplicationInstalled() API

This CL contains the framework plumbing to pass the package names to WebKit.

Fix b: 2371005
/frameworks/base/core/java/android/webkit/WebView.java
ac6df2d0376aed28eb0dac9baba00497ae40bdfb 11-Feb-2010 Nicolas Roard <nicolas@android.com> Move the animations in the UI thread
/frameworks/base/core/java/android/webkit/WebView.java
18e939623556928f73fcc7511c85a537929a4a7e 11-Feb-2010 Dan Egnor <egnor@google.com> Eliminate dependencies on Checkin, replacing checkin events with EventLog
events (and in one case, a DropBox entry).

Add a simple intent that triggers master-clear (and toggle EFS), given the
right permissions.

Bug: 2264596
Bug: 2350452
Bug: 2264596
/frameworks/base/core/java/android/webkit/WebView.java
614f8450a7f511e5ea279cfd870b1a8fa62ec5eb 02-Feb-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

cherry-pick https://android-git.corp.google.com/g/#change,39258 from master

Now mSupportMultiTouch is depending on WebSettings,
it can't be static any more.

Fix http://b/issue?id=2413364
/frameworks/base/core/java/android/webkit/WebView.java
5c84bf0a3bfa5f95f9f840fbd9a9b8239f76b3db 09-Feb-2010 Leon Scroggins <scroggo@google.com> Restart input when moving to a new textfield.

Ensures that the IME action gets updated properly.

Fixes http://b/issue?id=2428023
/frameworks/base/core/java/android/webkit/WebView.java
b7f17d474217d4a5869f5fe41a244254022edd01 09-Feb-2010 Shimeng (Simon) Wang <swang@google.com> Take into account the visible title height when scrolling.

Bug: 2425057
modified: core/java/android/webkit/WebView.java
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
c9532609f5248a73a19cd2b02f6824cf7b65d65d 08-Feb-2010 Mike Reed <reed@google.com> animated the return to normal of mr-stretchy
/frameworks/base/core/java/android/webkit/WebView.java
a61b67abc27b7fdc84a3d8d62101fb255de49aa8 03-Feb-2010 Grace Kloba <klobag@google.com> Pass touch event time from Java to WebKit

Merge from https://android-git.corp.google.com/g/#change,39355
/frameworks/base/core/java/android/webkit/WebView.java
ecbc65cf8f2ea3bdd311f954e3927b46fca068ff 13-Jan-2010 Ben Murdoch <benm@google.com> Add support for sending touch events in DRT.

As part of this, make it possible for DRT to configure the timeout threshold between sending touch events to WebCore as the Layout Tests only synthesize single events, not a stream. Because of this, they often get dropped by the WebView for coming too quickly.

Skip the multi touch test as we don't support multi touch in the Browser.

Change-Id: I7b9830f43181fea33206825b49ef2e294269b4dd
/frameworks/base/core/java/android/webkit/WebView.java
ecbfb2104f61f0a364a29b431abe6ec645ea6d51 03-Feb-2010 Ben Murdoch <benm@google.com> Revert "am 3db1ebaf: am 4ed2b1c3: Pass touch event time from Java to WebKit". The corresponding change to external/webkit creates a merge conflict in master.

Revert the frameworks/base part of the change so we can "do not merge" the external/webkit change and get the build working again. We can then later resolve
the conflict in external/webkit in master directly.

This reverts commit 9ecd9437ed57bedfa2a7626430be03f4924f6b42, reversing
changes made to 019fe73ddbf52edd1819e1d85a0b242ebccc7fc3.

Change-Id: Id1404fb056b033ebd60529dd326ec9a3c32f94b0
/frameworks/base/core/java/android/webkit/WebView.java
9ecd9437ed57bedfa2a7626430be03f4924f6b42 03-Feb-2010 Grace Kloba <klobag@google.com> am 3db1ebaf: am 4ed2b1c3: Pass touch event time from Java to WebKit

Merge commit '3db1ebaf1cc2a097845f217626e31d69e156b73d'

* commit '3db1ebaf1cc2a097845f217626e31d69e156b73d':
Pass touch event time from Java to WebKit
4ed2b1c34b2dd0e2bd2f403a6f3de0bdbf473b98 03-Feb-2010 Grace Kloba <klobag@google.com> Pass touch event time from Java to WebKit
/frameworks/base/core/java/android/webkit/WebView.java
f3be166946e946b2e4efe2945ac133ff9df920e4 02-Feb-2010 Grace Kloba <klobag@google.com> Now mSupportMultiTouch is depending on WebSettings,
it can't be static any more.

Fix http://b/issue?id=2413364
/frameworks/base/core/java/android/webkit/WebView.java
5e7bb0a9cafc5e90bf451faa5722bb80fb4294e9 01-Feb-2010 Andrei Popescu <andreip@google.com> Implement support for v8 counters
/frameworks/base/core/java/android/webkit/WebView.java
8a7ac8db1a0a53d60de87e2d1b48d9013857ac70 29-Jan-2010 Shimeng (Simon) Wang <swang@google.com> Anchor the page at top left corner when webView size changed.

Bug: 2356891
modified: core/java/android/webkit/WebView.java
/frameworks/base/core/java/android/webkit/WebView.java
a7bc87cb6a07d3d38a5c20759dbf2c3010dda4c2 29-Jan-2010 Grace Kloba <klobag@google.com> Added pause/resume update Picture to WebViewCore.
When animating zoom, we pause updating picture for
smooth animation.

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

Remove the unused param in reducePriority/resumePriority
/frameworks/base/core/java/android/webkit/WebView.java
d09f4aaba224bf2a94e75906a5b6bc27c2ab9ad7 29-Jan-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of bb074ef9 to master

Change-Id: I2d78d1280b56928f65517203348ddbd403fa9eae
98e6fcf2f776743674d5af5ce6413aaffb50858d 28-Jan-2010 Grace Kloba <klobag@google.com> Need to check parent for performLongClick() as it
is the result of a delayed message.

Fix http://b/issue?id=2398251
/frameworks/base/core/java/android/webkit/WebView.java
d0d9bc2f2fe737d186c0cc8c29a325e4f2907e8e 27-Jan-2010 Grace Kloba <klobag@google.com> Add request header support for the Browser/WebView.
QSB can use this instead of POST to send the location
data. After QSB makes the switch, we should also
remove the POST_DATA intent which is hidden.

Add loadUrl(String url, HashMap extraHeaders) to
WebView so that the caller can send the extra http
headers.

Remove "inline:" as no one is using it and it is a
hidden feature.

Part 1 of 3-project checkin.
/frameworks/base/core/java/android/webkit/WebView.java
769ed21c33c3629411eb3bbf924de45737a18067 27-Jan-2010 Grace Kloba <klobag@google.com> Fix http://b/issue?id=2400423.

When the same page is loaded, updateRestoreState
will be false when we finish the first layout. As
we are still in the same page, we don't want to
update the current zoom/scroll. But in some cases,
like a site switch from mobile to full site and
keeps the same url, we do want to update the zoom
range as the viewport spec changed. Otherwise, user
can't zoom in the full site as the WebView thought
it is still a mobile non-scalable page.
/frameworks/base/core/java/android/webkit/WebView.java
493bcdda3b0b8df6a847e3521c0a93037bbd9163 19-Jan-2010 Nicolas Roard <nicolas@android.com> Fix memory leak with layers.
This fix bug http://b/2394813
This is a two-parts CL (needs C++ modifs)
/frameworks/base/core/java/android/webkit/WebView.java
7168231a40a97294e1a18e5d0d391b55915059a2 26-Jan-2010 Grace Kloba <klobag@google.com> am c811cd91: am caf0ce3c: Delay resetting mPreventDrag flags so that the Plugin will have more time to respond whether it wants to handle the touch events. (not have to return the value from WebViewCore before the first tap is up)

Merge commit 'c811cd916f7264f11ba4c96fcd8b88e5d58e04db'

* commit 'c811cd916f7264f11ba4c96fcd8b88e5d58e04db':
Delay resetting mPreventDrag flags so that the Plugin
79015fd26316bca57c39f553ff74fe4fa6376a49 26-Jan-2010 Grace Kloba <klobag@google.com> am cf0957ce: am 77dc179b: As embedded and full screen shares the same view, we have to replace the AbsoluteLayout with ViewGroup.Layout before setting it to the dialog as dialog\'s FrameLayout doesn\'t accept AbsoluteLayout.

Merge commit 'cf0957ce4b0ba45b6c66c726710a5126c6a57542'

* commit 'cf0957ce4b0ba45b6c66c726710a5126c6a57542':
As embedded and full screen shares the same view,
caf0ce3ca2b3deba4bcff6c920740bafd87f2b62 26-Jan-2010 Grace Kloba <klobag@google.com> Delay resetting mPreventDrag flags so that the Plugin
will have more time to respond whether it wants to
handle the touch events. (not have to return the
value from WebViewCore before the first tap is up)

Fix a potential null pointer exception.
/frameworks/base/core/java/android/webkit/WebView.java
96949efc541fb2efd8a7d359ca8461d34ea8eb8c 25-Jan-2010 Grace Kloba <klobag@google.com> We were blocking updating display tree during drag.
Now we only lower the WebViewCore thread priority.
So rename the functions to reflect the new meaning.
/frameworks/base/core/java/android/webkit/WebView.java
3a0def280fa4f6306929910a414b41ae58a7d139 24-Jan-2010 Grace Kloba <klobag@google.com> Manual merge pinch zoom from Eclair to Master.

Too many conflicts which prevent me to use git cherry-pick.
Merge based on the source diff.

WebSettings.java
https://android-git.corp.google.com/w/?p=platform/frameworks/base.git;a=commitdiff;h=5f01d7e268167c5cfb3366ce08e20a66d9b6fa6f

WebView.java (excl. drag tracker changes)
https://android-git.corp.google.com/w/?p=platform/frameworks/base.git;a=blobdiff;f=core/java/android/webkit/WebView.java;h=ab1841e140d72c22885512722cf1b75925bb8747;hp=ed1a98ae2d9321a483f6f8fa97b29b78121e94a7;hb=eclair;hpb=db08d5cd441424e4f9621aae7c2414934f781400

WebViewCore.java
https://android-git.corp.google.com/w/?p=platform/frameworks/base.git;a=blobdiff;f=core/java/android/webkit/WebViewCore.java;h=8ac915c556e3461f3c572c3a68d191ca1fecfee7;hp=a5a48527a389609e40da14ecad8c12dd8377cfaf;hb=eclair;hpb=dafc19a1406bdd554fb4629d79c8aa4d75aca363
/frameworks/base/core/java/android/webkit/WebView.java
5ff24d5da414db4e8c2ebe98f40976e7be62b72d 22-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

This reverts commit 52cb3cbd6fe06e3706be1a7c2939f027106aaaf7.
/frameworks/base/core/java/android/webkit/WebView.java
77dc179baa7b8fb405633fd46324e336285d10e2 22-Jan-2010 Grace Kloba <klobag@google.com> As embedded and full screen shares the same view,
we have to replace the AbsoluteLayout with
ViewGroup.Layout before setting it to the dialog
as dialog's FrameLayout doesn't accept AbsoluteLayout.

This should fix the crash when changing orientation.
/frameworks/base/core/java/android/webkit/WebView.java
72666bac20cddba1d2269578c82671fdf5beffc2 21-Jan-2010 Derek Sollenberger <djsollen@google.com> am 1f7747ad: am 7cabb03d: Resize the WebView when the soft-keyboard appears in landscape mode.

Merge commit '1f7747adb6a79317f4bd52fb78b3c567dd203883'

* commit '1f7747adb6a79317f4bd52fb78b3c567dd203883':
Resize the WebView when the soft-keyboard appears in landscape mode.
7cabb03da7053f3ceb5ff8b41b6a46052c6658a1 21-Jan-2010 Derek Sollenberger <djsollen@google.com> Resize the WebView when the soft-keyboard appears in landscape mode.

The WebView notifies the IME that it wishes to be resized when the
soft-keyboard is displayed. This fixes http://b/2170192.
/frameworks/base/core/java/android/webkit/WebView.java
52cb3cbd6fe06e3706be1a7c2939f027106aaaf7 17-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

Just scale the canvas instead of changing the real
scale factor during pinch.

Added over limit zoom feedback for pinch in the WebView.

Fix http://b/issue?id=2383539
/frameworks/base/core/java/android/webkit/WebView.java
8681df902e8cc61d290808c5d78ea48920d30f3b 21-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

Adopt the sloppy detection in the ScaleGestureDetector.
Try to fix the fat thumb problem.

Fix http://b/issue?id=2385061
/frameworks/base/core/java/android/webkit/WebView.java
12bcbdc681c3195069f55bd9abda900da0886c70 20-Jan-2010 Mike Reed <reed@google.com> Do not merge

port stretchy from master
/frameworks/base/core/java/android/webkit/WebView.java
f167c4bfca57b5467f40f6cf25e10fb12183a9f3 16-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

If pinched to overview mode, double tap should bring
it back to default instead of just setting the current
mode as overview mode.
/frameworks/base/core/java/android/webkit/WebView.java
17b14bd36aba265ac6bffc2626d8db29713d7c45 16-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

Make sure the mZoomOverviewWidth is as least as
wide as the current (adjusted) view width.

This should fix the weird state Bart got in with
m.wikipedia.org.
/frameworks/base/core/java/android/webkit/WebView.java
5a0bf1f03e5f62449ea2520edb79ea868e6f06e7 16-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

Remove testing (enable plugin) code.

No reflow when zoom in, auto reflow when zoom out.

Fix http://b/issue?id=2375955
/frameworks/base/core/java/android/webkit/WebView.java
19c9df3c1d882b21d6c5fe77f363cda5bf4c7d21 16-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

Bring back +/- when panning. Dismiss it when pinching.
/frameworks/base/core/java/android/webkit/WebView.java
f5dba888c671c1a4f32a07a4e8f028f7dadd2ce9 12-Jan-2010 Andrei Popescu <andreip@google.com> Detect if the current network is wifi or not and update webkit.
This info is passed to youtube.com via navigator.networkType

Fixes Bug: 2368650
/frameworks/base/core/java/android/webkit/WebView.java
fd787ba79de8119dac979bd7b94b94038dc66a8b 15-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

When adjust scale for zoom overview, keep the state
of whether textWrapScale is matching mActualScale.
So if user pinch during loading, we won't reflow.

Fix http://b/issue?id=2370552
/frameworks/base/core/java/android/webkit/WebView.java
1061a4dd73faf3fb5b32a6c13d685f068a31e413 14-Jan-2010 Nicolas Roard <nicolas@android.com> am 0123101a: am af2af4e5: Add proper support for fixed position elements

Merge commit '0123101af0e15221026f97f19dad23488840700a'

* commit '0123101af0e15221026f97f19dad23488840700a':
Add proper support for fixed position elements
af2af4e53aedb14c781d0351565fd7bec55a141a 11-Jan-2010 Nicolas Roard <nicolas@android.com> Add proper support for fixed position elements

this is two-part change, see http://android-git.corp.google.com/g/#change,37091 for the C++ counterpart.
This CL implements fixed position elements (css position: fixed) using layers, supporting pixels and percent lengths.

It addresses http://b/1914365
/frameworks/base/core/java/android/webkit/WebView.java
5f01d7e268167c5cfb3366ce08e20a66d9b6fa6f 14-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

Use the common ScaleGestureDetector to detect the
multi-touch motion.

Check both supportZoom and getBuiltInZoomControls
to decide whether enable the multi-touch behavior.
This should the new pinch behavior only replace the
old +/-.

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

Only update textWrapScale if it is different. This
should fix the performance decrease caused by initial
multi-touch code.

Fix http://b/issue?id=2371694
/frameworks/base/core/java/android/webkit/WebView.java
e67d5cee6706bf5b0af62965a5ccaadcc99002a6 12-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE.

Couple of tweak for multi-touch in WebView.

1. If we can't zoom, don't get in multitouch mode.
This avoid the logo in google.com looks fuzzy.
2. Reset mAnchor after sending VIEW_SIZE_CHANGED.
3. Don't call zoom when finishing multitouch unless
zoom is called before.
4. Change the width for nativeSetSize, which was modified
in the last check-in. The new logic should make both
msn.com and news.google.com looks correct.
5. Use the pressure instead of distance/time to filter
out the jitter just before lifting the finger.

Fix http://b/issue?id=2360032
/frameworks/base/core/java/android/webkit/WebView.java
bad0c54de9cf6557164f2e187e28f98bedf66716 11-Jan-2010 Cary Clark <cary@android.com> rebuild the nav cache if the clicked on node is invalid

Rebuild the nav cache in the webkit thread after determining
that the clicked on node isn't valid. Remove old code that
passed a flag to avoid using the invalid node, since it
should always be valid now.

requires a companion fix in external/webkit

fixes http://b/2362334
/frameworks/base/core/java/android/webkit/WebView.java
4c7ec8d6ab11408b6a9767b50c9fa73a834fe9a4 12-Jan-2010 Grace Kloba <klobag@google.com> As setNewZoomScale is called asynchronously, the
WebView can be destroyed. If it is, skip scaling.

Fix http://b/issue?id=2366538
/frameworks/base/core/java/android/webkit/WebView.java
a2b0d38f8c6311e712c32318d4ebb68e5a2fecef 07-Jan-2010 Grace Kloba <klobag@google.com> First draft of multitouch in the WebView.

Currently we just handle a simple pinch action. We
will wait for framework support for more complicated
gesture.

When pinch in the webview, zoom level will be changed
on the fly. But we won't re-wrap the text until user
action like double tap, rotate screen.

Double tap will re-layout the page and wrap the text
to the screen width. We try to keep the spot you
tapped at the same place on the screen after relayout.
If the block after relayout fully fit on the current
screen, we will center it for easy reading.

Fix http://b/issue?id=2360032
/frameworks/base/core/java/android/webkit/WebView.java
f6298db02365b5f31d7ab6b4dadcbe27bee88c43 11-Jan-2010 Leon Scroggins <scroggo@google.com> am ff7d33b5: am 04e0a101: Bring up IME after receiving a response from webkit.

Merge commit 'ff7d33b55b799b234f66fdcf65070ef590fee6d9'

* commit 'ff7d33b55b799b234f66fdcf65070ef590fee6d9':
Bring up IME after receiving a response from webkit.
04e0a1018f69b38827e63a7f19a4d1e341f9725a 08-Jan-2010 Leon Scroggins <scroggo@google.com> Bring up IME after receiving a response from webkit.

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

Requires a change to external/webkit
/frameworks/base/core/java/android/webkit/WebView.java
980a938c1c9a6a5791a8240e5a1e6638ab28dc77 09-Jan-2010 Romain Guy <romainguy@android.com> Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
/frameworks/base/core/java/android/webkit/WebView.java
b2924736d7de9b0ab8ff5b5ba737e0182b121fc5 08-Jan-2010 Mike Reed <reed@google.com> explicitly initialize static final boolean to fix build
/frameworks/base/core/java/android/webkit/WebView.java
fdc5424b1c152507a3def57aecad134b47908d74 08-Jan-2010 Mike Reed <reed@google.com> optional flag to enable tracker debugging
/frameworks/base/core/java/android/webkit/WebView.java
431f5fd9e8c9d63f77ae47cd156f72175307ff85 06-Jan-2010 Evan Millar <emillar@google.com> Unhide WebView#emulateShiftHeld() so that gmail can do select-to-copy
/frameworks/base/core/java/android/webkit/WebView.java
b0470f67a14662e1a258a05fc68a120e51e4f122 08-Jan-2010 Cary Clark <cary@android.com> am 2110bb02: am affa5d2c: remove unused jni interfaces

Merge commit '2110bb024eafe4578bb9acace9f1ad4ae55ff9fd'

* commit '2110bb024eafe4578bb9acace9f1ad4ae55ff9fd':
remove unused jni interfaces
affa5d2c0f7c2ade43ded5ff9a7952b269183117 07-Jan-2010 Cary Clark <cary@android.com> remove unused jni interfaces

Also make package interfaces unused outside of WebView.java
private.

companion change in external/webkit
/frameworks/base/core/java/android/webkit/WebView.java
283ae234a71cb83c5cd9f58fe2c2a9414987113e 07-Jan-2010 Leon Scroggins <scroggo@google.com> am bd6029fc: am 3a503399: Request <label> info only when accessing a textfield.

Merge commit 'bd6029fc5171e1094a00cdecb3f33aae6fe69c9f'

* commit 'bd6029fc5171e1094a00cdecb3f33aae6fe69c9f':
Request <label> info only when accessing a textfield.
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/WebView.java
f291b9fecb1e7537d614ba8e45b5b43a7e8bc76f 06-Jan-2010 Leon Scroggins <scroggo@google.com> am fbd3afb1: am e38fc189: Show label information as hint text

Merge commit 'fbd3afb1801ed69a5c948241e68b997be3d84f4e'

* commit 'fbd3afb1801ed69a5c948241e68b997be3d84f4e':
Show label information as hint text
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/WebView.java
57d2c3ad1929f0eff7e0abc47c28c09f32ac5494 23-Dec-2009 Cary Clark <cary@android.com> extract selected text from the picture

This deletes the messages between WebView and WebViewCore
that pass a region and extracts the rendered text
and returns the selected text from WebView directly.

This requires companion changes in external/webkit,
which in turn is dependent on changes to external/skia.

Fixes http://b/2166748
/frameworks/base/core/java/android/webkit/WebView.java
3886333644467beeaf60c13fb94f242538067765 04-Jan-2010 Nicolas Roard <nicolas@android.com> layers support
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
4350e1451c9f884fabcabfda915b58a26c6ebf5f 22-Dec-2009 Grace Kloba <klobag@google.com> Move the full screen's matching embedded view to be
fully visible so that the touch will always work.
/frameworks/base/core/java/android/webkit/WebView.java
9a67c82089e43d37f5038c74b0e1dca8edc4ac8a 20-Dec-2009 Grace Kloba <klobag@google.com> Address the multiple resizing during initializing
problem adobe run into.

When a child view is created, we first hide it if
the webview is not ready to draw yet. This will avoid
the multiple resizing notification.
/frameworks/base/core/java/android/webkit/WebView.java
19f3f0e32965b783e6813544ff78032d6abfa455 12-Nov-2009 Mike Reed <reed@google.com> add DragTracker class
/frameworks/base/core/java/android/webkit/WebView.java
11438c371e5757bde2a5c08eb81aedb794805fc1 16-Dec-2009 Grace Kloba <klobag@google.com> Implement the full screen WebView plugin.

Use a NoTitleBar_Fullscreen dialog to implement the
full screen plugin. This runs in the same thread as
WebView (UI in the Browser case). One catch is that
the SurfaceView provided by the plugin needs to be
opaque if it doesn't want to see through the WebView.

The PluginFullScreenHolder translates the events to
the underline WebView. Special treatment in the touch
case as it needs to translate the coordinates.

WebView can't be panned, or double tap to zoom, or
long press to trigger the context menu while having
a full screen plugin.

Inside webkit, we also give the plugin element focus
when it goes to the full screen so that it takes key
events. While handling key events, we don't let it
loose focus or scroll out.

Todo:
When a plugin goes to full screen, we should make
sure the embedded plugin is fully visible. Otherwise
when we translate the touch events back, they will be
outside of the visible rect and will be ignored.

This is part 1 of 2-project check in.
/frameworks/base/core/java/android/webkit/WebView.java
1cb97eed566014e36a7c2a0b487ec132b7d45e6c 11-Dec-2009 Cary Clark <cary@android.com> check to see if nav cache is up to date on tap

Pass point to click in three steps.
1) See if point corresponds to cached node.
2) If so,send a message to webkit to see if the node is good.
3) Call webkit with point, and good/bad info.

This is a two-part change with external/webkit.

Fixes http://b/2249425
/frameworks/base/core/java/android/webkit/WebView.java
70b942d34d1d1a30ab2d73bbefe214f5db0f4853 12-Dec-2009 Grace Kloba <klobag@google.com> Post a Runnable to execute setNewZoomScale when
WebView's onSizeChanged is called. This will ensure
requestLayout of the Child View works.

Fix http://b/issue?id=2323445
/frameworks/base/core/java/android/webkit/WebView.java
8b30209727b2a69a47cf7f7643ce9a56597f4ace 12-Nov-2009 Mike Reed <reed@google.com> Update the zoom buttons after moving to a new page.

Move set VISIBLE out of updateZoomButtonsEnabled.
And add it to a place it needs it.

Fix http://b/issue?id=2257742
/frameworks/base/core/java/android/webkit/WebView.java
5f68d6fafc29bb14b4b407b4221395332409fc9c 09-Dec-2009 Grace Kloba <klobag@google.com> Enable longpress and doubletap to WebKit as touch
event if it is requested.
/frameworks/base/core/java/android/webkit/WebView.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/WebView.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/WebView.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/WebView.java
b5c7ef331cfca927c5b67bfe472eb7173a0ca69f 02-Dec-2009 Leon Scroggins <scroggo@google.com> When passing the Message for saved form data, pass the node pointer properly.

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

We were calling obtainMessage with the node pointer as an argument. What we
really need to do is set arg1 to the node pointer. Also, avoid checking for
saved form data for password fields and fields whose names are blank.
/frameworks/base/core/java/android/webkit/WebView.java
f7b4accbda1a4d98a5fadbf3984cb9666a4fe9e9 02-Dec-2009 Romain Guy <romainguy@android.com> Fix scroll jump in ScrollView.

If a touch event was targeted at a ScrollView child, the content would jump after
the user moved her finger by the required threshold. This is inconsistent with
ListView's behavior.

Fixes #2296622.
/frameworks/base/core/java/android/webkit/WebView.java
01d0fbfa683012623f030ec75a63e1a9fabcb916 01-Dec-2009 Romain Guy <romainguy@android.com> Fix a leak in WebView.

Fixes #2296601.

WebView and its related APIs are keeping static objects that hold references to
Context instance. This could cause applications to leak their first Activity
and all the associated resources.
/frameworks/base/core/java/android/webkit/WebView.java
db08d5cd441424e4f9621aae7c2414934f781400 01-Dec-2009 Leon Scroggins <scroggo@google.com> DO NOT MERGE.

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

When pressing the trackball on a WebTextView, open the IME.

Change-Id: I5ea74ca7ce51ac509dc8649b8f8d1869287bb7a9
/frameworks/base/core/java/android/webkit/WebView.java
f90b1261a53bc0bfc772337551eb4c540022cd22 24-Nov-2009 Leon Scroggins <scroggo@google.com> When clicking on a WebTextView, always call nativeMotionUp.

We were previously calling nativeTextInputMotionUp, which was
intended to be faster than nativeMotionUp, which does more work.
However, as discussed in http://b/issue?id=2257787 , I think we
should simply call nativeMotionUp, which does everything the old
method did, while also correcting things if necessary. This fixes
the second problem listed in http://b/issue?id=2266756 , since
nativeMotionUp will recognize that the <select> element should
take the click.

Since I have removed a native method, this requires a change to
external/webkit.
/frameworks/base/core/java/android/webkit/WebView.java
ecfc0eba609f88579ea5b70c57e6763ee3a28e5d 19-Nov-2009 Leon Scroggins <scroggo@google.com> Fix soft keyboard dismissing itself when zooming into a textfield in browser.

We remove the WebTextView while zooming. If the WebTextView ended up
offscreen, we remove it completely, thus hiding the IME. In some cases,
however, the WebTextView is only offscreen because the IME overlapped it.
Check to see if the IME is showing, and if so, adjust the WebTextView and
let it get scrolled into view.

Also perform the removal/change in text size inside the method, so it
happens in both places.

Lastly, do not call didUpdateTextViewBounds if there is no WebTextView.

Fix for http://b/issue?id=2266066
/frameworks/base/core/java/android/webkit/WebView.java
8ae1b41a436c93e5cb20d425c6f150bce23872b6 23-Nov-2009 Grace Kloba <klobag@google.com> Expose some debugging tools of the WebView.
/frameworks/base/core/java/android/webkit/WebView.java
86773fbb4ead7d0f64b9670fdb9110758c20fd27 19-Nov-2009 Grace Kloba <klobag@google.com> If overview width is the same as the current width,
don't change the mode when double tap or zoom out.

Fix http://b/issue?id=2240785
/frameworks/base/core/java/android/webkit/WebView.java
a4fa107f97933a81c42ee3cd9ca3984c08e5ab25 09-Nov-2009 Grace Kloba <klobag@google.com> Do not grow the viewport width to infinite to fit
the content. Limit the overview viewport width to
a level that if a site behaves badly, the WebView
still does reasonably.

Partially fix http://b/issue?id=2209659
maps.yahoo.com keeps growing due to a layout bug.
This prevents the browser to go insane.

Partially fix http://b/issue?id=2215387
caltrain.com has a super long &nbsp; which caused
the page super wide. This prevents the browser to
become unusable.

This change will make sites like, caltrain.com/timetable.html
not fit all in the view. You have to scroll left
and right. And it is same as iPhone.
/frameworks/base/core/java/android/webkit/WebView.java
32847a97e104171216685e001ff7a4bd1189b4d7 17-Nov-2009 Cary Clark <cary@android.com> rename nativeFindIsDown to nativeFindIsUp; check for null webkit

companion fix is in external/webkit

fixes bug http://b/issue?id=2264941
/frameworks/base/core/java/android/webkit/WebView.java
a57632fee792d6078a7a61006f5a866c38addd33 16-Nov-2009 Leon Scroggins <scroggo@google.com> Fix bugs around removing and attaching WebViews.

When removing a WebView from its Window, remove the WebTextView.
Remove the old attempt to do the same, which was not being called.

When attaching a WebView to a Window, call onWindowFocusChanged so
its state of drawing the selection ring returns.

Fixes http://b/issue?id=2257787 and http://b/issue?id=2260867
/frameworks/base/core/java/android/webkit/WebView.java
4888c7da45b356bfcff5a6564150ca95a0a0afcf 12-Nov-2009 Grace Kloba <klobag@google.com> am dc30d28b: Merge change I3656f7a3 into eclair

Merge commit 'dc30d28bc8321171fbf4ed92a9486eb8dd382259' into eclair-mr2

* commit 'dc30d28bc8321171fbf4ed92a9486eb8dd382259':
Honor the mInitialScale set on WebView. This was
16efce72428d2677eb7164e9b3b494157d1dc09b 11-Nov-2009 Grace Kloba <klobag@google.com> Honor the mInitialScale set on WebView. This was
lost when we fixed restoring the scale for a new
page.

Fix http://b/issue?id=2251716
/frameworks/base/core/java/android/webkit/WebView.java
6d559f9d5688b3e2b027e6fbd5c5cf4f0efbfc09 12-Nov-2009 Grace Kloba <klobag@google.com> am bf5b632a: Use getViewHeightWithTitle() to honor the scrollbar setting when computing the maxScrollY for fling. This is honored in the regular scroll in computeVerticalScrollExtent().

Merge commit 'bf5b632abbc2f4b96323ff428be585fd2a3d381c' into eclair-mr2

* commit 'bf5b632abbc2f4b96323ff428be585fd2a3d381c':
Use getViewHeightWithTitle() to honor the scrollbar
9f4baf308daebbad0d3a634b158f3eb4ae532d39 12-Nov-2009 Grace Kloba <klobag@google.com> am d7439f4b: Use computeVerticalScrollRange() to find the bottom of the page as mContentHeight is not in the view system.

Merge commit 'd7439f4bdb31d005011b69112e82a9fed9be4470' into eclair-mr2

* commit 'd7439f4bdb31d005011b69112e82a9fed9be4470':
Use computeVerticalScrollRange() to find the bottom
09550fde489a6d5155f005fec9b328f1b2a878a6 12-Nov-2009 Grace Kloba <klobag@google.com> am c9966891: Merge change Ibb245ea7 into eclair

Merge commit 'c996689109b1ac0849aa675e1987e3851ee77a95' into eclair-mr2

* commit 'c996689109b1ac0849aa675e1987e3851ee77a95':
Return an empty PluginList instead of null for the
bf5b632abbc2f4b96323ff428be585fd2a3d381c 11-Nov-2009 Grace Kloba <klobag@google.com> Use getViewHeightWithTitle() to honor the scrollbar
setting when computing the maxScrollY for fling.
This is honored in the regular scroll in
computeVerticalScrollExtent().

Fix http://b/issue?id=2251694
/frameworks/base/core/java/android/webkit/WebView.java
d7439f4bdb31d005011b69112e82a9fed9be4470 10-Nov-2009 Grace Kloba <klobag@google.com> Use computeVerticalScrollRange() to find the bottom
of the page as mContentHeight is not in the view system.

Fix http://b/issue?id=2251909
/frameworks/base/core/java/android/webkit/WebView.java
bb245ea7f513ec22b2b8c021b08412c71837f036 10-Nov-2009 Grace Kloba <klobag@google.com> Return an empty PluginList instead of null for the
deprecated getPluginList() api.

Fix http://b/issue?id=2249732
/frameworks/base/core/java/android/webkit/WebView.java
d9e22ed8fe08c8c9fcf5c47a6b25d335a3158056 07-Nov-2009 Grace Kloba <klobag@google.com> am 0691ad50: Remove "@hide pending API council" in webkit to expose the apis to SDK.

Merge commit '0691ad50ca6b7a2968a0b95e1e9bb7228dd47d65' into eclair-mr2

* commit '0691ad50ca6b7a2968a0b95e1e9bb7228dd47d65':
Remove "@hide pending API council" in webkit to expose
0691ad50ca6b7a2968a0b95e1e9bb7228dd47d65 22-Oct-2009 Grace Kloba <klobag@google.com> Remove "@hide pending API council" in webkit to expose
the apis to SDK.

Remove @hide in GeolocationPermissions and WebStorage
to expose them to the SDK users.

Remove @hide for freeMemory() in WebView.

Remove @hide comment in CallbackProxy and
GoogleLocationSettingManager as they are not public class.
/frameworks/base/core/java/android/webkit/WebView.java
4e9fe62b37878750125a0eef679e2ea6216bd8f5 15-Oct-2009 Cary Clark <cary@android.com> do not merge -- original checkin to mr2 here:

https://android-git.corp.google.com/g/#change,30204

check for native initialization before calling public function

Added more checks where it is possible to call a native function
after creating a WebView but before the native side is initialized.

These cases can be triggered by the monkey.

Fixes http://b/issue?id=2187719
/frameworks/base/core/java/android/webkit/WebView.java
405d785f86c1f32feaf1f0f93d1cd8df5cbcd151 02-Nov-2009 Leon Scroggins <scroggo@google.com> Do not scroll the title bar off screen until the page finishes loading.

Fix http://b/issue?id=2139418
/frameworks/base/core/java/android/webkit/WebView.java
5de6389f2252cb6e39918e21f80a08918e0c2c02 29-Oct-2009 Leon Scroggins <scroggo@google.com> DO NOT MERGE. Send a message when the picture changes and find is up to search again.

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

Requires a change in external/webkit. Not merging because the
change in webkit should be altered slightly.
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
718d69f931e320b9a8d98371a0b4925d7c2e83f4 19-Oct-2009 Derek Sollenberger <djsollen@google.com> changing how plugins gain/lose focus.

Previously we were keeping our own state in the UI thread to
determine when to send events to the plugin. This change removes
that logic and uses the document focus to determine when events
are to be sent. This also fixes problems with the plugins
occasionally not receiving lose focus events.

see bug http://b/2033843
/frameworks/base/core/java/android/webkit/WebView.java
09e383c9ff4a3b762084e999dfb5fdd347abc151 26-Oct-2009 Cary Clark <cary@android.com> tweak select text

Explicitly draw the region and pointer from java.

Set up the starting selection criteria from both hard keyboard
and menu 'Select Text'.

Add invalidate() to show transition from arrow to ibeam
immediately, and to dismiss copy region immediately.

partially fixes http://b/issue?id=1667690
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
1d60c5c16b92ddc64d10f13da8af7faaae22cd2f 23-Oct-2009 Leon Scroggins <scroggo@google.com> Do not hide the cursor ring when clicking on an input field.

When pressing the trackball on a text input field, do not call
setFollowedLink, which results in the cursor ring disappearing and
the WebTextView being torn down. Fixes http://b/issue?id=2210127
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
70de03d41374aa3f4d3308d5d44e1db908d22667 22-Oct-2009 Leon Scroggins <scroggo@google.com> am f8e3ac85: Merge change Ifa8ab30e into eclair

Merge commit 'f8e3ac851959efbd21da930a802f8efb65ccec5b' into eclair-mr2

* commit 'f8e3ac851959efbd21da930a802f8efb65ccec5b':
In onKeyUp for DPAD_CENTER, show the IME for text input.
9d1abc43f5ffdb413fda5d8e39019bb40aad0b94 21-Oct-2009 Leon Scroggins <scroggo@google.com> In onKeyUp for DPAD_CENTER, show the IME for text input.

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

Change-Id: Ifa8ab30e205e21e9e69e9a7405a0a6fc86c6c488
/frameworks/base/core/java/android/webkit/WebView.java
3f9faf473712be7d6471913b921bf8a63ab3205d 13-Oct-2009 Grace Kloba <klobag@google.com> When WebView has wrap_content, we are sending WebKit
0 height to get the exact height. But if the View system
doesn't think the WebView dimension changed, even we
call requestLayout, we won't get onSizeChanged. So
we never notify the WebKit about the final view size.

If updateLayout is true, which is probable because that
we set the height to be 0 to WebKit, just call requestLayout()
even the meansured height / width is matching the
content height / width.

Fix http://b/issue?id=2162991
/frameworks/base/core/java/android/webkit/WebView.java
f1e1fb39763434d166371c2a62a0e6d8a4166940 21-Oct-2009 Leon Scroggins <scroggo@google.com> Draw dividers between <optgroup> and <option> elements.

Fix http://b/issue?id=2198355
/frameworks/base/core/java/android/webkit/WebView.java
a8da17356f9a385e097e3eef205358462d214538 20-Oct-2009 Leon Scroggins <scroggo@google.com> Do not show radio/checkboxes for <optgroup> labels.

Fix for http://b/issue?id=2186188. Keep track of <optgroup> labels
separately from disabled <option> labels. Requires a change to
external/webkit.

In CheckedTextView, if the CheckMarkDrawable is set to null,
remove it.
/frameworks/base/core/java/android/webkit/WebView.java
ac492e181a21749858ebf30dc1f5bcb0ded4383c 14-Oct-2009 Cary Clark <cary@android.com> tweak snap scroll

WebView.mHeldMotionless should only be set to MOTIONLESS_FALSE
if some scrolling occurs, even in the case where motion is discarded
by snap-scroll mode.

Refactoring the code allows the code to be smaller, and provides
a single point where scrollBy() is called while dragging.

This doesn't change the snap-scroll logic in any way.

related to http://b/issue?id=2092446
/frameworks/base/core/java/android/webkit/WebView.java
c05af372b85300054ae8ab3293bb3baf1e949c07 16-Oct-2009 Cary Clark <cary@android.com> add dpad control of text selection for sholes

Make movement of text selection arrow and I-beam respond to
both trackball and d-pad. Make the 'click' action work for
both trackball-up and d-pad center.

fixes http://b/issue?id=2186069
/frameworks/base/core/java/android/webkit/WebView.java
39e6773431e6010c5066c0e13facfd943c932c7e 15-Oct-2009 Cary Clark <cary@android.com> do not merge: fix copy/paste using trackball on passion

This fix is alrady in mr2. It does not affect sholes --
this is a trackball only bug.

The selection caret and arrow now take the scale factor and
the height of the title bar into account when preparing the
canvas for drawing.

Clicking the trackball at the end of selecting text no longer
sends a click event.

Requires a companion fix in external/webkit
Fixes http://b/issue?id=2187591
/frameworks/base/core/java/android/webkit/WebView.java
be3feda46eac18a05aaea47d7ef34b611f8be6be 15-Oct-2009 Leon Scroggins <scroggo@google.com> Do not show soft keyboard for readonly textfields.

Part of a fix for http://b/issue?id=2159869. The request to show
the soft input has been moved to nativeTextInputMotionUp, where it
can check if the input field is readOnly. This way it is also
handled by shortPressOnTextField, for when a user shortpresses
on the field.
/frameworks/base/core/java/android/webkit/WebView.java
7f97011b550e56e7acb28462b67ac6a35991d135 15-Oct-2009 Cary Clark <cary@android.com> check for native initialization before calling public function

Added more checks where it is possible to call a native function
after creating a WebView but before the native side is initialized.

These cases can be triggered by the monkey.

Fixes http://b/issue?id=2187719
/frameworks/base/core/java/android/webkit/WebView.java
badd8399ca803f48ca43658b49c1cdcf0e3ec250 15-Oct-2009 Cary Clark <cary@android.com> fix copy/paste using trackball on passion

This fix should be considered for passion mr1, but
does not affect sholes -- this is a trackball only bug.

The selection caret and arrow now take the scale factor and
the height of the title bar into account when preparing the
canvas for drawing.

Clicking the trackball at the end of selecting text no longer
sends a click event.

Requires a companion fix in external/webkit
Fixes http://b/issue?id=2187591
/frameworks/base/core/java/android/webkit/WebView.java
25415e2b9c80050525a0ebd51cecdaa5b1396674 12-Oct-2009 Cary Clark <cary@android.com> draw filtered if dragging but not moving after a 100ms delay

Some artifacts show up when dragging, but since the screen is in
motion, they're usually go unnoticed. If one quits moving, the
artifacts are more visible.

Some devices generate fractional movement data while the
screen is touched and held steady; others do not. Also, mouse-based
implementations will not generate random fractional movements. If
the device generates movements, invalidate the screen to transition
once from unfiltered to filtered drawing.

For the case that the device does not generate movements, fire a
timer when the screen is drawn and a drag is in progress to detect
that there is no drag motion.

The timer fires if the dragged screen is unmoved for 100 ms, then
invalidates so the next redraw uses filtering to remove the artifacts,
and starts a continuous timer to keep the scrollbar awake until
the drag ends or there is more drag motion.

When detecting that there is no effective movement on a noisy device,
use the original fractional deltas instead of the integer ones to
detect sub 1 pixel differences.

This was tested on the emulator (no noise) and a sapphire (noise)
to make sure that events load the queue only when required.

fixes http://b/issue?id=2092446
/frameworks/base/core/java/android/webkit/WebView.java
efe2c72a6d2af1431d2b239d408d2901dc1aaebd 14-Oct-2009 Mike Reed <reed@google.com> add hidden method to draw entire page into a canvas, with no view-chrome. For testing.

http://b/issue?id=2176120
/frameworks/base/core/java/android/webkit/WebView.java
3e88ddc5df80e4dbc682b193a573b35110d9618d 08-Oct-2009 Cary Clark <cary@android.com> Select plugin objects with focusCandidate

Select plugin using focusCandidate rather than cursor
calls. This allows the detecting plugin objects that
have received focus but don't have the cursor ring
on them.

Remove 'inval rect' from debugging printfs, since it
happens a lot, and allow 'request keyboard' to be
visible.
/frameworks/base/core/java/android/webkit/WebView.java
94ab3b6d0e9a5a914c7706ed1888c9d27756f7e4 08-Oct-2009 Grace Kloba <klobag@google.com> Expose WebViewClient of WebView.
/frameworks/base/core/java/android/webkit/WebView.java
5da9aeb4351ed02b05f15c11e34673ab38103dd8 06-Oct-2009 Cary Clark <cary@android.com> reset webTextView size if focus bounds changes

When the focus bounds is changed by webkit, reflect that
change on the UI side in the WebTextView. On the WebCore
side, add the focus-changed state to the Draw record,
which is sent whenever a new picture is recorded.

On the WebView side, set a bit when receiving the Draw
record, and check that bit when the picture is first drawn.
This additional delay is required so that the bit isn't
checked until after the new nav cache is swapped in.

If the bit is set when the draw occurs, clear it, and
set up the WebTextView's bounds.

companion change in external/webkit
fixes http://b/issue?id=2118781
/frameworks/base/core/java/android/webkit/WebView.java
c66f68a78733c94a915d69dee89e5b658602fa6d 02-Oct-2009 Leon Scroggins <scroggo@google.com> Fix a null pointer exception caught by the monkey.

Fix http://b/issue?id=2162334
/frameworks/base/core/java/android/webkit/WebView.java
5b2c056a3f66c11e3d6f7ba3507dc0f81928bf3a 30-Sep-2009 Grace Kloba <klobag@google.com> Keep the scrollbar on during TOUCH_MOVE events even
when there is no movement.

Fix http://b/issue?id=2151115
/frameworks/base/core/java/android/webkit/WebView.java
10be7542327e1d4483b33730164e5404ed48d73e 01-Oct-2009 Leon Scroggins <scroggo@google.com> If the textfield is offscreen at the end of a zoom, remove it.

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

Change-Id: I068746f7a7242bab5bc2116598f0421d7385ce25
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
4fbf81bc94f38a630de49445e3eb4880289c6a6e 29-Sep-2009 Cary Clark <cary@android.com> check for null item in web history in saveState

fixes http://b/issue?id=215369
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
d84e7d53d379c9fdfe335f40e89e2dfd6144dfea 29-Sep-2009 Leon Scroggins <scroggo@google.com> Allow scrolls to continue when getting a new content size.

In recordNewContentSize, rather than aborting any scrolls in progress,
find the final coordinates of the scroll and pin them to the new size,
and let the scroll continue.

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

Change-Id: I7bfa444b52e70a0ca817221f379df77efc3496b7
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
f116bf8884b5b58aae261d148003811aa4a7c6e9 28-Sep-2009 Mike Cleron <mcleron@google.com> Fading scrollbars return. But you have to opt in.
/frameworks/base/core/java/android/webkit/WebView.java
207308a781621c427acccbd9983c2511a65e9137 27-Sep-2009 Grace Kloba <klobag@google.com> WebView may get message after destroy() is called.
Just return in this case.

Fix http://b/issue?id=2143668
/frameworks/base/core/java/android/webkit/WebView.java
d66d84ffa2d96120ecd607af3f3c597fb673b178 27-Sep-2009 Grace Kloba <klobag@google.com> Reset mPreventDrag at touch_down.

Check the delta for short press case as we may switch to
PREVENT_DRAG_NO at SWITCH_TO_SHORTPRESS.

This should fix another two corner cases where flick doesn't
do anything.
/frameworks/base/core/java/android/webkit/WebView.java
ba6728023d9c9a5f13b9fc6e2015527b99b30c41 26-Sep-2009 Grace Kloba <klobag@google.com> When change from narrow screen to wide screen, we will
leave the mMinZoomScale to 1.0
/frameworks/base/core/java/android/webkit/WebView.java
f58af62211e2627d408919d22c7a1637d0e78639 25-Sep-2009 Grace Kloba <klobag@google.com> If WebCore doesn't response touch down in time, don't
block the UI tap, pan and double tap. Added a time out
(which is same as shortpress time out, 200ms) for how
long we wait for WebCore's response for touch down.

This should fix the problem where pan/touch is not working
all the time when Flash plugin is installed.

Fix http://b/issue?id=2144761
/frameworks/base/core/java/android/webkit/WebView.java
f18c539344655c8d39e3412a0985f7e42193eb52 24-Sep-2009 Cary Clark <cary@android.com> set the selection after sending a click

Webkit expects the currently focused text input to have
a set selection before it can receive key events for insertion.

Coincidentally, we always set the selection except when
using the 'next' button on the IME to switch between text fields.

The selection has to be set after the text field receives
focus, so add a setSelection() message after the click() message
is sent in passToJavaScript().

fixes http://b/issue?id=2087546
/frameworks/base/core/java/android/webkit/WebView.java
8eff73f79b934fb7f8e9a8c630f2400c13fe35f4 24-Sep-2009 Grace Kloba <klobag@google.com> Restrict touch to the view height with the title. This
should fix the links in the bottom of the screen are not
touchable when title bar presents.

Also fix a bug in calcOutContentVisibleRect. We need to
adjust visibleTitleHeight for the top, but we should not
do it for the bottom. Otherwise, WebKit will have the
wrong visible rect and it will think the part right under
the bottom of the screen are visible.

Fix http://b/issue?id=2140971
/frameworks/base/core/java/android/webkit/WebView.java
ea96d1e27f516987f6053dc1dae9e946bc8456ea 23-Sep-2009 Leon Scroggins <scroggo@google.com> Provide a getter to access the width of the HTML document.

Necessary to scale thumbnail pictures to show the full page width.

Change-Id: I631e880b09fe66403ea71bf5e019899a180e6a53
/frameworks/base/core/java/android/webkit/WebView.java
b82665e78f3a4f08e7b620b85246b7925097386b 23-Sep-2009 Cary Clark <cary@android.com> don't allow min scale to go to infinity

When a new picture is received, the min zoom scale is set.
One of the many choices divides by draw.mMinPrefWidth, even
if it is zero. Add a check to require it to be greater than
zero before using it as a ratio component.

fixes http://b/issue?id=2138786
/frameworks/base/core/java/android/webkit/WebView.java
37df6a8328fb91afe4272de05c1cce58c4f17163 23-Sep-2009 Leon Scroggins <scroggo@google.com> In calcOurContentVisibleRect, account for the visible title bar.

Fixes http://b/issue?id=2137879 and http://b/issue?id=2135469

Change-Id: I6a4b2f90ffa8d37adbe86a2fd19d141c4136213c
/frameworks/base/core/java/android/webkit/WebView.java
24a3ff958b87550904a71961835f6883d1411c27 22-Sep-2009 Grace Kloba <klobag@google.com> Change double tap toast to long toast.

Change toast count to static to cross all the windows.

It should be --count instead of count--.
/frameworks/base/core/java/android/webkit/WebView.java
408cf85207a43c9169f9fb520a584d2858847d24 21-Sep-2009 Grace Kloba <klobag@google.com> Support the new dpi change in the WebView.

Fix http://b/issue?id=2071943
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
d7b95aa702f9d3f8694b1a066ae7ef44879ffb1a 21-Sep-2009 Leon Scroggins <scroggo@google.com> Always interpret (0,0) scrolls as top of title bar.

Move the specialized code in NEW_PICTURE_MSG_ID to
setContentScrollTo so that a scroll to (0,0), whether
a result of a NEW_PICTURE_MSG_ID or from an initial
layout (or otherwise) is treated as scrolling to the
top of the content, including showing the title bar.
Scrolls to (0,1) will trigger code that animates the
title bar off screen.

Change-Id: Ia6db6d4620dea2bfe62407c4394a8ead38501b2f
/frameworks/base/core/java/android/webkit/WebView.java
f8d8b46a2c684d51cd661a9d479dd895420a90b2 21-Sep-2009 Grace Kloba <klobag@google.com> Add a tip toast for double tap.

Fix http://b/issue?id=2059934
/frameworks/base/core/java/android/webkit/WebView.java
5bb6b52bf38d80462d930e67c93ca7fd8390bfe6 21-Sep-2009 Cary Clark <cary@android.com> Account for find dialog height in content height

Use the set dialog height when the find dialog is up so that
found items at the bottom of the screen are scrolled into view.

This requires a companion change to set the dialog height in
the browser app.

Fixes http://b/issue?id=2122916
/frameworks/base/core/java/android/webkit/WebView.java
03c87bf51cdf5a105b53b5d6fbf9cfbc6c93751e 18-Sep-2009 Leon Scroggins <scroggo@google.com> Allow a webpage that wants to scroll off the title bar to do so.

Slows down the animation so the user can see it slide away. Also
move the animation to before we change to view coordinates so it
will not be dependent on the zoom level/screen resolution.

Change-Id: Icc54b2b26c08cd54d84b4e9892a316a5712534e4
/frameworks/base/core/java/android/webkit/WebView.java
17dd1aebf5d960477fc2bb71fad864b11e4303eb 19-Sep-2009 Grace Kloba <klobag@google.com> When double tap zoom out to overview mode, force reveal the full
title bar if it is partial visible.

http://b/issue?id=2110583
/frameworks/base/core/java/android/webkit/WebView.java
83d4ba83ddf8309d2c0c38d69154217d6a9c0a6c 17-Sep-2009 Leon Scroggins <scroggo@google.com> Do not attempt to retry a scrollTo with a negative position.

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

Change-Id: If938c8f6e5d74b91e39a06a5736967663c9800b7
/frameworks/base/core/java/android/webkit/WebView.java
6ed525ecee76541aa60ca95598330e990fa16ffa 18-Sep-2009 Grace Kloba <klobag@google.com> When a WebView starts, we may get first layout before viewSizeChanged()
ever get called. Call WebView's getViewWidth() to get the current UI
width. If it is still 0, log a warning.

Fix http://b/issue?id=2128645
/frameworks/base/core/java/android/webkit/WebView.java
58992eac8373ba7260d99dd832a6fc9e3d164460 17-Sep-2009 Leon Scroggins <scroggo@google.com> Draw shadow below title, or at top if title is off screen.

Fixes http://b/issue?id=2118813 for the "real" title bar.

Also fix http://b/issue?id=2125444 by moving the save after
the check for mNativeClass.

Change-Id: I8f85f0a76eb7e1d186485ef65c50ae8d4bc10932
/frameworks/base/core/java/android/webkit/WebView.java
d55de40481c6ec7d8fbd1a38c80a6c66bf462a71 17-Sep-2009 Leon Scroggins <scroggo@google.com> Don't scroll the title bar off screen while loading.

Though the user can still manually scroll the title bar
off screen, we do not want it to happen automatically.
When we load a new page, its scroll position can be
set to (0,0). Make sure that we simply set it to the
top without adding in the title bar's height. Also,
prevent javascript which attempts to scroll the page
to (0,0) or (0,1) from removing the title bar.

Fixes http://b/issue?id=2113398 and http://b/issue?id=2123079

Change-Id: Ida64d8c94be6744c7b0b4d60af1c229b2cc83673
/frameworks/base/core/java/android/webkit/WebView.java
c0c03af15f60e4402026c456cc55c108895a508f 17-Sep-2009 Grace Kloba <klobag@google.com> Fix the zoom center. Now there is a titlebar, the zoom center
needs to be adjusted for it as the user really cares the spot
in the document. We need to pin zoom around that spot.

Fix http://b/issue?id=2126300
/frameworks/base/core/java/android/webkit/WebView.java
dfe095a045f132dd9c75da4286b87532d9a973a0 17-Sep-2009 Grace Kloba <klobag@google.com> Don't change the zoom filter during the zoom animation.
Call another invalidate() to draw with the final filters.
This fixed the problem where the end of the zoom animation
is slow and jagged.

Fix http://b/issue?id=2126523
/frameworks/base/core/java/android/webkit/WebView.java
b641abf677a291b3d77572657abe4aee19383447 17-Sep-2009 Grace Kloba <klobag@google.com> Add a null checking to avoid crash.

Fix http://b/viewIssue?id=2125276
/frameworks/base/core/java/android/webkit/WebView.java
c9e2e661f0cbc736b948f8aca4c65d0467c44c79 16-Sep-2009 Cary Clark <cary@android.com> slide the title if the site changes the scroll position

Slide the title away if the scroll is to zero or one, and the
title is partially or fully visible. Set the animation time
to at least SLIDE_TITLE_DURATION, currently set to 300 ms.
/frameworks/base/core/java/android/webkit/WebView.java
5b28c36644d8708561c82dd7ebe1e96ff3a7d0fd 16-Sep-2009 Cary Clark <cary@android.com> Don't scroll on load if titlebar is visible

If the restore requests a scroll to zero and the titlebar is
partially or fully visible, skip the scroll altogether.

This fixes http://b/issue?id=2123079
/frameworks/base/core/java/android/webkit/WebView.java
df4cf29715146d67306595108c565d9848a6ae1a 15-Sep-2009 Mike Reed <reed@google.com> redraw once more on a touch-up if we've been dragging, so we can redraw in high-quality mode
update dox on BlurMaskFilter
/frameworks/base/core/java/android/webkit/WebView.java
04b2868c74a54cf711552262f0ad20d234b627b4 14-Sep-2009 Grace Kloba <klobag@google.com> WebView zoom clean up
/frameworks/base/core/java/android/webkit/WebView.java
db6d939d2bbf457b1caa5479a60dae5e90d023e1 15-Sep-2009 Cary Clark <cary@android.com> if the cursor and focus don't match, match them on text view clicks

Call nativeMotionUp from touchUpOnTextField to move the
mouse cursor to the text field if necessary before moving
the text caret to the desired position.

Fixes http://b/issue?id=2075647
/frameworks/base/core/java/android/webkit/WebView.java
df344375a93f3bfe0360f5436c0866f44b7fb6cc 15-Sep-2009 Cary Clark <cary@android.com> compute Y scroll max by scaling only, ignoring title bar height

without this, the max scroll may be a single pixel
/frameworks/base/core/java/android/webkit/WebView.java
e9e86b8908a1dc51bccf7993332a22f5c8640006 15-Sep-2009 Mike Reed <reed@google.com> special-case coordinate conversion when we are taking content coordinates to be invalidate. We need to
round "out" these, to account for the slop in antialiasing, rather than using the existing routines
that (correctly) round.
/frameworks/base/core/java/android/webkit/WebView.java
74077c8f2ed67b79be67df853158932fbd774865 15-Sep-2009 Leon Scroggins <scroggo@google.com> Clear the password field when reloading the current page.

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

Change-Id: I14bfcc6873f295c4d24ef7ee10450fd444dbe82c
/frameworks/base/core/java/android/webkit/WebView.java
d247aadfc4b8117130908c44a2ed1f6d290a92ef 14-Sep-2009 Leon Scroggins <scroggo@google.com> Bring up the soft keyboard when touching a focused textfield.

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

Change-Id: Ifa540de139b35548dde2b714b628ca1879a605c5
/frameworks/base/core/java/android/webkit/WebView.java
dd8174928c9c2966b1491acd604612a3b38e600a 14-Sep-2009 Grace Kloba <klobag@google.com> Remove trackball double click. Treat each click as a single click.
/frameworks/base/core/java/android/webkit/WebView.java
298d32e1934cddf6b93e6a4588ab05630cd39ec7 14-Sep-2009 Cary Clark <cary@android.com> Set the minimum fling to the title height.

Dragging and flinging have different minimums for the max Y
value. Allow the fling to have the title height instead of zero
for the minimum max Y so the title can always be removed via
fling.

This fixes http://b/issue?id=2109006
/frameworks/base/core/java/android/webkit/WebView.java
e621d6ffb9602c21e6f6f4f12ac02680a3c78601 11-Sep-2009 Grace Kloba <klobag@google.com> Use floor to calculate the range to avoid the rounding error triggered
scrollbar. The worst case is that you can never scroll down to the last
pixel. The old special case can cause problem when getViewWidth/Height
have changed which do not match mLastXXSent any more.

Remove FIND_HEIGHT from computeVerticalScrollRange per conversation with Leon.

Change computeMaxScrollY to use computeVerticalScrollRange which matches
how it computes X.

Change onMeasure to use contentToViewDimension() as it has the same logic.
/frameworks/base/core/java/android/webkit/WebView.java
d82bc5158c764bdd30b7d22f32258ad3c2c0c0f6 09-Sep-2009 Grace Kloba <klobag@google.com> Avoid the rounding error, as Math.round(Math.round(viewWidth * mInvActualScale) * mActualScale) not necessary to be viewWidth, we special case when the content exactly fit in the view case.

Fix http://b/issue?id=2099889
/frameworks/base/core/java/android/webkit/WebView.java
3a6c88c28905590477bd5cf8b6d23cdb517de159 09-Sep-2009 Leon Scroggins <scroggo@google.com> Adjust the WebTextView's text size according to density.

Fix for http://b/issue?id=2063143 . Use TypedValue's
types to set the text size properly for the screen's
density.

Change-Id: I3772035157e2a9a8a2dba00ebddbf967c42bfa99
/frameworks/base/core/java/android/webkit/WebView.java
aa7caa60324d69b5cd7bf3cbd8eeac2a63ad7a99 08-Sep-2009 Cary Clark <cary@android.com> don't fling if there's nowhere to go

Add a test to doFling() to return quickly if the fling has
no effect. For simplicity, only test for horizontal or vertical
flings.

The man purpose is to avoid suspending webkit until the fling
animation is complete when the purpose of the touch drag is
to activate a touch event, like a swipe in superpudu.

fixes http://b/issue?id=2052852
/frameworks/base/core/java/android/webkit/WebView.java
608f9f470fa562fc6a32449297110d4ec2953515 03-Sep-2009 Leon Scroggins <scroggo@google.com> When zooming, do not draw the WebTextView. Resize it when done.

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

Change-Id: Iae46df57310a360f07c9d6afef24ca3ff9d04bdc
/frameworks/base/core/java/android/webkit/WebView.java
078c52c57a3d45814be9d90bf189d41ff372d2b1 04-Sep-2009 Leon Scroggins <scroggo@google.com> Clean up from earlier changes to place title bar at top of WebView

Rename addTitleBar to setEmbeddedTitleBar. This requires a change
to packages/apps/Browser. Also remove mTitleBar if there already
was one.

In ViewManager, call contentToViewDimension where appropriate.

Change-Id: If4d378fad192990253411924a9a80bee96e63ff2
/frameworks/base/core/java/android/webkit/WebView.java
3c72fff035e287f9e0b9340cc3921896ca86380b 04-Sep-2009 Grace Kloba <klobag@google.com> Some mobile sites, like m.www.yahoo.com, slashdot.org (iPhone version),
have a bigger minPrefWidth than the screen width. So we don't want to force
the minZoomScale to be same as defaultScale. Otherwise we won't be able to
zoom out in these sites.

Fix http://b/issue?id=2090718
/frameworks/base/core/java/android/webkit/WebView.java
e8853fc57093e781fa7c659c6eb4da3be9f8695a 04-Sep-2009 Mike Reed <reed@google.com> also expose onDrawHorizontalScrollBar() in View
retool WebView's calculations to correctly compute scrollbar height and parameters
/frameworks/base/core/java/android/webkit/WebView.java
e5b6d02f34af2cd81615653b00c96a421d5ea819 04-Sep-2009 Grace Kloba <klobag@google.com> Translate the content dimension to the view space before setting them to the view.

Fix http://b/issue?id=2027254
/frameworks/base/core/java/android/webkit/WebView.java
4950b2b6951bbdc2b0023130bfbaca2a4044044f 03-Sep-2009 Andrei Popescu <andreip@google.com> Fix appcache layout test that was timing out due to race condition in WebView::addJavascriptInterface.
/frameworks/base/core/java/android/webkit/WebView.java
0236e673d8b980fd6333c18505129c6b49e38cd1 03-Sep-2009 Leon Scroggins <scroggo@google.com> Attach the title bar to the top of the page.

Remove the old notions of changing the viewing mode
resulting in changing the visibility of the title bar.
Instead, attach the title bar to the top of the page.
Change contentToView() to contentToViewY() (and an X
version; same change for viewToContent), to account
for the title bar's height. Adjust the parameters
for drawing the scroll bar to account for the title bar.
Requires a change to packages/apps/Browser.

Change-Id: Ic0f7d6e0a1cce58ba2bca87337cf72a8194e9aa4
/frameworks/base/core/java/android/webkit/WebView.java
278ce05b52a47a09d2177435b533f4ecb1b9c4da 31-Aug-2009 Cary Clark <cary@android.com> accelerate consecutive flings

Use the fact that the scroller keeps track of the current velocity
to accelerate subsequent flings. The current velocity is added to
the new velocity if the flings are in the same general direction
and if the fling animation hasn't been aborted.

This makes it easier to move to the top or bottom of very large
pages (either in overview mode or reading mode) by taking
consecutive flings as a cue from the user that they want to
page faster. The user can stop the fling with any action as
before.

fixes http://b/issue?id=2066090
/frameworks/base/core/java/android/webkit/WebView.java
6d45accc7166c84f94fdb5ca35602463ec4a32a4 27-Aug-2009 Cary Clark <cary@android.com> don't layout when setting size from zoom if only height changed

(companion change in external/webkit)
Add a boolean parameter to WebViewCore.java nativeSizeSize().
If set, only layout if the width has also changed.
If clear, layout if the height alone has changed.
Layout is clear when called from zoom setup, and set otherwise.
/frameworks/base/core/java/android/webkit/WebView.java
b2359262b48bf33887c72be94b044cfdfd602858 19-Aug-2009 Leon Scroggins <scroggo@google.com> Implement new title bar hiding/showing behavior.

Remove the code that hides the title bar when the page finishes loading.
When the user double taps, if it did not result in changing the viewing
mode (i.e. on a mobile site), send a message to the client so we can
toggle the title bar's visibility. Required for a change to
packages/apps/Browser

Change-Id: I0040fd183ce5673a4069e943f38eb31599c0ca7d
/frameworks/base/core/java/android/webkit/WebView.java
a91874d1f980f20e874b2d12548fb65334efdfb2 24-Aug-2009 Cary Clark <cary@android.com> don't center zoom on size change if zoom is in progress

The onSizeChange code is called when the device is rotated and
when the title bar is hidden. In the latter case, it is in response
to the zooming transition from overview mode to reading mode, and
the zoom center should not be recomputed.

http://b/issue?id=2060720
/frameworks/base/core/java/android/webkit/WebView.java
d7660ccb7b23930e3603fa42aae7b40c204e6c29 18-Aug-2009 Grace Kloba <klobag@google.com> Fix 2058938. As zoom control is uesd in overview mode to switch to reading
mode, we also want to hide it after double tap is done.
/frameworks/base/core/java/android/webkit/WebView.java
f58ffac202b5a15f4bbfd5512c58f202a992f594 13-Aug-2009 Leon Scroggins <scroggo@google.com> Hide the title bar when zoomed in.
/frameworks/base/core/java/android/webkit/WebView.java
455e3af1f82629d274447cd5d08d3c8dc1c58967 13-Aug-2009 Grace Kloba <klobag@google.com> Fix #2048199. Enable zoom control in the overview mode. When "+" is pressed,
treat it as double click in the middle of the page.
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
385df699a6d602cab501092821a79cc6ab3a390e 13-Aug-2009 Andrei Popescu <andreip@google.com> remove Gears
/frameworks/base/core/java/android/webkit/WebView.java
9a4c063874a99e2135b4ca217015b8358f9e0905 10-Aug-2009 Cary Clark <cary@android.com> call super.finalize() from WebView

found by findbugs
http://b/issue?id=1857144
this fixes ViewDebug which otherwise will report the
incorrect number of views
/frameworks/base/core/java/android/webkit/WebView.java
89325078db6c1369b6c027c4eb3cb6234f11839a 08-Aug-2009 Alex Gruenstein <alexgru@android.com> unhide postUrl
/frameworks/base/core/java/android/webkit/WebView.java
e397a88e4fd65ee7d346f63a43e6608dba943ee9 06-Aug-2009 Grace Kloba <klobag@google.com> Couple of tuning for the Browser zoom.

1. Added a setting to control whether a page is loaded with overview mode;
2. If there is no viewport metag tag, a page will be loaded in the viewport
at least 800px wide.
3. When we adjust zoom scale in the overview mode, don't use animation.
4. When zoom out to close to min zoom scale, switch to overview mode. So double
tap will always have visual feedback unless it is mobile site.
/frameworks/base/core/java/android/webkit/WebView.java
2ba1262b420ef5b9abebcd818c46774b8517f244 04-Aug-2009 Patrick Scott <phanna@android.com> Add a callback for the url of an apple-touch-icon.

Hide the apis until this is a well-tested feature. The url is reported rather
than the actual icon since it may never be used. The apple-touch-icon is meant
for shortcuts on the home screen.
/frameworks/base/core/java/android/webkit/WebView.java
d3c6d54de9b9a599eb33f343fb1e0639fed02094 31-Jul-2009 Grace Kloba <klobag@google.com> Set touch mode to be TOUCH_DONE_MODE when calling doDoubleTap.
/frameworks/base/core/java/android/webkit/WebView.java
4c94304508ec8f7e49ca4531f4aa28f3f08b3bab 31-Jul-2009 Leon Scroggins <scroggo@google.com> Fix a bug in find.

Make setContentScrollBy return a boolean.
Necessary so that a caller of setContentScrollBy in WebView.cpp
can find out whether the page scrolled. Requires a change in
external/webkit/
/frameworks/base/core/java/android/webkit/WebView.java
77d98f4ed7c036b9df8fc3cb07b67df08d0faeec 31-Jul-2009 Cary Clark <cary@android.com> rebuild the nav cache on mouse clicks during page load

On the first tap down, send a message to rebuild the nav
cache so that double taps have a better chance of having
some alignment information to work with.

Also, pass scale information to getBlockLeftEdge to
restrict the alignment search
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
ef347ef9107a8ca6ab85029528e2c1518440b2c3 30-Jul-2009 Grace Kloba <klobag@google.com> Fix 2016808. We used to send the new scale/scroll info to the UI thread after
WebCore finish the first layout. As the picture in the UI thread is still
the previous one, if there is a UI update happened before we generate the new
picture, the new scale/scroll will be applied to the old picture.

On the other hand, we do want to trigger the resize for the new page after
the first layout. e.g. The page was at nytimes.com. Now user types google.com.
google.com is first layout in the wide viewport where nytimes.com is. We dont
want to show that picture. We would like to show the fit to screen version of
google.com as the first picture.

Remove the SnapToAnchor code which is left over from previous zoom attempt.
/frameworks/base/core/java/android/webkit/WebView.java
8b97e4b0fe4a89a76b47a8df422d0d3ea5b70754 28-Jul-2009 Grace Kloba <klobag@google.com> Re-add double tap to the Browser. It only works if WebView uses wide viewport.
It is also controlled by ENABLE_DOUBLETAP_ZOOM flag. Currently the default
is on.

Double tap will toggle between current zoom level and all the way zoom out,
in another word, zoom overview mode.

While in zoom overview mode, don't display zoom control while panning. You
can click to follow the link. If clicking on a text input box, it should
bring it back to the normal mode so that it will be easy to edit text.

While in zoom overview mode, the page is zoomed to fit the width in the
view. While the text paragraph are wrapped to the matching normal mode scale.
So there is no reflow when we switching between two modes.
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
675c7d2eb8198c7b68c02da731bc2c5b71d5eb5b 23-Jul-2009 Grace Kloba <klobag@google.com> Fix 1997929. The final mScrollX/Y has been pinned to the legal bounds.
So we can't use it to calculate the intermediate scroll position. Use
the original scroll offset and scale to find the animated scroll position.
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
10c7a4da566e9faed84745b75e74b9d1cb410e3f 20-Jul-2009 Leon Scroggins <scroggo@google.com> Clear the WebTextView in didFirstLayout.

When reaching a new page, remove the WebTextView. This
fixes a bug where the user logs into a site, and the
WebTextView remains on screen.
/frameworks/base/core/java/android/webkit/WebView.java
4c3ca701fe29ed33bf5e984885ba7265a0a4dc65 15-Jul-2009 Patrick Scott <phanna@android.com> Check for a null url before trying to load it.

There are some bad things that happen if WebCore gets a blank url.
/frameworks/base/core/java/android/webkit/WebView.java
43488fc78c927c25936e7b90030c5f10d2db94e5 06-Jul-2009 Leon Scroggins <scroggo@google.com> Update text webcore thread's text generation number.

When the user edits text in a textfield, we increase a generation
number so we can mark changes from webkit to be out of date. With
this change, update webcore's notion of the text generation number
in deleteSelection and replaceTextfieldText, in addition to
passToJs. Requires a change in external/webkit.
/frameworks/base/core/java/android/webkit/WebView.java
005ae544f93494eb7d315b2e34aae0ac3c922728 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 79ec07b3: Merge change 6241 into donut

Merge commit '79ec07b333f8982ee83de8eeb0b1927a6cb112ed'

* commit '79ec07b333f8982ee83de8eeb0b1927a6cb112ed':
Fixes #1444844. Set a maximum fling velocity in scrollable views.
4296fc4d326447875c26a925f12b3935632f13bb 06-Jul-2009 Romain Guy <romainguy@android.com> Fixes #1444844. Set a maximum fling velocity in scrollable views.
/frameworks/base/core/java/android/webkit/WebView.java
0a5ce01eda210f83619ada0603a80fd883512fe9 02-Jul-2009 Patrick Scott <phanna@android.com> Basic changes to get embedded video working.

Add the ViewManager class to handle child views within a WebView. This class
attaches and removes the views in the UI thread. It also scales the layout
params based on the scale of the WebView.
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
945f3b43a05cefc7138f1aeab252b43b2d6cea96 02-Jul-2009 Derek Sollenberger <djsollen@google.com> recognize when plugin is eligable for user events and then notify the plugin.
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
3ccd3655a09633794f4d815ff85f35fa986a10d4 26-Jun-2009 Leon Scroggins <scroggo@google.com> Fix a WebView longpress bug.

Longpressing on a WebView while the WebTextView is up calls
WebTextView::performLongPress(). This used to be fine, but now
we may still leave the WebTextView up while the user is longpressing
on something else. Check to ensure that the focus is the same
as the cursor before calling WebTextView's version. Also,
send a click if the user longpresses on a different WebTextView,
so it will now behave appropriately. Requires a change in
external/webkit.

Also remove a duplicate check for inEditingMode().
/frameworks/base/core/java/android/webkit/WebView.java
8cdad889154b87bb796de3dc3f57952b6858e884 30-Jun-2009 Leon Scroggins <scroggo@google.com> Make the caret/selection draw when gaining window focus.

When the WebView loses WindowFocus, we stop drawing the
selection. We need to resume drawing it, especially for
the context menu, which steals WindowFocus. Corresponds
to a change in Webkit.
/frameworks/base/core/java/android/webkit/WebView.java
b308137ed0a3402781a1102567a8b8ffa8adc0f7 30-Jun-2009 Feng Qian <fqian@google.com> Add JS Flag support.
/frameworks/base/core/java/android/webkit/WebView.java
4c41e8dc3bdfd868da2542e19400fb8ea2ca03a9 29-Jun-2009 Derek Sollenberger <djsollen@google.com> Adding support for webkit to request the keyboard.
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
0658e8fe4592a26de34170b62a19463fd2add47b 26-Jun-2009 Leon Scroggins <scroggo@google.com> If the cursor moves from a focused textfield to another, remove the WebTextView.

We already remove the blinking caret, implying that if the user
types with the cursor on another textfield, the keys will go there.
This way, the WebView will see the key, and rebuild the WebTextView,
so we no longer use the data from the first textfield. This fixes
a bug where moving from a focused textfield and pressing delete
with the cursor on another was deleting a character from the
first (initially focused) textfield. Also, in WebView::onKeyDown,
only check if the native cursor is a textfield before deciding
whether to send a CLICK, since plugins will be handled differently
(this is part of a different change), and now the cursor may match
the focus, but we still want the click (to make the focusController
active - i.e. make the cursor blink).
/frameworks/base/core/java/android/webkit/WebView.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/WebView.java
215b72cbf7e8c8241dd8bbc12b8ad94825cd015e 26-Jun-2009 Cary Clark <cary@android.com> route arrow keys to plugin

see companion change in external/webkit
/frameworks/base/core/java/android/webkit/WebView.java
ef6da8fe3d5bc153eb934d440d0b3bfabd0e3279 26-Jun-2009 Leon Scroggins <scroggo@google.com> Make clicking the trackball on a <select> element work.

Optionally pass a frame and node pointer to nativeClick, since
the hit testing does not find the HTMLSelectElement node. Also
change the signature of nativeClick to return void, since
we never use the return value. Requires a change in
external/webkit.
/frameworks/base/core/java/android/webkit/WebView.java
53d3c1e4513135c5d8f70da4938c7d25455263f5 26-Jun-2009 Grace Kloba <klobag@google.com> Fine tune TOUCH_SENT_INTERVAL for the high speed devices.
/frameworks/base/core/java/android/webkit/WebView.java
6fa2958059a08390ed2b87b8572f8847ad9999e4 19-Jun-2009 Andrei Popescu <andreip@google.com> Implement support for showing a VideoView.
/frameworks/base/core/java/android/webkit/WebView.java
959046c3aa38a99acc3f582232710ebc543d938a 25-Jun-2009 Grace Kloba <klobag@google.com> resolved conflicts for merge of 7cb8182e to master
6c451b766d0d24994f2c5ce1750e5351f9f4ba83 25-Jun-2009 Grace Kloba <klobag@google.com> When mPreventDrag is true, don't respond to long press. This should prevent the context menu popping up in the Map sites.
/frameworks/base/core/java/android/webkit/WebView.java
d1ebf538a9f475ef9ac34480ef7ce742454bc899 25-Jun-2009 Grace Kloba <klobag@google.com> resolved conflicts for merge of 0d8b77c2 to master
0d8b77c2453d0e597f94e39212e4bfeed8affffa 25-Jun-2009 Grace Kloba <klobag@google.com> Add ZoomDensity so that we can change the desired default scale.

Fix a bug where we didn't adjust the viewport scale according to our density.
/frameworks/base/core/java/android/webkit/WebView.java
3524be90f60e1ba23818b99221e9e4a5f1d65105 22-Jun-2009 Cary Clark <cary@android.com> In WebView, fix calcVisibleRect bugs

Always use mFindIsUp to adjust computed rect bottom.

Compute the visible rect, but don't send it, when
creating the webTextView.
/frameworks/base/core/java/android/webkit/WebView.java
f418214af37c4e8d7c8f318a282c96e0a364a3d1 19-Jun-2009 The Android Open Source Project <initial-contribution@android.com> merge 9ebd737e w/conflicts
257379162050df40545c464b165c5ed6a158a29c 19-Jun-2009 Grace Kloba <klobag@google.com> dpi changes for webview
/frameworks/base/core/java/android/webkit/WebView.java
ed56eda373b78f47baecf261a3c1e5ac34a2b849 18-Jun-2009 Cary Clark <cary@android.com> clean up mouse move events in webview

Pass moveGeneration to setScrollOffset so it can
generate mouseMove event
Remove node from event messages (no longer used)
Remove CursorData ignoreNullFocus parameter (no longer used)
Fix debug message range
/frameworks/base/core/java/android/webkit/WebView.java
3e399de960869166ea78ed57ea8935bbb7736234 17-Jun-2009 Cary Clark <cary@android.com> add WebView.FindAddress option to ignore case sensitivity

New public interface is set @hide for now. Old interface
uses the new one.

Requires a companion change to external/webkit
http://b/issue?id=1649036
/frameworks/base/core/java/android/webkit/WebView.java
1bd0d6a53f27b38c10db265f8d85c89eaea527f1 16-Jun-2009 Leon Scroggins <scroggo@google.com> Allow proper text editing after clicking with the trackball.

As with the recent change to make a touch bring up the WebTextView,
so that the trackball can be used, and we get text editing goodness,
we also need to bring up the WebTextView when clicking the trackball.
Also do not call overrideUrlLoading for an input field and add a
comment.
/frameworks/base/core/java/android/webkit/WebView.java
1cc2420d0dfaef8ec0d510b6aa85ecbadf0f62f7 16-Jun-2009 Leon Scroggins <scroggo@google.com> Bring up the WebTextView when pressing a key on textfield.

The old code put the textfield in focus, and resulted in editing
the text semi-appropriately, but now we actually bring up the
WebTextView so that we properly handle the arrow keys, as well
as any substitution that is necessary. This fixes
http://b/issue?id=1918883
/frameworks/base/core/java/android/webkit/WebView.java
fa03cded353bb42c32662f77e36e90c42e7da9d2 15-Jun-2009 Leon Scroggins <scroggo@google.com> Changes to make the cursor blink at the correct times.

Make the blinking caret active when the user actually starts editing
text. To be consistent with that idea, do not rebuild the WebTextView
when the WebView regains focus. Now sendMouseMoveIfLatest takes a
boolean parameter to determine whether to make the focusController
inactive. Requires a matching change in webkit to pass a parameter
to the method. Now that we only call setFocusControllerActive with
false, change the method to no longer take a boolean parameter.
Change names to reflect that.

This change also reflects a behavioral change. If the WebView or
its window lose focus, we do not restore the blinking caret when
focus returns.
/frameworks/base/core/java/android/webkit/WebView.java
ded054c9d3efbf49ae491b95470fc1c3069b6a63 15-Jun-2009 Cary Clark <cary@android.com> replace webview hashmap with static class

Hashmaps used to pass parameters between WebView.java and
WebViewCore.java are fragile and sometimes require boxing.
Replace them with static classes that are typesafe and use
less code.
/frameworks/base/core/java/android/webkit/WebView.java
f958fccf47098700ae04164cf0ff47e5f5200109 12-Jun-2009 Cary Clark <cary@android.com> send click in webview before sending key

Add click check to passToJavaScript if webTextView
receives a key but the field does not yet have webkit focus.
/frameworks/base/core/java/android/webkit/WebView.java
aa3f96a745c8285f07d32cf150d8a511ed5f6b05 11-Jun-2009 Leon Scroggins <scroggo@google.com> Move the zoom buttons to the bottom right for the browser.

Per Leland's latest design, the zoom buttons should be on
the bottom right of the screen. Move them there.
/frameworks/base/core/java/android/webkit/WebView.java
e872f3ac96eda6bba79af4d8f29b24325d434869 11-Jun-2009 Cary Clark <cary@android.com> more (browser) trackball-is-a-mouse work in progress

Distinguish between clearing the cursor (causing the next
trackball navigation to start at the page edge) and hiding
the cursor (preventing it from drawing, but leaving it at
the same position).
/frameworks/base/core/java/android/webkit/WebView.java
e0155e955254f4ee4464d4c12545267727fcd89a 10-Jun-2009 Derek Sollenberger <djsollen@google.com> Accept freeMemory messages and pass them to the native code
/frameworks/base/core/java/android/webkit/WebView.java
41d2676dd634f6d0152181a622e8a6c90b062a3a 10-Jun-2009 Grace Kloba <klobag@google.com> DO NOT MERGE.

Merge 2391 from master to donut.

Added postUrl() to WebView so that we can pass lat/lon for the search.
/frameworks/base/core/java/android/webkit/WebView.java
a5645b2e7f521a6f380ba5c585f7fb7e7ba86230 09-Jun-2009 Leon Scroggins <scroggo@google.com> Preparation of WebView for changes in the title bar.

Remove the zoom overview and 1x buttons from the ZoomButtonsController,
since the functionality will now be placed elsewhere. Make zoomScrollOut
and canZoomScrollOut public (albeit hidden), so they can be called by the
Browser. Also rename ExtendedZoomControls' mZoomControls to
mPlusMinusZoomControls so they are not confused with WebView's mZoomControls.
/frameworks/base/core/java/android/webkit/WebView.java
fd06bc8d6e83fc5b92192dedbc46eb70fb86198f 08-Jun-2009 Leon Scroggins <scroggo@google.com> Remove obsolete notion of invalid node.

In the old navigation model, we set focus to a node, and checked to see
if that node was still valid (could have changed since we built the
navigation cache). Then we sent a message back to the UI thread to
tell it to draw the ring differently. In the new model, we are essentially
moving a mouse, so we do not concern ourselves with whether the node is
valid. Removed all the code for passing the message to the UI thread
and calling into native. Needs a change to external/webkit to work
properly.
/frameworks/base/core/java/android/webkit/WebView.java
19436561c60b5a66e7326ac4523841cd7a74351e 04-Jun-2009 Cary Clark <cary@android.com> send click in browser when key is sent to unfocused text field

Also, set focusControllerActive state based on presence of
focus and cursor that wants key events.

Disable focusControllerActive when moved cursor wants key
events.

Remove unused recompute-focus code.
/frameworks/base/core/java/android/webkit/WebView.java
1c7f8c56c858bef24533da344788c688ef6ed404 05-Jun-2009 Leon Scroggins <scroggo@google.com> Update the language from "focus".

Previously, many methods, variables, etc referred to the focus.
Now, they have been changed to refer to the cursor when
appropriate. Some references were changed to the focusCandidate,
since they may apply to either the focus or the cursor, which
is a candidate for focus. Also removed unneeded method
unblockFocus. WebView will not work without a corresponding
change in external/webkit.
/frameworks/base/core/java/android/webkit/WebView.java
e3225673f7dafb703ff542f446a774ace827e57e 03-Jun-2009 Leon Scroggins <scroggo@google.com> Remove handling of ENTER key from WebView.

WebView was (incorrectly) handling the ENTER key as if it could start
a long press like CENTER key does. Separate the two behaviors. Now,
the ENTER key does not do anything unless it is part of a textfield or
the DOM otherwise handles it.

As a result, I was able to remove some orphaned code. Before this
change, pressing ENTER would play a click noise, and animate the
focus ring as if its link were being followed, but do nothing. In
WebViewCore, do not pass the ENTER key back to the Activity.
/frameworks/base/core/java/android/webkit/WebView.java
82aa2f5eecddf723af2e4e134de15bbf5c6b32f4 03-Jun-2009 Leon Scroggins <scroggo@google.com> Remove obsolete flags from WebViewCore and WebView

Remove NO_FOCUS_CHANGE_BLOCK and BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP, which were
part of SET_FINAL_FOCUS (which is no longer used) from WebViewCore. In WebView,
do not pass BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP with SET_MOVE_MOUSE, since the
receiver does not care about it.
/frameworks/base/core/java/android/webkit/WebView.java
2f1d60cd55933f444842991d3bf05a8552cdd30d 03-Jun-2009 Cary Clark <cary@android.com> remove unused text parameters from WebView

The additional parameters are no longer used.
/frameworks/base/core/java/android/webkit/WebView.java
2e5c150e746647a1ce5c10e1708debbf06c45ea7 03-Jun-2009 Derek Sollenberger <djsollen@google.com> Centralized debug flags and enabled more granular control of debug settings.
/frameworks/base/core/java/android/webkit/WebView.java
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/WebView.java
d6982c9bb46511a5d86458b2dddde0a40e2f4f75 29-May-2009 Cary Clark <cary@android.com> in the browser, make the trackball more like a mouse

Older code treated the trackball as a four way dpad with
equivalents to moving up, down, left and right by generating
arrow key events. This change makes the trackball solely
generate mousemove events.

The old arrow keys in turn were mapped to be as close as
possible to tab-key events that moved the focus. The new
model leaves focus-changes to the DOM.

Clicking the dpad is distinguished from pressing the enter
key to be more compatible with desktop-authored web pages.
/frameworks/base/core/java/android/webkit/WebView.java
d205d5b57071dd9e53a42184f8a5fc5cd7398209 27-May-2009 Mike Reed <reed@google.com> add onPause and onResume apis, to inform the view when it can pause
its activities associated with the DOM.
/frameworks/base/core/java/android/webkit/WebView.java
5753430f6408fc5ddc9ef3592f59b968bcf282cc 23-May-2009 Grace Kloba <klobag@google.com> Added postUrl() to WebView so that we can pass lat/lon for the search.
/frameworks/base/core/java/android/webkit/WebView.java
3246c224d5860b78e1c7264906dbcecca415da9d 26-May-2009 Leon Scroggins <scroggo@google.com> Fix the build.

A previous change changed a public class to be a static class.
Change it back so the API is not changed.
/frameworks/base/core/java/android/webkit/WebView.java
213a31c7d5c11ca05fda666e7a697cc94df0d0f1 22-May-2009 Leon Scroggins <scroggo@google.com> Fix some Java mistakes found by FindBugs.

Use Integer.valueOf() instead of new Integer()
Eliminate unused fields in InvokeListBox
Make FocusNode, HitTestRequest, and ExtendedZoomControls
static inner classes.
/frameworks/base/core/java/android/webkit/WebView.java
658ab7d787f64987d7c45aae08e5a12a073afe78 14-May-2009 Grace Kloba <klobag@google.com> Added PluginManager to handle getting all the plugin directories from PackageManager.

Deprecated the old api to set a single plugin path.
/frameworks/base/core/java/android/webkit/WebView.java
8f9ff7e77f73b2712f775245113ea53614485317 14-May-2009 Cary Clark <cary@android.com> remove isClick parameter in browser touch event handler

isClick is always set to true by the callers, so remove
it and simplify the code
(http://b/issue?id=1666780; see also change in external/webkit)
/frameworks/base/core/java/android/webkit/WebView.java
dbcb3bab20b1402fa38cf83a51c2702d0e10673d 13-May-2009 Android (Google) Code Review <android-gerrit@google.com> am a0f87f6: Merge change 1565 into donut

Merge commit 'a0f87f680cb1dc2a163f89118ffdf38f4c964628'

* commit 'a0f87f680cb1dc2a163f89118ffdf38f4c964628':
Enable filtering <select> lists.
3667ce4caeb83c4746b5366a882db671b4faca19 13-May-2009 Leon Scroggins <scroggo@google.com> Enable filtering <select> lists.

Fix a bug where the filter text could not be deleted,
and another where filtering changes the checked item,
so that filtering <select> lists can be reenabled.
/frameworks/base/core/java/android/webkit/WebView.java
2ca912ec1350a8196abe4630e6c629ee8191926d 28-Apr-2009 Leon Scroggins <scroggo@google.com> Lazily initialize the TextDialog.
/frameworks/base/core/java/android/webkit/WebView.java
bc2e33b5c81b1d5ddc112ea004a0b7866bd00bec 23-Apr-2009 Cary Clark <cary@android.com> don't swap out the history picture too soon

Wait until either the picture is not blank or
the progress is complete.
/frameworks/base/core/java/android/webkit/WebView.java
843bbb8597d561c2541f86d1f391ae65261cf743 20-Apr-2009 Cary Clark <cary@android.com> reset select/copy state if key is pressed while shift is down

If a webpage suppresses keys from getting echoed back to the
browser app, then also disable select/copy when a key follows
a shift key press.

Also add in missing debug string to permit debug builds.
/frameworks/base/core/java/android/webkit/WebView.java
74008f608af0c567456d37e63d48643689388c74 23-Apr-2009 Jean-Baptiste Queru <jbq@google.com> Merge donut into master
63dda1c7b405524384e53a67be5735d9026650db 15-Apr-2009 Leon Scroggins <scroggo@google.com> Make webkit's cursor draw at the correct times.

This change is dependent on another change to external/webkit. Tell the WebViewCore to change its FocusController's "active" status depending upon whether the WebView has focus. This fixes a bug where we were showing the blinking cursor when the WebView was not in focus.
/frameworks/base/core/java/android/webkit/WebView.java
75534fbe246e5562779500bc7cf7f0ddfe9b8330 14-Apr-2009 Dianne Hackborn <> Merge branch 'readonly-p4-master'
935ae463d495d41155e27feb849768ad2b8b16db 14-Apr-2009 Dianne Hackborn <> AI 145994: Integrate #145778 from Donut.

Automated import of CL 145994
/frameworks/base/core/java/android/webkit/WebView.java
42bc2ff5d2e3a10ab6c1fb1e716a124f2b446dbc 14-Apr-2009 Dave Bort <dbort@android.com> Remove references to android.util.Config

The semantics of Config.DEBUG will be changing soon, and all other
Config.* fields will become deprecated/hidden.

BUG=1780938
/frameworks/base/core/java/android/webkit/WebView.java
f8a7ceaef2e7d5cd530c9426bde91b6fa9a40b75 11-Apr-2009 Andy Stadler <> AI 145778: Manual merge changes 145382-145384 from cupcake.

Automated import of CL 145778
/frameworks/base/core/java/android/webkit/WebView.java
974bd7f2989fc20b44af308c2569f66ec8952851 06-Apr-2009 Grace Kloba <> Merge branch 'readonly-p4-master'
45dee41f5c55cd18c7f3716fbac765016132a214 06-Apr-2009 Grace Kloba <> AI 144661: Fix #175030. Preserve the zoom factor during refresh. Remove the code change in FrameLoader.cpp which was to preserve the zoom factor when we first did layout. Now we only use the initialZoomScale if it is a standard load. If it is history load, restoreScale() should be called before didFirstLayout(), in the other cases, like reload, refresh, replace, we don't change the zoom factor.
BUG=175030

Automated import of CL 144661
/frameworks/base/core/java/android/webkit/WebView.java
c9222aa0f2c6a00e6242630fed5df6b08166d38f 02-Apr-2009 Leon Scroggins <> Merge branch 'readonly-p4-master'
238ddbb8a2961e6919d802694ef9ce7743cff61c 02-Apr-2009 Leon Scroggins <> AI 144235: Fix for 1752906: clicking "cancel" on a multiple <select> element disables future select elements from working. Add a listener for cancel, which will clear out the old popup, and allow a new one to be brought up in the future.
BUG=1752906

Automated import of CL 144235
/frameworks/base/core/java/android/webkit/WebView.java
3c44286190003c6d765b542807e0466de07b3733 02-Apr-2009 Grace Kloba <> Merge branch 'readonly-p4-master'
a72cc098e28cd27621e3dafab95117af5b42407a 02-Apr-2009 Grace Kloba <> AI 144000: am: CL 143999 am: CL 143998 Fix #1750489. Call WebKit's setNetworkOnLine from WebCore thread instead of UI thread as WebKit is not thread safe.
Using the same code pattern as the rest of the file:
. throw IllegalStateException if BrowserFrame.sJavaBridge is null in pauseTimers/resumeTimers.
. use (msg.arg1 == 1) to pass the boolean from WebView to WebViewCore as in CLEAR_CACHE
Original author: klobag
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 144000
/frameworks/base/core/java/android/webkit/WebView.java
c6c318dffbb411c2cb04740a8dcc18d21c14f361 01-Apr-2009 Grace Kloba <> AI 143999: am: CL 143998 Fix #1750489. Call WebKit's setNetworkOnLine from WebCore thread instead of UI thread as WebKit is not thread safe.
Using the same code pattern as the rest of the file:
. throw IllegalStateException if BrowserFrame.sJavaBridge is null in pauseTimers/resumeTimers.
. use (msg.arg1 == 1) to pass the boolean from WebView to WebViewCore as in CLEAR_CACHE
Original author: klobag
Merged from: //branches/cupcake/...

Automated import of CL 143999
/frameworks/base/core/java/android/webkit/WebView.java
caee1703fee75fbf37ba7774db64479a33cda82b 01-Apr-2009 The Android Open Source Project <initial-contribution@android.com> Merge commit 'goog/readonly-p4-master'
bed911a44a3df311c3af7d8cb821544609bced9a 31-Mar-2009 Leon Scroggins <> AI 143733: Fix for issue 1648553: IME overlaps over focus ring in gmail search box. In WebView::requestChildRectangleOnScreen we now move a rectangle up if its bottom is offscreen, even if its top is not. We also move it so that its top is at the top third of the WebView's height (if it still fits on screen) so that you can see space (and potentially other input fields) below it.
BUG=1648553

Automated import of CL 143733
/frameworks/base/core/java/android/webkit/WebView.java
762d30a31365e5cae9ba7c2802de60a2f8c3513d 29-Mar-2009 The Android Open Source Project <initial-contribution@android.com> Merge branch 'open_source' into google_internal

Conflicts:
core/java/android/widget/TwoLineListItem.java
core/res/res/values/public.xml
preloaded-classes
e1861133d51b9e6a6f658eb366630ad4f4d3ff8f 27-Mar-2009 The Android Open Source Project <initial-contribution@android.com> Merge commit 'korg/cupcake'

Conflicts:
core/java/android/webkit/WebView.java
core/java/android/widget/TwoLineListItem.java
preloaded-classes
6e3835ff4a77517856db58b715e12e9dfeb6a334 25-Mar-2009 Leon Scroggins <> Automated import from //branches/master/...@142632,142632
/frameworks/base/core/java/android/webkit/WebView.java
105925376f8d0f6b318c9938c7b83ef7fef094da 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
/frameworks/base/core/java/android/webkit/WebView.java
2a73de7b21a89aa2ba4c254d28658b49793425b2 18-Mar-2009 Jean-Baptiste Queru <jbq@google.com> Merge commit 'remotes/korg/cupcake' into merge

Conflicts:
core/java/android/view/animation/TranslateAnimation.java
core/jni/Android.mk
core/res/res/values-en-rGB/strings.xml
libs/audioflinger/AudioFlinger.cpp
libs/surfaceflinger/LayerScreenshot.cpp
packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
ba87e3e6c985e7175152993b5efcc7dd2f0e1c93 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
/frameworks/base/core/java/android/webkit/WebView.java
c39a6e0c51e182338deb8b63d07933b585134929 11-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137873
/frameworks/base/core/java/android/webkit/WebView.java
b2a3dd88a53cc8c6d19f6dc8ec4f3d6c4abd9b54 09-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137197
/frameworks/base/core/java/android/webkit/WebView.java
4df2423a947bcd3f024cc3d3a1a315a8dc428598 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
/frameworks/base/core/java/android/webkit/WebView.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/webkit/WebView.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/webkit/WebView.java
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
/frameworks/base/core/java/android/webkit/WebView.java
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
/frameworks/base/core/java/android/webkit/WebView.java
15ab3eae2ec3d73b3e8aa60b33ae41445bf83f4b 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
/frameworks/base/core/java/android/webkit/WebView.java
3001a035439d8134a7d70d796376d1dfbff3cdcd 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
/frameworks/base/core/java/android/webkit/WebView.java
da996f390e17e16f2dfa60e972e7ebc4f868f37e 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
/frameworks/base/core/java/android/webkit/WebView.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/webkit/WebView.java
adcd2ed8d24deddee528e96260d0ed673eeb261c 21-Jan-2009 Mike Hearn <hearn@google.com> Add some documentation to WebView, WebSettings and CookieSyncManager.
Double-tree rendering is deprecated.
/frameworks/base/core/java/android/webkit/WebView.java
f1e484acb594a726fb57ad0ae4cfe902c7f35858 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
/frameworks/base/core/java/android/webkit/WebView.java
22f7dfd23490a3de2f21ff96949ba47003aac8f8 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127101
/frameworks/base/core/java/android/webkit/WebView.java
9266c558bf1d21ff647525ff99f7dadbca417309 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
/frameworks/base/core/java/android/webkit/WebView.java
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
/frameworks/base/core/java/android/webkit/WebView.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/webkit/WebView.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/webkit/WebView.java