History log of /frameworks/base/core/java/android/webkit/WebViewCore.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3f5a59accc76e98366ff47cf52eb766a8d7100ed 28-Sep-2012 John Reck <jreck@google.com> Fix perf regression from scale/density mismatch

Bug: 7242941

Change-Id: I8a45e8ae589cecc6215566b995003b9eefb7827e
/frameworks/base/core/java/android/webkit/WebViewCore.java
b6610d8289f5c682a7f66d419afcfbd6541d0367 20-Sep-2012 John Reck <jreck@google.com> Merge "Fix DPI scaling on TVDPI" into jb-mr1-dev
6013d8c25b19149de1f57b3a413e3fbd23329d9f 20-Sep-2012 John Reck <jreck@google.com> Fix DPI scaling on TVDPI

Bug: 6891214
tvdpi has a density of 1.3312501 which we fail on as we assume
you can take density and multiply by 100, cast to an int, and
divide by 100f to get back to the original density. Force this
assumption to be true by truncating density

Change-Id: I0caeb7768ee002f935b41c77a5579ffeed491f82
/frameworks/base/core/java/android/webkit/WebViewCore.java
55bc7efaf9ec91c226bd0d5fe5904f2efa9322d7 19-Sep-2012 John Reck <jreck@google.com> Revert "Test aggressive throttling"

Bug: 7182109
This reverts commit c7c85b34dad5ee722bd9f14318c1e0e4237d529e.

Change-Id: Ibc8837b97450ec6e77a0e9dd509280ff780bb22b
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
b077e243ba18fcd1eea3d3e88bc72a9a86728b96 19-Jul-2012 John Reck <jreck@google.com> Merge "Test aggressive throttling"
3b2fb7b2d13bbd9fba9ee3a8e07aa89d9eb7b15f 10-Jul-2012 Selim Gurun <sgurun@google.com> Merge "Fix onReachedMaxAppCacheSize callback"
c86bec97279c4a5872d78fe371577748ddf43dcf 29-Jun-2012 Selim Gurun <sgurun@google.com> Fix onReachedMaxAppCacheSize callback

Bug: 5869022

When appcache reached max size, a callback is triggered. The
second parameter of this callback was returning the used Web SQL
quota, which is a rather different concept then AppCache. Fix this
to return max database size.

Change-Id: Iee11f40aa9635eaa22e237d4ddfb98792c977497
/frameworks/base/core/java/android/webkit/WebViewCore.java
c3a2858de909145a382e7932d5fb044e1388c0b3 01-Jun-2012 Teng-Hui Zhu <ztenghui@google.com> Avoid redundant reload in inline mode after exit from full screen.

bug:5710646

First, if we exit the full screen mode while playing, we can continue to play
in inline mode.

If it is paused, then we can avoid a reload if user try to play the same video
again after the full screen mode.

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

Change-Id: Ia69fa22a50d916cd8dd2b995cf3531fe9b637531
/frameworks/base/core/java/android/webkit/WebViewCore.java
5048cd77dc439446fe3da2a8186bceb25a84e9b3 22-Jun-2012 George Mount <mount@google.com> Merge "Remove unused ENABLE_ANDROID_INSTALLABLE_WEB_APPS"
d594047f8f9e64cf9307a49e41ededd4d4fe0f5a 21-Jun-2012 George Mount <mount@google.com> Remove unused ENABLE_ANDROID_INSTALLABLE_WEB_APPS

Remove an unused #define and code associated with it. This will
smooth a possible future webkit merge.
WebKit change: I16d8c457a3f08996bc66401b241fe0db5a118975

Change-Id: Ibf046337cdabb9bee9cff8e3d77d9f69a59ecb15
/frameworks/base/core/java/android/webkit/WebViewCore.java
f360ae50706218ffbbc2ada93b849512ccab1a31 21-Jun-2012 George Mount <mount@google.com> Remove password change from updateTextfield.

Password field change is no longer needed as it was used
previously in WebTextView and is not needed without it.

Change-Id: I7d5dc39825ee9eae77733d2a9560669cfe70ecf2
/frameworks/base/core/java/android/webkit/WebViewCore.java
c7c85b34dad5ee722bd9f14318c1e0e4237d529e 15-Jun-2012 John Reck <jreck@google.com> Test aggressive throttling

Change-Id: Idebb269ae2c619db626aa5dfcf8443e731b27895
/frameworks/base/core/java/android/webkit/WebViewCore.java
c0dc36d19e91d83a23114f7cc3f9976c7d1593bb 15-Jun-2012 John Reck <jreck@google.com> Remove unused

Change-Id: If75de601f2fcf6309897f2005d505082e8cd4934
/frameworks/base/core/java/android/webkit/WebViewCore.java
57217f238e0d2df8cd1a03fe4b1ca30fafa392c9 08-Jun-2012 Jonathan Dixon <joth@google.com> Merge "Separate interface and implementation of 2 more WebView classes"
6b1e614f7022fe3487ec0250883a41f20c10f6f4 07-Jun-2012 George Mount <mount@google.com> Merge "Fix scrolling behavior for text input and textarea."
c6c83ce475c534402d86144adaf906e3eb8ee46d 05-Jun-2012 George Mount <mount@google.com> Fix scrolling behavior for text input and textarea.

Bug 6614784

Change-Id: I562a20e4cb07250794fc017e6d8b3885f7e8d6b8
/frameworks/base/core/java/android/webkit/WebViewCore.java
fcc1f75bdf21a89f0a40c323efae4d6a817cced5 30-May-2012 Jesse Greenwald <jgreenwald@google.com> Separate interface and implementation of 2 more WebView classes

WebBackForwardList
WebHistoryItem

Bug: 5626244
Change-Id: Ia7f4b4487a103d8c897ac60d9f01a94e2458b034
/frameworks/base/core/java/android/webkit/WebViewCore.java
c1892e0c29fa26a3a1ad46449734ca8f264bd2a3 06-Jun-2012 Mangesh Ghiware <mghiware@google.com> am f8e99204: am b215726a: Merge "Remove transient and unnecessary update density message." into jb-dev

* commit 'f8e99204c901d1d05960ed9a11c6af4a4e7dccd8':
Remove transient and unnecessary update density message.
c7ad10201bfd72c83baab270c4a59a25ca7cab0b 06-Jun-2012 Mangesh Ghiware <mghiware@google.com> Remove transient and unnecessary update density message.

On a page load, the (viewport) metadata settings for the main frame are
reset. Reloading a page with viewport meta tag specifying target density
dpi will result in 2 back to back update zoom density messages to be
sent from WebViewCore to UI thread.

In setupViewport(), remove update density messages in flight. If the new
density is indeed different from WebView's default scale, queue another
message.

Bug: 6509512
Change-Id: I195e40277bf1bcccb0e61d84ed84db1e34556243
/frameworks/base/core/java/android/webkit/WebViewCore.java
f1c00f90216e0b574cf523946a0e26c8c5ef13d6 04-Jun-2012 George Mount <mount@google.com> Support selections within scrollable text areas.

Bug 6557816
Change text selection to modify only the base or extent, not
both points of the selection.

Webkit Change: I9a08633160eeb14d5c45246c6128aa02c1642e8d

Change-Id: I355b21e9062b5d364cfb278fda239a4ecdff16d1
/frameworks/base/core/java/android/webkit/WebViewCore.java
fcf4c34545e69eb0d1cb6e075ca066116ebf8ac0 25-May-2012 John Reck <jreck@google.com> am 731327a9: am f7388102: Merge "Support skipping a touch stream due to lack of handlers" into jb-dev

* commit '731327a93a9e5f1550effaf48fb944d8cae507d5':
Support skipping a touch stream due to lack of handlers
f738810247b887082dbf4ca3a867f8d9e1955001 25-May-2012 John Reck <jreck@google.com> Merge "Support skipping a touch stream due to lack of handlers" into jb-dev
c1e80a360a43ea52092dda79138c9d55a5588fc0 25-May-2012 John Reck <jreck@google.com> Support skipping a touch stream due to lack of handlers

Bug: 6317798

Change-Id: Ia1652e9030e877e270326e9e8a8b040810b89f09
/frameworks/base/core/java/android/webkit/WebViewCore.java
b9fcb1334da057a99df61289a8cf12a38b536fac 24-May-2012 Ben Murdoch <benm@google.com> resolved conflicts for merge of cde7efde to master

Change-Id: I44433670a897c23b3bd388cbba9cfacf80e3345f
2b5d66824be331cf35dbbb1aed267544b2186660 24-May-2012 Ben Murdoch <benm@google.com> Make the WebCore thread watchdog opt in.

Add a setting on WebViewCore to control whether we monitor
the responsiveness of the WebCore thread. Default is not
to monitor.

Bug: 6447214
Change-Id: Ia95e5c769d458dcd24ae50660b2f22e93851956f
/frameworks/base/core/java/android/webkit/WebViewCore.java
1866b3fe5d3a23ae79c67fd21118a4161eda3248 21-May-2012 Steve Block <steveblock@google.com> Remove unused WebViewCore::isPaused() and setIsPaused()

The last caller of these methods was removed in
I7be5b4224555bc8c3893b75275ac3a997a6677d1.

See WebKit change Ie645cb657407c34a63e5df6b0ade050f1780a7f0.

Change-Id: I9e5c0fd914f53d11e130ffcdc0e749f45dfe4013
/frameworks/base/core/java/android/webkit/WebViewCore.java
7c22b1810cce5738f026eec801f4ec11a8df40f6 22-May-2012 Steve Block <steveblock@google.com> Merge "Switch Geolocation DRT methods to control client-based mock"
f3f60d9328d8acfedf987a73631fc90c39bf5447 16-May-2012 Steve Block <steveblock@google.com> Switch Geolocation DRT methods to control client-based mock

Note that we plumb DRT Geolocation mock calls via WebView. This is required
because the WebCore client-based mock is not a static but is tied to the Page.

See WebKit change Ib74a3c05991593e75c3138415d4ac0bf0c9aefa9.

Bug: 6511338
Change-Id: I6d88d5dce5c2148812b191a5b452718bf0854aeb
/frameworks/base/core/java/android/webkit/WebViewCore.java
74d37b965345cfe9c4ac65271cc2658dcc1f5350 16-May-2012 Ben Murdoch <benm@google.com> Fix up the WebCoreThreadWatchdog

