History log of /frameworks/base/core/java/android/webkit/WebView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
769ed21c33c3629411eb3bbf924de45737a18067 27-Jan-2010 Grace Kloba <klobag@google.com> Fix http://b/issue?id=2400423.

When the same page is loaded, updateRestoreState
will be false when we finish the first layout. As
we are still in the same page, we don't want to
update the current zoom/scroll. But in some cases,
like a site switch from mobile to full site and
keeps the same url, we do want to update the zoom
range as the viewport spec changed. Otherwise, user
can't zoom in the full site as the WebView thought
it is still a mobile non-scalable page.
/frameworks/base/core/java/android/webkit/WebView.java
5ff24d5da414db4e8c2ebe98f40976e7be62b72d 22-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

This reverts commit 52cb3cbd6fe06e3706be1a7c2939f027106aaaf7.
/frameworks/base/core/java/android/webkit/WebView.java
52cb3cbd6fe06e3706be1a7c2939f027106aaaf7 17-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

Just scale the canvas instead of changing the real
scale factor during pinch.

Added over limit zoom feedback for pinch in the WebView.

Fix http://b/issue?id=2383539
/frameworks/base/core/java/android/webkit/WebView.java
8681df902e8cc61d290808c5d78ea48920d30f3b 21-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

Adopt the sloppy detection in the ScaleGestureDetector.
Try to fix the fat thumb problem.

Fix http://b/issue?id=2385061
/frameworks/base/core/java/android/webkit/WebView.java
12bcbdc681c3195069f55bd9abda900da0886c70 20-Jan-2010 Mike Reed <reed@google.com> Do not merge

port stretchy from master
/frameworks/base/core/java/android/webkit/WebView.java
f167c4bfca57b5467f40f6cf25e10fb12183a9f3 16-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

If pinched to overview mode, double tap should bring
it back to default instead of just setting the current
mode as overview mode.
/frameworks/base/core/java/android/webkit/WebView.java
17b14bd36aba265ac6bffc2626d8db29713d7c45 16-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

Make sure the mZoomOverviewWidth is as least as
wide as the current (adjusted) view width.

This should fix the weird state Bart got in with
m.wikipedia.org.
/frameworks/base/core/java/android/webkit/WebView.java
5a0bf1f03e5f62449ea2520edb79ea868e6f06e7 16-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

Remove testing (enable plugin) code.

No reflow when zoom in, auto reflow when zoom out.

Fix http://b/issue?id=2375955
/frameworks/base/core/java/android/webkit/WebView.java
19c9df3c1d882b21d6c5fe77f363cda5bf4c7d21 16-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

Bring back +/- when panning. Dismiss it when pinching.
/frameworks/base/core/java/android/webkit/WebView.java
fd787ba79de8119dac979bd7b94b94038dc66a8b 15-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

When adjust scale for zoom overview, keep the state
of whether textWrapScale is matching mActualScale.
So if user pinch during loading, we won't reflow.

Fix http://b/issue?id=2370552
/frameworks/base/core/java/android/webkit/WebView.java
5f01d7e268167c5cfb3366ce08e20a66d9b6fa6f 14-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE

Use the common ScaleGestureDetector to detect the
multi-touch motion.

Check both supportZoom and getBuiltInZoomControls
to decide whether enable the multi-touch behavior.
This should the new pinch behavior only replace the
old +/-.

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

Only update textWrapScale if it is different. This
should fix the performance decrease caused by initial
multi-touch code.

Fix http://b/issue?id=2371694
/frameworks/base/core/java/android/webkit/WebView.java
e67d5cee6706bf5b0af62965a5ccaadcc99002a6 12-Jan-2010 Grace Kloba <klobag@google.com> DO NOT MERGE.

Couple of tweak for multi-touch in WebView.

1. If we can't zoom, don't get in multitouch mode.
This avoid the logo in google.com looks fuzzy.
2. Reset mAnchor after sending VIEW_SIZE_CHANGED.
3. Don't call zoom when finishing multitouch unless
zoom is called before.
4. Change the width for nativeSetSize, which was modified
in the last check-in. The new logic should make both
msn.com and news.google.com looks correct.
5. Use the pressure instead of distance/time to filter
out the jitter just before lifting the finger.

Fix http://b/issue?id=2360032
/frameworks/base/core/java/android/webkit/WebView.java
a2b0d38f8c6311e712c32318d4ebb68e5a2fecef 07-Jan-2010 Grace Kloba <klobag@google.com> First draft of multitouch in the WebView.

Currently we just handle a simple pinch action. We
will wait for framework support for more complicated
gesture.

When pinch in the webview, zoom level will be changed
on the fly. But we won't re-wrap the text until user
action like double tap, rotate screen.

Double tap will re-layout the page and wrap the text
to the screen width. We try to keep the spot you
tapped at the same place on the screen after relayout.
If the block after relayout fully fit on the current
screen, we will center it for easy reading.

Fix http://b/issue?id=2360032
/frameworks/base/core/java/android/webkit/WebView.java
db08d5cd441424e4f9621aae7c2414934f781400 01-Dec-2009 Leon Scroggins <scroggo@google.com> DO NOT MERGE.

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

When pressing the trackball on a WebTextView, open the IME.

Change-Id: I5ea74ca7ce51ac509dc8649b8f8d1869287bb7a9
/frameworks/base/core/java/android/webkit/WebView.java
16efce72428d2677eb7164e9b3b494157d1dc09b 11-Nov-2009 Grace Kloba <klobag@google.com> Honor the mInitialScale set on WebView. This was
lost when we fixed restoring the scale for a new
page.

Fix http://b/issue?id=2251716
/frameworks/base/core/java/android/webkit/WebView.java
bf5b632abbc2f4b96323ff428be585fd2a3d381c 11-Nov-2009 Grace Kloba <klobag@google.com> Use getViewHeightWithTitle() to honor the scrollbar
setting when computing the maxScrollY for fling.
This is honored in the regular scroll in
computeVerticalScrollExtent().

Fix http://b/issue?id=2251694
/frameworks/base/core/java/android/webkit/WebView.java
d7439f4bdb31d005011b69112e82a9fed9be4470 10-Nov-2009 Grace Kloba <klobag@google.com> Use computeVerticalScrollRange() to find the bottom
of the page as mContentHeight is not in the view system.

Fix http://b/issue?id=2251909
/frameworks/base/core/java/android/webkit/WebView.java
bb245ea7f513ec22b2b8c021b08412c71837f036 10-Nov-2009 Grace Kloba <klobag@google.com> Return an empty PluginList instead of null for the
deprecated getPluginList() api.

Fix http://b/issue?id=2249732
/frameworks/base/core/java/android/webkit/WebView.java
0691ad50ca6b7a2968a0b95e1e9bb7228dd47d65 22-Oct-2009 Grace Kloba <klobag@google.com> Remove "@hide pending API council" in webkit to expose
the apis to SDK.

Remove @hide in GeolocationPermissions and WebStorage
to expose them to the SDK users.

Remove @hide for freeMemory() in WebView.

Remove @hide comment in CallbackProxy and
GoogleLocationSettingManager as they are not public class.
/frameworks/base/core/java/android/webkit/WebView.java
4e9fe62b37878750125a0eef679e2ea6216bd8f5 15-Oct-2009 Cary Clark <cary@android.com> do not merge -- original checkin to mr2 here:

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

check for native initialization before calling public function

Added more checks where it is possible to call a native function
after creating a WebView but before the native side is initialized.

These cases can be triggered by the monkey.

Fixes http://b/issue?id=2187719
/frameworks/base/core/java/android/webkit/WebView.java
9d1abc43f5ffdb413fda5d8e39019bb40aad0b94 21-Oct-2009 Leon Scroggins <scroggo@google.com> In onKeyUp for DPAD_CENTER, show the IME for text input.

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

Change-Id: Ifa8ab30e205e21e9e69e9a7405a0a6fc86c6c488
/frameworks/base/core/java/android/webkit/WebView.java
39e6773431e6010c5066c0e13facfd943c932c7e 15-Oct-2009 Cary Clark <cary@android.com> do not merge: fix copy/paste using trackball on passion

This fix is alrady in mr2. It does not affect sholes --
this is a trackball only bug.

The selection caret and arrow now take the scale factor and
the height of the title bar into account when preparing the
canvas for drawing.

Clicking the trackball at the end of selecting text no longer
sends a click event.

