Commit Graph

950 Commits

Author SHA1 Message Date
Leon Clarke
387b6580b8 Cancel test selections when they start if the client hasn't overridden the
selection behavior.
http://b/issue?id=2847546

Change-Id: I0d8529add54b3dfbf0af239fda1b15edd7bd32e0
2010-07-19 14:36:28 +01:00
Elliott Slaughter
b48fdbe792 Browser save page as web archive.
Change-Id: Id34a93b2e9bb6c185338989d1eeb6929d0bd06c5
2010-07-12 09:06:10 -07:00
Grace Kloba
8abd50b748 Combine base PictureSet with composite layers into
one SkLayer tree to get ready for GL rendering.

Now UI holds its copy of SkLayer tree. The top node
is BaseLayerAndroid which has the PictureSet as its
content.

There is a matching change in external/webkit.
2010-07-08 15:02:14 -07:00
Ben Murdoch
372dfc8bd4 If no touch icon is specified by a <link> tag, return <host>/apple-touch-icon.png as
the touch incon url instead. The DownloadTouchIcon class will handle the case that
this file does not exist on the server.

Change-Id: I8ab8fd65b571584d7b648af72c568f0b01c2dcaf
2010-07-02 16:47:39 +01:00
Shimeng (Simon) Wang
72b4f9336a Merge "Fix zoom overview logic." 2010-07-01 17:58:03 -07:00
Shimeng (Simon) Wang
d5c6a16b51 Fix zoom overview logic.
issue: 2778976
Change-Id: Id859c473190d067e378cf149d9a7bf9e914ee6e7
2010-07-01 17:53:49 -07:00
Grace Kloba
9a9fd64ab7 Remove the TODO as it has been fixed with changes
for http://b/issue?id=2666473.
2010-07-01 11:07:22 -07:00
Steve Block
f96d23ae1a Merge "Pass the WebView context to the GeolocationService from WebKit" 2010-07-01 02:18:24 -07:00
Shimeng (Simon) Wang
7940e8472b Merge "Fix the initial reflow width when switch between basic pages." 2010-06-30 18:03:53 -07:00
Shimeng (Simon) Wang
0a4a70daba Fix the initial reflow width when switch between basic pages.
issue: 2778976
Change-Id: Ib77c91628792258db8197459656b8f42bf787c9c
2010-06-30 17:28:12 -07:00
Michael Kolb
a172e7d0d9 user agent string change: remove "Mobile" for large screen configuration
bug: http://b/issue?id=2778676

Change-Id: I268d8c0f8834bdbd099d59fdbc462da26234241a
2010-06-30 14:50:02 -07:00
Ben Murdoch
08968fa59e Merge "Receive notification from native webcore that the page being viewed has marked itself as being an installable web app. Default implementation in the WebChromeClient does nothing." 2010-06-30 10:35:08 -07:00
Ben Murdoch
6312de2a9a Receive notification from native webcore that the page being viewed
has marked itself as being an installable web app. Default implementation
in the WebChromeClient does nothing.

Requires an external/webkit change.

b/2766917

Change-Id: I7aae1b097f866e3d1c6c6a7a31a55bb12ff6a441
2010-06-29 19:20:53 +01:00
Cary Clark
f0785a66f0 set maximum image size
Our use of web settings does not specify the maximum image size,
although we have some hard-coded values used when decoding the
image. For defective images, the hard-coded values are not enough,
since we may exceed memory in the decoder before the limit is
reached.

Pass along our limits to the decoder, and respect any limits
set by the caller.

companion change in external/webkit

Change-Id: Iabd78165390dddce917f637bd3263b83f9b4aa56
http://b/2689053
2010-06-29 09:06:33 -04:00
Steve Block
074c08c4eb Pass the WebView context to the GeolocationService from WebKit
Bug: 2798745
Change-Id: I53e7c5f9ac1cf017a6f7d83e6d0fd57bc1d3403a
2010-06-29 13:11:51 +01:00
Derek Sollenberger
b983c893d4 Rename a data storage object to better reflect its intended usage.
Change-Id: I18eae0665b59e7fee389a0e09955c5860a7e65f2
2010-06-28 12:59:48 -04:00
Derek Sollenberger
4aef697d58 Initial pass at unit tests for ZoomManager.
This CL also includes some minor changes to the ZoomManager that
make the manager easier to test as well as fix some uncovered issues.

Change-Id: I66a84d70ee75e765ccf9cccb2d123757a9470f93
2010-06-28 08:53:20 -04:00
Cary Clark
924af70019 Refactor find and select dialogs
In WebView:
- Remove the select mode, so that while text is selected,
the view may respond to scroll or zoom gestures.
- Remove the getFindIsUp() method -- let the host application
track if the dialog is visible.
- Map long press to select text if the host application does
not already intercept it.
- Draw find 'extras' during zoom animation.
- Draw select 'extras' during animation and scrolling as well.
- Distinguish between selecting text and pressing a shift key
(the shift key is still a possible select text shortcut)
- Add more public (but hidden) interfaces: setUpSelect, selectAll, etc.

