Commit Graph

966 Commits

Author SHA1 Message Date
Leon Scroggins III
6f99270cbe Hide the soft keyboard even if WebTextView is not in use.
Sometimes clearTextEntry is called when mWebTextView is not
being used.  In those cases, we still want to hide the soft
keyboard, since the user is no longer attempting to type.

Bug: 2835685
Change-Id: I4e8d4bc60b23028e2840d6205caf13699bce6031
2010-08-12 14:45:38 -04:00
Steve Block
d7bfb2dfb8 Merge "Update DeviceOrientationManager to be specific to a WebViewCore" 2010-08-12 06:30:31 -07:00
Patrick Scott
4668e77265 am dc1f0858: am 9902196f: Fix npe in getCacheTotalSize.
Merge commit 'dc1f08586eadc3a3dbbdf22b520ba1065b2032f8'

* commit 'dc1f08586eadc3a3dbbdf22b520ba1065b2032f8':
  Fix npe in getCacheTotalSize.
2010-08-11 07:21:25 -07:00
Patrick Scott
dc1f08586e am 9902196f: Fix npe in getCacheTotalSize.
Merge commit '9902196f9885d369e37cf44084e3f04513511ab0' into gingerbread-plus-aosp

* commit '9902196f9885d369e37cf44084e3f04513511ab0':
  Fix npe in getCacheTotalSize.
2010-08-11 07:18:27 -07:00
Patrick Scott
9902196f98 Fix npe in getCacheTotalSize.
Bug: 2882277
Change-Id: I9319a48e0ed75561d3d04691fb288f69d11edc84
2010-08-11 09:48:43 -04:00
Steve Block
f4a705f045 Update DeviceOrientationManager to be specific to a WebViewCore
This avoids the need to pass the WebViewCore to its methods.

Change-Id: Ieec414f0819f06c8f5568ae5d6dd81a48d05fd6e
2010-08-11 13:14:43 +01:00
Steve Block
68dede3d66 Hook up mock for testing DeviceOrientation in DRT
Change-Id: I99fbe328807428aa0d94893545bad0697ccb71d7
2010-08-10 12:00:35 +01:00
Derek Sollenberger
ff0f973442 Support complex characters in plugins.
Complex characters like chinese are sent via the onKeyMultiple()
callback. The WebView passes these characters to Webkit so that
non-text inputs (e.g. plugins) can process them.

Change-Id: I159c4a404c195b60cc7f63ef4bff0aa80db96c3f
http://b/2900114
2010-08-06 14:05:15 -04:00
Michael Kolb
73980a949d added scroll control support to WebView
Change-Id: Ie0ddaa6b532e31fb0e2904e6bab9d67c06599b66
2010-08-05 16:50:02 -07:00
Elliott Slaughter
f21d2e3059 Initial work on browser incognito mode history feature.
Change-Id: I050edf263d5c4ee0c0373692e267d7e19f47ba1b
2010-08-05 16:22:33 -07:00
Dianne Hackborn
90d5e8c08b Fix build.
Change-Id: I18c0af97c7e204f023cea77e3e5d08eb37596222
2010-08-05 14:28:57 -07:00
Elliott Hughes
0f11696164 Switch android.webkit.MimeTypeMap over to libcore.net.MimeUtils' table.
(Said table is the very same data that used to be, but pushed further down
the dependencies so that it can be shared with java.net.URLConnection, so
the two classes' equivalent methods return the same results.)

Bug: 2422917
Bug: http://code.google.com/p/android/issues/detail?id=10100
Change-Id: Ic4e80c2fede22671e825d569f349e4329dcf01ea
2010-08-02 15:25:16 -07:00
Michael Kolb
37b64de6bc moved target_content user agent parameter to strings
added target content parameter for xlarge screen configuration

Change-Id: I27d252167d4011beec3784addaa548193ba9e20c
2010-07-26 12:58:59 -07:00
Patrick Scott
b77bcd1bb4 Fix gmail crash.
Change-Id: I009d44fce36e365e915b2ecbdfd94fdcee40adf8
2010-07-22 14:01:55 -04:00
Patrick Scott
a3ebcc9d2e Support scrolling divs.
Detect two fingers close together and enter drag layer mode.  Add a
few checks for this mode (mostly to not change the WebView's scroll
position).

Bug: 1566791
Change-Id: I019bb36479884a51c7ca046ca40c05f7c5706b22
2010-07-22 08:16:25 -04:00
Ben Murdoch
f197f19601 Make sure to set a Resource Response on the native side in all cases.
Fix bug: 2847289

Change-Id: Ieda22c201a99b0e3bf307ca1f45b115dd78f7698
2010-07-21 20:44:03 +01:00
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