Requires a companion fix in external/webkit
Fixes http://b/issue?id=2187591
/frameworks/base/core/java/android/webkit/WebView.java
5b2c056a3f66c11e3d6f7ba3507dc0f81928bf3a 30-Sep-2009 Grace Kloba <klobag@google.com> Keep the scrollbar on during TOUCH_MOVE events even
when there is no movement.

Fix http://b/issue?id=2151115
/frameworks/base/core/java/android/webkit/WebView.java
10be7542327e1d4483b33730164e5404ed48d73e 01-Oct-2009 Leon Scroggins <scroggo@google.com> If the textfield is offscreen at the end of a zoom, remove it.

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

Change-Id: I068746f7a7242bab5bc2116598f0421d7385ce25
/frameworks/base/core/java/android/webkit/WebView.java
0c5924e9dd1befadae8c73505d3acc9813bf8224 30-Sep-2009 Cary Clark <cary@android.com> preserve webkit-side text selection

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

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

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

fixes http://b/issue?id=2096746
/frameworks/base/core/java/android/webkit/WebView.java
4fbf81bc94f38a630de49445e3eb4880289c6a6e 29-Sep-2009 Cary Clark <cary@android.com> check for null item in web history in saveState

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

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

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

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

Companion fix is in external/webkit.

Fixes http://b/issue?id=2133049
/frameworks/base/core/java/android/webkit/WebView.java
d84e7d53d379c9fdfe335f40e89e2dfd6144dfea 29-Sep-2009 Leon Scroggins <scroggo@google.com> Allow scrolls to continue when getting a new content size.

In recordNewContentSize, rather than aborting any scrolls in progress,
find the final coordinates of the scroll and pin them to the new size,
and let the scroll continue.

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

Change-Id: I7bfa444b52e70a0ca817221f379df77efc3496b7
/frameworks/base/core/java/android/webkit/WebView.java
94c715d662e803b43dde8984a60f937a26706c7d 29-Sep-2009 Grace Kloba <klobag@google.com> Skip requestRectangleOnScreen for WebTextView during
zoom animation. If it is in edit mode, we already adjust
WebTextView in the end of zoom animation.

Fix part 1 of http://b/issue?id=2147168
/frameworks/base/core/java/android/webkit/WebView.java
f116bf8884b5b58aae261d148003811aa4a7c6e9 28-Sep-2009 Mike Cleron <mcleron@google.com> Fading scrollbars return. But you have to opt in.
/frameworks/base/core/java/android/webkit/WebView.java
207308a781621c427acccbd9983c2511a65e9137 27-Sep-2009 Grace Kloba <klobag@google.com> WebView may get message after destroy() is called.
Just return in this case.

Fix http://b/issue?id=2143668
/frameworks/base/core/java/android/webkit/WebView.java
d66d84ffa2d96120ecd607af3f3c597fb673b178 27-Sep-2009 Grace Kloba <klobag@google.com> Reset mPreventDrag at touch_down.

Check the delta for short press case as we may switch to
PREVENT_DRAG_NO at SWITCH_TO_SHORTPRESS.

This should fix another two corner cases where flick doesn't
do anything.
/frameworks/base/core/java/android/webkit/WebView.java
ba6728023d9c9a5f13b9fc6e2015527b99b30c41 26-Sep-2009 Grace Kloba <klobag@google.com> When change from narrow screen to wide screen, we will
leave the mMinZoomScale to 1.0
/frameworks/base/core/java/android/webkit/WebView.java
f58af62211e2627d408919d22c7a1637d0e78639 25-Sep-2009 Grace Kloba <klobag@google.com> If WebCore doesn't response touch down in time, don't
block the UI tap, pan and double tap. Added a time out
(which is same as shortpress time out, 200ms) for how
long we wait for WebCore's response for touch down.

This should fix the problem where pan/touch is not working
all the time when Flash plugin is installed.

Fix http://b/issue?id=2144761
/frameworks/base/core/java/android/webkit/WebView.java
f18c539344655c8d39e3412a0985f7e42193eb52 24-Sep-2009 Cary Clark <cary@android.com> set the selection after sending a click

Webkit expects the currently focused text input to have
a set selection before it can receive key events for insertion.

Coincidentally, we always set the selection except when
using the 'next' button on the IME to switch between text fields.

The selection has to be set after the text field receives
focus, so add a setSelection() message after the click() message
is sent in passToJavaScript().

fixes http://b/issue?id=2087546
/frameworks/base/core/java/android/webkit/WebView.java
8eff73f79b934fb7f8e9a8c630f2400c13fe35f4 24-Sep-2009 Grace Kloba <klobag@google.com> Restrict touch to the view height with the title. This
should fix the links in the bottom of the screen are not
touchable when title bar presents.

Also fix a bug in calcOutContentVisibleRect. We need to
adjust visibleTitleHeight for the top, but we should not
do it for the bottom. Otherwise, WebKit will have the
wrong visible rect and it will think the part right under
the bottom of the screen are visible.

Fix http://b/issue?id=2140971
/frameworks/base/core/java/android/webkit/WebView.java
ea96d1e27f516987f6053dc1dae9e946bc8456ea 23-Sep-2009 Leon Scroggins <scroggo@google.com> Provide a getter to access the width of the HTML document.

Necessary to scale thumbnail pictures to show the full page width.

Change-Id: I631e880b09fe66403ea71bf5e019899a180e6a53
/frameworks/base/core/java/android/webkit/WebView.java
b82665e78f3a4f08e7b620b85246b7925097386b 23-Sep-2009 Cary Clark <cary@android.com> don't allow min scale to go to infinity

When a new picture is received, the min zoom scale is set.
One of the many choices divides by draw.mMinPrefWidth, even
if it is zero. Add a check to require it to be greater than
zero before using it as a ratio component.

fixes http://b/issue?id=2138786
/frameworks/base/core/java/android/webkit/WebView.java
37df6a8328fb91afe4272de05c1cce58c4f17163 23-Sep-2009 Leon Scroggins <scroggo@google.com> In calcOurContentVisibleRect, account for the visible title bar.

Fixes http://b/issue?id=2137879 and http://b/issue?id=2135469

Change-Id: I6a4b2f90ffa8d37adbe86a2fd19d141c4136213c
/frameworks/base/core/java/android/webkit/WebView.java
24a3ff958b87550904a71961835f6883d1411c27 22-Sep-2009 Grace Kloba <klobag@google.com> Change double tap toast to long toast.

Change toast count to static to cross all the windows.

It should be --count instead of count--.
/frameworks/base/core/java/android/webkit/WebView.java
408cf85207a43c9169f9fb520a584d2858847d24 21-Sep-2009 Grace Kloba <klobag@google.com> Support the new dpi change in the WebView.

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

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

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

Change-Id: I0ded3be264b179bad39301e6adce86851b649a42
/frameworks/base/core/java/android/webkit/WebView.java
d7b95aa702f9d3f8694b1a066ae7ef44879ffb1a 21-Sep-2009 Leon Scroggins <scroggo@google.com> Always interpret (0,0) scrolls as top of title bar.

Move the specialized code in NEW_PICTURE_MSG_ID to
setContentScrollTo so that a scroll to (0,0), whether
a result of a NEW_PICTURE_MSG_ID or from an initial
layout (or otherwise) is treated as scrolling to the
top of the content, including showing the title bar.
Scrolls to (0,1) will trigger code that animates the
title bar off screen.

Change-Id: Ia6db6d4620dea2bfe62407c4394a8ead38501b2f
/frameworks/base/core/java/android/webkit/WebView.java
f8d8b46a2c684d51cd661a9d479dd895420a90b2 21-Sep-2009 Grace Kloba <klobag@google.com> Add a tip toast for double tap.

Fix http://b/issue?id=2059934
/frameworks/base/core/java/android/webkit/WebView.java
5bb6b52bf38d80462d930e67c93ca7fd8390bfe6 21-Sep-2009 Cary Clark <cary@android.com> Account for find dialog height in content height

Use the set dialog height when the find dialog is up so that
found items at the bottom of the screen are scrolled into view.

This requires a companion change to set the dialog height in
the browser app.

Fixes http://b/issue?id=2122916
/frameworks/base/core/java/android/webkit/WebView.java
03c87bf51cdf5a105b53b5d6fbf9cfbc6c93751e 18-Sep-2009 Leon Scroggins <scroggo@google.com> Allow a webpage that wants to scroll off the title bar to do so.

Slows down the animation so the user can see it slide away. Also
move the animation to before we change to view coordinates so it
will not be dependent on the zoom level/screen resolution.

