Commit Graph

1456 Commits

Author SHA1 Message Date
Svetoslav Ganov
2d65afb7c4 am 54fc7807: am df467264: Merge "Final polish of WebView accessibility support for no JavaScript case." into honeycomb
* commit '54fc78072fec46933ca5ee96c7642bd4b9fc540f':
  Final polish of WebView accessibility support for no JavaScript case.
2011-01-26 14:43:18 -08:00
Svetoslav Ganov
df4672643b Merge "Final polish of WebView accessibility support for no JavaScript case." into honeycomb 2011-01-26 14:39:47 -08:00
Shimeng (Simon) Wang
af58bdaa8e am c1df157a: am 07837862: Merge "Fine tune the high memory threshold and usage delta for v8 GC." into honeycomb
* commit 'c1df157a60164e23ac45701d9e5da6d4edcc756c':
  Fine tune the high memory threshold and usage delta for v8 GC.
2011-01-26 13:28:34 -08:00
Shimeng (Simon) Wang
078378624c Merge "Fine tune the high memory threshold and usage delta for v8 GC." into honeycomb 2011-01-26 13:23:58 -08:00
Shimeng (Simon) Wang
7114f3bf6d 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
2011-01-26 11:56:30 -08:00
Leon Scroggins
2fbb623afa am 666158e0: am 8b2d4825: Merge "Move last touch point when moving the cursor node." into honeycomb
* commit '666158e09b694a6883a9d8207fe33de4fe4eca3e':
  Move last touch point when moving the cursor node.
2011-01-26 10:09:47 -08:00
Leon Scroggins
8b2d4825e1 Merge "Move last touch point when moving the cursor node." into honeycomb 2011-01-26 10:06:42 -08:00
Leon Scroggins
cef1c59efc Move last touch point when moving the cursor node.
Bug:3241968
Bug:3387455

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

Change-Id: Ic07dac4c4471bf4e2189f3fee322adeb23703f41
2011-01-26 11:13:24 -05:00
Svetoslav Ganov
9504f5753d 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
2011-01-26 06:26:43 -08:00
Patrick Scott
cc6d12d844 am ac9bda01: am c45ec344: Merge "Turn off picture splitting for now." into honeycomb
* commit 'ac9bda01b1d80c5301619a2c2288ee868b6bd520':
  Turn off picture splitting for now.
2011-01-26 05:53:20 -08:00
Patrick Scott
c45ec3440b Merge "Turn off picture splitting for now." into honeycomb 2011-01-26 05:48:53 -08:00
Patrick Scott
85b69e0390 Turn off picture splitting for now.
Splitting the content was causing a mismatch between the base content picture
and composited layers.  It was also happening on every single inval.

Bug: 3372320
Change-Id: I09da2d0f3cba028c355ceba2b4c8e34da5a77028
2011-01-25 15:19:45 -05:00
Brian Carlstrom
aa16a0f357 am f2b7c844: am 8d37c4ef: Merge "Tracking jarjar of org.bouncycastle to com.android.org.bouncycastle" into honeycomb
* commit 'f2b7c84468c5397b44566c393bec2675d73817b7':
  Tracking jarjar of org.bouncycastle to com.android.org.bouncycastle
2011-01-25 11:03:52 -08:00
Brian Carlstrom
8d37c4efeb Merge "Tracking jarjar of org.bouncycastle to com.android.org.bouncycastle" into honeycomb 2011-01-25 10:58:02 -08:00
Shimeng (Simon) Wang
e59b34cfbf am 1dc6b9eb: am c1e7f2d3: Merge "Set high usage delta to 1 to avoid constant V8 GC." into honeycomb
* commit '1dc6b9ebc6ea584b8294e920d0153365c6aa2486':
  Set high usage delta to 1 to avoid constant V8 GC.
2011-01-25 10:34:50 -08:00
Shimeng (Simon) Wang
c1e7f2d371 Merge "Set high usage delta to 1 to avoid constant V8 GC." into honeycomb 2011-01-25 10:27:24 -08:00
John Reck
746e063c83 am 500c9e99: am 7f532976: Merge "Docs for Origin" into honeycomb
* commit '500c9e99f514bd6b3df9b04ed10a763ea752c138':
  Docs for Origin
2011-01-25 10:05:34 -08:00
Shimeng (Simon) Wang
7c1bcfddcd 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
2011-01-25 09:55:11 -08:00
Brian Carlstrom
4140faeebb Tracking jarjar of org.bouncycastle to com.android.org.bouncycastle
Bug: 3086427
Change-Id: I7af99fe4c36d9a519777f0499ccab65646313879
2011-01-24 18:17:21 -08:00
John Reck
9b2a59bdd2 Docs for Origin
Bug: 3370302