Make the WebCoreWatchdog aware of the WebViews it is monitoring
(rather than the Activity context which may become stale) and
ensure that the code for the prompt dialog is run on the UI
thread.

Bug: 6420310
Change-Id: Ied003938edb04858c85bcc2491c4b2c4c0ede6eb
/frameworks/base/core/java/android/webkit/WebViewCore.java
7a59c5aebc5506319deea8fd40d5d308192b8052 16-May-2012 John Reck <jreck@google.com> Merge "Always do a HIT_TEST" into jb-dev
899f609f78d43299c729cb4cfe936d496c12a288 11-May-2012 George Mount <mount@google.com> Only open CAB for long-press.

Bug 6182286

Change-Id: I18590c457548e63cf45f5f7b626f5e8bd855f521
/frameworks/base/core/java/android/webkit/WebViewCore.java
41f73bdf4d915305152ba2053b7523bf5f90ffa8 15-May-2012 John Reck <jreck@google.com> Always do a HIT_TEST

Bug: 6490959
The issue here is that if the page calls preventDefault on a
touchstart handler WebViewClassic will not do a HIT_TEST as it
doesn't get the ACTION_DOWN. This means that the mouse is in the
wrong position when the click ultimately fires.

This changes it so that WebViewInputDispatcher will always do a
HIT_TEST at the start of a touch stream, which ensures that the
mouse is positioned correctly.

Change-Id: I1aaca7692e2c7aeedeb21fa3592cd4cb3223ea25
/frameworks/base/core/java/android/webkit/WebViewCore.java
55c68f14e1cdf31a9961aaaf24429455ee0d8dbc 09-May-2012 John Reck <jreck@google.com> Fix locking for skip draw

Bug: 6469098

Change-Id: I3e6903072994a5a0437c40dcf211ddb707883a69
/frameworks/base/core/java/android/webkit/WebViewCore.java
d4796461ee29c2d2560412dbb51e0c931aa22db5 03-May-2012 John Reck <jreck@google.com> Fix accessibility drawing

Bug: 6407623
If script injection is disabled, the accessibility injector works
by modifying the text selection. However, this would cause WebView
to go into text selection mode, showing the CAB and such, which
we don't want. Add a flag saying WHY text selection is being changed
so that we can respond accordingly in WebViewClassic.

Change-Id: Ia509def3fcdb022b93fbbc7ed89bc9558663afd3
/frameworks/base/core/java/android/webkit/WebViewCore.java
33b019b183c8fad8c684967f8d81a2c1897f29e0 28-Apr-2012 John Reck <jreck@google.com> Rewrite PictureSet

Removes no longer supported splitPicture
Removes unnused code

Bulk of the change is in webkit CL: https://android-git.corp.google.com/g/#/c/185850/

Change-Id: I4eca363ba3cb4a6d6fccc82bf5ea8588df780a4b
/frameworks/base/core/java/android/webkit/WebViewCore.java
c2c9543c135ffc4e18c7db0e817112ac03e3e97a 26-Apr-2012 Chris Craik <ccraik@google.com> On new content, attach functor directly

bug:6323847

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

Change-Id: Ibdf997f3ee4f5c5c1ea5a320556813f175fea93f
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
9dd4a6c7a4ed45ce8ffae73ce9ac6dac51943581 20-Apr-2012 John Reck <jreck@google.com> Merge "Save and load snapshots async"
ee3b562d8641299a64dfe3a96089e04ed7b79bdb 20-Apr-2012 John Reck <jreck@google.com> Save and load snapshots async

Bug: 5416822
The overload of webkitDraw is temporary, but this gets the plumbing
in place and works correctly

Change-Id: Ib3e23b9a4a1862dd445c8dc68a3936590787a62b
/frameworks/base/core/java/android/webkit/WebViewCore.java
fd6ad0444174f03c8df95f82a35322c4dd3c2352 19-Apr-2012 John Reck <jreck@google.com> Allow removing messages before EventHub created

Bug: 5421676

Change-Id: Id15b669947bd01d3cc3ba3e9b93175120fa518e8
/frameworks/base/core/java/android/webkit/WebViewCore.java
8a7e177bb546eff9cff0617471e55d012ece6190 17-Apr-2012 John Reck <jreck@google.com> Add destroyed check

Bug: 6350066

Change-Id: Icf077bcf9678a036a669124c27e56e191a935960
/frameworks/base/core/java/android/webkit/WebViewCore.java
9c6b01a753ff0193054ab2e7207ae19164a6ca6e 16-Apr-2012 Steve Block <steveblock@google.com> Merge "Clean up JavaDoc for WebStorage"
a4eddb577ce2d71ad72cc978010df103abf1881c 13-Apr-2012 John Reck <jreck@google.com> Set initial focus

Bug: 6108927

Change-Id: I8f9356c41700b05ca36d106b1db34e3a7630b125
/frameworks/base/core/java/android/webkit/WebViewCore.java
285ddfc8abfcdd252c50477b34c13f8173f9f3f4 28-Mar-2012 Steve Block <steveblock@google.com> Clean up JavaDoc for WebStorage

Bug: 5461416
Change-Id: Ice7a2ca1e346ae80f53b477d236ff8c20032cf2f
/frameworks/base/core/java/android/webkit/WebViewCore.java
be716920e70541c9b334c9389d335f1aa1ed7124 11-Jan-2012 Ben Murdoch <benm@google.com> Add support for HTML Media Capture "capture" attribute.

Plumb the value of the "capture" attribute through the framework
down to the embedder.

Requires a change in WebKit
(I0a921be31fda79a43c05da4fe22d9c808d92709c)

and Browser (I38dfe2df043fdba1388384dbd3b5370737eb38e5).

Bug: 5771207

Change-Id: I494adc1274ca21ce8fe52a6c7b6b758217927e66
/frameworks/base/core/java/android/webkit/WebViewCore.java
b187d52f8adaad068997595118f32cb02d7a9013 12-Apr-2012 Steve Block <steveblock@google.com> Merge "Minor clean-up in DeviceOrientation and DeviceMotion"
5ba2efeb9faaf7db9da205102b9a7f40b4b89f27 03-Aug-2011 Steve Block <steveblock@google.com> Minor clean-up in DeviceOrientation and DeviceMotion

No functional change.

See corresponding external/webkit change
https://android-git.corp.google.com/g/#change,125700

Change-Id: I2693328cb058820587ac43dd3121818959efd2d0
/frameworks/base/core/java/android/webkit/WebViewCore.java
a511bbf8727716efac12d07aad243911acb22555 12-Apr-2012 John Reck <jreck@google.com> Cleanup unused code

Bug: 6317798

Change-Id: Ibf38d680fabacb2987cd26fac464875dd8ebad2e
/frameworks/base/core/java/android/webkit/WebViewCore.java
c2676102d269038234f7018090d70af0ba754e83 12-Apr-2012 John Reck <jreck@google.com> Merge "New WebView input dispatcher."
9d3bdbd6b8f9eda5f67212b06185cd59adcda6c8 21-Mar-2012 Jeff Brown <jeffbrown@google.com> New WebView input dispatcher.

Bug: 6317798

Stuff that's better:

1. We maintain two queues in a way that ensures that WebView and
WebKit both see consistent streams of events, even in cases
where WebKit times out. We send ACTION_CANCEL if necessary, etc.

2. All pointer events go through the same channel, including
hover and click ("touch up") events, to ensure correct ordering.

3. Given that the input events are in a separate queue, we can
force execution of all of these events whenever we like, making new
latency optimizations possible.

4. The entire history of each touch event is sent to the web
application to enable smoother interaction.

5. The web application may choose to intercept a touch event stream
at any time by issuing "prevent default". Previously, it could only
prevent default on the initial down event. The new behavior is more
standards compliant.

Change-Id: I42d2d045e7d44af7c54b29570f188b7400d91d4e
/frameworks/base/core/java/android/webkit/WebViewCore.java
cae80b2563bb25c8f39a18937ccca3e56c2f2c93 11-Apr-2012 Chris Craik <ccraik@google.com> Merge "Unify composited layer/base layer draw path"
00ed0fd27fda19be18bbabe831e5a1efc42e34d0 10-Apr-2012 Chris Craik <ccraik@google.com> Unify composited layer/base layer draw path

Multiple paths were redundant, as they both synchronized the layers, and drew
the base if needed.

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

Change-Id: I1c355510f6edda4631190f2d26df8171e795a6ac
/frameworks/base/core/java/android/webkit/WebViewCore.java
7102eb2d3068e0b7e5a3b44b61044de20910eca0 10-Apr-2012 George Mount <mount@google.com> Revert "Revert "Keep selection handles in edit fields.""

This reverts commit 90c08eafad72454a31282fd887ec23d357c904a4
/frameworks/base/core/java/android/webkit/WebViewCore.java
90c08eafad72454a31282fd887ec23d357c904a4 10-Apr-2012 George Mount <mount@google.com> Revert "Keep selection handles in edit fields."

This reverts commit 5d84368a7577c5d53ce885cd2d095cc5ba40d924
/frameworks/base/core/java/android/webkit/WebViewCore.java
5d84368a7577c5d53ce885cd2d095cc5ba40d924 31-Mar-2012 George Mount <mount@google.com> Keep selection handles in edit fields.

Bug 6264769
Webkit Change: Ie937a8c55da0f8aef66cfcee11beb961669b7168

Change-Id: I9ee89f8b1d4e6954092b8c4d677fb75b79354b36
/frameworks/base/core/java/android/webkit/WebViewCore.java
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/WebViewCore.java
a7a1d5f8daec3e160e83bdddc585496efa4c96c7 02-Apr-2012 George Mount <mount@google.com> Merge "Don't show keyboard on focus change."
c3cbeddcb528b1c44d3ae3534e9680ed5249d61e 02-Apr-2012 George Mount <mount@google.com> Remove unused FORM_DID_BLUR hooks.

Bug 6111763
Webkit Change: I015e1a57e81e897c124af5d96ba76b4d07a381fc

Change-Id: I56a862a6c0f0d7799f4e935bb7f5103bb2edbb9b
/frameworks/base/core/java/android/webkit/WebViewCore.java
55cd3b85f305959a0540c085e91fb9db154d8be7 02-Apr-2012 George Mount <mount@google.com> Don't show keyboard on focus change.

Bug 6270400
Webkit change: I1f06b7220e22665f5932928855c81eca6534bf2f