Change-Id: Icc54b2b26c08cd54d84b4e9892a316a5712534e4
/frameworks/base/core/java/android/webkit/WebView.java
17dd1aebf5d960477fc2bb71fad864b11e4303eb 19-Sep-2009 Grace Kloba <klobag@google.com> When double tap zoom out to overview mode, force reveal the full
title bar if it is partial visible.

http://b/issue?id=2110583
/frameworks/base/core/java/android/webkit/WebView.java
83d4ba83ddf8309d2c0c38d69154217d6a9c0a6c 17-Sep-2009 Leon Scroggins <scroggo@google.com> Do not attempt to retry a scrollTo with a negative position.

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

Change-Id: If938c8f6e5d74b91e39a06a5736967663c9800b7
/frameworks/base/core/java/android/webkit/WebView.java
6ed525ecee76541aa60ca95598330e990fa16ffa 18-Sep-2009 Grace Kloba <klobag@google.com> When a WebView starts, we may get first layout before viewSizeChanged()
ever get called. Call WebView's getViewWidth() to get the current UI
width. If it is still 0, log a warning.

Fix http://b/issue?id=2128645
/frameworks/base/core/java/android/webkit/WebView.java
58992eac8373ba7260d99dd832a6fc9e3d164460 17-Sep-2009 Leon Scroggins <scroggo@google.com> Draw shadow below title, or at top if title is off screen.

Fixes http://b/issue?id=2118813 for the "real" title bar.

Also fix http://b/issue?id=2125444 by moving the save after
the check for mNativeClass.

Change-Id: I8f85f0a76eb7e1d186485ef65c50ae8d4bc10932
/frameworks/base/core/java/android/webkit/WebView.java
d55de40481c6ec7d8fbd1a38c80a6c66bf462a71 17-Sep-2009 Leon Scroggins <scroggo@google.com> Don't scroll the title bar off screen while loading.

Though the user can still manually scroll the title bar
off screen, we do not want it to happen automatically.
When we load a new page, its scroll position can be
set to (0,0). Make sure that we simply set it to the
top without adding in the title bar's height. Also,
prevent javascript which attempts to scroll the page
to (0,0) or (0,1) from removing the title bar.

Fixes http://b/issue?id=2113398 and http://b/issue?id=2123079

Change-Id: Ida64d8c94be6744c7b0b4d60af1c229b2cc83673
/frameworks/base/core/java/android/webkit/WebView.java
c0c03af15f60e4402026c456cc55c108895a508f 17-Sep-2009 Grace Kloba <klobag@google.com> Fix the zoom center. Now there is a titlebar, the zoom center
needs to be adjusted for it as the user really cares the spot
in the document. We need to pin zoom around that spot.

Fix http://b/issue?id=2126300
/frameworks/base/core/java/android/webkit/WebView.java
dfe095a045f132dd9c75da4286b87532d9a973a0 17-Sep-2009 Grace Kloba <klobag@google.com> Don't change the zoom filter during the zoom animation.
Call another invalidate() to draw with the final filters.
This fixed the problem where the end of the zoom animation
is slow and jagged.

Fix http://b/issue?id=2126523
/frameworks/base/core/java/android/webkit/WebView.java
b641abf677a291b3d77572657abe4aee19383447 17-Sep-2009 Grace Kloba <klobag@google.com> Add a null checking to avoid crash.

Fix http://b/viewIssue?id=2125276
/frameworks/base/core/java/android/webkit/WebView.java
c9e2e661f0cbc736b948f8aca4c65d0467c44c79 16-Sep-2009 Cary Clark <cary@android.com> slide the title if the site changes the scroll position

Slide the title away if the scroll is to zero or one, and the
title is partially or fully visible. Set the animation time
to at least SLIDE_TITLE_DURATION, currently set to 300 ms.
/frameworks/base/core/java/android/webkit/WebView.java
5b28c36644d8708561c82dd7ebe1e96ff3a7d0fd 16-Sep-2009 Cary Clark <cary@android.com> Don't scroll on load if titlebar is visible

If the restore requests a scroll to zero and the titlebar is
partially or fully visible, skip the scroll altogether.

This fixes http://b/issue?id=2123079
/frameworks/base/core/java/android/webkit/WebView.java
df4cf29715146d67306595108c565d9848a6ae1a 15-Sep-2009 Mike Reed <reed@google.com> redraw once more on a touch-up if we've been dragging, so we can redraw in high-quality mode
update dox on BlurMaskFilter
/frameworks/base/core/java/android/webkit/WebView.java
04b2868c74a54cf711552262f0ad20d234b627b4 14-Sep-2009 Grace Kloba <klobag@google.com> WebView zoom clean up
/frameworks/base/core/java/android/webkit/WebView.java
db6d939d2bbf457b1caa5479a60dae5e90d023e1 15-Sep-2009 Cary Clark <cary@android.com> if the cursor and focus don't match, match them on text view clicks

Call nativeMotionUp from touchUpOnTextField to move the
mouse cursor to the text field if necessary before moving
the text caret to the desired position.

Fixes http://b/issue?id=2075647
/frameworks/base/core/java/android/webkit/WebView.java
df344375a93f3bfe0360f5436c0866f44b7fb6cc 15-Sep-2009 Cary Clark <cary@android.com> compute Y scroll max by scaling only, ignoring title bar height

without this, the max scroll may be a single pixel
/frameworks/base/core/java/android/webkit/WebView.java
e9e86b8908a1dc51bccf7993332a22f5c8640006 15-Sep-2009 Mike Reed <reed@google.com> special-case coordinate conversion when we are taking content coordinates to be invalidate. We need to
round "out" these, to account for the slop in antialiasing, rather than using the existing routines
that (correctly) round.
/frameworks/base/core/java/android/webkit/WebView.java
74077c8f2ed67b79be67df853158932fbd774865 15-Sep-2009 Leon Scroggins <scroggo@google.com> Clear the password field when reloading the current page.

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

Change-Id: I14bfcc6873f295c4d24ef7ee10450fd444dbe82c
/frameworks/base/core/java/android/webkit/WebView.java
d247aadfc4b8117130908c44a2ed1f6d290a92ef 14-Sep-2009 Leon Scroggins <scroggo@google.com> Bring up the soft keyboard when touching a focused textfield.

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

Change-Id: Ifa540de139b35548dde2b714b628ca1879a605c5
/frameworks/base/core/java/android/webkit/WebView.java
dd8174928c9c2966b1491acd604612a3b38e600a 14-Sep-2009 Grace Kloba <klobag@google.com> Remove trackball double click. Treat each click as a single click.
/frameworks/base/core/java/android/webkit/WebView.java
298d32e1934cddf6b93e6a4588ab05630cd39ec7 14-Sep-2009 Cary Clark <cary@android.com> Set the minimum fling to the title height.

Dragging and flinging have different minimums for the max Y
value. Allow the fling to have the title height instead of zero
for the minimum max Y so the title can always be removed via
fling.

This fixes http://b/issue?id=2109006
/frameworks/base/core/java/android/webkit/WebView.java
e621d6ffb9602c21e6f6f4f12ac02680a3c78601 11-Sep-2009 Grace Kloba <klobag@google.com> Use floor to calculate the range to avoid the rounding error triggered
scrollbar. The worst case is that you can never scroll down to the last
pixel. The old special case can cause problem when getViewWidth/Height
have changed which do not match mLastXXSent any more.

Remove FIND_HEIGHT from computeVerticalScrollRange per conversation with Leon.

Change computeMaxScrollY to use computeVerticalScrollRange which matches
how it computes X.

Change onMeasure to use contentToViewDimension() as it has the same logic.
/frameworks/base/core/java/android/webkit/WebView.java
d82bc5158c764bdd30b7d22f32258ad3c2c0c0f6 09-Sep-2009 Grace Kloba <klobag@google.com> Avoid the rounding error, as Math.round(Math.round(viewWidth * mInvActualScale) * mActualScale) not necessary to be viewWidth, we special case when the content exactly fit in the view case.

Fix http://b/issue?id=2099889
/frameworks/base/core/java/android/webkit/WebView.java
3a6c88c28905590477bd5cf8b6d23cdb517de159 09-Sep-2009 Leon Scroggins <scroggo@google.com> Adjust the WebTextView's text size according to density.

Fix for http://b/issue?id=2063143 . Use TypedValue's
types to set the text size properly for the screen's
density.

Change-Id: I3772035157e2a9a8a2dba00ebddbf967c42bfa99
/frameworks/base/core/java/android/webkit/WebView.java
aa7caa60324d69b5cd7bf3cbd8eeac2a63ad7a99 08-Sep-2009 Cary Clark <cary@android.com> don't fling if there's nowhere to go