In WebChromeClient, add interfaces to allow WebView to tell the host
application that selection has started or finished. A long press on
a part of the view that does not trigger a host context menu may
start the selection (if text is underneath the press), and clicking
the trackball or tapping away from the current selection may
end the selection.

Companion changes in external/webkit and packages/apps/Browser

Change-Id: I81f549181249c38d8d4c10fd7064f513d11318fa
http://b/262451
2010-06-25 14:08:56 -04:00
Derek Sollenberger
94345f45e7 Fix zoom overview mode bug in the zoom manager.
Change-Id: Ia4c95e8014976ff6a1c5f3b19030abd78b532f96
http://b/2793303
2010-06-25 10:45:04 -04:00
Derek Sollenberger
f39d26605d fix NullPointerException caused by inflating XML Webview that is
defined to be non-visible.

Change-Id: I3233428d1cc74e90c6431cc1796592af6a7a62d8
http://b/2794841
2010-06-24 16:41:04 -04:00
Elliott Slaughter
be1304f0c2 Tweak fix for setXSSAuditorEnabled in LayoutTestController.
Change-Id: Iba9b67da8628e3880e8f6b18d2dc51337b9c58fb
2010-06-23 14:11:37 -07:00
Elliott Slaughter
5dc0c8253b Add setXSSAuditorEnabled support in WebSettings.
Change-Id: I6f74589b28960b91093acf8219a55e98f93b1881
2010-06-22 14:56:54 -07:00
Grace Kloba
f9b731d383 Add a WebSettings to control whether WebView will
use some perf trick, e.g. pause updating the picture,
during panning and zooming transition.

Fix http://b/issue?id=2784020
2010-06-21 19:23:57 -07:00
Shimeng (Simon) Wang
ad45686d72 Add dumpChildFramesAsText function support in LayoutTestController.
Change-Id: I8af0bbca1d2166a25486d5a12fb6a985bbe264ef
2010-06-21 10:05:34 -07:00
Patrick Scott
6e90ddb2d8 Move WebViewDatabase initialization into a background thread.
This isn't the perfect solution as any calls into WebViewDatabase will block
until initialization completes.  It is better than the current model which
blocks when creating the WebViewDatabase.

In order to get a perfect solution, we would need to do initialization in the
background and have a way to interact with the database during initialization
that would not block.

Bug: 2721802
Change-Id: Ibbaf7f97926128de6534fbf2148452099766c6b7
2010-06-16 13:50:45 -04:00
Patrick Scott
97147286d1 Fix a monkey crash when the new WebView is destroyed.
Grab the WebViewCore immediately so that if the Tab is destroyed, we have the
old WebViewCore object and can return the BrowserFrame.

Bug: 2733004
Change-Id: Ic3e4c5417f2165f412f60f05aea3ed403d8cecfd
2010-06-16 13:34:07 -04:00
Kristian Monsen
edb20ac70e Adding a way for native code to get the apps data directory
Change-Id: I9da5376a202cb2d24c2125352efeb9bffcfe357b
2010-06-16 17:24:21 +01:00
The Android Open Source Project
e377032899 am 864c68ea: merge from froyo-plus-aosp
Merge commit '864c68ea452baa0f4f298faf2155af45a9b6d60c'

* commit '864c68ea452baa0f4f298faf2155af45a9b6d60c':
  Added an addAll to the ArrayAdapter
  WLAN: Reset power save mode to startup value after DHCP response.
  Add PageUp and PageDown hot keys
  Should accept "application/vnd.wap.multipart.alternative" message.
  replaced deprecated getIntent with parseURI
2010-06-14 11:39:26 -07:00
The Android Open Source Project
864c68ea45 merge from froyo-plus-aosp
Change-Id: I9cede57e10df9d6ba411b2960a77d7b9b60a1489
2010-06-14 11:35:51 -07:00
The Android Open Source Project
07d8140755 merge from open-source master
Change-Id: Ia668b322a02e220b74c222dbbcc5b4fdc3c59ab0
2010-06-11 13:08:02 -07:00
Derek Sollenberger
bffa851f04 Finish refactoring zoom logic from WebView to ZoomManager.
This is the final CL in a series of CL's that moved the
location of the zoom logic from WebView to ZoomManager.

Change-Id: Ie1e80b9b3108bd4cb0b0ee2822dc984da91c2d86
http://b/2671604
2010-06-11 08:51:07 -04:00
Derek Sollenberger
15c5ddb7fd Refactor the double tap zoom code into ZoomManager.
This CL is one in a series of CL's that is intended to refactor
the zoom logic from WebView to ZoomManager.

Change-Id: Icf88f7bd45068dddb31913903403acc7a8f21063
http://b/2671604
2010-06-11 07:47:52 -04:00
Brad Fitzpatrick
b60c941811 resolved conflicts for merge of f37cbe6b to master
Change-Id: I529b17e55b9668f900f685f92e9831e14a82db05
2010-06-10 15:58:22 -07:00
Brad Fitzpatrick
f37cbe6bb6 am 438d0595: Introduce "StrictMode" 2010-06-10 15:03:26 -07:00
Brad Fitzpatrick
438d059512 Introduce "StrictMode"
This is a new public API for developers to opt-in to strict rules
about what they're allowed to do on certain threads.  (this is the
public face of the @hide dalvik.system.BlockGuard, added recently...)