Change-Id: I44c8856d3f5e4b5e21c2745c1ef07a30526a1dd0
2011-01-24 17:54:09 -08:00
Leon Scroggins
62e4af1656 am 09176dcb: am 8801ad35: Merge "Disable focus controller when WebView loses focus." into honeycomb
* commit '09176dcb3d01b014eeb73ab3d643ac36c717dd75':
  Disable focus controller when WebView loses focus.
2011-01-24 15:06:30 -08:00
Leon Scroggins
8801ad3526 Merge "Disable focus controller when WebView loses focus." into honeycomb 2011-01-24 15:02:10 -08:00
Leon Scroggins
b4ffd11284 Disable focus controller when WebView loses focus.
Bug:3370821
Change-Id: Ia26a54e1c5ec050d76e60762f9a5eb4502d8c6e3
2011-01-24 17:43:47 -05:00
Huahui Wu
61b9649a50 am 6e4a69bb: am 94b8b114: Merge "A few small cleanning-ups." into honeycomb
* commit '6e4a69bbf7d7566899ec76d2634538dd79ca4166':
  A few small cleanning-ups.
2011-01-24 13:36:39 -08:00
Chet Haase
3873da3c6e am 2acb67ec: am 67005b05: Merge "Use optimized display lists for all hwaccelerated rendering" into honeycomb
* commit '2acb67ec9fe34316231519373f59dfb76c03d57b':
  Use optimized display lists for all hwaccelerated rendering
2011-01-24 13:30:37 -08:00
Huahui Wu
f93246923f A few small cleanning-ups.
1. Remove mDeferMultiTouch in WebView, it was for testing only but
we don't need it now since we always pass MultiTouch to WebKit.

2. Remove the use of mDeferMultiTouch in DRT tests.

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

Change-Id: Ib63cfc5935af1a169ed26b2b138f74908492bc18
2011-01-24 12:07:37 -08:00
Chet Haase
daf98e941e Use optimized display lists for all hwaccelerated rendering
Previously, display lists were used only if hardware acceleration
was enabled for an application (hardwareAccelerated=true) *and* if
setDrawingCacheEnabled(true) was called. This change makes the framework
use display lists for all views in an application if hardware acceleration
is enabled.

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

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

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

Change-Id: I68d21cac6a224a05703070ec85253220cb001eb4
2011-01-24 08:43:20 -08:00
Bart Sears
7adb61dea4 am 61b0f05c: am e2ff529b: Merge "b/3377597 Improve zooming performance." into honeycomb
* commit '61b0f05cef16ae1c70b5e3b957f31130f6dd3d0e':
  b/3377597 Improve zooming performance.
2011-01-21 18:51:34 -08:00
Bart Sears
e2ff529b3f Merge "b/3377597 Improve zooming performance." into honeycomb 2011-01-21 18:47:13 -08:00
Huahui Wu
5d4064c863 b/3377597 Improve zooming performance.
Once WebKit claimed it doesn't want to consume the multi-touch events,
we remember that and handle the events in WebView directly.

Change-Id: Idfc99c16b3f4d7f4719791c64fb2355ff66aba5e
2011-01-21 16:30:57 -08:00
Michael Kolb
caed391640 am b2b83077: am debb5bbe: Merge "Add public API for on screen zoom controls" into honeycomb
* commit 'b2b830774f4aff0bacf30648a4f7efce49e403fd':
  Add public API for on screen zoom controls
2011-01-21 14:51:26 -08:00
Michael Kolb
debb5bbe81 Merge "Add public API for on screen zoom controls" into honeycomb 2011-01-21 14:47:30 -08:00
Leon Scroggins
d022c697c2 am 12871245: am 60130138: Merge "Restart input when the webpage changes the text." into honeycomb
* commit '12871245c7920df992341fa095dc83df94ee763c':
  Restart input when the webpage changes the text.
2011-01-21 14:35:58 -08:00
Michael Kolb
5840cd294a Add public API for on screen zoom controls
http://b/issue?id=3378224
    This is a simple unhide.
    Allow the use of WebView pinch-to-zoom gestures
    without the on screen zoom controls.
    Currently, enabling pinch to zoom with the public API also shows the
    on screen zoom buttons.
    If the zoom buttons are not wanted, a custom implementation of pinch to
    zoom is required, which can't be done correctly at this point.