Add a test to doFling() to return quickly if the fling has
no effect. For simplicity, only test for horizontal or vertical
flings.

The man purpose is to avoid suspending webkit until the fling
animation is complete when the purpose of the touch drag is
to activate a touch event, like a swipe in superpudu.

fixes http://b/issue?id=2052852
/frameworks/base/core/java/android/webkit/WebView.java
608f9f470fa562fc6a32449297110d4ec2953515 03-Sep-2009 Leon Scroggins <scroggo@google.com> When zooming, do not draw the WebTextView. Resize it when done.

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

Change-Id: Iae46df57310a360f07c9d6afef24ca3ff9d04bdc
/frameworks/base/core/java/android/webkit/WebView.java
078c52c57a3d45814be9d90bf189d41ff372d2b1 04-Sep-2009 Leon Scroggins <scroggo@google.com> Clean up from earlier changes to place title bar at top of WebView

Rename addTitleBar to setEmbeddedTitleBar. This requires a change
to packages/apps/Browser. Also remove mTitleBar if there already
was one.

In ViewManager, call contentToViewDimension where appropriate.

Change-Id: If4d378fad192990253411924a9a80bee96e63ff2
/frameworks/base/core/java/android/webkit/WebView.java
3c72fff035e287f9e0b9340cc3921896ca86380b 04-Sep-2009 Grace Kloba <klobag@google.com> Some mobile sites, like m.www.yahoo.com, slashdot.org (iPhone version),
have a bigger minPrefWidth than the screen width. So we don't want to force
the minZoomScale to be same as defaultScale. Otherwise we won't be able to
zoom out in these sites.

Fix http://b/issue?id=2090718
/frameworks/base/core/java/android/webkit/WebView.java
e8853fc57093e781fa7c659c6eb4da3be9f8695a 04-Sep-2009 Mike Reed <reed@google.com> also expose onDrawHorizontalScrollBar() in View
retool WebView's calculations to correctly compute scrollbar height and parameters
/frameworks/base/core/java/android/webkit/WebView.java
e5b6d02f34af2cd81615653b00c96a421d5ea819 04-Sep-2009 Grace Kloba <klobag@google.com> Translate the content dimension to the view space before setting them to the view.

Fix http://b/issue?id=2027254
/frameworks/base/core/java/android/webkit/WebView.java
4950b2b6951bbdc2b0023130bfbaca2a4044044f 03-Sep-2009 Andrei Popescu <andreip@google.com> Fix appcache layout test that was timing out due to race condition in WebView::addJavascriptInterface.
/frameworks/base/core/java/android/webkit/WebView.java
0236e673d8b980fd6333c18505129c6b49e38cd1 03-Sep-2009 Leon Scroggins <scroggo@google.com> Attach the title bar to the top of the page.

Remove the old notions of changing the viewing mode
resulting in changing the visibility of the title bar.
Instead, attach the title bar to the top of the page.
Change contentToView() to contentToViewY() (and an X
version; same change for viewToContent), to account
for the title bar's height. Adjust the parameters
for drawing the scroll bar to account for the title bar.
Requires a change to packages/apps/Browser.

Change-Id: Ic0f7d6e0a1cce58ba2bca87337cf72a8194e9aa4
/frameworks/base/core/java/android/webkit/WebView.java
278ce05b52a47a09d2177435b533f4ecb1b9c4da 31-Aug-2009 Cary Clark <cary@android.com> accelerate consecutive flings

Use the fact that the scroller keeps track of the current velocity
to accelerate subsequent flings. The current velocity is added to
the new velocity if the flings are in the same general direction
and if the fling animation hasn't been aborted.

This makes it easier to move to the top or bottom of very large
pages (either in overview mode or reading mode) by taking
consecutive flings as a cue from the user that they want to
page faster. The user can stop the fling with any action as
before.

fixes http://b/issue?id=2066090
/frameworks/base/core/java/android/webkit/WebView.java
6d45accc7166c84f94fdb5ca35602463ec4a32a4 27-Aug-2009 Cary Clark <cary@android.com> don't layout when setting size from zoom if only height changed

(companion change in external/webkit)
Add a boolean parameter to WebViewCore.java nativeSizeSize().
If set, only layout if the width has also changed.
If clear, layout if the height alone has changed.
Layout is clear when called from zoom setup, and set otherwise.
/frameworks/base/core/java/android/webkit/WebView.java
b2359262b48bf33887c72be94b044cfdfd602858 19-Aug-2009 Leon Scroggins <scroggo@google.com> Implement new title bar hiding/showing behavior.

Remove the code that hides the title bar when the page finishes loading.
When the user double taps, if it did not result in changing the viewing
mode (i.e. on a mobile site), send a message to the client so we can
toggle the title bar's visibility. Required for a change to
packages/apps/Browser

Change-Id: I0040fd183ce5673a4069e943f38eb31599c0ca7d
/frameworks/base/core/java/android/webkit/WebView.java
a91874d1f980f20e874b2d12548fb65334efdfb2 24-Aug-2009 Cary Clark <cary@android.com> don't center zoom on size change if zoom is in progress

The onSizeChange code is called when the device is rotated and
when the title bar is hidden. In the latter case, it is in response
to the zooming transition from overview mode to reading mode, and
the zoom center should not be recomputed.

http://b/issue?id=2060720
/frameworks/base/core/java/android/webkit/WebView.java
d7660ccb7b23930e3603fa42aae7b40c204e6c29 18-Aug-2009 Grace Kloba <klobag@google.com> Fix 2058938. As zoom control is uesd in overview mode to switch to reading
mode, we also want to hide it after double tap is done.
/frameworks/base/core/java/android/webkit/WebView.java
f58ffac202b5a15f4bbfd5512c58f202a992f594 13-Aug-2009 Leon Scroggins <scroggo@google.com> Hide the title bar when zoomed in.
/frameworks/base/core/java/android/webkit/WebView.java
455e3af1f82629d274447cd5d08d3c8dc1c58967 13-Aug-2009 Grace Kloba <klobag@google.com> Fix #2048199. Enable zoom control in the overview mode. When "+" is pressed,
treat it as double click in the middle of the page.
/frameworks/base/core/java/android/webkit/WebView.java
6679f2f70813eb93bf88297dc2de5e56bc7d7ca0 13-Aug-2009 Leon Scroggins <scroggo@google.com> Pass clicks to webkit's textfield to determine the new selection.

Requires a corresponding change to external/webkit. We were previously
letting WebTextView handle clicks, determine the change in selection,
and pass that down to webkit. This sometimes resulted in a different
placement of the caret if the WebTextView and the webkit-rendered
textfield did not line up exactly. Now, we pass the click directly
to webkit, which determines the new selection and passes that info
back to the WebTextView. This also has the benefit of letting
the WebTextView reflect changes in the selection that originated from
webkit. Also remove some unused parameters.
/frameworks/base/core/java/android/webkit/WebView.java
385df699a6d602cab501092821a79cc6ab3a390e 13-Aug-2009 Andrei Popescu <andreip@google.com> remove Gears
/frameworks/base/core/java/android/webkit/WebView.java
9a4c063874a99e2135b4ca217015b8358f9e0905 10-Aug-2009 Cary Clark <cary@android.com> call super.finalize() from WebView

found by findbugs
http://b/issue?id=1857144
this fixes ViewDebug which otherwise will report the
incorrect number of views
/frameworks/base/core/java/android/webkit/WebView.java
89325078db6c1369b6c027c4eb3cb6234f11839a 08-Aug-2009 Alex Gruenstein <alexgru@android.com> unhide postUrl
/frameworks/base/core/java/android/webkit/WebView.java
e397a88e4fd65ee7d346f63a43e6608dba943ee9 06-Aug-2009 Grace Kloba <klobag@google.com> Couple of tuning for the Browser zoom.

1. Added a setting to control whether a page is loaded with overview mode;
2. If there is no viewport metag tag, a page will be loaded in the viewport
at least 800px wide.
3. When we adjust zoom scale in the overview mode, don't use animation.
4. When zoom out to close to min zoom scale, switch to overview mode. So double
tap will always have visual feedback unless it is mobile site.
/frameworks/base/core/java/android/webkit/WebView.java
2ba1262b420ef5b9abebcd818c46774b8517f244 04-Aug-2009 Patrick Scott <phanna@android.com> Add a callback for the url of an apple-touch-icon.