Change-Id: I2aa65b405b3a394b55821a4d688afeb22244c2c7
/frameworks/base/core/java/android/webkit/WebViewCore.java
dbef1c5f4566708cab9b313f9a213413b697c87b 28-Mar-2012 George Mount <mount@google.com> Support batching input changes to remove flicker.

Bug 6245151

Change-Id: I642d1487d488ac69a9dedf5c8099d14db559dc0a
/frameworks/base/core/java/android/webkit/WebViewCore.java
834f66b6a4950351da2424ca46e8b4df74faba62 27-Mar-2012 John Reck <jreck@google.com> Do pause painting better

Change-Id: Ia58bbb19cea899c8826d74d7afcbd7e7c541d9c6
/frameworks/base/core/java/android/webkit/WebViewCore.java
8dc8a435a123414b058799b3df2b567f22dc518c 21-Mar-2012 George Mount <mount@google.com> Fix merge error

Change-Id: Ia48e1f064b697fa328e5d582862dbe723f7ffd5d
/frameworks/base/core/java/android/webkit/WebViewCore.java
f3616da6a8f5576c99a0cf1884f2c6be758f63f7 21-Mar-2012 George Mount <mount@google.com> Merge "Make paste window and caret handle show up at the right time."
a6c4d8e018e39ff94263ce8f2a31b768104d1bb6 08-Mar-2012 Jonathan Dixon <joth@google.com> Rename getWebView() to getWebViewClassic

Interdepends on https://android-git.corp.google.com/g/170037
Tidys up a TODO from my webview proxy patch.
This allows me to re-introduce getWebView(), but now returning the
actual WebView instance which is needed by my upcoming change to WebKit
linked above.
Also moves sendPluginDrawMsg() to WebViewCore for convenience in the
MediaTexture code that calls this.

Change-Id: I57b72504a792de58d15f386abf4a9d821449ab0a
/frameworks/base/core/java/android/webkit/WebViewCore.java
f796fdfe6d5ebc4f22b5cb167f866c7a74d71260 19-Mar-2012 George Mount <mount@google.com> Make paste window and caret handle show up at the right time.

Bug 6194009
Webkit Change: I7f8bc7266df52a67245b0a971826fd14e0d715c5

Change-Id: I460db436bd79d8ff72b457b5878ffe468400031f
/frameworks/base/core/java/android/webkit/WebViewCore.java
c6c549d8d2eb30c66e43d6559a35ee1a07c58e68 16-Mar-2012 George Mount <mount@google.com> Update edit text size when the text changes so scroll works.

Bug 6176413
Webkit Change: I487322ca9578c003f937b92ca4e8d46d34ea8c78

Change-Id: I6b8f244cd747d6d19c261d685a3cfb9ef4d71ec3
/frameworks/base/core/java/android/webkit/WebViewCore.java
f70276a2590fd456c1eb3180f86a4a80fc38497f 12-Mar-2012 George Mount <mount@google.com> Add scrolling editable text with a finger drag.

Bug 6156451

WebKit change: Ie08712fb17b237fbb2d520d745ef8a2e489fd728

Change-Id: I1a16c708e5ea2ef8bd1f99197dacbc7831764ef4
/frameworks/base/core/java/android/webkit/WebViewCore.java
a34a5ed95191cbe1cdf7fa59dc005d65b3595887 10-Mar-2012 George Mount <mount@google.com> Support "prev" for IME input.

Bug 6152403
WebKit change: I09e5f63d41bb88a632f70b010e8ab4851bf90bab

Change-Id: I6d339d724616b9f156458dd4223d3b991191b13d
/frameworks/base/core/java/android/webkit/WebViewCore.java
c4ffe77a710880416a7cf7c20277311bab2d7abc 12-Mar-2012 George Mount <mount@google.com> Merge "Add back auto-completion and auto-fill."
bcd5dd7c9a6d5fb5add4041dbd62d1670a69d526 01-Mar-2012 George Mount <mount@google.com> Add back auto-completion and auto-fill.

Bug 5993316

Webkit Change: I9d09a924a579d2d4551bff0489670de71d04757e

Change-Id: If00d42c0cb4f2c207f0d502e297741e1d6a68bf4
/frameworks/base/core/java/android/webkit/WebViewCore.java
d78ad29b0929b86d6084b618fbec83027294fff1 09-Mar-2012 Michael Kolb <kolby@google.com> fix callback NPEs when WebView is destroyed

Bug: 6141489

change destroy flow for WebViewCore and block callback
messages
Change-Id: Ib15a0e016508bc6df031996adde150dd37c195c4
/frameworks/base/core/java/android/webkit/WebViewCore.java
4fa40371b3d284e9112838ac64cb4b44e0627f55 06-Mar-2012 John Reck <jreck@google.com> Fix unhandled navigation path

Bug: 6109044
Tab keys are handled via canTakeFocus & takeFocus (new path)
Arrow keys are handled by seeing if the keyDown was unhandled (similar to old path)

Change-Id: I825de102de31443b1383a8126992c65a4957dcce
/frameworks/base/core/java/android/webkit/WebViewCore.java
b2676f76b6dd078604754b0a7b3fc3095835570e 02-Mar-2012 John Reck <jreck@google.com> Delete more navcache stuff

Change-Id: Ic32559948b90abb3e8e755c5eb533dd9e83b3190
/frameworks/base/core/java/android/webkit/WebViewCore.java
6ddf44d81538fbcc8c0732ea53770bc23a6d7cf7 03-Mar-2012 Michael Kolb <kolby@google.com> fix race condition in WebViewClassic.destroy()

Bug: 6088940

Change-Id: If2cf26d4aab73d2d8689e4e3f9ec8e91193c966d
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
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/WebViewCore.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/WebViewCore.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/WebViewCore.java
2eb7309388644db2ad3be18986804422611fd90e 23-Feb-2012 Steve Block <steveblock@google.com> Merge "Drop support for Android HTTP stack"
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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.java
37c4a9f99a32748682b56d501cbc03c4b3c5b3cf 18-Feb-2012 John Reck <jreck@google.com> Improved keyboard navigation cursor rings

Change-Id: I77b974bb9eae0f9dc8e57320632e5915e8295839
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.java
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/WebViewCore.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/WebViewCore.java
2bb2323d6361cb7f8cb625caa17c6b0b9e9a626f 31-Jan-2012 John Reck <jreck@google.com> Merge "Webkit text selection"
74ffdc30e01f21d49bef8ce1f96d12950b4311f3 25-Jan-2012 John Reck <jreck@google.com> Webkit text selection

Change-Id: Idec1ea19b773f100a88ebdb903a250ab923651d9
/frameworks/base/core/java/android/webkit/WebViewCore.java
b5622b60085086b753ae3ab64168099d0c1471bf 30-Jan-2012 Ben Murdoch <benm@google.com> Remove code that quits the webcore watchdog thread.

The WebCore thread lives forever ergo so should the
watchdog.

Bug: 5920210
Change-Id: I2596a4cc4720c4e09265b9a875680bb7891bd919
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
7aa7ba1ce65650b3c4ee5aadaa40e6d7a13c9e5d 23-Jan-2012 John Reck <jreck@google.com> Fix crash when scrolling a layer

Change-Id: I6e61f3b38c5d1291ceb36c9dfa87fcd78480c2f4
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
955fdda057363dbf1ae95ffeb542cde8ace28b54 18-Jan-2012 John Reck <jreck@google.com> Add tapHighlightColor support

Change-Id: I419eb3d8f1050efd05bb989a6b353ad45ee77acf
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
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/WebViewCore.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/WebViewCore.java
4eda105cdb3ac0c33fee0deb3b6eb15be2672f30 20-Dec-2011 John Reck <jreck@google.com> Initial NavCache removal support

Change-Id: I927005093b620a1b1b60703bc8a58de539bdf3c8
/frameworks/base/core/java/android/webkit/WebViewCore.java
2ddb4c85093384f55d74a58a8bc0b7ebf6b6b265 10-Jan-2012 Mangesh Ghiware <mghiware@google.com> Merge "Fix issue with site-specific display density getting stuck."
6f2db8e75579ab562a8f97ec851198b404e336e8 07-Jan-2012 Mangesh Ghiware <mghiware@google.com> Fix issue with site-specific display density getting stuck.

This issue was found while investigating b/5328288.

After navigating to a page that specifies target-densitydpi in the
viewport meta tag, this density value wasn't reset to the default value
for a page that didn't.

Change-Id: I1a66dab769026367224ecf4cc28bc033ee97e475
/frameworks/base/core/java/android/webkit/WebViewCore.java
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/WebViewCore.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/WebViewCore.java
5755d01d2cb017e19fed94ffde6122301460133f 06-Jan-2012 George Mount <mount@google.com> Merge "Remove GET_NATIVE_VIEW from WebViewCore to reduce JNI."
427f2e5ac56e810d55e4fdd70f01a975ca0ad64e 05-Jan-2012 George Mount <mount@google.com> Remove GET_NATIVE_VIEW from WebViewCore to reduce JNI.

Bug 5827817
Added a nativeClass parameter to all appropriate JNI methods
and used it instead of GET_NATIVE_VIEW to reduce JNI overhead.

Webkit Change: I02004fe1

Change-Id: I49c7ecfd598826ffe78067aab393a24860ce10ef
/frameworks/base/core/java/android/webkit/WebViewCore.java
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/WebViewCore.java
4f433d53c9cfe850103b33dfbc2a36fa246f8d96 13-Dec-2011 Selim Gurun <sgurun@google.com> Merge "Move ssl callbacks to webcore thread."
38f3610a29c75c3bb16408a911e3365a71b6524c 08-Dec-2011 Selim Gurun <sgurun@google.com> Move ssl callbacks to webcore thread.

Bug: 4586251

Original CL was for ics-mr1. We decided it should be in master
instead. Original CL
https://android-git.corp.google.com/g/154083

Current ssl cert logic makes callbacks to webkit from the
UI thread. This is not right. Move the callbacks to proper thread.

Change-Id: Ie3de7dbaed7780dbb6cf537ca1d29686d867b784
/frameworks/base/core/java/android/webkit/WebViewCore.java
2ff8cc2438866f791d8fe888573b5fba103e2cd0 12-Dec-2011 Ben Murdoch <benm@google.com> Merge "Clear the WebView picture when a new load starts."
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/WebViewCore.java
a62b9632c84ecfdffec2753f52ceaec2f7598139 05-Dec-2011 Ben Murdoch <benm@google.com> Clear the WebView picture when a new load starts.

