Commit Graph

2400 Commits

Author SHA1 Message Date
Steve Block
b187d52f8a Merge "Minor clean-up in DeviceOrientation and DeviceMotion" 2012-04-12 11:02:29 -07:00
John Reck
a3fab1cbd2 Merge "Cleanup unused code" 2012-04-12 09:54:28 -07:00
Steve Block
5ba2efeb9f 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
2012-04-12 11:08:13 +01:00
Jonathan Dixon
39edeeefe7 Merge "Hide WebView.getZoomControls()" 2012-04-12 02:29:50 -07:00
John Reck
a511bbf872 Cleanup unused code
Bug: 6317798

Change-Id: Ibf38d680fabacb2987cd26fac464875dd8ebad2e
2012-04-11 17:51:41 -07:00
John Reck
c2676102d2 Merge "New WebView input dispatcher." 2012-04-11 16:03:46 -07:00
Jeff Brown
9d3bdbd6b8 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
2012-04-11 15:10:24 -07:00
Chris Craik
cae80b2563 Merge "Unify composited layer/base layer draw path" 2012-04-11 14:26:11 -07:00
Mangesh Ghiware
518e83b8c6 On double-tap, simply zoom in if content is too wide.
Bug: 6257654
Change-Id: I6963476300619d6f0d6af46630f9a86d95ad0dfc
2012-04-10 17:42:49 -07:00
Chris Craik
00ed0fd27f 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
2012-04-10 17:29:35 -07:00
Dianne Hackborn
2a854c13f8 Merge "Some small tweaks to improve memory management." 2012-04-10 15:25:43 -07:00
Dianne Hackborn
162bc0ea0d Some small tweaks to improve memory management.
We now allow processes that currently have stopping activities to
be managed as if they were done stopping, so that memory trimming
can be done before the process goes to the background.  Hopefully
this will reduce cases where the processes goes to the background
and immediately gets killed, but wouldn't have had to be killed if
it had a chance to trim its memory.

Also change window memory trimming to always do the aggressive
trimming when memory is critical, even if not on a low-end device.

And tweak web view trimming to not trim for foreground UI events.

Change-Id: I241b3152b52d09757bd14a202477cf69c9b78786
2012-04-10 14:43:58 -07:00
George Mount
1bee28f4c8 Merge "Revert "Revert "Keep selection handles in edit fields.""" 2012-04-10 14:23:07 -07:00
George Mount
7102eb2d30 Revert "Revert "Keep selection handles in edit fields.""
This reverts commit 90c08eafad
2012-04-10 13:41:51 -07:00
George Mount
f5711ab0fe Merge "Revert "Keep selection handles in edit fields."" 2012-04-10 13:16:03 -07:00
George Mount
90c08eafad Revert "Keep selection handles in edit fields."
This reverts commit 5d84368a75
2012-04-10 13:14:48 -07:00
George Mount
ad0ef21011 Merge "Keep selection handles in edit fields." 2012-04-10 12:33:58 -07:00
George Mount
5d84368a75 Keep selection handles in edit fields.
Bug 6264769
 Webkit Change: Ie937a8c55da0f8aef66cfcee11beb961669b7168

Change-Id: I9ee89f8b1d4e6954092b8c4d677fb75b79354b36
2012-04-09 15:49:03 -07:00
George Mount
d408048641 Remove composing span after setting text.
Bug 5070241

Change-Id: I8cf7e5f119c7a828df603e91ba4bcf0f571bbc72
2012-04-09 15:46:55 -07:00
Victoria Lease
63b81472a3 Merge "Make WebView.findAllAsync() and WebView.setFindListener() public." 2012-04-09 13:14:28 -07:00
Victoria Lease
0b8413bbeb Make WebView.findAllAsync() and WebView.setFindListener() public.
Deprecate WebView.findAll() while we're at it.

Bug: 6052412
Change-Id: I2f7116786109b4d6a01d24ac892c13b5d1f498f4
2012-04-09 11:48:18 -07:00
Bart Sears
4e2032b5fe Update WebSettings.PREVIOUS_VERSION
Now that we have released ICS MR1.1, update the PREVIOUS_VERSION
to 4.0.4.

Change-Id: I3c4d6abfa679f20776d2676c57af4c0347e41c7b
2012-04-04 16:13:26 -07:00
Jonathan Dixon
c69be70afe Hide WebView.getZoomControls()
This was deprecated and the replacement provided in API level 3.
Hiding it in API 16 as a step toward removing support for it in 17.

Bug: 5012841

Change-Id: Ice66a0fc1031c0d6705973dae7cbc11b028e14c9
2012-04-04 16:08:50 +01:00
Michael Kolb
73975e06e3 Merge "Remove embedded titlebar rendering" 2012-04-03 13:02:28 -07:00
Michael Kolb
8116da5ff6 Remove embedded titlebar rendering
Bug: 5032345

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

Change-Id: I6affc9e6119dc17e89d15dad77e14e1cdf139662
2012-04-03 08:40:21 -07:00
George Mount
a7a1d5f8da Merge "Don't show keyboard on focus change." 2012-04-02 12:51:13 -07:00
George Mount
20c19f47a1 Merge "Remove unused FORM_DID_BLUR hooks." 2012-04-02 12:50:44 -07:00
George Mount
c3cbeddcb5 Remove unused FORM_DID_BLUR hooks.
Bug 6111763
 Webkit Change: I015e1a57e81e897c124af5d96ba76b4d07a381fc