Hide the apis until this is a well-tested feature. The url is reported rather
than the actual icon since it may never be used. The apple-touch-icon is meant
for shortcuts on the home screen.
/frameworks/base/core/java/android/webkit/WebView.java
d3c6d54de9b9a599eb33f343fb1e0639fed02094 31-Jul-2009 Grace Kloba <klobag@google.com> Set touch mode to be TOUCH_DONE_MODE when calling doDoubleTap.
/frameworks/base/core/java/android/webkit/WebView.java
4c94304508ec8f7e49ca4531f4aa28f3f08b3bab 31-Jul-2009 Leon Scroggins <scroggo@google.com> Fix a bug in find.

Make setContentScrollBy return a boolean.
Necessary so that a caller of setContentScrollBy in WebView.cpp
can find out whether the page scrolled. Requires a change in
external/webkit/
/frameworks/base/core/java/android/webkit/WebView.java
77d98f4ed7c036b9df8fc3cb07b67df08d0faeec 31-Jul-2009 Cary Clark <cary@android.com> rebuild the nav cache on mouse clicks during page load

On the first tap down, send a message to rebuild the nav
cache so that double taps have a better chance of having
some alignment information to work with.

Also, pass scale information to getBlockLeftEdge to
restrict the alignment search
/frameworks/base/core/java/android/webkit/WebView.java
010582885cbd5e1becadd6c53816c399465b459d 30-Jul-2009 Leon Scroggins <scroggo@google.com> Allow the user to jump to the next textfield.

Requires a change to external/webkit. Set ImeActions for textfields,
depending on the existence of other textfields on the page, and
react accordingly.
/frameworks/base/core/java/android/webkit/WebView.java
ef347ef9107a8ca6ab85029528e2c1518440b2c3 30-Jul-2009 Grace Kloba <klobag@google.com> Fix 2016808. We used to send the new scale/scroll info to the UI thread after
WebCore finish the first layout. As the picture in the UI thread is still
the previous one, if there is a UI update happened before we generate the new
picture, the new scale/scroll will be applied to the old picture.

On the other hand, we do want to trigger the resize for the new page after
the first layout. e.g. The page was at nytimes.com. Now user types google.com.
google.com is first layout in the wide viewport where nytimes.com is. We dont
want to show that picture. We would like to show the fit to screen version of
google.com as the first picture.

Remove the SnapToAnchor code which is left over from previous zoom attempt.
/frameworks/base/core/java/android/webkit/WebView.java
8b97e4b0fe4a89a76b47a8df422d0d3ea5b70754 28-Jul-2009 Grace Kloba <klobag@google.com> Re-add double tap to the Browser. It only works if WebView uses wide viewport.
It is also controlled by ENABLE_DOUBLETAP_ZOOM flag. Currently the default
is on.

Double tap will toggle between current zoom level and all the way zoom out,
in another word, zoom overview mode.

While in zoom overview mode, don't display zoom control while panning. You
can click to follow the link. If clicking on a text input box, it should
bring it back to the normal mode so that it will be easy to edit text.

While in zoom overview mode, the page is zoomed to fit the width in the
view. While the text paragraph are wrapped to the matching normal mode scale.
So there is no reflow when we switching between two modes.
/frameworks/base/core/java/android/webkit/WebView.java
72543e1bc386f23f5d8f3f21068887ec16408fef 23-Jul-2009 Leon Scroggins <scroggo@google.com> Improvements to dragging on the WebTextView.

When TextView handles a mouse move as a scroll, scroll the
underlying textfield/textarea. Also do not hide the cursor
while scrolling within a text input. Requires a change to
external/webkit.
/frameworks/base/core/java/android/webkit/WebView.java
675c7d2eb8198c7b68c02da731bc2c5b71d5eb5b 23-Jul-2009 Grace Kloba <klobag@google.com> Fix 1997929. The final mScrollX/Y has been pinned to the legal bounds.
So we can't use it to calculate the intermediate scroll position. Use
the original scroll offset and scale to find the animated scroll position.
/frameworks/base/core/java/android/webkit/WebView.java
0f5ad842fb3fbc0df2a4c8028940810782cedacc 17-Jul-2009 Leon Scroggins <scroggo@google.com> Allow the user to scroll a webpage by touching a textfield.

Fix for http://b/issue?id=1703971. Because the browser overlays
the WebTextView over textfields, it intercepts all the touch
events, which was preventing the page from scrolling. This
change passes the move events back to the WebView to make
the page scroll.
/frameworks/base/core/java/android/webkit/WebView.java
10c7a4da566e9faed84745b75e74b9d1cb410e3f 20-Jul-2009 Leon Scroggins <scroggo@google.com> Clear the WebTextView in didFirstLayout.

When reaching a new page, remove the WebTextView. This
fixes a bug where the user logs into a site, and the
WebTextView remains on screen.
/frameworks/base/core/java/android/webkit/WebView.java
4c3ca701fe29ed33bf5e984885ba7265a0a4dc65 15-Jul-2009 Patrick Scott <phanna@android.com> Check for a null url before trying to load it.

There are some bad things that happen if WebCore gets a blank url.
/frameworks/base/core/java/android/webkit/WebView.java
43488fc78c927c25936e7b90030c5f10d2db94e5 06-Jul-2009 Leon Scroggins <scroggo@google.com> Update text webcore thread's text generation number.

When the user edits text in a textfield, we increase a generation
number so we can mark changes from webkit to be out of date. With
this change, update webcore's notion of the text generation number
in deleteSelection and replaceTextfieldText, in addition to
passToJs. Requires a change in external/webkit.
/frameworks/base/core/java/android/webkit/WebView.java
005ae544f93494eb7d315b2e34aae0ac3c922728 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 79ec07b3: Merge change 6241 into donut

Merge commit '79ec07b333f8982ee83de8eeb0b1927a6cb112ed'

* commit '79ec07b333f8982ee83de8eeb0b1927a6cb112ed':
Fixes #1444844. Set a maximum fling velocity in scrollable views.
4296fc4d326447875c26a925f12b3935632f13bb 06-Jul-2009 Romain Guy <romainguy@android.com> Fixes #1444844. Set a maximum fling velocity in scrollable views.
/frameworks/base/core/java/android/webkit/WebView.java
0a5ce01eda210f83619ada0603a80fd883512fe9 02-Jul-2009 Patrick Scott <phanna@android.com> Basic changes to get embedded video working.

Add the ViewManager class to handle child views within a WebView. This class
attaches and removes the views in the UI thread. It also scales the layout
params based on the scale of the WebView.
/frameworks/base/core/java/android/webkit/WebView.java
4890feb048e4f0510c577babe3bfd08521a3996b 02-Jul-2009 Leon Scroggins <scroggo@google.com> In WebTextView, check the focus before sending a key.

This fixes a bug where the DOM has moved the focus, but the WebTextView
is still sending keys to the old focus. Requires a change in
external/webkit.
/frameworks/base/core/java/android/webkit/WebView.java
945f3b43a05cefc7138f1aeab252b43b2d6cea96 02-Jul-2009 Derek Sollenberger <djsollen@google.com> recognize when plugin is eligable for user events and then notify the plugin.
/frameworks/base/core/java/android/webkit/WebView.java
409812691def88027dc16ac930646eb260536c69 01-Jul-2009 Leon Scroggins <scroggo@google.com> Fixes for moving a focused textfield on screen when entering a character.

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

Longpressing on a WebView while the WebTextView is up calls
WebTextView::performLongPress(). This used to be fine, but now
we may still leave the WebTextView up while the user is longpressing
on something else. Check to ensure that the focus is the same
as the cursor before calling WebTextView's version. Also,
send a click if the user longpresses on a different WebTextView,
so it will now behave appropriately. Requires a change in
external/webkit.

Also remove a duplicate check for inEditingMode().
/frameworks/base/core/java/android/webkit/WebView.java
8cdad889154b87bb796de3dc3f57952b6858e884 30-Jun-2009 Leon Scroggins <scroggo@google.com> Make the caret/selection draw when gaining window focus.

When the WebView loses WindowFocus, we stop drawing the
selection. We need to resume drawing it, especially for
the context menu, which steals WindowFocus. Corresponds
to a change in Webkit.
/frameworks/base/core/java/android/webkit/WebView.java
b308137ed0a3402781a1102567a8b8ffa8adc0f7 30-Jun-2009 Feng Qian <fqian@google.com> Add JS Flag support.
/frameworks/base/core/java/android/webkit/WebView.java
4c41e8dc3bdfd868da2542e19400fb8ea2ca03a9 29-Jun-2009 Derek Sollenberger <djsollen@google.com> Adding support for webkit to request the keyboard.
/frameworks/base/core/java/android/webkit/WebView.java
0ca70883d752cce77b918421ef81f3134f6ccd1e 26-Jun-2009 Leon Scroggins <scroggo@google.com> Assign a field name for textfields in the browser.