Clear the old picture set when we have confirmed a new
page load.

Bug: 5701197
Change-Id: Id96fb7d8e75a0b54a448d35239a69ba1774cffae
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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.
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/WebViewCore.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.
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/WebViewCore.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/WebViewCore.java
e1d2f3cf8574bc99b44c450da9603b1c3c874411 14-Nov-2011 Kristian Monsen <kristianm@google.com> Fix build

Change-Id: I8198f7a8470e7c9500ab2f6512162bbb55ea6ee7
/frameworks/base/core/java/android/webkit/WebViewCore.java
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/WebViewCore.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/WebViewCore.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/WebViewCore.java
e59e301ca0e28d88439c626b7d177e7eeac06456 03-Nov-2011 Mangesh Ghiware <mghiware@google.com> Update fix to restore view and text wrap scales.

Fixes bug 5544556: All email content is wrapped prematurely.

Previous change (I5a22dd20) didn't take a few other cases of
mViewScale>0 into account.

Change-Id: I4f9578f3558f026c472492ac07d19004416dc228
/frameworks/base/core/java/android/webkit/WebViewCore.java
ca4d54c486176fec32400217e2dc0e3091dab858 31-Oct-2011 Mangesh Ghiware <mghiware@google.com> Clamp initial scale between minimum and maximum values.

Fixes bug 5515454: web page is not optimized (gmarket)

Initial scale is used to detect mobile sites
In ICS, mobile site detection based on whether the URL included m.,
mobile., wap., etc. has been removed in exclusive favor of the meta
viewport tag.

Within meta viewport tag, mobile site detection uses width (set to
device-width), initial-scale (set to 1.0 or default scale), etc. Make
this logic more robust by clamping initial scale between minimum and
maximum values, if specified.

Change-Id: I663c50ce20b35279d37a8c812e91d6bc4c16c1d3
/frameworks/base/core/java/android/webkit/WebViewCore.java
f0e96d54b6fb05bf0b4c40a9e918beb2e52bc819 27-Oct-2011 Mangesh Ghiware <mghiware@google.com> Fix restore of view and text wrap scales.

Fixes bug 5507881: Open pages in overview doesn't stick on initial
browser load.

Update the fix for bug 5230909: Zoom not restored on Back.

Added a boolean to indicate that scales have been restored. In the case
of restored scales (view and text wrap) being zero, set them to overview
and reading level respectively.

Change-Id: I5a22dd2040a22ee3b48c5903b586a65a4fa320f2
/frameworks/base/core/java/android/webkit/WebViewCore.java
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/WebViewCore.java
98a5fcd895cce64a879982acd17c9ca52e6177ee 07-Oct-2011 Nicolas Roard <nicolasroard@google.com> Merge "Trigger a full screen repaint when touching layers, as webkitDraw() may not generate the correct invalidations."
dee7b1ba968a2e8dd420783c04a9b49f014232e3 07-Oct-2011 Nicolas Roard <nicolasroard@google.com> Trigger a full screen repaint when touching layers, as webkitDraw()
may not generate the correct invalidations.

counterpart java CL: https://android-git.corp.google.com/g/#/c/140427/

bug:5425608 bug:5218173
Change-Id: I4a958a6fac4054a1040cb077cdfa2aff076e3fad
/frameworks/base/core/java/android/webkit/WebViewCore.java
7b65a3eb29198632d74df22582835d3399da5b85 30-Aug-2011 Steve Block <steveblock@google.com> Improve a warning message in WebViewCore's EventHub

These warnings appear occasionally and this will help track them down.

Also removes an unused method.

Bug: 5421676
Change-Id: I5ba3f146449623e3457aafc91fd2e7edc367a9d9
/frameworks/base/core/java/android/webkit/WebViewCore.java
dc221e01ff25ecf404ed945e1899be1e03a5462f 05-Oct-2011 Nicolas Roard <nicolasroard@google.com> Streamline the layers update codepath.
Directly update the layers transform and position.
This makes updates faster and less dependent on other webkit work.

bug:5218173
Change-Id: I5f784ef64eda1be3cee406aa23702e5378c8de9e
/frameworks/base/core/java/android/webkit/WebViewCore.java
29af07443607b21c943c9adc0ffb34331135ad3e 29-Sep-2011 Steve Block <steveblock@google.com> Merge "Fix HTML5Audio to call WebView.isPrivateBrowsingEnabled() on the UI thread"
85aa944888089852cf144c18f8fb6869e1a39d32 28-Sep-2011 Steve Block <steveblock@google.com> Fix HTML5Audio to call WebView.isPrivateBrowsingEnabled() on the UI thread

Bug: 5384494
Change-Id: I2587cf0e898f67becb9dbc2067fb1b0a6a37e124
/frameworks/base/core/java/android/webkit/WebViewCore.java
d9151bf1ccd9bc726ba2c252919503f8968649cc 14-Sep-2011 Kristian Monsen <kristianm@google.com> Hook up WebView.clearSslPreferences() for the Chromium HTTP stack

Note that this is an incomplete fix, as we do not clear the responses for
connections currently in use, as they maintain their own cache. See
http:/b/5324235.

Bug: 5287216
Change-Id: I18f6638efeff0bee1e7ffed606be1444d683bebd
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
2f4d30a2a6df349d2af59c161548a285a536b98a 14-Sep-2011 John Reck <jreck@google.com> Prevent pause/resuming a destroyed WebViewCore

Bug: 5246901

Change-Id: I697cd26b74ffb0584bb992d8caa6bae1e6eee0fd
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
5afd2bd02ae44d5a38f9e560047723ddab176405 02-Sep-2011 Mangesh Ghiware <mghiware@google.com> Merge "Set reading level scale to display density instead of a fixed minimum."
ff7130288f5df81f654cc008cfea33c263882722 02-Sep-2011 Kristian Monsen <kristianm@google.com> Merge "Close idle connections on pause timers"
64decc60823441a40e9376c98163c993bc934088 25-Aug-2011 Kristian Monsen <kristianm@google.com> Close idle connections on pause timers

Part of fix for bug 4487538 Current Drain

Change-Id: Ie957321d11ee3a94a5549aebb5be6e3cb444ebcf
/frameworks/base/core/java/android/webkit/WebViewCore.java
b71fe052ab39f1adc5a1a559432b803679a2a027 01-Sep-2011 John Reck <jreck@google.com> Merge "Fix destroy race condition"
45576fae46bae16bbd703b26f8cd99457a4ca138 01-Sep-2011 John Reck <jreck@google.com> Fix destroy race condition

Bug: 5246901

Change-Id: I97a211b23afb17314d7a37779593556529be7e32
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
492bbe3f7b42860dafe5435203ea30278bf76b6c 01-Sep-2011 Ben Murdoch <benm@google.com> Preload libchromium_net in addition to libwebcore.

To improve WebView app startup time, preload libchromium_net which
was recently split from libwebcore into its own shared library.

Bug: 5112647
Change-Id: I4417d5a4f8c7783e8fa7b8eaddf89aaeb3693fac
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
f4565a91a514dc9e1105b6955a4c9aa3bc3e7a7b 26-Aug-2011 John Reck <jreck@google.com> Merge "After calling loadData invalidate the content"
fb2b9b2695ab9efebe8641160a99db85cd599605 26-Aug-2011 John Reck <jreck@google.com> After calling loadData invalidate the content

Bug: 5205296

Change-Id: I7470faf0b71a769926c007b964987e8bc7a61efb
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.java
00d5bf7e44d44510d0828c473619c95a9ea783e3 21-Jul-2011 John Reck <jreck@google.com> Fixup handling destroy

Bug: 5002925
White list certain messages that can be handled after WebViewCore
was destroyed (specificially pause/resumeTimers, which are per process)
and reject all other messages. This avoids using the undocumented
removeCallbacksAndMessages(null) trick, as well as makes sure PAUSE_TIMERS
and RESUME_TIMERS are processed in the correct order the correct number
of times.

Change-Id: I8c51172e015f923ffeb0816a8ee2ab63219d0f96
/frameworks/base/core/java/android/webkit/WebViewCore.java
a6c5d383a820cb97785846b96c0fc56b30b62018 19-Jul-2011 Shimeng (Simon) Wang <swang@google.com> Change log msg since viewport can be changed before first layout.

Change-Id: I137a897844953bf6b8510b6ee5d6eb89b4b78a6a
/frameworks/base/core/java/android/webkit/WebViewCore.java
e7821cd607c8fb660034ae3d158a1b17ef575159 08-Jul-2011 Mathew Inwood <mathewi@google.com> SearchBox API changes, to know when calls succeeded.

Depends on change: I5af94c8df8f24dfafb02c4052381aa547c72684c
(due to SearchBox API change).

Change-Id: If283ecdfa62aecb1fa697b1a2cd43b771b908d72
/frameworks/base/core/java/android/webkit/WebViewCore.java
effa7523f42cf46f8255b92dfb22db6ce1bdeb91 08-Jul-2011 John Reck <jreck@google.com> Merge "NPE guard in setupViewport"
d4324aa101a6b8729c99d00fd8f3cbe2aca6f4f0 08-Jul-2011 John Reck <jreck@google.com> NPE guard in setupViewport

Bug: 4163660

Change-Id: Ie74072094c0dbfca4391cf898420544884101c1f
/frameworks/base/core/java/android/webkit/WebViewCore.java
56bd4349fca6bb00e8ad28ff9ec514fa5d07073b 08-Jul-2011 Shimeng (Simon) Wang <swang@google.com> Update viewport asap.

Update viewport as soon as possible to make sure layout has correct viewport.

This helps fixes gmail flickering issue.

Also helps the case a mobile site is switched to desktop when the
user agent is switched.

issue: 4723800
Change-Id: I3dc9e52d912d49478d562cec3f38d653a563715e
/frameworks/base/core/java/android/webkit/WebViewCore.java
72a1d2e1386fcf1795621c2eeb05287d46c7278c 30-Jun-2011 Shimeng (Simon) Wang <swang@google.com> Keep initial zoom overview for non-standard load.

In case of non-standard load such as reload, currently the ZoomManager's
onFirstLayout will not be triggered, hence initial zoom overview will not
be set.