Change-Id: I56a862a6c0f0d7799f4e935bb7f5103bb2edbb9b
2012-04-02 11:10:57 -07:00
George Mount
55cd3b85f3 Don't show keyboard on focus change.
Bug 6270400
 Webkit change: I1f06b7220e22665f5932928855c81eca6534bf2f

Change-Id: I2aa65b405b3a394b55821a4d688afeb22244c2c7
2012-04-02 10:29:12 -07:00
Michael Kolb
7784d151c1 Merge "Prevent message being sent twice in onSavePassword" 2012-03-30 15:38:28 -07:00
Svetoslav Ganov
5ee329f0da Merge "Set class name for WebView on A11y events and infos." 2012-03-30 15:13:47 -07:00
alanv
ea0772122f Set class name for WebView on A11y events and infos.
Bug: 6209073
Change-Id: I08b2b0010e619ed9b3afaeb4f4fc92e3afbcffd1
2012-03-30 14:59:42 -07:00
Victoria Lease
7a52f26543 java-side enable/disable switch for link prefetch via WebSettings
Bug: 5218987
Change-Id: Id59324ad372df76cff8d2cae8606201db6e8d636
2012-03-30 14:08:02 -07:00
Michael Kolb
d2bfdfdd3e Prevent message being sent twice in onSavePassword
Bug: 6256107

Change-Id: I1cdc7d49b6e479532385c29d759b8d4e4ab7aaa3
2012-03-30 13:48:01 -07:00
John Reck
e72620c2ff Fix typo preventing layers from scrolling to top
Bug: 6215597

Change-Id: Ie58e3aef29444d1c8dea424953d1b8e71ddf770b
2012-03-29 18:10:31 -07:00
George Mount
54e1553df6 Merge "Enable scrolling page while editing text." 2012-03-29 11:04:43 -07:00
George Mount
fcff68f87d Enable scrolling page while editing text.
Bug 6194113

Change-Id: I27841bcf0635b9c8579e6db081612fd9e506d4ca
2012-03-29 11:01:02 -07:00
George Mount
c11547cdf4 Merge "Support batching input changes to remove flicker." 2012-03-29 07:30:42 -07:00
Jonathan Dixon
f3fda6962a Merge "Minor code tidying up in WebStorage & GeolocationPermission" 2012-03-29 03:47:36 -07:00
George Mount
dbef1c5f45 Support batching input changes to remove flicker.
Bug 6245151

Change-Id: I642d1487d488ac69a9dedf5c8099d14db559dc0a
2012-03-28 16:47:44 -07:00
Jonathan Dixon
36196b6d4a Minor code tidying up in WebStorage & GeolocationPermission
remove unused imports and constants.

Change-Id: I5007b270b2cabb55624d85546bfc84f10189e618
2012-03-28 16:40:37 +01:00
George Mount
f9c1f9935b Snap selection handles to text
Bug 6198286
 Webkit Change: I55604f3ec28586beaec5fd98a27c9f4b8a59a8a5

Change-Id: I3c51ed5f6988d58440badfbe8b076fd83d48ae2a
2012-03-28 07:10:34 -07:00
Steve Block
7de2ae2564 Merge "Remove superfluous code after removal of Android HTTP stack" 2012-03-28 05:18:57 -07:00
Jonathan Dixon
c53471cf4d Merge "Tidy up usage of URLUtil constants" 2012-03-28 03:56:29 -07:00
Jonathan Dixon
0fa72ef10e Tidy up usage of URLUtil constants
Several of these are duplicated; referring to a single source makes the code
paths using them easier to track down.
(also removing a spurious import)

Bug: 6237833

Change-Id: Ibdacc124c047e37c7f0ced9ecc6f26ae3e6b4326
2012-03-28 10:09:39 +01:00
John Reck
834f66b6a4 Do pause painting better
Change-Id: Ia58bbb19cea899c8826d74d7afcbd7e7c541d9c6
2012-03-27 12:52:57 -07:00
John Reck
ca835dbda1 Workaround issue of getting 0,0,0,0 inval rects
Bug: 6142700
 WebKit is sending an empty inval rect for some reason, which results
 in WebView not being invalidated. Assume an empty inval means a
 full inval

Change-Id: Ib93b806f8f8fd2039e2a0e43de2372c3e6be2433
2012-03-26 17:21:33 -07:00
Steve Block
f2bfe2bc05 Remove superfluous code after removal of Android HTTP stack
See b/5495616.

Bug: 6228353
Change-Id: I16cfd7b37973919d5bf14d2d80954caede264961
2012-03-26 19:05:14 +01:00
Victoria Lease
d405a433e6 move FindListener into WebView
Also took advantage of the opportunity to adjust the javadoc.

Bug: 6052412
Change-Id: I3de2cc6f2b5af20acb87d6e0a105ac12b1be679b
2012-03-26 08:49:49 -07:00
Jeff Brown
19c9d98e90 Merge "Do not enable WAL mode for the WebView database." 2012-03-22 18:54:45 -07:00