Change-Id: I3f94080471c3a4b498b11c91603fff9994dc3c2c
2011-01-21 14:15:16 -08:00
Leon Scroggins
a51063c059 Restart input when the webpage changes the text.
Bug:3375518
Change-Id: I0a18d0ca764ce428d86bd5f6d13f8764668acea6
2011-01-21 17:14:36 -05:00
Leon Scroggins
2c2aa7c4d2 am 62fd9903: am d5188657: Do a better job of lining up text with page text.
* commit '62fd9903a756eb5d8e7bcafbbc5a3a311fdbcefc':
  Do a better job of lining up text with page text.
2011-01-21 13:01:08 -08:00
Leon Scroggins
d5188657dc 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
2011-01-21 15:42:03 -05:00
Shimeng (Simon) Wang
765b2e2db4 am a2d32f3c: am 7633540c: Merge "Keep min/max zoom scale in proportion when zoom density changes." into honeycomb
* commit 'a2d32f3c48283d3c9c7d8e25704de86e26bc62f6':
  Keep min/max zoom scale in proportion when zoom density changes.
2011-01-21 11:03:18 -08:00
Shimeng (Simon) Wang
66064914fc Keep min/max zoom scale in proportion when zoom density changes.
issue: 3341610
Change-Id: Ibf87ab499e28fddab81d4e354ec7d88f5eb86261
2011-01-20 17:45:34 -08:00
Huahui Wu
3aae603e39 am baa647e3: am 292f39c1: Merge "b/3350774 Enforce clearing the flag mIsHandlingMultiTouch." into honeycomb
* commit 'baa647e325a3ba1acaa463b8c3553de6547ff4f5':
  b/3350774 Enforce clearing the flag mIsHandlingMultiTouch.
2011-01-20 11:16:31 -08:00
Huahui Wu
292f39c120 Merge "b/3350774 Enforce clearing the flag mIsHandlingMultiTouch." into honeycomb 2011-01-20 11:08:33 -08:00
Huahui Wu
bc7c148285 b/3350774 Enforce clearing the flag mIsHandlingMultiTouch.
b/3350774 was fixed by https://android-git.corp.google.com/g/#change,91337
But there is small chance that the flag mIsHandlingMultiTouch is not cleared
correctly. This CL enforces to clear the flag.

Change-Id: I79ba6b401a7d7b3c772d3f123912343491551507
2011-01-20 09:23:09 -08:00
Iain Merrick
5f1216cb98 am bf98190b: am 8192b417: Merge "Add BrowserFrame.setCertificate() method." into honeycomb
* commit 'bf98190b4b49644fe3d2be688e33bebb59b3d3c9':
  Add BrowserFrame.setCertificate() method.
2011-01-20 08:21:30 -08:00
Iain Merrick
b890e758ef Add BrowserFrame.setCertificate() method.
This is needed for the Chrome HTTP stack to report SSL
certificates to WebView, in order to pass the CTS.

Change-Id: I0752a836ebaea21eae2084f037b18de4168f271f
2011-01-20 15:33:41 +00:00
Kristian Monsen
28f37efe30 am 6e8831cf: am 7450a32b: Merge "Clear the files we copy over to the temp cache" into honeycomb
* commit '6e8831cf2d7fd90ab124f58a9fc1919fac818887':
  Clear the files we copy over to the temp cache
2011-01-20 06:40:08 -08:00
Kristian Monsen
7450a32bab Merge "Clear the files we copy over to the temp cache" into honeycomb 2011-01-20 06:33:55 -08:00
Kristian Monsen
cedb3a7e58 Clear the files we copy over to the temp cache
Fixes CTS tests

Change-Id: I3464ac90e58a9df21379a8da9d637f4f5ee69b85
2011-01-20 14:31:20 +00:00
Huahui Wu
ffe3e6c5d4 am 15ef4168: am 961d2c6a: Merge "b/3350774 avoid screen jumping when pinching to zoom." into honeycomb
* commit '15ef4168a9ce71f58d8d11cb531f88fdb4a3729d':
  b/3350774 avoid screen jumping when pinching to zoom.
2011-01-19 18:20:03 -08:00
Huahui Wu
1f30125c1c b/3350774 avoid screen jumping when pinching to zoom.
After the change that sends multi-touch to WebKit first, there is
a chance that the single-touch move event is handled before multi-
touch events are finished and this makes the page jumps.
This change skips those single-touch move events to avoid that.

Change-Id: I03992ef18c1de8e07933bd7cc6c12ffc02c014a8
2011-01-19 18:14:09 -08:00
Shimeng (Simon) Wang
ba079efd3e am 9656fff3: am b501f77f: Merge "Use rounded interger to represent the last touch point." into honeycomb
* commit '9656fff32b20e707e2697b777ad66c1e95a7406c':
  Use rounded interger to represent the last touch point.
2011-01-19 14:03:29 -08:00