This change provides a fix to set initial zoom overview in case of
non-standard load for the new picture after first layout.

issue: 4975315
Change-Id: If2ba3e472f2bb7b6fc4c52024d18a66dc1e41a23
/frameworks/base/core/java/android/webkit/WebViewCore.java
be768ee508183c7454064f5c8bb772b44634ce98 30-Jun-2011 Shimeng (Simon) Wang <swang@google.com> Use default scale when restored scale is 0.

issue: 4975315
Change-Id: I47aa09605bb245cd271932d59d4d334f1e1b732f
/frameworks/base/core/java/android/webkit/WebViewCore.java
1c1e6df04ab4417b50bb06e5d4c43ecbed395e97 24-Jun-2011 John Reck <jreck@google.com> Don't resend WEBKIT_DRAW if paused

Bug: 4606210
If a WEBKIT_DRAW message came in after the WebView was paused,
it would fail to draw causing it to re-send the WEBKIT_DRAW message
which would lead to an infinite loop until the WebView is resumed.
Fix this by not re-sending the WEBKIT_DRAW message if webview is paused.

Change-Id: I3dd946e4e948cf3fd6af07ba6f7fdac2f967a631
/frameworks/base/core/java/android/webkit/WebViewCore.java
b30381d783f1a8849835938ea43d7edfe66a5822 23-Jun-2011 Shimeng (Simon) Wang <swang@google.com> Use local variable instead of webview method.

This removes the thread warning.

Change-Id: Id2eec46fda8413cfaed49d2a97de40491b7496a2
/frameworks/base/core/java/android/webkit/WebViewCore.java
82a077043fe8ea8b7bc3575afc3f0f68b7fc193b 10-Jun-2011 Shimeng (Simon) Wang <swang@google.com> Consider default zoom scale for mobile viewport.

issue: 4482888
Change-Id: I6a100700b7a7e9464b397f219217225f3ada0f63
/frameworks/base/core/java/android/webkit/WebViewCore.java
d169d3cb65c35c456dfb1416678808f1cdcf8b3e 09-Jun-2011 Shimeng (Simon) Wang <swang@google.com> Merge "Better handle double tap for smooth reflow and zoom."
136c20b88e14fffe570cdbd67fa7d227ab34bf1f 09-Jun-2011 Shimeng (Simon) Wang <swang@google.com> Better handle double tap for smooth reflow and zoom.

In case it's the first time to reflow or the page is in zoom overview
mode, let the reflow and zoom happen at the same time to avoid the
need of double tapping twice.

Also fix the viewport width to webview's original width for mobile
site.

issue: 4482888
Change-Id: Ic7c73a9eb3f75fd68322f7f4da14141126e75ad8
/frameworks/base/core/java/android/webkit/WebViewCore.java
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/WebViewCore.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/WebViewCore.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/WebViewCore.java
0d74112eed94c98ccaf4b192d933bc1f931675f1 25-May-2011 Russell Brenner <russellbrenner@google.com> Merge "merge from honeycomb mr2"
70ecf978040383bfcb35ec310712f845d0f108c5 24-May-2011 Russell Brenner <russellbrenner@google.com> merge from honeycomb mr2

Refire the redraw event if webkit wasn't ready

If webkit wasn't in a drawing mood, post a WEBKIT_DRAW event to
assure that the update is not lost.

bug: 4474358
Change-Id: I70fcf652cc854f995885c58b55d58ecf75734ab8
/frameworks/base/core/java/android/webkit/WebViewCore.java
24a252e634d4658df32abef3b258785c5e1ae819 25-May-2011 Shimeng (Simon) Wang <swang@google.com> Simplify viewport logic in webviewcore and zoom-manager.

As using wide viewport implies fixed viewport.

Also fixed an issue for mobile page viewport calculation.

issue: 4343683
Change-Id: I669618f8522377ff97317bb1b78700ad40e51bb3
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
7818aaa14a04661bdfd7019bdd1904c4383cd40f 27-Apr-2011 John Reck <jreck@google.com> Add support for force-enabling zoom

Adds an option in WebSettings that causes WebView to ignore the
user-scalable option on the viewport metatag

Change-Id: Ia850489811a6617a8c17ec6cb17e0a65400f55f0
/frameworks/base/core/java/android/webkit/WebViewCore.java
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/WebViewCore.java
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/WebViewCore.java
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/WebViewCore.java
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/WebViewCore.java
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/WebViewCore.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/WebViewCore.java
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/WebViewCore.java
5bf4bb97e09521bceb3e9a91ee9b8662e22dddab 24-Feb-2011 Leon Scroggins <scroggo@google.com> Merge "Stop the blinking caret when moving to another field."
76064644a73b09ef29c3cd361e450eff88850443 23-Feb-2011 Shimeng (Simon) Wang <swang@google.com> Pre-calculate view scale and text wrap scale for webkit.

In viewport setup time, pre-calculate the more likely view scale
and text wrap scale instead of waiting until ZoomManager's FirstLayout
time. This is to give webkit better and more correct information, such
as window width/height and inner width/height, when it is doing first layout.

issue: 3382398
Change-Id: I53fb15da43fbede6c03a4f51ec1c50e9a94f0236
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.java
f7107d7e78b2ed6b18647961982511fac3b4eee9 19-Feb-2011 Shimeng (Simon) Wang <swang@google.com> A method refactoring and a simple rounding fix.

issue: 3382398
Change-Id: I3b43c6e4954b5040a266da60c9a97314f1a5b91f
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
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/WebViewCore.java
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/WebViewCore.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
6a48ba740e8d93c945ce7d829a25de2b004d0452 02-Feb-2011 Ben Murdoch <benm@google.com> am 3b8657de: Merge "Move setExpandedTileBounds from WC to UI thread" into honeycomb

* commit '3b8657debcbcf1bb4e66ac797d7ea15d737ecb42':
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/WebViewCore.java
22d197eb310d33c80361f57d39342260956c4987 01-Feb-2011 Jean-Baptiste Queru <jbq@google.com> am 068f3ef9: am 066e1e3c: am dbf09fee: am eb17d6f5: Merge "Don\'t crash zygote if webcore fails to load"

* commit '068f3ef956ee3cadfe6089d9614ab093c03525c6':
Don't crash zygote if webcore fails to load
068f3ef956ee3cadfe6089d9614ab093c03525c6 01-Feb-2011 Jean-Baptiste Queru <jbq@google.com> am 066e1e3c: am dbf09fee: am eb17d6f5: Merge "Don\'t crash zygote if webcore fails to load"

* commit '066e1e3cc6a0a3f2fbf672b82f8e3317574b86da':
Don't crash zygote if webcore fails to load
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/WebViewCore.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/WebViewCore.java
c0e95048b95f40e39e57d4420fdab1566fb06da8 01-Feb-2011 Jean-Baptiste Queru <jbq@google.com> Don't crash zygote if webcore fails to load

Change-Id: I88271fb62c0cc7c6d768009a713f20d9dfbfb5eb
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.java
df4672643b92208b4ab7f9ab995dca8b69d3c458 26-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Final polish of WebView accessibility support for no JavaScript case." into honeycomb
7114f3bf6d5b2dab91a38400b430ab7012a9ce1b 26-Jan-2011 Shimeng (Simon) Wang <swang@google.com> Fine tune the high memory threshold and usage delta for v8 GC.

This will help reduce a bit more v8 GC for heavy web sites.

issue: 3317574
Change-Id: I5f93f9311fc864fb13933f92ff402e00c0e6fcdf
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
7c1bcfddcdb8665b0a73a45028fb72123e00cfd5 24-Jan-2011 Shimeng (Simon) Wang <swang@google.com> Set high usage delta to 1 to avoid constant V8 GC.

This value will be passed to native webkit to V8.

3 consecutive dromaeo DOM core are run, there's no crash.
Because of assets change, Passion browser can't be run; this will
need to be checked in I release, I think

issue: 3317722
Change-Id: Ifa6e4116f76f395d98db9f8336f91dc9de6bf125
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
cedb3a7e5849fd16e939add1ac6f5586467b8c68 20-Jan-2011 Kristian Monsen <kristianm@google.com> Clear the files we copy over to the temp cache

Fixes CTS tests

Change-Id: I3464ac90e58a9df21379a8da9d637f4f5ee69b85
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
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/WebViewCore.java
5d8e7a444c8b12030d32268d950d8649725dcd31 08-Jan-2011 Shimeng (Simon) Wang <swang@google.com> Change function parameter from int to float.

This change has a corresponding change in external/webkit:
https://android-git.corp.google.com/g/#change,88118

issue: 3225233
Change-Id: Icff31ef5c440cb02671ed363f57a0a5549cb32ef
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.java
808751fe7ac16bf7224cba284a318695d8093355 04-Jan-2011 Steve Block <steveblock@google.com> Avoid superfluous calls to CacheManager with the Chromium HTTP stack

When using the Chromium HTTP stack, most of the calls to CacheManager
methods are not required, as we're not using its cache. These methods
are now marked with asserts to make this clear.

Also avoid creating the cache database in WebViewDatabase.

This will avoid creating the database databases/webviewCache.db and
the directory cache/webviewCache.

Bug: 3270236
Change-Id: I68f94dde16830ed817454d5e1af961f41b71d018
/frameworks/base/core/java/android/webkit/WebViewCore.java
36a4f232c6afeeb43d5561ff27dae9ac2e1303fc 04-Jan-2011 Derek Sollenberger <djsollen@google.com> Add full-screen support for OpenGL based plugins.

bug: 3321891
Change-Id: Ief8ef6d3c4b9ea535054b80b84df080567b9b163
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.java
d4819a722bc5816130fe42ee0cc9f5e02c687f96 16-Dec-2010 Kristian Monsen <kristianm@google.com> Add methods to send messages to the WebViewCore whithout having a reference

Change-Id: I8543e862e7a93651c3e3fa9bcefc8ea5f857a152
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
851730552166bf6e99ed60438ba91f09f36b829f 08-Dec-2010 Kristian Monsen <kristianm@google.com> Make CookieManager.removeSessionCookies async

Webkit loadurl() will wait on the webcore thread until oustanding
cookie operations complete.

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

Bug: 3234178
Change-Id: I7136f8d76b20f90a7e9e1c55b6755ffe6c35b77b
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.java
96fcb87ae1e3e206dcf3dab54048bcea255e339f 25-Nov-2010 Shimeng (Simon) Wang <swang@google.com> Set initial view scale to be at least overview scale.