Fix for http://b/issue?id=1605291. Store the url and name of the
textfield in EditorInfo.fieldName.
/frameworks/base/core/java/android/webkit/WebView.java
0658e8fe4592a26de34170b62a19463fd2add47b 26-Jun-2009 Leon Scroggins <scroggo@google.com> If the cursor moves from a focused textfield to another, remove the WebTextView.

We already remove the blinking caret, implying that if the user
types with the cursor on another textfield, the keys will go there.
This way, the WebView will see the key, and rebuild the WebTextView,
so we no longer use the data from the first textfield. This fixes
a bug where moving from a focused textfield and pressing delete
with the cursor on another was deleting a character from the
first (initially focused) textfield. Also, in WebView::onKeyDown,
only check if the native cursor is a textfield before deciding
whether to send a CLICK, since plugins will be handled differently
(this is part of a different change), and now the cursor may match
the focus, but we still want the click (to make the focusController
active - i.e. make the cursor blink).
/frameworks/base/core/java/android/webkit/WebView.java
243ea06d2bf67e8b54da51977687b08f49aeb093 25-Jun-2009 Cary Clark <cary@android.com> Remove the web text view if the key cannot be handled

Also add some debugging to WebTextView
Requires companion change in external/webkit
/frameworks/base/core/java/android/webkit/WebView.java
215b72cbf7e8c8241dd8bbc12b8ad94825cd015e 26-Jun-2009 Cary Clark <cary@android.com> route arrow keys to plugin

see companion change in external/webkit
/frameworks/base/core/java/android/webkit/WebView.java
ef6da8fe3d5bc153eb934d440d0b3bfabd0e3279 26-Jun-2009 Leon Scroggins <scroggo@google.com> Make clicking the trackball on a <select> element work.

Optionally pass a frame and node pointer to nativeClick, since
the hit testing does not find the HTMLSelectElement node. Also
change the signature of nativeClick to return void, since
we never use the return value. Requires a change in
external/webkit.
/frameworks/base/core/java/android/webkit/WebView.java
53d3c1e4513135c5d8f70da4938c7d25455263f5 26-Jun-2009 Grace Kloba <klobag@google.com> Fine tune TOUCH_SENT_INTERVAL for the high speed devices.
/frameworks/base/core/java/android/webkit/WebView.java
6fa2958059a08390ed2b87b8572f8847ad9999e4 19-Jun-2009 Andrei Popescu <andreip@google.com> Implement support for showing a VideoView.
/frameworks/base/core/java/android/webkit/WebView.java
959046c3aa38a99acc3f582232710ebc543d938a 25-Jun-2009 Grace Kloba <klobag@google.com> resolved conflicts for merge of 7cb8182e to master
6c451b766d0d24994f2c5ce1750e5351f9f4ba83 25-Jun-2009 Grace Kloba <klobag@google.com> When mPreventDrag is true, don't respond to long press. This should prevent the context menu popping up in the Map sites.
/frameworks/base/core/java/android/webkit/WebView.java
d1ebf538a9f475ef9ac34480ef7ce742454bc899 25-Jun-2009 Grace Kloba <klobag@google.com> resolved conflicts for merge of 0d8b77c2 to master
0d8b77c2453d0e597f94e39212e4bfeed8affffa 25-Jun-2009 Grace Kloba <klobag@google.com> Add ZoomDensity so that we can change the desired default scale.

Fix a bug where we didn't adjust the viewport scale according to our density.
/frameworks/base/core/java/android/webkit/WebView.java
3524be90f60e1ba23818b99221e9e4a5f1d65105 22-Jun-2009 Cary Clark <cary@android.com> In WebView, fix calcVisibleRect bugs

Always use mFindIsUp to adjust computed rect bottom.

Compute the visible rect, but don't send it, when
creating the webTextView.
/frameworks/base/core/java/android/webkit/WebView.java
f418214af37c4e8d7c8f318a282c96e0a364a3d1 19-Jun-2009 The Android Open Source Project <initial-contribution@android.com> merge 9ebd737e w/conflicts
257379162050df40545c464b165c5ed6a158a29c 19-Jun-2009 Grace Kloba <klobag@google.com> dpi changes for webview
/frameworks/base/core/java/android/webkit/WebView.java
ed56eda373b78f47baecf261a3c1e5ac34a2b849 18-Jun-2009 Cary Clark <cary@android.com> clean up mouse move events in webview

Pass moveGeneration to setScrollOffset so it can
generate mouseMove event
Remove node from event messages (no longer used)
Remove CursorData ignoreNullFocus parameter (no longer used)
Fix debug message range
/frameworks/base/core/java/android/webkit/WebView.java
3e399de960869166ea78ed57ea8935bbb7736234 17-Jun-2009 Cary Clark <cary@android.com> add WebView.FindAddress option to ignore case sensitivity

New public interface is set @hide for now. Old interface
uses the new one.

Requires a companion change to external/webkit
http://b/issue?id=1649036
/frameworks/base/core/java/android/webkit/WebView.java
1bd0d6a53f27b38c10db265f8d85c89eaea527f1 16-Jun-2009 Leon Scroggins <scroggo@google.com> Allow proper text editing after clicking with the trackball.

As with the recent change to make a touch bring up the WebTextView,
so that the trackball can be used, and we get text editing goodness,
we also need to bring up the WebTextView when clicking the trackball.
Also do not call overrideUrlLoading for an input field and add a
comment.
/frameworks/base/core/java/android/webkit/WebView.java
1cc2420d0dfaef8ec0d510b6aa85ecbadf0f62f7 16-Jun-2009 Leon Scroggins <scroggo@google.com> Bring up the WebTextView when pressing a key on textfield.

The old code put the textfield in focus, and resulted in editing
the text semi-appropriately, but now we actually bring up the
WebTextView so that we properly handle the arrow keys, as well
as any substitution that is necessary. This fixes
http://b/issue?id=1918883
/frameworks/base/core/java/android/webkit/WebView.java
fa03cded353bb42c32662f77e36e90c42e7da9d2 15-Jun-2009 Leon Scroggins <scroggo@google.com> Changes to make the cursor blink at the correct times.

Make the blinking caret active when the user actually starts editing
text. To be consistent with that idea, do not rebuild the WebTextView
when the WebView regains focus. Now sendMouseMoveIfLatest takes a
boolean parameter to determine whether to make the focusController
inactive. Requires a matching change in webkit to pass a parameter
to the method. Now that we only call setFocusControllerActive with
false, change the method to no longer take a boolean parameter.
Change names to reflect that.

This change also reflects a behavioral change. If the WebView or
its window lose focus, we do not restore the blinking caret when
focus returns.
/frameworks/base/core/java/android/webkit/WebView.java
ded054c9d3efbf49ae491b95470fc1c3069b6a63 15-Jun-2009 Cary Clark <cary@android.com> replace webview hashmap with static class

Hashmaps used to pass parameters between WebView.java and
WebViewCore.java are fragile and sometimes require boxing.
Replace them with static classes that are typesafe and use
less code.
/frameworks/base/core/java/android/webkit/WebView.java
f958fccf47098700ae04164cf0ff47e5f5200109 12-Jun-2009 Cary Clark <cary@android.com> send click in webview before sending key

Add click check to passToJavaScript if webTextView
receives a key but the field does not yet have webkit focus.
/frameworks/base/core/java/android/webkit/WebView.java
aa3f96a745c8285f07d32cf150d8a511ed5f6b05 11-Jun-2009 Leon Scroggins <scroggo@google.com> Move the zoom buttons to the bottom right for the browser.

Per Leland's latest design, the zoom buttons should be on
the bottom right of the screen. Move them there.
/frameworks/base/core/java/android/webkit/WebView.java
e872f3ac96eda6bba79af4d8f29b24325d434869 11-Jun-2009 Cary Clark <cary@android.com> more (browser) trackball-is-a-mouse work in progress

Distinguish between clearing the cursor (causing the next
trackball navigation to start at the page edge) and hiding
the cursor (preventing it from drawing, but leaving it at
the same position).
/frameworks/base/core/java/android/webkit/WebView.java
e0155e955254f4ee4464d4c12545267727fcd89a 10-Jun-2009 Derek Sollenberger <djsollen@google.com> Accept freeMemory messages and pass them to the native code
/frameworks/base/core/java/android/webkit/WebView.java
41d2676dd634f6d0152181a622e8a6c90b062a3a 10-Jun-2009 Grace Kloba <klobag@google.com> DO NOT MERGE.

