Commit Graph

111 Commits

Author SHA1 Message Date
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
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
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
Ben Murdoch
7df1985e86 Merges p9 CLs 144856 and 145055 to GIT to enable the Database API in the browser. 2009-04-30 13:46:01 +01:00
Patrick Scott
e82dc42052 Parse the base64 data before creating the data stream.
This will ensure that we do not parse the data in chunks when passing it to the
LoadListener. Decoding in chunks can lead to incomplete sequences which will
lead to a failed decode.

Check for a cancelled LoadListener in StreamLoader and stop the load. This is
just a shortcut for downloaded or failed resources.

Cleanup some of the LoadListener code around resetting a few member variables.
Reset them in the status callback since that indicates a new response from the
server (or StreamLoader).
2009-04-29 14:11:27 -04:00
Leon Scroggins
2ca912ec13 Lazily initialize the TextDialog. 2009-04-28 17:18:57 -04:00
Patrick Scott
f0c70a8356 Treat application/xhtml+xml as xhtml+xml instead of text/html.
Previously we had converted application/xhtml+xml to text/html because of bad
server data. Now we need to treat xhtml as xhtml to get svg to be interpreted
correctly.
2009-04-28 11:47:11 -04:00
Cary Clark
bc2e33b5c8 don't swap out the history picture too soon
Wait until either the picture is not blank or
the progress is complete.
2009-04-24 10:43:02 -04:00
Cary Clark
843bbb8597 reset select/copy state if key is pressed while shift is down
If a webpage suppresses keys from getting echoed back to the
browser app, then also disable select/copy when a key follows
a shift key press.

Also add in missing debug string to permit debug builds.
2009-04-23 10:40:28 -04:00
Jean-Baptiste Queru
74008f608a Merge donut into master 2009-04-22 17:12:34 -07:00
Android (Google) Code Review
24a4320f9c Merge change 261
* changes:
  Enable Application Caches.
2009-04-20 10:04:34 -07:00
Andrei Popescu
60a9a7d055 Enable Application Caches. 2009-04-20 14:23:58 +01:00