Commit Graph

120 Commits

Author SHA1 Message Date
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
Leon Scroggins
a5645b2e7f Preparation of WebView for changes in the title bar.
Remove the zoom overview and 1x buttons from the ZoomButtonsController,
since the functionality will now be placed elsewhere.  Make zoomScrollOut
and canZoomScrollOut public (albeit hidden), so they can be called by the
Browser.  Also rename ExtendedZoomControls' mZoomControls to
mPlusMinusZoomControls so they are not confused with WebView's mZoomControls.
2009-06-09 15:31:19 -04:00
Leon Scroggins
fd06bc8d6e Remove obsolete notion of invalid node.
In the old navigation model, we set focus to a node, and checked to see
if that node was still valid (could have changed since we built the
navigation cache).  Then we sent a message back to the UI thread to
tell it to draw the ring differently.  In the new model, we are essentially
moving a mouse, so we do not concern ourselves with whether the node is
valid.  Removed all the code for passing the message to the UI thread
and calling into native.  Needs a change to external/webkit to work
properly.
2009-06-09 10:39:37 -04:00
Cary Clark
19436561c6 send click in browser when key is sent to unfocused text field
Also, set focusControllerActive state based on presence of
focus and cursor that wants key events.

Disable focusControllerActive when moved cursor wants key
events.

Remove unused recompute-focus code.
2009-06-08 11:02:06 -04:00
Leon Scroggins
1c7f8c56c8 Update the language from "focus".
Previously, many methods, variables, etc referred to the focus.
Now, they have been changed to refer to the cursor when
appropriate.  Some references were changed to the focusCandidate,
since they may apply to either the focus or the cursor, which
is a candidate for focus.  Also removed unneeded method
unblockFocus.  WebView will not work without a corresponding
change in external/webkit.
2009-06-08 10:14:32 -04:00
Ben Murdoch
6262ae5c9d Implement handling of console messages from WebCore. Default implementation in WebChromeClient is to do nothing. 2009-06-05 12:39:02 +01:00
Android (Google) Code Review
49f372210b am 12bba912: Merge change 3238 into donut
Merge commit '12bba912238f305d385b30c278a4bdbb027b7a03'

* commit '12bba912238f305d385b30c278a4bdbb027b7a03':
  Browser edit fields should report variation WEB_EDIT_TEXT.
2009-06-04 23:48:45 -07:00
Amith Yamasani
88db3448cf Browser edit fields should report variation WEB_EDIT_TEXT.
This will enable the IME to enable/disable prediction features
for browser fields where the exact type is not very well defined.
Part of the fix for #1743620
2009-06-04 15:07:29 -07:00
Leon Scroggins
e3225673f7 Remove handling of ENTER key from WebView.
WebView was (incorrectly) handling the ENTER key as if it could start
a long press like CENTER key does.  Separate the two behaviors.  Now,
the ENTER key does not do anything unless it is part of a textfield or
the DOM otherwise handles it.

As a result, I was able to remove some orphaned code.  Before this
change, pressing ENTER would play a click noise, and animate the
focus ring as if its link were being followed, but do nothing. In
WebViewCore, do not pass the ENTER key back to the Activity.
2009-06-03 16:39:31 -04:00
Leon Scroggins
82aa2f5eec Remove obsolete flags from WebViewCore and WebView
Remove NO_FOCUS_CHANGE_BLOCK and BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP, which were
part of SET_FINAL_FOCUS (which is no longer used) from WebViewCore.  In WebView,
do not pass BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP with SET_MOVE_MOUSE, since the
receiver does not care about it.
2009-06-03 13:01:32 -04:00
Cary Clark
2f1d60cd55 remove unused text parameters from WebView
The additional parameters are no longer used.
2009-06-03 12:25:34 -04:00
Derek Sollenberger
2e5c150e74 Centralized debug flags and enabled more granular control of debug settings. 2009-06-03 12:02:59 -04:00
Leon Scroggins
d3465f6021 Rename the TextDialog to WebTextView.
Rename the TextDialog to be a more accurate description of what it is.
Also rename some methods and variables which pertain to it, and preload
the newly created class.
2009-06-02 10:57:54 -04:00
Cary Clark
d6982c9bb4 in the browser, make the trackball more like a mouse
Older code treated the trackball as a four way dpad with
equivalents to moving up, down, left and right by generating
arrow key events. This change makes the trackball solely
generate mousemove events.

The old arrow keys in turn were mapped to be as close as
possible to tab-key events that moved the focus. The new
model leaves focus-changes to the DOM.

Clicking the dpad is distinguished from pressing the enter
key to be more compatible with desktop-authored web pages.
2009-06-01 16:55:24 -04:00
Mike Reed
d205d5b570 add onPause and onResume apis, to inform the view when it can pause
its activities associated with the DOM.
2009-05-27 17:30:21 -04:00
Android (Google) Code Review
46f54ef82a Merge change 1876
* changes:
  fix warning where we were boxing and int, only to have it automatically unboxed