In practice this will be used for developers to opt-in to declaring
that they don't want to be allowed to do various operations (such as
disk I/O or network operations) on their main UI threads.  (these
operations are often accidental, or even when they are fast come with
a good chance of being slow or very slow in some cases....)

Implementation wise, this is just a thread-local integer that has a
bitmask of the things that aren't allowed, and more bits for saying
what the violation penalty is.  The penalties, of which multiple can
be chosen, include:

  * logging
  * dropbox uploading for analysis/reporting
  * annoying dialog
  * full-on crashing

These are all only very roughly implemented at this point, but all
parts now minimally work end-to-end now, so this is a good checkpoint
commit before this gets too large.

Future CLs will polish all the above 4 penalties, including
checksumming of stacktraces and minimizing penalties for duplicate
violations.

Change-Id: Icbe61a2e950119519e7364030b10c3c28d243abe
2010-06-10 14:38:58 -07:00
Chih-Wei Huang
4e916ad8c9 Add PageUp and PageDown hot keys
Change-Id: I588f70d74bc5c02e1fb60c7a2821d8801f2333e0
2010-06-10 09:56:47 +08:00
Jean-Baptiste Queru
e4031a3780 am 030b0ebe: merge from froyo-plus-aosp 2010-06-09 16:12:11 -07:00
The Android Open Source Project
c08fd46f5c merge from open-source master
Change-Id: I4ddfc902e70c85ab8b11698fc08df7247e46d0a9
2010-06-09 12:17:03 -07:00
Derek Sollenberger
369aca27ec Consolidate common zoom code and tighten access to some ZoomManager variables.
This is a single CL in a series of CL's that is focused on moving the
zoom logic from WebView to ZoomManager.

Change-Id: I741fc34d5dd481b89f6e0b33503834c33f4fe69e
http://b/2671604
2010-06-09 14:11:59 -04:00
Jean-Baptiste Queru
9226a713ff Merge "Adding mimetypes to the mimetype map used in the web view" 2010-06-09 10:51:16 -07:00
Derek Sollenberger
293c360ffe Move pinch-to-zoom logic into ZoomManager.
This CL is one in a series of CL's that moves the zoom logic
from WebView into ZoomManager.

Change-Id: I9980dd78dbc3345d465d4f39afcfd2f025f45bcb
http://b/2671604
2010-06-09 11:53:10 -04:00
Grace Kloba
fba3197d9e Do not call AlertDialog.show() if the context is not
the focused Activity. In that case, just take the
default cancel.

Change JSAlert to be cancelable like JSConfirm.

Fix http://b/issue?id=2741195
2010-06-04 17:31:33 -07:00
The Android Open Source Project
eefd63e357 am 0a0c57f9: am 7c035d8a: am 2d743fe2: merge from open-source master 2010-06-04 13:02:38 -07:00
The Android Open Source Project
2d743fe2f3 merge from open-source master
Change-Id: Ic9060d92c014d6cbe9d90ce8deca8fa111711471
2010-06-04 11:08:36 -07:00
Derek Sollenberger
627eca9b62 Merge "Update EmbeddedZoomControl to use new ZoomManager methods." 2010-06-03 10:35:04 -07:00
Derek Sollenberger
341e22ffce Refactor zoom logic from WebView to ZoomManager.
This CL is one in a series of CL's intended to remove the zoom
logic from WebView. This CL focuses on refactoring the initialScale
variable as well as the onSizeChanged() and NEW_PICTURE_MSG portions
of the code.

Change-Id: Id44bce50378aa7cdfc1c8110818e18500679c517
http://b/2671604
2010-06-03 09:37:36 -04:00
Derek Sollenberger
af39e4b802 Update EmbeddedZoomControl to use new ZoomManager methods.
Change-Id: Icea2bea36d42ff58a05600ceb4388992bc8979d7
2010-06-02 12:55:40 -04:00
Ben Murdoch
347d50fb1f Merge "Frameworks changes to enable File Reader and blob.slice APIs." 2010-06-02 04:29:39 -07:00
John Eckerdal
dad86349be Add better error handling for savePicture and restorePicture
If an Exception occurs when storing the file treat this as an error
and always fail to try to prevent corrupted pictures to be stored to
the file system.

Close files if they were opened, the caller might want to perform other
file operations on the file and if it is still open these may fail.

Change-Id: Ic68596b5c745bbe413096c22684c388e853a7643
2010-06-02 10:59:46 +02:00
Grace Kloba
ec9a104ce9 If the WebView can't be scaled, don't check for
double tap. This will make the click event on the
non-scalable page much responsive.

Fix http://b/issue?id=2645880
2010-06-01 19:00:23 -07:00