Commit Graph

2289 Commits

Author SHA1 Message Date
George Mount
b290caafa7 Merge "Add support for maxlength text fields to WebViewInputConnection." 2012-02-29 07:17:12 -08:00
George Mount
6012edec28 Add support for maxlength text fields to WebViewInputConnection.
Bug 6083776
 While WebKit limits the length of a field with maxlength, the
 InputConnection can get out of sync with it when it doesn't
 recognize that the characters haven't been changed. Adds
 maximum field length to WebViewInputConnection to limit the
 characters typed.
 WebKit Change: Ie02f82a3f5b3527c378938d93bac2dece802af26

Change-Id: I135871db7809e8dc28a3ad8d3aa852976a274555
2012-02-28 15:27:26 -08:00
John Reck
42fb45588f Merge "Fix cursorRingBounds NPE" 2012-02-28 11:40:00 -08:00
John Reck
5528d7ccd1 Fix cursorRingBounds NPE
Bug: 6083657

Change-Id: I0aa30bc1df266b2f74b0fedfb635b71d63638fdb
2012-02-28 11:29:29 -08:00
John Reck
79d99bebc1 Fix NPE
Bug: 6083360

Change-Id: I8d4a4cfb4ca0bbefd848a6ed7a628bc3838e4f91
2012-02-28 11:21:17 -08:00
George Mount
e7b57be185 Merge "Perform action when action button pressed during text input." 2012-02-27 15:06:29 -08:00
George Mount
e12dd8fd96 Perform action when action button pressed during text input.
Bug 6059576

Change-Id: Ia87f323873b86b22930a2a39bf1c20756f06beec
2012-02-27 14:19:44 -08:00
George Mount
1023aa44ef Paste window instead of action bar when cursor shown.
Use the paste window shown with TextView when the
 cursor is shown rather than use the action bar.

Change-Id: I47d0bc2d5cba066399532a9e75171a75628ac7ed
2012-02-27 14:01:33 -08:00
Ben Murdoch
1d7b856a97 Merge "Fix looping HTML5 Audio." 2012-02-27 02:17:23 -08:00
Adam Powell
b98a81f86a Add support for optional titles in action modes
Optional titles will only be displayed in the CAB if they entirely fit
instead of ellipsizing.

Fixes bug 5821883

Change-Id: I0cfd6d4fd34a4fa9f520499d577706da30606811
2012-02-24 16:59:03 -08:00
John Reck
0d4134834e Merge "Fix HitTest type detection" 2012-02-24 10:22:56 -08:00
John Reck
59265e896a Fix HitTest type detection
Change-Id: Ide3d137de18302d2bb83437c3709a31afcdef9ff
2012-02-24 10:13:24 -08:00
George Mount
374d243a1a Merge "Disable selection when nothing selected." 2012-02-24 07:29:13 -08:00
Ben Murdoch
0168bef13f Fix looping HTML5 Audio.
When an <audio> tag has the loop=true attribute,
Webkit tells us to seek back to 0 before we are supposed
to have stopped the stream. But by the time that the message
gets back to the Android MediaPlayer java side, it's already
stopped. So after seeking, we play() again if the player is in
the COMPLETED state. Change the code to do this and handle
the case that we call play on a COMPLETED stream
(resetting internal state, etc).

Note that this has the side effect that we will start playing
the stream after any seek on a COMPLETED stream - e.g. dragging
the slider thumb on the progress track after the stream is
finished.

Bug: 5461143
Change-Id: I6cf4d46d9a1985caf9f9ab85dbcf65535c8dcd77
2012-02-24 11:15:11 +00:00
John Reck
5d5b378383 Merge "Support email and phone types" 2012-02-23 19:28:20 -08:00
John Reck
3a0e011fac Support email and phone types
Change-Id: I16571048954495aaaa11f25bf658dc128430460e
2012-02-23 17:42:05 -08:00
George Mount
9a6077e22e Disable selection when nothing selected.
Bug 6059606

Change-Id: I2c9acaa601e38a2cd0eec516709aa63f31ce0e29
2012-02-23 15:23:35 -08:00
George Mount
583e885bef Merge "Add javascript key events for special characters." 2012-02-23 14:43:02 -08:00
John Reck
4d0a8cf067 Support mIntentUrl for addresses
Change-Id: I61abf7f333608fa91629ce62e348dda83a795e45
2012-02-23 10:28:53 -08:00
George Mount
53519eacac Add javascript key events for special characters.
Bug 6033096