2009-05-26 10:46:04 -07:00
Grace Kloba
5753430f64 Added postUrl() to WebView so that we can pass lat/lon for the search. 2009-05-26 10:35:06 -07:00
Leon Scroggins
3246c224d5 Fix the build.
A previous change changed a public class to be a static class.
Change it back so the API is not changed.
2009-05-26 09:51:23 -04:00
Android (Google) Code Review
b7eef04564 Merge change 2267
* changes:
  Fix some Java mistakes found by FindBugs.
2009-05-26 06:20:15 -07:00
Romain Guy
cc77c6bd6f am ff686ce1: Change when gestures listeners are fired.
Merge commit 'ff686ce11e952a9001b1384d8e7d82127b0529a2'

* commit 'ff686ce11e952a9001b1384d8e7d82127b0529a2':
  Change when gestures listeners are fired.
  Manual merge from cupcake_dcm. internal CL#148693. Two donottranslate.xml-s are already submitted.
2009-05-25 08:37:06 -07:00
Daisuke Miyakawa
c27d9b5341 Manual merge from cupcake_dcm. internal CL#148693. Two donottranslate.xml-s are already submitted. 2009-05-25 16:57:15 +09:00
Leon Scroggins
213a31c7d5 Fix some Java mistakes found by FindBugs.
Use Integer.valueOf() instead of new Integer()
Eliminate unused fields in InvokeListBox
Make FocusNode, HitTestRequest, and ExtendedZoomControls
static inner classes.
2009-05-21 16:49:32 -07:00
Android (Google) Code Review
ad8195bb0e am 2f11599e: Merge change 1579 into donut
Merge commit '2f11599eb317887a8cca14d8e66bfc485e5169e7'

* commit '2f11599eb317887a8cca14d8e66bfc485e5169e7':
  Teleca 2b changes
2009-05-19 01:19:18 -07:00
Wink Saville
e9b06d754a Teleca 2b changes 2009-05-18 21:47:50 -07:00
Mike Reed
d96bdb145d fix warning where we were boxing and int, only to have it automatically unboxed 2009-05-18 13:50:39 -04:00
Grace Kloba
aaf0718c58 loadListener.transferEncoding() is null if it is not specified in data: schema when DataLoader is constructed. Reverse the checking order. 2009-05-15 10:53:19 -07:00
Grace Kloba
658ab7d787 Added PluginManager to handle getting all the plugin directories from PackageManager.
Deprecated the old api to set a single plugin path.
2009-05-14 14:59:24 -07:00
Cary Clark
8f9ff7e77f remove isClick parameter in browser touch event handler
isClick is always set to true by the callers, so remove
it and simplify the code
(http://b/issue?id=1666780; see also change in external/webkit)
2009-05-14 10:14:23 -04:00
Android (Google) Code Review
dbcb3bab20 am a0f87f6: Merge change 1565 into donut
Merge commit 'a0f87f680cb1dc2a163f89118ffdf38f4c964628'

* commit 'a0f87f680cb1dc2a163f89118ffdf38f4c964628':
  Enable filtering <select> lists.
2009-05-13 13:25:45 -07:00
Leon Scroggins
3667ce4cae Enable filtering <select> lists.
Fix a bug where the filter text could not be deleted,
and another where filtering changes the checked item,
so that filtering <select> lists can be reenabled.
2009-05-13 15:58:03 -04:00
Android (Google) Code Review
fd4f03602c am e292086: Merge change 1391 into donut
Merge commit 'e292086e6b5124a8e6b9435609d41c9ab2ef5e22'

* commit 'e292086e6b5124a8e6b9435609d41c9ab2ef5e22':
  Fix 1799207. With the new local dns, we should allow the host without any PERIOD. Otherwise http://go won't work properly.
2009-05-11 18:26:23 -07:00
Guang Zhu
10e4d2068a merged 25fdf35, resolved conflicts 2009-05-11 18:09:51 -07:00
Nicolas Roard
11e8fe5a72 Add modifications to handle the WebStorage settings + the WebStorage bridge native functions 2009-05-11 22:44:20 +01:00
Android (Google) Code Review
e292086e6b Merge change 1391 into donut
* changes:
  Fix 1799207. With the new local dns, we should allow the host without any PERIOD. Otherwise http://go won't work properly.
2009-05-11 14:04:10 -07:00
Grace Kloba
6b4e4275d3 Fix 1799207. With the new local dns, we should allow the host without any PERIOD. Otherwise http://go won't work properly. 2009-05-11 13:20:17 -07:00
Guang Zhu
81e41434b3 Added Java callback for JavaScript execution timeout. 2009-05-08 17:24:41 -07:00