Commit Graph

155 Commits

Author SHA1 Message Date
Derek Sollenberger
4c41e8dc3b Adding support for webkit to request the keyboard. 2009-06-29 14:12:38 -04:00
Leon Scroggins
0ca70883d7 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.
2009-06-29 10:50:17 -04:00
Leon Scroggins
0658e8fe45 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).
2009-06-29 10:16:24 -04:00
Cary Clark
243ea06d2b Remove the web text view if the key cannot be handled
Also add some debugging to WebTextView
Requires companion change in external/webkit
2009-06-29 09:30:42 -04:00
Cary Clark
215b72cbf7 route arrow keys to plugin
see companion change in external/webkit
2009-06-29 08:23:18 -04:00
Leon Scroggins
ef6da8fe3d 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.
2009-06-26 15:33:47 -04:00
Grace Kloba
53d3c1e451 Fine tune TOUCH_SENT_INTERVAL for the high speed devices. 2009-06-26 11:36:03 -07:00
Android (Google) Code Review
ef7b5d6da5 Merge change 5503
* changes:
  Update WebKit user agent.
2009-06-26 11:05:11 -07:00
Andrei Popescu
6fa2958059 Implement support for showing a VideoView. 2009-06-26 13:57:01 +01:00
Grace Kloba
b4f33445b8 Update WebKit user agent. 2009-06-25 23:38:40 -07:00
Android (Google) Code Review
d76cd5ebbc am 15760159: Merge change 5413 into donut
Merge commit '157601594fc7139a45ec43a860d36ee0045d0333'

* commit '157601594fc7139a45ec43a860d36ee0045d0333':
  Need to write the correct float math.
2009-06-25 14:45:45 -07:00
Android (Google) Code Review
157601594f Merge change 5413 into donut
* changes:
  Need to write the correct float math.
2009-06-25 14:44:38 -07:00
Grace Kloba
2b2e9d9152 Need to write the correct float math. 2009-06-25 14:43:53 -07:00
Grace Kloba
959046c3aa resolved conflicts for merge of 7cb8182e to master 2009-06-25 14:28:04 -07:00
Grace Kloba
6c451b766d When mPreventDrag is true, don't respond to long press. This should prevent the context menu popping up in the Map sites. 2009-06-25 12:25:30 -07:00
Android (Google) Code Review
7e89f8eb86 Merge change 5383
* changes:
  Oops, need to hide the new api.
2009-06-25 11:57:14 -07:00
Grace Kloba
9994127562 Oops, need to hide the new api. 2009-06-25 11:55:08 -07:00
Grace Kloba
d1ebf538a9 resolved conflicts for merge of 0d8b77c2 to master 2009-06-25 11:42:46 -07:00
Grace Kloba
0d8b77c245 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.
2009-06-25 11:20:51 -07:00
Grace Kloba
e64c5567de Fix for the new webkit. Now "expires" takes the string instead of int.
We have to upadte our cache database. Good thing is Gears can avoid the expensive date conversion.
2009-06-25 09:48:39 -07:00
Android (Google) Code Review
526abb93fb am e8a1f6af: Merge change 4961 into donut
Merge commit 'e8a1f6af96d09d8105621932073d6f79e24a5dc9'

* commit 'e8a1f6af96d09d8105621932073d6f79e24a5dc9':
  Set organizations to be null for generateKeyPair to use the default.
2009-06-22 16:24:31 -07:00
Grace Kloba
9427c285df Set organizations to be null for generateKeyPair to use the default. 2009-06-22 14:01:25 -07:00
Cary Clark
3524be90f6 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.
2009-06-22 13:17:05 -04:00
Grace Kloba
b0774438ea am 3af8e938: Change addCertificate to take byte[] instead of String as we don\'t know the encoding.
Merge commit '3af8e9389e008c0076b86cc6b3c6f005e7473d10'

* commit '3af8e9389e008c0076b86cc6b3c6f005e7473d10':
  Change addCertificate to take byte[] instead of String as we don't know the encoding.