Merge 2391 from master to donut.

Added postUrl() to WebView so that we can pass lat/lon for the search.
/frameworks/base/core/java/android/webkit/WebView.java
a5645b2e7f521a6f380ba5c585f7fb7e7ba86230 09-Jun-2009 Leon Scroggins <scroggo@google.com> Preparation of WebView for changes in the title bar.

Remove the zoom overview and 1x buttons from the ZoomButtonsController,
since the functionality will now be placed elsewhere. Make zoomScrollOut
and canZoomScrollOut public (albeit hidden), so they can be called by the
Browser. Also rename ExtendedZoomControls' mZoomControls to
mPlusMinusZoomControls so they are not confused with WebView's mZoomControls.
/frameworks/base/core/java/android/webkit/WebView.java
fd06bc8d6e83fc5b92192dedbc46eb70fb86198f 08-Jun-2009 Leon Scroggins <scroggo@google.com> Remove obsolete notion of invalid node.

In the old navigation model, we set focus to a node, and checked to see
if that node was still valid (could have changed since we built the
navigation cache). Then we sent a message back to the UI thread to
tell it to draw the ring differently. In the new model, we are essentially
moving a mouse, so we do not concern ourselves with whether the node is
valid. Removed all the code for passing the message to the UI thread
and calling into native. Needs a change to external/webkit to work
properly.
/frameworks/base/core/java/android/webkit/WebView.java
19436561c60b5a66e7326ac4523841cd7a74351e 04-Jun-2009 Cary Clark <cary@android.com> send click in browser when key is sent to unfocused text field

Also, set focusControllerActive state based on presence of
focus and cursor that wants key events.

Disable focusControllerActive when moved cursor wants key
events.

Remove unused recompute-focus code.
/frameworks/base/core/java/android/webkit/WebView.java
1c7f8c56c858bef24533da344788c688ef6ed404 05-Jun-2009 Leon Scroggins <scroggo@google.com> Update the language from "focus".

Previously, many methods, variables, etc referred to the focus.
Now, they have been changed to refer to the cursor when
appropriate. Some references were changed to the focusCandidate,
since they may apply to either the focus or the cursor, which
is a candidate for focus. Also removed unneeded method
unblockFocus. WebView will not work without a corresponding
change in external/webkit.
/frameworks/base/core/java/android/webkit/WebView.java
e3225673f7dafb703ff542f446a774ace827e57e 03-Jun-2009 Leon Scroggins <scroggo@google.com> Remove handling of ENTER key from WebView.

WebView was (incorrectly) handling the ENTER key as if it could start
a long press like CENTER key does. Separate the two behaviors. Now,
the ENTER key does not do anything unless it is part of a textfield or
the DOM otherwise handles it.

As a result, I was able to remove some orphaned code. Before this
change, pressing ENTER would play a click noise, and animate the
focus ring as if its link were being followed, but do nothing. In
WebViewCore, do not pass the ENTER key back to the Activity.
/frameworks/base/core/java/android/webkit/WebView.java
82aa2f5eecddf723af2e4e134de15bbf5c6b32f4 03-Jun-2009 Leon Scroggins <scroggo@google.com> Remove obsolete flags from WebViewCore and WebView

Remove NO_FOCUS_CHANGE_BLOCK and BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP, which were
part of SET_FINAL_FOCUS (which is no longer used) from WebViewCore. In WebView,
do not pass BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP with SET_MOVE_MOUSE, since the
receiver does not care about it.
/frameworks/base/core/java/android/webkit/WebView.java
2f1d60cd55933f444842991d3bf05a8552cdd30d 03-Jun-2009 Cary Clark <cary@android.com> remove unused text parameters from WebView

The additional parameters are no longer used.
/frameworks/base/core/java/android/webkit/WebView.java
2e5c150e746647a1ce5c10e1708debbf06c45ea7 03-Jun-2009 Derek Sollenberger <djsollen@google.com> Centralized debug flags and enabled more granular control of debug settings.
/frameworks/base/core/java/android/webkit/WebView.java
d3465f6021c23ab2fbdbb1b08cde72caac1c2018 02-Jun-2009 Leon Scroggins <scroggo@google.com> Rename the TextDialog to WebTextView.

Rename the TextDialog to be a more accurate description of what it is.
Also rename some methods and variables which pertain to it, and preload
the newly created class.
/frameworks/base/core/java/android/webkit/WebView.java
d6982c9bb46511a5d86458b2dddde0a40e2f4f75 29-May-2009 Cary Clark <cary@android.com> in the browser, make the trackball more like a mouse

Older code treated the trackball as a four way dpad with
equivalents to moving up, down, left and right by generating
arrow key events. This change makes the trackball solely
generate mousemove events.

The old arrow keys in turn were mapped to be as close as
possible to tab-key events that moved the focus. The new
model leaves focus-changes to the DOM.

Clicking the dpad is distinguished from pressing the enter
key to be more compatible with desktop-authored web pages.
/frameworks/base/core/java/android/webkit/WebView.java
d205d5b57071dd9e53a42184f8a5fc5cd7398209 27-May-2009 Mike Reed <reed@google.com> add onPause and onResume apis, to inform the view when it can pause
its activities associated with the DOM.
/frameworks/base/core/java/android/webkit/WebView.java
5753430f6408fc5ddc9ef3592f59b968bcf282cc 23-May-2009 Grace Kloba <klobag@google.com> Added postUrl() to WebView so that we can pass lat/lon for the search.
/frameworks/base/core/java/android/webkit/WebView.java
3246c224d5860b78e1c7264906dbcecca415da9d 26-May-2009 Leon Scroggins <scroggo@google.com> Fix the build.

A previous change changed a public class to be a static class.
Change it back so the API is not changed.
/frameworks/base/core/java/android/webkit/WebView.java
213a31c7d5c11ca05fda666e7a697cc94df0d0f1 22-May-2009 Leon Scroggins <scroggo@google.com> Fix some Java mistakes found by FindBugs.

Use Integer.valueOf() instead of new Integer()
Eliminate unused fields in InvokeListBox
Make FocusNode, HitTestRequest, and ExtendedZoomControls
static inner classes.
/frameworks/base/core/java/android/webkit/WebView.java
658ab7d787f64987d7c45aae08e5a12a073afe78 14-May-2009 Grace Kloba <klobag@google.com> Added PluginManager to handle getting all the plugin directories from PackageManager.

Deprecated the old api to set a single plugin path.
/frameworks/base/core/java/android/webkit/WebView.java
8f9ff7e77f73b2712f775245113ea53614485317 14-May-2009 Cary Clark <cary@android.com> remove isClick parameter in browser touch event handler