Change-Id: I6c10db405266eee3e25f7446a43f4d7a566f3ef7
2012-02-23 10:27:53 -08:00
Steve Block
2eb7309388 Merge "Drop support for Android HTTP stack" 2012-02-23 04:29:30 -08:00
George Mount
6420ec4cd5 Characters sent directly to InputConnection treated as changes.
Bug 6045123

Change-Id: Iab8c1e3c307ec84c4f6934abfa2d0cea726d9efe
2012-02-22 17:23:23 -08:00
George Mount
49cc3d98e2 Merge "Changes that don't map to keys sent as text changes." 2012-02-22 16:02:30 -08:00
John Reck
29cc47e62e Merge "Fix drawing focus node rect in touch mode" 2012-02-22 15:39:23 -08:00
George Mount
7bc111cc9d Add caret thumb following selection handle logic.
Webkit Change: I3cb0499c5fa3a7de241025d9be04ff44f54f2a74

Change-Id: I669653ca6890fe1136fdd42e24f4c3a34c00d1e4
2012-02-22 15:13:19 -08:00
George Mount
3c30d14560 Changes that don't map to keys sent as text changes.
Bug 6033096

Change-Id: I61da4d398ac140fdacfdd344dc0e2885da907ce0
2012-02-22 15:10:08 -08:00
John Reck
2b3d842a1c Fix drawing focus node rect in touch mode
Change-Id: I5981d038e48a7218cb5f6dcd09ef909746de158d
2012-02-22 14:11:17 -08:00
George Mount
0b2cfd8cb1 Use input type for IME options.
Bug 5987568
 Get the text type from webkit when initializing the field for
 text entry and use that type to specify the IME input type
 and options.
 Webkit Change: I7eceafdbede8b7b463590a2e875a237241479ad1

Change-Id: Ic8c14687a70727148dfc8115c46f09530ca0c0f6
2012-02-22 11:25:59 -08:00
John Reck
d3fcaa4504 Merge "Turn off the focus animation" 2012-02-22 10:18:43 -08:00
John Reck
fbf9cf8d6b Turn off the focus animation
Change-Id: I860220622415c6d3f93f526c854237ac1dd001ce
2012-02-22 10:14:03 -08:00
Steve Block
0acb1c32fa Drop support for Android HTTP stack
All future releases will use the Chromium HTTP stack and maintaining two HTTP
    stacks adds maintenance overhead. The Chromium HTTP stack requires V8, but we
    now use V8 in all build targets (b/5495373), so we can safely drop the Android
    HTTP stack.

LoadListener, HttpAuthHandlerImpl, Network, SslErrorHandlerImpl, WebViewWorker
- Android-stack specific, removed
StreamLoader, FrameLoader
- Require LoadListener, removed
CacheLoader, ContentLoader, DataLoader, FileLoader
- Extend StreamLoader, removed

BrowserFrame
- Removed methods that create LoadListener
- BrowserFrame.startLoadingResource() is called from native
CallbackProxy, WebView
- Removed calls to Network methods
CacheManager, CookieManager, CookieSyncManager, WebViewCore, WebResourceResponse
- Removed other Android-stack specific code
JniUtlil
- Removed useChromiumHttpStack()
WebViewDatabase
- Removed all code to create cookies and cache databases for Android HTTP stack

See corresponding WebKit change https://android-git.corp.google.com/g/166327.

Bug: 5495616
Change-Id: If491675516f6eb187077af4220214bb6e6a8d045
2012-02-22 17:21:43 +00:00
Steve Block
1e17ecae25 Remove unused cache methods
These were added in https://mondrian.corp.google.com/changelist/19077-p9.

CacheManager.setCacheDisabled() has been unused since
https://mondrian.corp.google.com/changelist/20678-p9 (see change to WebView),
so the WebKit cache is always enabled.

BrowserFrame.setCacheDisabled() has been unused since
https://mondrian.corp.google.com/changelist/33679-p9, so the WebCore cache is
always enabled.

