Commit Graph

178 Commits

Author SHA1 Message Date
Andrei Popescu
972acd0c33 Undo the changes accidentally merged from Donut 2009-07-10 16:58:13 +01:00
Grace Kloba
ec696c0115 Fix the build. Remove mPluginsPath as it is not used in the master any more. 2009-07-09 14:07:55 -07:00
Android (Google) Code Review
a5f451f3ae am 3bb69233: Merge change 6620 into donut
Merge commit '3bb692338fed7f34f010398fe8b831d0de22c6e8'

* commit '3bb692338fed7f34f010398fe8b831d0de22c6e8':
  Keep Gears permissions in sync with system location settings.
2009-07-09 12:50:26 -07:00
Andrei Popescu
215a23654a Keep Gears permissions in sync with system location settings. 2009-07-09 17:33:26 +01:00
Android (Google) Code Review
e541ba9e8d Merge change 6356
* changes:
  Add fullscreen support back in.
2009-07-09 06:39:47 -07:00
Andrei Popescu
3c946a1a96 Add fullscreen support back in. 2009-07-08 17:01:59 +01:00
Leon Scroggins
43488fc78c Update text webcore thread's text generation number.
When the user edits text in a textfield, we increase a generation
number so we can mark changes from webkit to be out of date.  With
this change, update webcore's notion of the text generation number
in deleteSelection and replaceTextfieldText, in addition to
passToJs.  Requires a change in external/webkit.
2009-07-07 10:07:17 -04:00
Android (Google) Code Review
005ae544f9 am 79ec07b3: Merge change 6241 into donut
Merge commit '79ec07b333f8982ee83de8eeb0b1927a6cb112ed'

* commit '79ec07b333f8982ee83de8eeb0b1927a6cb112ed':
  Fixes #1444844. Set a maximum fling velocity in scrollable views.
2009-07-06 13:12:36 -07:00
Romain Guy
4296fc4d32 Fixes #1444844. Set a maximum fling velocity in scrollable views. 2009-07-06 11:48:52 -07:00
Android (Google) Code Review
f6a6cff234 am 4492bcb8: Merge change 6081 into donut
Merge commit '4492bcb851f4ee862a446664eb9045045ebb7b5e'

* commit '4492bcb851f4ee862a446664eb9045045ebb7b5e':
  Migrate to the CertTool library.
2009-07-06 11:22:11 -07:00
Patrick Scott
0a5ce01eda Basic changes to get embedded video working.
Add the ViewManager class to handle child views within a WebView. This class
attaches and removes the views in the UI thread. It also scales the layout
params based on the scale of the WebView.
2009-07-06 14:08:45 -04:00
Android (Google) Code Review
ae596082b5 Merge change 6159
* changes:
  Add the code to detect how long the WebViewCore thread is idle in the real time.
2009-07-06 10:29:41 -07:00
Leon Scroggins
4890feb048 In WebTextView, check the focus before sending a key.
This fixes a bug where the DOM has moved the focus, but the WebTextView
is still sending keys to the old focus.  Requires a change in
external/webkit.
2009-07-06 11:15:07 -04:00
Chung-yih Wang
bf20b9963a Migrate to the CertTool library.
Keystore is reimplemented and it is mainly for storing
(key, value) pair generically. The certificate related
APIs are moved to the class CertTool instead.

Updates:
  Provide the getInstance() which gives the singleton.
  Fix the missing construction of the BIO in cert.c.
2009-07-04 00:22:51 +08:00
Grace Kloba
f099481c26 Add the code to detect how long the WebViewCore thread is idle in the real time. 2009-07-02 17:22:01 -07:00
Derek Sollenberger
945f3b43a0 recognize when plugin is eligable for user events and then notify the plugin. 2009-07-02 10:27:08 -04:00
Android (Google) Code Review
e10809d02c am 7a573862: Merge change 5720 into donut
Merge commit '7a5738624fa78e328b5f36c687c20b9cf0eb5a60'

* commit '7a5738624fa78e328b5f36c687c20b9cf0eb5a60':
  Fix #1876303. Even rfc2616 4.2 says that "Field names are case-insensitive.", servers including Google internal uses case-sensitive checking for "Cookie". So change it.
2009-07-01 11:19:50 -07:00
Leon Scroggins
409812691d Fixes for moving a focused textfield on screen when entering a character.
When the focused node is a textfield, but the WebView has focus
(for example if the page had an initial focus) and the cursor
is not over a plugin or textfield, rebuild the WebTextView
to handle the keys.  Also, remove mScrollToAccommodateCursor,
since now the WebTextView is only showing when we want to
scroll.
2009-07-01 10:57:47 -04:00
Leon Scroggins
3ccd3655a0 Fix a WebView longpress bug.
Longpressing on a WebView while the WebTextView is up calls
WebTextView::performLongPress().  This used to be fine, but now
we may still leave the WebTextView up while the user is longpressing
on something else.  Check to ensure that the focus is the same
as the cursor before calling WebTextView's version.  Also,
send a click if the user longpresses on a different WebTextView,
so it will now behave appropriately.  Requires a change in
external/webkit.

Also remove a duplicate check for inEditingMode().
2009-06-30 11:47:26 -04:00
Leon Scroggins
8cdad88915 Make the caret/selection draw when gaining window focus.
When the WebView loses WindowFocus, we stop drawing the
selection.  We need to resume drawing it, especially for
the context menu, which steals WindowFocus.  Corresponds
to a change in Webkit.
2009-06-30 10:28:44 -04:00
Grace Kloba
65c0fc4fc4 Fix #1876303. Even rfc2616 4.2 says that "Field names are case-insensitive.", servers including Google internal uses case-sensitive checking for "Cookie". So change it. 2009-06-29 17:03:42 -07:00
Feng Qian
b308137ed0 Add JS Flag support. 2009-06-29 16:22:21 -07:00
Grace Kloba
0b956e1353 Add content-disposition into the cache header as it is needed by Flash.
As WebKit is using string version of "expires", pass it with the rest of the headers.
2009-06-29 14:49:10 -07:00
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