isClick is always set to true by the callers, so remove
it and simplify the code
(http://b/issue?id=1666780; see also change in external/webkit)
/frameworks/base/core/java/android/webkit/WebView.java
dbcb3bab20b1402fa38cf83a51c2702d0e10673d 13-May-2009 Android (Google) Code Review <android-gerrit@google.com> am a0f87f6: Merge change 1565 into donut

Merge commit 'a0f87f680cb1dc2a163f89118ffdf38f4c964628'

* commit 'a0f87f680cb1dc2a163f89118ffdf38f4c964628':
Enable filtering <select> lists.
3667ce4caeb83c4746b5366a882db671b4faca19 13-May-2009 Leon Scroggins <scroggo@google.com> Enable filtering <select> lists.

Fix a bug where the filter text could not be deleted,
and another where filtering changes the checked item,
so that filtering <select> lists can be reenabled.
/frameworks/base/core/java/android/webkit/WebView.java
2ca912ec1350a8196abe4630e6c629ee8191926d 28-Apr-2009 Leon Scroggins <scroggo@google.com> Lazily initialize the TextDialog.
/frameworks/base/core/java/android/webkit/WebView.java
bc2e33b5c81b1d5ddc112ea004a0b7866bd00bec 23-Apr-2009 Cary Clark <cary@android.com> don't swap out the history picture too soon

Wait until either the picture is not blank or
the progress is complete.
/frameworks/base/core/java/android/webkit/WebView.java
843bbb8597d561c2541f86d1f391ae65261cf743 20-Apr-2009 Cary Clark <cary@android.com> reset select/copy state if key is pressed while shift is down

If a webpage suppresses keys from getting echoed back to the
browser app, then also disable select/copy when a key follows
a shift key press.

Also add in missing debug string to permit debug builds.
/frameworks/base/core/java/android/webkit/WebView.java
74008f608af0c567456d37e63d48643689388c74 23-Apr-2009 Jean-Baptiste Queru <jbq@google.com> Merge donut into master
63dda1c7b405524384e53a67be5735d9026650db 15-Apr-2009 Leon Scroggins <scroggo@google.com> Make webkit's cursor draw at the correct times.

This change is dependent on another change to external/webkit. Tell the WebViewCore to change its FocusController's "active" status depending upon whether the WebView has focus. This fixes a bug where we were showing the blinking cursor when the WebView was not in focus.
/frameworks/base/core/java/android/webkit/WebView.java
75534fbe246e5562779500bc7cf7f0ddfe9b8330 14-Apr-2009 Dianne Hackborn <> Merge branch 'readonly-p4-master'
935ae463d495d41155e27feb849768ad2b8b16db 14-Apr-2009 Dianne Hackborn <> AI 145994: Integrate #145778 from Donut.

Automated import of CL 145994
/frameworks/base/core/java/android/webkit/WebView.java
42bc2ff5d2e3a10ab6c1fb1e716a124f2b446dbc 14-Apr-2009 Dave Bort <dbort@android.com> Remove references to android.util.Config

The semantics of Config.DEBUG will be changing soon, and all other
Config.* fields will become deprecated/hidden.

BUG=1780938
/frameworks/base/core/java/android/webkit/WebView.java
f8a7ceaef2e7d5cd530c9426bde91b6fa9a40b75 11-Apr-2009 Andy Stadler <> AI 145778: Manual merge changes 145382-145384 from cupcake.

Automated import of CL 145778
/frameworks/base/core/java/android/webkit/WebView.java
974bd7f2989fc20b44af308c2569f66ec8952851 06-Apr-2009 Grace Kloba <> Merge branch 'readonly-p4-master'
45dee41f5c55cd18c7f3716fbac765016132a214 06-Apr-2009 Grace Kloba <> AI 144661: Fix #175030. Preserve the zoom factor during refresh. Remove the code change in FrameLoader.cpp which was to preserve the zoom factor when we first did layout. Now we only use the initialZoomScale if it is a standard load. If it is history load, restoreScale() should be called before didFirstLayout(), in the other cases, like reload, refresh, replace, we don't change the zoom factor.
BUG=175030

Automated import of CL 144661
/frameworks/base/core/java/android/webkit/WebView.java
c9222aa0f2c6a00e6242630fed5df6b08166d38f 02-Apr-2009 Leon Scroggins <> Merge branch 'readonly-p4-master'
238ddbb8a2961e6919d802694ef9ce7743cff61c 02-Apr-2009 Leon Scroggins <> AI 144235: Fix for 1752906: clicking "cancel" on a multiple <select> element disables future select elements from working. Add a listener for cancel, which will clear out the old popup, and allow a new one to be brought up in the future.
BUG=1752906

Automated import of CL 144235
/frameworks/base/core/java/android/webkit/WebView.java
3c44286190003c6d765b542807e0466de07b3733 02-Apr-2009 Grace Kloba <> Merge branch 'readonly-p4-master'
a72cc098e28cd27621e3dafab95117af5b42407a 02-Apr-2009 Grace Kloba <> AI 144000: am: CL 143999 am: CL 143998 Fix #1750489. Call WebKit's setNetworkOnLine from WebCore thread instead of UI thread as WebKit is not thread safe.
Using the same code pattern as the rest of the file:
. throw IllegalStateException if BrowserFrame.sJavaBridge is null in pauseTimers/resumeTimers.
. use (msg.arg1 == 1) to pass the boolean from WebView to WebViewCore as in CLEAR_CACHE
Original author: klobag
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 144000
/frameworks/base/core/java/android/webkit/WebView.java
c6c318dffbb411c2cb04740a8dcc18d21c14f361 01-Apr-2009 Grace Kloba <> AI 143999: am: CL 143998 Fix #1750489. Call WebKit's setNetworkOnLine from WebCore thread instead of UI thread as WebKit is not thread safe.
Using the same code pattern as the rest of the file:
. throw IllegalStateException if BrowserFrame.sJavaBridge is null in pauseTimers/resumeTimers.
. use (msg.arg1 == 1) to pass the boolean from WebView to WebViewCore as in CLEAR_CACHE
Original author: klobag
Merged from: //branches/cupcake/...

Automated import of CL 143999
/frameworks/base/core/java/android/webkit/WebView.java
caee1703fee75fbf37ba7774db64479a33cda82b 01-Apr-2009 The Android Open Source Project <initial-contribution@android.com> Merge commit 'goog/readonly-p4-master'
bed911a44a3df311c3af7d8cb821544609bced9a 31-Mar-2009 Leon Scroggins <> AI 143733: Fix for issue 1648553: IME overlaps over focus ring in gmail search box. In WebView::requestChildRectangleOnScreen we now move a rectangle up if its bottom is offscreen, even if its top is not. We also move it so that its top is at the top third of the WebView's height (if it still fits on screen) so that you can see space (and potentially other input fields) below it.
BUG=1648553

Automated import of CL 143733
/frameworks/base/core/java/android/webkit/WebView.java
762d30a31365e5cae9ba7c2802de60a2f8c3513d 29-Mar-2009 The Android Open Source Project <initial-contribution@android.com> Merge branch 'open_source' into google_internal

Conflicts:
core/java/android/widget/TwoLineListItem.java
core/res/res/values/public.xml
preloaded-classes
e1861133d51b9e6a6f658eb366630ad4f4d3ff8f 27-Mar-2009 The Android Open Source Project <initial-contribution@android.com> Merge commit 'korg/cupcake'

Conflicts:
core/java/android/webkit/WebView.java
core/java/android/widget/TwoLineListItem.java
preloaded-classes
6e3835ff4a77517856db58b715e12e9dfeb6a334 25-Mar-2009 Leon Scroggins <> Automated import from //branches/master/...@142632,142632
/frameworks/base/core/java/android/webkit/WebView.java
105925376f8d0f6b318c9938c7b83ef7fef094da 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
/frameworks/base/core/java/android/webkit/WebView.java
2a73de7b21a89aa2ba4c254d28658b49793425b2 18-Mar-2009 Jean-Baptiste Queru <jbq@google.com> Merge commit 'remotes/korg/cupcake' into merge

Conflicts:
core/java/android/view/animation/TranslateAnimation.java
core/jni/Android.mk
core/res/res/values-en-rGB/strings.xml
libs/audioflinger/AudioFlinger.cpp
libs/surfaceflinger/LayerScreenshot.cpp
packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
ba87e3e6c985e7175152993b5efcc7dd2f0e1c93 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
/frameworks/base/core/java/android/webkit/WebView.java
c39a6e0c51e182338deb8b63d07933b585134929 11-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137873
/frameworks/base/core/java/android/webkit/WebView.java
b2a3dd88a53cc8c6d19f6dc8ec4f3d6c4abd9b54 09-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137197
/frameworks/base/core/java/android/webkit/WebView.java
4df2423a947bcd3f024cc3d3a1a315a8dc428598 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
/frameworks/base/core/java/android/webkit/WebView.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/webkit/WebView.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/webkit/WebView.java
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
/frameworks/base/core/java/android/webkit/WebView.java
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
/frameworks/base/core/java/android/webkit/WebView.java
15ab3eae2ec3d73b3e8aa60b33ae41445bf83f4b 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
/frameworks/base/core/java/android/webkit/WebView.java
3001a035439d8134a7d70d796376d1dfbff3cdcd 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
/frameworks/base/core/java/android/webkit/WebView.java
da996f390e17e16f2dfa60e972e7ebc4f868f37e 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
/frameworks/base/core/java/android/webkit/WebView.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/webkit/WebView.java
adcd2ed8d24deddee528e96260d0ed673eeb261c 21-Jan-2009 Mike Hearn <hearn@google.com> Add some documentation to WebView, WebSettings and CookieSyncManager.
Double-tree rendering is deprecated.
/frameworks/base/core/java/android/webkit/WebView.java
f1e484acb594a726fb57ad0ae4cfe902c7f35858 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
/frameworks/base/core/java/android/webkit/WebView.java
22f7dfd23490a3de2f21ff96949ba47003aac8f8 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127101
/frameworks/base/core/java/android/webkit/WebView.java
9266c558bf1d21ff647525ff99f7dadbca417309 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
/frameworks/base/core/java/android/webkit/WebView.java
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
/frameworks/base/core/java/android/webkit/WebView.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/webkit/WebView.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/webkit/WebView.java