BrowserFrame.CacheDisabled() has been unused since
https://mondrian.corp.google.com/changelist/32803-p9 (see change to WebView).

See WebKit change https://android-git.corp.google.com/g/167298.

Change-Id: I68bf334f4a34df1b88d2b5204e50c2eb04db7e69
2012-02-22 16:48:25 +00:00
John Reck
8352e51db3 Merge "Improved keyboard navigation cursor rings" 2012-02-21 15:43:38 -08:00
Victoria Lease
47d0ee9766 async find-on-page implementation via WebKit
Change-Id: I63c6f8fc97bf452ea4456c77a89c5d2540c3d1ea
2012-02-21 11:08:27 -08:00
John Reck
37c4a9f99a Improved keyboard navigation cursor rings
Change-Id: I77b974bb9eae0f9dc8e57320632e5915e8295839
2012-02-21 10:04:54 -08:00
Martin Kosiba
4c69fc575e Merge "Update the JavaDoc on getVisibleTitleHeight." 2012-02-21 08:58:21 -08:00
Steve Block
303bc083c5 Clean up JavaDoc for CacheManager
Clean-up only, no functional change.

Bug: 5461416
Change-Id: I272b1456e797f398014a6a4159319e5519fcaf64
2012-02-21 14:19:26 +00:00
Steve Block
ffefba15e3 Fix CacheManager.getCacheFile() with the Chromium HTTP stack
We need to populate the headers map with both the Android and Chromium HTTP
stacks.

Change-Id: I2df0aa2fce917ad43a1cac1426a324e49b2950f9
2012-02-21 14:19:15 +00:00
Steve Block
2601dccdc0 Merge "Don't try to use Network timing with the Chromium HTTP stack" 2012-02-21 03:52:02 -08:00
Steve Block
35067317a4 Merge "Clean up JavaDoc for WebResourceResponse" 2012-02-21 03:51:47 -08:00
Martin Kosiba
dd409dfbc4 Update the JavaDoc on getVisibleTitleHeight.
Changed 'titlebarview' to 'embedded title bar' and added information
about the return value of the method.

Change-Id: I970ab76282bfed4949f1d738f34359d8c1950aba
2012-02-21 11:25:26 +00:00
Steve Block
acd7e2eb8b Don't try to use Network timing with the Chromium HTTP stack
Change-Id: Ibba20a13e1389c2a7b1cc0cc45d3ef012894cb99
2012-02-21 10:21:40 +00:00
Steve Block
938d2fbc57 Clean up JavaDoc for WebResourceResponse
Clean-up only, no functional change.

Bug: 5461416
Change-Id: Iec37d5f67674b0fb9b5521c179773b7d09a3985c
2012-02-21 10:21:37 +00:00
Steve Block
e5602e057e Merge "Clean up JavaDoc for CookieManager" 2012-02-21 02:18:12 -08:00
Steve Block
77db999077 Clean up JavaDoc for CookieManager
Also fix naming of CookieManager.pendingCookieOperations.

Clean-up only, no functional change.

Bug: 5461416
Change-Id: Ia129c4535b8ef6a5a314e588c34ee6db2fe5b386
2012-02-21 10:15:34 +00:00
Steve Block
28e0390da2 Merge "Make LoadListener.willLoadFromCache() private" 2012-02-21 02:09:34 -08:00
Steve Block
b1affa1747 Make LoadListener.willLoadFromCache() private
This is only called only via JNI. Clean-up only, no functional change.

Change-Id: I8d4ef85ac7634333b3b2283ff12afd7b6a99095f
2012-02-21 10:07:27 +00:00
Selim Gurun
93ba4fedeb Act on credential storage updates.
Bug: 6009802

Cherry pick fcd93b72a3
Listen to credential storage updates and clean state when necessary.

Change-Id: I2c63e6771e9373da8b39781fdcf3d21583c4e3b2
2012-02-16 14:24:10 -08:00
Selim Gurun
d8d6afdc06 Merge "Revert "Act on credential storage updates."" 2012-02-15 19:04:58 -08:00
Selim Gurun
43e41580e4 Revert "Act on credential storage updates."
This reverts commit fcd93b72a3
2012-02-15 19:04:04 -08:00