Some website will have an initial view scale which is less
than the overview scale and the page will display poorly.

This fix sets the initial scale and text wrap scale to be at least
overview scale to make the page looking good at first load. When a page
is restored, the scale will not be changed.

Also make the reading level scale always bigger than overview
scale for consistency.

issue: 3226625
Change-Id: I8b77cf4fda454a35c3037fa09aaff1aac0c0f664
/frameworks/base/core/java/android/webkit/WebViewCore.java
b394d9a5f8e90486555b820fa1d17a32186d440b 18-Nov-2010 Shimeng (Simon) Wang <swang@google.com> Add supported video/m4v mimeType to the support list.

This is to support video/m4v mimeType in the Browser.
Even though it's not listed in MediaFile.java, it's
supported and plays well.

issue:3207898
Change-Id: I35c7905527ce2c46f8861662b3a2ee94a690b38e
/frameworks/base/core/java/android/webkit/WebViewCore.java
69e2eff270be8c61fc902fcb337097e86c601295 17-Nov-2010 Kenny Root <kroot@google.com> Don't waste memory creating new Boolean objects

Creating a new Boolean is wasteful since there's already a static
Boolean.TRUE and Boolean.FALSE. Using Boolean.valueOf will return one of
those static objects and reduce memory usage a bit.

Change-Id: Id497f951c8a894ec03ac6c3181e6055b56db9db4
/frameworks/base/core/java/android/webkit/WebViewCore.java
5dffd0e3af502acdc2e45425139ef8081fa4f0a8 15-Nov-2010 Andreas Huber <andih@google.com> Add http live mime types to MediaFile, add support for playlist mime types to browser.

Change-Id: I1f0b31dd2f4e6cfa33a61ff8505e8396aca3c20f
related-to-bug: 2368598
/frameworks/base/core/java/android/webkit/WebViewCore.java
f902e4b2b5aada59a86adbea03e52400c11b2a81 12-Nov-2010 Shimeng (Simon) Wang <swang@google.com> Fix mobile sites' viewport in fixed viewport mode.

issue:3003933
Change-Id: I4d9665c578443fcc12bab2f929ffa8b5995c28f7
/frameworks/base/core/java/android/webkit/WebViewCore.java
f7093befbbc64d324b6d4c41e98ae69bbed4cd31 01-Nov-2010 Ben Murdoch <benm@google.com> Calculate memory thresholds that V8 can use to control GC.

V8 can be smarter about the memory it uses and the frequency
of garbage collection but we need to inform it of the values
to use. As this varies device to device look it up and store
it on the WebViewCore to be read by native code over JNI.

See also https://android-git.corp.google.com/g/#change,78691

Bug: 3075565

Change-Id: Ib52f4df775b80b386fc98f1d71b5687f01c12b2e
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
fb7bc34b23f37d10be2c778ddc5ce86542b6573c 01-Nov-2010 Nicolas Roard <nicolas@android.com> Update layers only

Java counterpart to https://android-git.corp.google.com/g/#change,77334

Bug:2975990

Change-Id: I428944c30cedddc47a2c4f8c772167dd4ce2a78d
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
4e7665d2b99b234af369b5723ee2e34f9c47e4aa 27-Oct-2010 Iain Merrick <husky@google.com> Only AV formats should be handled by MediaPlayer (Java side)

Must be submitted with corresponding C++ change (I50da7599).

When opening a text file in the browser, WebKit was attempting to
display it as a movie. This is because the media player now reports
that it can handle various document formats, including plain text.

See http://b/issue?id=3132917

This CL updates WebViewCore.supportsMimeType() to explicitly check
for audio and video formats only. This is called from WebKit via
JNI, and doesn't seem to be used elsewhere, so it should be a safe
change to make. Renamed to isSupportedMediaMimeType() for clarity.