2009-06-19 16:43:59 -07:00
Grace Kloba
3af8e9389e Change addCertificate to take byte[] instead of String as we don't know the encoding.
In WebView, if we run into the certificate, we will save it to the Keystore instead of sending it to the WebKit.
2009-06-19 15:09:34 -07:00
The Android Open Source Project
f418214af3 merge 9ebd737e w/conflicts 2009-06-19 14:47:58 -07:00
Grace Kloba
2573791620 dpi changes for webview 2009-06-19 12:42:47 -07:00
Android (Google) Code Review
cc9baea938 Merge change 4621
* changes:
  Update WebStorage methods used by DumpRenderTree to complete synchronously if they are called on the webcore thread.
2009-06-19 02:09:28 -07:00
Android (Google) Code Review
ba165caf44 am e0b7e916: Merge change 4679 into donut
Merge commit 'e0b7e916a1259d2dd9c116695607f9877ec56056'

* commit 'e0b7e916a1259d2dd9c116695607f9877ec56056':
  Replace the dummy code with Keystore for <keygen> support.
2009-06-18 19:54:47 -07:00
Grace Kloba
0de8e4398d Replace the dummy code with Keystore for <keygen> support. 2009-06-18 15:52:42 -07:00
Feng Qian
1155e18ccc Merge commit 'goog/master' into webkit_merge 2009-06-18 10:33:04 -07:00
Ben Murdoch
5647bb3cc2 Update WebStorage methods used by DumpRenderTree to complete synchronously if they are called on the webcore thread. 2009-06-18 18:29:44 +01:00
Cary Clark
ed56eda373 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
2009-06-18 10:55:07 -04:00
Cary Clark
3e399de960 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
2009-06-17 10:00:57 -04:00
Feng Qian
16be88a912 Chagne setCookie API according to new WebCore merge.
Removed the second parameter, policyURL.
2009-06-16 15:11:15 -07:00
Leon Scroggins
1bd0d6a53f 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.
2009-06-16 15:04:28 -04:00
Leon Scroggins
1cc2420d0d 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
2009-06-16 10:17:57 -04:00
Leon Scroggins
fa03cded35 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.
2009-06-16 09:07:42 -04:00
Android (Google) Code Review
e3a6cf3eaa am 3adf7678: Merge change 4184 into donut
Merge commit '3adf7678cdf8fa955627e096bb5c27b94adc3079'

* commit '3adf7678cdf8fa955627e096bb5c27b94adc3079':
  Add permission test structure for private framework permissions.
  Add <keygen> support for VPN.
2009-06-15 11:39:39 -07:00
Android (Google) Code Review
9fac42f8bf Merge change 4168
* changes:
  replace webview hashmap with static class
2009-06-15 11:09:30 -07:00
Android (Google) Code Review
e6881c6300 Merge change 4075 into donut
* changes:
  Add <keygen> support for VPN.
2009-06-15 10:42:20 -07:00
Cary Clark
ded054c9d3 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.
2009-06-15 10:26:08 -04:00
Android (Google) Code Review
1810fda06f Merge change 2930
* changes:
  Add support for toggling DOM Storage support on and off.
2009-06-15 05:40:51 -07:00
Ben Murdoch
274680d9b8 Add support for toggling DOM Storage support on and off. 2009-06-15 13:05:39 +01:00
Cary Clark
f958fccf47 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.
2009-06-12 17:33:37 -04:00
Grace Kloba
7180efed89 Add <keygen> support for VPN. 2009-06-12 11:55:20 -07:00
Leon Scroggins
aa3f96a745 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.
2009-06-11 14:46:35 -04:00
Cary Clark
e872f3ac96 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).
2009-06-11 10:50:39 -04:00
Derek Sollenberger
e0155e9552 Accept freeMemory messages and pass them to the native code 2009-06-10 15:35:45 -04:00
Grace Kloba
41d2676dd6 DO NOT MERGE.
Merge 2391 from master to donut.

Added postUrl() to WebView so that we can pass lat/lon for the search.
2009-06-10 11:55:55 -07:00