1. Added a mechanism to select the cursor ring content if accessibility is
enabled - This is achieved by sending an event to the WebCore thread
(if accessibility is enabled) to select the content of the cursor when
the latter moves. Added code in WebViewCore to select the given node
and notify the UI thread for the selection markup which is delivered
of the accessibility injector which manages sending accessibility
events. This is relevant for adding accessibility to WebView if
JavaScript is not enabled. (If JS is enabled we inject a screenreader
written in JS).
2. Fixed the event delegation to the accessibility injector since it
should be able to consume key events of interest and perform some
action which leads to sending appropriate accessibility event.
In the previous implementation it was possible that the injector
consumes the event but the latter was bubbled up.
3. Added function to scroll the selection into view while moving it
around based on user commands.
Note: This is a part of two project commmit.
Change-Id: Ibb81d0468726efbe3bf6e3add1b19c69e3206638
When using the Chromium HTTP stack, most of the calls to CacheManager
methods are not required, as we're not using its cache. These methods
are now marked with asserts to make this clear.
Also avoid creating the cache database in WebViewDatabase.
This will avoid creating the database databases/webviewCache.db and
the directory cache/webviewCache.
Bug: 3270236
Change-Id: I68f94dde16830ed817454d5e1af961f41b71d018
This potentially helps the following issue. But anyway, this change
is good to have.
issue: 3292648
Change-Id: I0ad74b802d7ce2c3d66de8115187638f1d5e72ff
If the cursor is active and on a node that doesn't want
key events, treat the enter key as a click.
Otherwise, pass key down and key up to webkit.
A companion change in external/webkit adds frames
as nodes that wants key events.
bug:3325093
Change-Id: I134d2999505925ee1e571841759cb295103b5a30
Refactor zoom overview width calculation in FirstLayout and NewPicture;
also taking care of the case when wide viewport is not enabled.
This fixes the setInitialScale Cts test case, which is broken by some
scale related changed for fixed viewport browser.
issue: 3242034
Change-Id: Ie54d089763ee38029ef25e6029884a17c2135f97
Bug:3312049
Do not start Find on page if the action mode fails to
start. Clean up showFindDialog.
Requires a change to packages/apps/Browser
Change-Id: I204315665d3bf9f3ac78e78c4059c5a6f24695db
Allow the hosting application to do what they want if the
control key is pressed. In particular, let our Browser
map Ctrl-arrow to back and forward.
bug:3270434
Change-Id: I2dfa648edbf5a0e48b674df5023182b4a70985f6
Treat the numeric keypad enter as the regular enter for the
purposes of completing a text entry or activating the currently
selected link.
Add a little keyboard-related debugging.
Don't call select text to extend the selection if the tap
point hasn't moved.
A separate change to the Browser app adds more keyboard
accelerators.
bug:3270434
bug:3191699
Change-Id: I8a38b26196e93e344dc2a4b39a6968fe0c158d47
Context from an Activity are not meant to be store past the
lifetime of the Activity.
Fix for bug 3306898
Change-Id: Ib2f12cbdc3ec8aa0a6adf4770e6be4569fa6402c
Now checking if the ProxyProperties object is null, and if the
string returned by getHost() is null.
Change-Id: I727e26c2a41fe057501c3b610ba6fa221d16da45
We were leaking the first WebView created since we kept a reference
in a static variable. Using the new way of sending messages in a
static method to avoid this.
Change-Id: Ibb665e32c22c16c17176cd69bf8f7e83fd94894f
This class gives fairly low-level access to the HTTP cache, which
as far as we can tell was only exposed for the benefit of Gears.
BUG=3270236
Change-Id: Ibce10ecf8b524d3f472affa2a37fe4de15efd2ed
This is needed to construct a cachable CacheResult object.
Currently only WebViewWorker is able to do this, by updating
the fields directly.
Bug: 3270236
Change-Id: I50148697dcee4d329e1436a2ce4c15224cb5ae30
This reverts CL https://android-git.corp.google.com/g/84508
After lengthy discussion we have decided that disabling CacheManager
is too risky for third-party apps, and that enough functionality is
still available for it to be useful.
WebView.loadUrl() will not add pages to the cache, but it is still
possible to add them manually via CacheManager.saveCacheFile().
Change-Id: I6cfd9f93bb8d685450f048375adad9d17fa4eeba
Dolphin crashed when sContext.getCacheDir got called too early.
This was because the let the user choose to use sdcard or
internal memory, and the choice was not yet made.
Change-Id: I8b3ba260c26233c6459efbb9e5e50fad2260a24d
Long pressing a link may return an anchor, an image, or an
image in an anchor. Sometimes we want one, sometimes the other.
Make both available so the context menu can choose.
Update the documentation in WebView.java
Companion changes are in external/webkit, packages/apps/Browser
bug:3282745
bug:3263340
Change-Id: I9917a2c69d26601a230051f2e95c9464ba6155e9
When we try to deduce the MIME type from the file extension of
a URL, strip the fragment off at the same time we are stripping
the query. Otherwise we end up trying to match against some
funny extensions.
Bug:3241908
Change-Id: Ibaa84f0a628f37cd012b6cfbed9a6a666ecae8bb