Test: push a text file to /sdcard/foo.txt, and open it in the
browser (as file:///sdcard/foo.txt).

Change-Id: Id39b770b05ced7c976d8043649845f26115b24c9
/frameworks/base/core/java/android/webkit/WebViewCore.java
9c64bae134f1fa497bbeef2f263df4d8d21c415e 22-Oct-2010 Shimeng (Simon) Wang <swang@google.com> Ignore viewport viewScale in fixed viewport mode.

This is to solve macworld.com, which has 900 as viewport but actual
content width is more 1000.

issue: 3003933
Change-Id: I2db3f66828fd00c8be62131599395eb82752b4a2
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
bf9cf4d80dd45ac0938c3ba698dc348fbc4290d7 06-Oct-2010 Shimeng (Simon) Wang <swang@google.com> DO NOT MERGE

Add wrapper method for native JNI call.

This is to check whether a given mimeType is supported in Android media
framework.

issue: 3101402
Change-Id: Ic8b412c045c36113c830296dacb42ed5f7371c9d
/frameworks/base/core/java/android/webkit/WebViewCore.java
1be73390778eb1b033a4db6339c8a8b325dfaad9 15-Oct-2010 Steve Block <steveblock@google.com> Rename DeviceOrientationManager to DeviceMotionAndOrientationManager

Requires a corresponding change in external/webkit ...
https://android-git.corp.google.com/g/74336

Change-Id: Ic8042a77db200cd2b0ea5ae3f70074aaba0cb414
/frameworks/base/core/java/android/webkit/WebViewCore.java
6d383aadce15306e5c5e9af704cd8dfc1fafc16a 14-Oct-2010 Shimeng (Simon) Wang <swang@google.com> Use real fixed viewport, and let the content width be the overview width.

issue: 3003933
Change-Id: I679fe1d5736daf0e8cee746dee53558943796833
/frameworks/base/core/java/android/webkit/WebViewCore.java
dc82a29b1108622694fb9f1036e2225eafac58c1 06-Oct-2010 Steve Block <steveblock@google.com> Implement DeviceMotionEvent

Requires a corresponding change in external/webkit ...
https://android-git.corp.google.com/g/72906

Bug: 2495651
Change-Id: I60b2fc5a9fce459c3cef76b3b634485dfb276eae
/frameworks/base/core/java/android/webkit/WebViewCore.java
bf01312965c4257bc1fc912dc2fdfea9d926e23b 06-Oct-2010 Shimeng (Simon) Wang <swang@google.com> Add wrapper method for native JNI call.

This is to check whether a given mimeType is supported in Android media
framework.

issue: 2816278
Change-Id: I66d379d039c4e1f4a8528654ece006335fd4463f
/frameworks/base/core/java/android/webkit/WebViewCore.java
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/WebViewCore.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/WebViewCore.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/WebViewCore.java
64336a40515874066040d058f3bdea338904a5f2 22-Sep-2010 Shimeng (Simon) Wang <swang@google.com> Add a fixed viewport margin since website content width changes.

For example, nytimes.com will chang from 980 to 986.

issue: 3003933
Change-Id: I80c41430e3b7e89c5a3875232622c50031eaf5ef
/frameworks/base/core/java/android/webkit/WebViewCore.java
77fdaaa3afec345c9d9b367edd92e69ae97860bf 21-Sep-2010 Shimeng (Simon) Wang <swang@google.com> Use max of content width and initial preferred width as the viewport.

issue: 3003933
Change-Id: I4a901219674b575e8228d44381efbaa159912465
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
a8f99bbbbc89014a2c38637f8e2179f0cd578b11 17-Sep-2010 Shimeng (Simon) Wang <swang@google.com> Use website specified viewport.

In fixed viewport mode, use website specified viewport to override
the default fixed viewport.

issue: 3007588
Change-Id: I0ed86a2f829d18bf35dba47f766b23be1ace8ff5
/frameworks/base/core/java/android/webkit/WebViewCore.java
585f13f8dec4cbf55b3bc04d95425d647f0577b2 10-Aug-2010 Svetoslav Ganov <svetoslavganov@google.com> Accessibility support for WebViews

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

Instead, allow webkit to do it.

Requires a change to external/webkit.

Bug 2679411
Bug 2659028

Change-Id: Ibe5dfc90b13d13f7575649e4c90d5166de10dbb2
/frameworks/base/core/java/android/webkit/WebViewCore.java
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/WebViewCore.java
75796bbef7cc2cc510460790afd7a6abc6034e98 24-Aug-2010 Cary Clark <cary@android.com> communicate drawing pause to webkit to pause gif animation

Gif frames continue even if the webkit changes aren't drawn.
When we suspend drawing, suspend the gif animation as well.
This is accomplished by fooling webkit into thinking the
browser window is offscreen. When the webkit drawing is
resumed, invalidate the entire content so the gif animations
start up once more.

requires companion change in external/webkit

http://b/2621902

Change-Id: I1814aa41630820872d62752b75ae94383fdcc5fc
/frameworks/base/core/java/android/webkit/WebViewCore.java
bb9db22fbb264f9a31ab85f74339b94cb1ab7151 18-Aug-2010 Steve Block <steveblock@google.com> Hook up device sensors for DeviceOrientation

Change-Id: Ic7165a07a02e3c38165b2f92e3ec7368d2b60e19
/frameworks/base/core/java/android/webkit/WebViewCore.java
c43565be90a3119da675571238de20583ca32400 11-Aug-2010 Steve Block <steveblock@google.com> Implement DeviceOrientation

This patch provides all of the plumbing but only provides the error event,
used when we fail to connect to the device's sensors. Connection to the
sensors is coming in a later patch.

Change-Id: I322297d70570425b19917712e63e815651ceacc2
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.java
6312de2a9a2cf7304d91b7f78c3dff2db59b918c 29-Jun-2010 Ben Murdoch <benm@google.com> Receive notification from native webcore that the page being viewed
has marked itself as being an installable web app. Default implementation
in the WebChromeClient does nothing.

Requires an external/webkit change.

b/2766917

Change-Id: I7aae1b097f866e3d1c6c6a7a31a55bb12ff6a441
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
f9b731d383790e0dfd407525efcd72bba4ee4895 22-Jun-2010 Grace Kloba <klobag@google.com> Add a WebSettings to control whether WebView will
use some perf trick, e.g. pause updating the picture,
during panning and zooming transition.

Fix http://b/issue?id=2784020
/frameworks/base/core/java/android/webkit/WebViewCore.java
65b4cdabb0b626635606c4b2dfec145c547d3396 28-May-2010 Ben Murdoch <benm@google.com> Frameworks changes to enable File Reader and blob.slice APIs.

Rather than just storing the name of the file that the user chose in the file picker,
store the full path to the file. That way we can open it using the file API and still
extract the filename itself by simply chopping off all but the last path segment.

Change-Id: I25f2fe818deda8ca848f0da02cf45ae97d2127fb
/frameworks/base/core/java/android/webkit/WebViewCore.java
e80cbcc05168a6de6896f0e176f72c708e6cd900 29-May-2010 Grace Kloba <klobag@google.com> merge two restore scale to one.

There is a matching CL in external/webkit
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.java
4ae32f5f11f2914196d6d0d195dcbc59d37b92bc 18-May-2010 Ben Murdoch <benm@google.com> Allow passing of accept types from WebCore to Java for the file picker.

Requires a change in external/webkit and packages/apps/Browser.

Change-Id: I0fe5f0edb00be0f329f07e42e84f88aced543d17
/frameworks/base/core/java/android/webkit/WebViewCore.java
cc749dee638785cee52a05c3c76445573591c6f1 18-May-2010 Ben Murdoch <benm@google.com> Add a method on the JavaBridge to resolve filenames from content URIs.
Requires an external/webkit change.

Change-Id: I7cc9a1c9c544546ca4fe8a212d3d60183ad99c36
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.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
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/WebViewCore.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/WebViewCore.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/WebViewCore.java
05b3720bebb7a31211da870181f440e56a824369 25-Jan-2010 Mike Reed <reed@google.com> Cherry-pick https://android-git.corp.google.com/g/#change,38305

disable high-quality filtering during scrolling, until I can cached the scaled images.

Change-Id: I58fa779a8d9a23a20a0fdd93ea06c251b6c6ca8d

Fix http://b/issue?id=2574172
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.java
d1bee05d6494cc2dd2751a17b60e34994f925c59 05-Mar-2010 Ben Murdoch <benm@google.com> It is possible that we may get a call from WebCore that the first layout has
completed before we've successfully syncd the webview dimensions from Java to
native and in this case, we end up syncing a height of 0 to WebKit. This causes
hit detection to fail, as WebKit thinks we have a 0-height visible area. This
patch fixes this scenario by syncing the height of the webview back to WebKit
in the case that the first layout comes back before we've sent our dimensions.

Fix for b/2449863

Change-Id: Id72c37b17411f3409edc7104d83ca5ffd17ab09b
/frameworks/base/core/java/android/webkit/WebViewCore.java
2036dbab1726c34953360a7a56d6b9ef1f2aa7dd 15-Feb-2010 Grace Kloba <klobag@google.com> Add a new WebCoreWorker thread to handle the tasks
which should not block either UI or WebKit. It handles
local file access, cache access and trim cache.

Move createCache, saveCache and most of getCache out
of WebCore thread so that slow IO and database will
not affect loading performance. getCache can be still
called from WebCore thread in the uncommon cases
like redirect and POST validation.

Move cache ticker from WebCore thread to WebViewWorkerThread.

Move setCookie from WebCore thread to WebViewWorkerThread.

Remove the unreferenced files in the cache directory
while trim cache.

Confirmed with our SQL expert, Vasu, there is no need
to wrap clearCache with end/startTransaction any more.

http://b/issue?id=2414792
http://b/issue?id=2475242
/frameworks/base/core/java/android/webkit/WebViewCore.java
2120cd663fd76ae49a8d578f1c48a7bbec3e3cc1 23-Feb-2010 Derek Sollenberger <djsollen@google.com> force plugins to render on top of browser content.
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.java
3141e0a62abe57e93e5d716895a2a57cc052bb50 28-Jan-2010 Ben Murdoch <benm@google.com> Add new ConsoleMessage class that adds more information (such as the Message Log Level from WebCore) and a new overload of onConsoleMessage that takes this as a parameter.
This change requires a corresponding change in external/webkit.

BUG=2401755

Change-Id: Iea2c58e93172240f162d8ad57eb2c8f2352f8162
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.java
5e7bb0a9cafc5e90bf451faa5722bb80fb4294e9 01-Feb-2010 Andrei Popescu <andreip@google.com> Implement support for v8 counters
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
d09f4aaba224bf2a94e75906a5b6bc27c2ab9ad7 29-Jan-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of bb074ef9 to master

Change-Id: I2d78d1280b56928f65517203348ddbd403fa9eae
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/WebViewCore.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/WebViewCore.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/WebViewCore.java
729d8369b5b44ffc7db1c3a311637dac5c9cbf85 25-Jan-2010 Mike Reed <reed@google.com> disable high-quality filtering during scrolling, until I can cached the scaled images.
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.java
76336f2ccfcb97a6ad75f88abe95f57c3dd5b59d 15-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

If mViewportWidth is 0, it means screen width. If
textwrapWidth is not same as view width, which means
that we are in the state triggered by pinch, always
send textwrapWidth as width to WebKit to keep the
same layout.

Fix http://b/issue?id=2375232
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.java
c408d5c2782012661f8181e511eda76e3be8cd13 11-Jan-2010 Derek Sollenberger <djsollen@google.com> am 1fed31aa: am fef4874a: fixing build break by removing unused imports.

Merge commit '1fed31aa81f769db308f6d92b0530ad52fa79ca8'

* commit '1fed31aa81f769db308f6d92b0530ad52fa79ca8':
fixing build break by removing unused imports.
fef4874afddeeba8eaac6da49cc3203e9ce2d009 11-Jan-2010 Derek Sollenberger <djsollen@google.com> fixing build break by removing unused imports.
/frameworks/base/core/java/android/webkit/WebViewCore.java
86cf1ad0e5a251f2a997eff8ac01dea8f7de4c60 11-Jan-2010 Derek Sollenberger <djsollen@google.com> am d55aa751: am 7c5bf466: consolidating to only use one surface per plugin. give plugin access to java context.

Merge commit 'd55aa75138cb3305e1aeb6fb4873851435462f2f'

* commit 'd55aa75138cb3305e1aeb6fb4873851435462f2f':
consolidating to only use one surface per plugin. give plugin access to java context.
7c5bf4666cb8f2f79a61f46f14dd2272b0ba41db 11-Jan-2010 Derek Sollenberger <djsollen@google.com> consolidating to only use one surface per plugin. give plugin access to java context.

There is a companion commit in external webkit.
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.java
3886333644467beeaf60c13fb94f242538067765 04-Jan-2010 Nicolas Roard <nicolas@android.com> layers support
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.java
b6ddc7ae3507f0e1ea9a76c76f829bc8b26a292c 08-Dec-2009 Derek Sollenberger <djsollen@google.com> Notify native plugin code when the browser discards the customView.
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.java
3f40bd48d278a40603f3f7d7b9d602ecbc09246d 07-Dec-2009 Grace Kloba <klobag@google.com> Remove the code where we suspect webkit draw during
drag. It was added for the better performance of panning
while loading. But it does make sites using touch event
look bad as we don't have the display tree until touch up.

Fix http://b/issue?id=2310295
/frameworks/base/core/java/android/webkit/WebViewCore.java
51ef573a8336c637ac508c49b84b512d8f11fa3a 07-Dec-2009 Derek Sollenberger <djsollen@google.com> Switching from activity based full screen plugins to a view system overlay.
/frameworks/base/core/java/android/webkit/WebViewCore.java
42d00fbe55170fdf57572d120bdb04a768e15258 01-Dec-2009 Derek Sollenberger <djsollen@google.com> fix issue with plugin surfaces not updating properly within the view system.
/frameworks/base/core/java/android/webkit/WebViewCore.java
51e45ff0d53ce299be316e14e48cdd3e3a51d0b0 01-Dec-2009 Derek Sollenberger <djsollen@google.com> Cleanup how a plugin goes full-screen.

The plugin activity now fetches the plugin's existing java class from native code instead of creating a new one.
/frameworks/base/core/java/android/webkit/WebViewCore.java
cb37e71509da43e0d8d809591b09e8f5a582b5cd 24-Nov-2009 Derek Sollenberger <djsollen@google.com> Refactoring plugins to use new java interfaces.

This change adds 3 new interfaces for plugins to the framework. This
change also includes extensive cleanup as we consolidate internal plugin
functions into the pluginManager. Also using the new interfaces we no
longer need to pass additional parameters in quite a few methods.
/frameworks/base/core/java/android/webkit/WebViewCore.java
0a784a545303cc5fcd9ecbc260d1fa0d0d0b8336 17-Nov-2009 Ben Murdoch <benm@google.com> When requesting the href of a link, also request the link's text.

Change-Id: If3cf97d0b328d654919b1334b07d4c8cc7b1a9ea
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
9e28c4ce666f1b8c5e5355d739e37480856ef509 09-Nov-2009 Derek Sollenberger <djsollen@google.com> Allow plugins to load java classes from their apk.

Provide the functions to be called from native code that take
the plugin's location and desired class name and then load that
class from the plugin's apk if it is available.

see http://b/2215696
/frameworks/base/core/java/android/webkit/WebViewCore.java
35155c1d8b25ae70697550029807a355c66461b2 29-Oct-2009 Cary Clark <cary@android.com> divide mRestoredScale before use

Also add debugging to help find incorrect width bug (see bug)

fixes http://b/issue?id=2218767
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.java
dafc19a1406bdd554fb4629d79c8aa4d75aca363 27-Oct-2009 Mike Reed <reed@google.com> do not merge

remove the filter when we're scrolling, so we don't degrade the quality

http://b/issue?id=2174463&cookieId=2009300052135424

same change (in spirit) in MR2

https://android-git.corp.google.com/g/#change,30860
/frameworks/base/core/java/android/webkit/WebViewCore.java
8db532c13697290985963aefa3d2e8ef130d7bfe 22-Oct-2009 Mike Reed <reed@google.com> don't turn off filtering/dithering when we scroll.

Newer devices have proven plenty fast to leave the quality improvements on even during drag/scroll.
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
3dafca1842132006d592e5e6bdf8512d7a8925a0 13-Oct-2009 Derek Sollenberger <djsollen@google.com> Enabling plugin surfaces to update their position in the UI.
/frameworks/base/core/java/android/webkit/WebViewCore.java
70ca3c25b959427359bdb7cf37a8c3d6eb962357 02-Oct-2009 Leon Scroggins <scroggo@google.com> File upload.

Implement java side of file upload. Requires changes to external/
webkit to not break; requires changes to packages/apps/Browser
before it actually is used.

Fix http://b/issue?id=675743
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
194e345eb0fbfd170dcebb81a2bb7d93e8f93f94 28-Sep-2009 Leon Clarke <leonclarke@google.com> Re-instate the link coloring on startup, but going via the browser
to read the bookmark history, and restricting it to 100 results.

Link coloring - doing db lookup in new thread

Whitespace, following review
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
0d03b91407aecab52d0fe8b6f849a0398878a2c1 28-Sep-2009 Grace Kloba <klobag@google.com> Before we send VIEW_SIZE_CHANGED after first layout,
we should remove VIEW_SIZE_CHANGED in the queue if
there is any as we are going to send the message in
the front of the queue.

Fix http://b/issue?id=2133222
/frameworks/base/core/java/android/webkit/WebViewCore.java
96cfad5d673b49d8b3a724d7b1066493aacd74d5 25-Sep-2009 Cary Clark <cary@android.com> check for null before calling native webkit from java webview

fixes http://b/issue?id=2121684
/frameworks/base/core/java/android/webkit/WebViewCore.java
db674fb4e85c5ae63c05368b0b13e64be6ad118d 24-Sep-2009 Grace Kloba <klobag@google.com> Not all WebView's host have permission to read the history.
Add a security catch and return an empty list.

We don't use tab in the code.

Fix http://b/viewIssue?id=2144339
/frameworks/base/core/java/android/webkit/WebViewCore.java
9c8d886bb776ab98fc3b8aa26134c7a2611a6076 24-Sep-2009 Leon Clarke <leonclarke@google.com> Coloring clicked-on links

Following review comments

Merging in ben's change

Whitespace
/frameworks/base/core/java/android/webkit/WebViewCore.java
3dba1e4d81bb7e35f0299e5f959f9dfe600a6a0b 22-Sep-2009 Ben Murdoch <benm@google.com> Move destroying the web view to the WVC thread (previously it was on the UI thread)

Change-Id: I5a48734c6a244eadd1d60659f8e02ebb889a8fc1
/frameworks/base/core/java/android/webkit/WebViewCore.java
c0b8a96d28c55cb51e4f9e1f85c8d3ecf1ff13bf 22-Sep-2009 Derek Sollenberger <djsollen@google.com> launching plugin activity when a plugin requests to go full screen.

Change-Id: Ib42bb08d01a75ca3a9c02085ee185396bb7b7378
/frameworks/base/core/java/android/webkit/WebViewCore.java
dee76be487fcdc975877f85221a693b87b9669a7 22-Sep-2009 Andrei Popescu <andreip@google.com> Fix for 2122292: make sure we unregister the ContentObserver for the system location settings. Also make the GoogleLocationManager use the singleton pattern correctly.
/frameworks/base/core/java/android/webkit/WebViewCore.java
6c24b4d10223cb522e6bdbf0e334f61e672f4366 22-Sep-2009 Nicolas Roard <nicolas@android.com> Reimplement the settings to use async callbacks
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
f53c1865248dd2b38f8c24a0419d550330619b19 22-Sep-2009 Grace Kloba <klobag@google.com> Don't snap the initialScale to min or max if it is not defined.

Fix http://b/issue?id=2133821
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
0b3a5d65247be1fb79d66af534fa78a94743864f 09-Sep-2009 Derek Sollenberger <djsollen@google.com> First pass at replacing native plugin views with java.

Change-Id: I6d1f45f31210c2353fa348cc37be8d91bcd5e887
/frameworks/base/core/java/android/webkit/WebViewCore.java
674a844f6defdb77f8401327725357c9cf189a37 15-Sep-2009 Cary Clark <cary@android.com> synchronize access to pictureReady, copyContentPicture

Two methods in WebViewCore are called from WebView. The C
underpinnings were synchronized with a mutex, but the Java
shell was not, so under rare cirumstances, the Java side might
delete the native class. Add Java synchronization to
protect against this.

Fixes http://b/issue?id=2121684
/frameworks/base/core/java/android/webkit/WebViewCore.java
04b2868c74a54cf711552262f0ad20d234b627b4 14-Sep-2009 Grace Kloba <klobag@google.com> WebView zoom clean up
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.java
9217c45829da4d0c9c9dbdc6bc950c7f3e03e4f5 01-Sep-2009 Grace Kloba <klobag@google.com> When we destroy a WebView, RESUME_TIMERS/PAUSE_TIMERS may be still in the queue.
We need to pass them to WebViewCore as they are per process base. If we drop
them, the counter in the JWebCoreJavaBridge can be out of order.

Part 2 of fixing http://b/issue?id=2087410
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
d497d87650dd79f7d6a4751d79598d68ceb4b789 25-Aug-2009 Ben Murdoch <benm@google.com> Pass the estimated size of new HTML 5 databases to the ChromeClient so it can use that amount to figure an initial default quota.

Change-Id:Ic9372b0c86472b42ba5d0b964aaff1e2bbfe3efa
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
7a02d6e457073bd7f00546ff4b5b442937724651 18-Aug-2009 Grace Kloba <klobag@google.com> Couple of fixes for viewport.

http://b/issue?id=2053685. This is a tricky one. When Browser is restarted,
we may get first layout even before viewport tag is parsed. This is rare,
but it happens to Google Reader site. So we need to setup the viewport explicitly
if it happens after first layout. There is a pairing webkit change.

http://b/issue?id=2054131. When Google talk is loaded, it goes through an auth
redirect site which means first layout is called with standardLoad as false.
In this case, even the final site uses viewport tag to get mobile experience,
the intermediate one doesn't. To make sure most of the mobile sites, who
define their viewport width as device width, work correctly, we always update
the mRestoreState when we set viewport.

http://b/issue?id=2054121. When Browser is first started or restarted, the
mCurrentViewWidth is 0 as we don't know the WebView's width yet. As we can't
send VIEW_SIZE_CHANGED message directly, we reset WebView's mLastWidthSent
so that VIEW_SIZE_CHANGED will be sent from WebView when it's width is available.
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
fa32db15a06d952537af046dddf083757de10b6b 10-Aug-2009 Derek Sollenberger <djsollen@google.com> setting the pixel format for a given surface
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.java
1bd20523ef1896ad4e6f7026cc54effdd1565d40 06-Aug-2009 Derek Sollenberger <djsollen@google.com> adding ability to fix the size of a surface view when created.
/frameworks/base/core/java/android/webkit/WebViewCore.java
706cee45e95d513c9d91fdd3f2ab887f4579f744 04-Aug-2009 Feng Qian <fqian@google.com> Fix the missing break statement.

Somehow the break statement after SET_JS_FLAGS was removed.
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.java
4faee09c422a70439129e9fb40dd82f03d42c98d 28-Jul-2009 Steve Block <steveblock@google.com> Adds the Java side of the system to show the Geolocation permissions prompt.
/frameworks/base/core/java/android/webkit/WebViewCore.java
0ac031b3d29c6de90895c875991585812dc7388f 28-Jul-2009 Steve Block <steveblock@google.com> Adds the Java GeolocationPermissions class.

This is used by the Browser 'Website Settings' menu to get information about Geolocation permissions.
/frameworks/base/core/java/android/webkit/WebViewCore.java
59e2ad93bf37c7ded44c033d38fe7c972e2f4118 28-Jul-2009 Andrei Popescu <andreip@google.com> Wire in the AppCache out-of-space callback
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.java
fb6aecb70392516427908c3148c0350840f6bc04 17-Jul-2009 Patrick Scott <phanna@android.com> Added hooks from jni to create and manage SurfaceViews for plugins.

A subclass of SurfaceView is created in order to appear like a normal
SurfaceView to jni but can be managed in Java easily. This class implements the
SurfaceHolder.Callback interface in order to notify the native PluginSurface
when the surface changes.
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.java
b308137ed0a3402781a1102567a8b8ffa8adc0f7 30-Jun-2009 Feng Qian <fqian@google.com> Add JS Flag support.
/frameworks/base/core/java/android/webkit/WebViewCore.java
4c41e8dc3bdfd868da2542e19400fb8ea2ca03a9 29-Jun-2009 Derek Sollenberger <djsollen@google.com> Adding support for webkit to request the keyboard.
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.java
d76cd5ebbc8733f781f912ac73be78ea2310fca6 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 15760159: Merge change 5413 into donut

Merge commit '157601594fc7139a45ec43a860d36ee0045d0333'

* commit '157601594fc7139a45ec43a860d36ee0045d0333':
Need to write the correct float math.
2b2e9d91521a9f271d8661d4254c4e154e3c0223 25-Jun-2009 Grace Kloba <klobag@google.com> Need to write the correct float math.
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.java
6262ae5c9df44c0673cebaeaf7f655094f5b5485 17-Apr-2009 Ben Murdoch <benm@google.com> Implement handling of console messages from WebCore. Default implementation in WebChromeClient is to do nothing.
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.java
10e4d2068aa687e30dd4e5fcae6417f66874823b 12-May-2009 Guang Zhu <guangzhu@google.com> merged 25fdf35, resolved conflicts
11e8fe5a7208c9cd6afc2a0373761ae506d7707f 11-May-2009 Nicolas Roard <nicolasroard@google.com> Add modifications to handle the WebStorage settings + the WebStorage bridge native functions
/frameworks/base/core/java/android/webkit/WebViewCore.java
81e41434b3421a89e3e967e866238719e8468bd5 09-May-2009 Guang Zhu <guangzhu@google.com> Added Java callback for JavaScript execution timeout.
/frameworks/base/core/java/android/webkit/WebViewCore.java
7df1985e86635af006be3dfa65987d60e290b5de 22-Apr-2009 Ben Murdoch <benm@google.com> Merges p9 CLs 144856 and 145055 to GIT to enable the Database API in the browser.
/frameworks/base/core/java/android/webkit/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.java
b3230cb1e33c3de7ae7d63217617606d23943708 13-Apr-2009 Grace Kloba <> AI 145922: Fix #1640053, #1777704. When WebKit set scroll position through jni, we need to check whether there is a pending draw as the scroll position should be based on the new picture, not the current picture.
BUG=1640053,1777704

Automated import of CL 145922
/frameworks/base/core/java/android/webkit/WebViewCore.java
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/WebViewCore.java
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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.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/WebViewCore.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/webkit/WebViewCore.java