Commit Graph

1574 Commits

Author SHA1 Message Date
Leon Scroggins
5960626016 Merge "No radio buttons on <select>" 2011-02-28 09:32:43 -08:00
Ben Murdoch
35381518d0 Don't try to output really long URLs HTML5Audio exception handler.
If we catch an IOException in HTML5Audio.setDataSource, do not try
and output the URL if it's really long as this will likely lead to
an OOM exception being thrown.

Bug: 3486963
Change-Id: If10a489b03ec215e078490a81910b02d68190612
2011-02-28 16:33:10 +00:00
Ben Murdoch
d2e91d1dc7 Improve caching of localised strings for Chromium
We read localised strings for Chromium (e.g. for Autofill)
from Java. Now we've added more large strings, keep them
in WeakReferences and load them lazily rather than on startup.

Change-Id: Ibedcaab5ee781699b41b5c03aae866d1d82bb570
2011-02-28 14:19:05 +00:00
Ben Murdoch
b8460ba428 Localise the regular expressions that AutoFill uses.
Improve the AutoFill experience on non-English web pages
by using localised regular expressions.

This essentially cherry picks the localised strings from
Chromium CL:
http://codereview.chromium.org/6113005

Requires a change in external/chromium, see:
Ie927514cae7b7390c5a291dfae4dcfe3782bb5b7

Change-Id: I9c0544e67bf0333abcb9ea607855ff92f69bff8e
2011-02-28 10:27:53 +00:00
Jeff Brown
33bbfd2232 Add support for mouse hover and scroll wheel.
Dispatch ACTION_HOVER_MOVE and ACTION_SCROLL through the View
hierarchy as onGenericTouchEvent.  Pointer events dispatched
this way are delivered to the view under the pointer.  Non-pointer
events continue to be delivered to the focused view.

Added scroll wheel support to AbsListView, ScrollView,
HorizontalScrollView and WebView.  Shift+VSCROLL is translated
to HSCROLL as appropriate.

Added logging of new pointer events in PointerLocationView.

Fixed a problem in EventHub when a USB device is removed that
resulted in a long stream of ENODEV errors being logged until INotify
noticed the device was gone.

Note that the new events are not supported by wallpapers at this time
because the wallpaper engine only delivers touch events.

Make all mouse buttons behave identically.  (Effectively we only
support one button.)

Change-Id: I9ab445ffb63c813fcb07db6693987b02475f3756
2011-02-25 17:06:07 -08:00
Leon Scroggins
d529bfd1a4 No radio buttons on <select>
Bug:3369625

Change-Id: Ie0ce67ad041aff5e91e2353779b82a091fddb9b6
2011-02-25 18:08:46 -05:00
Shimeng (Simon) Wang
56d9353195 Merge "Make sure pinch zoom and overview scale are within limits" 2011-02-25 10:37:33 -08:00
Shimeng (Simon) Wang
61bb911938 Make sure pinch zoom and overview scale are within limits
issue: 3482463
Change-Id: I9d746883c03326bdfa7fb0373ffadfbc75f69087
2011-02-24 17:15:46 -08:00
Adam Powell
e33cef8037 Ensure WebView passes a complete/in-order event stream to
ScaleGestureDetector. Prerequisite for several ScaleGestureDetector
bugfixes.

Bugfixes for ScaleGestureDetector.

Make ScaleGestureDetector properly support >2 pointers. Track the most
recent two pointers for scale gestures.

Change-Id: I966319ad438c1c8e1103f245b53b3862c2d4e3c0
2011-02-24 16:27:50 -08:00
Cary Clark
808e8f6837 Merge "center long press to account for sloppy nodes" 2011-02-24 12:19:09 -08:00
Cary Clark
3ecd7db52a center long press to account for sloppy nodes
If a tap is close to, but not on a node, slop allows the tap
to find the node. Pass the slop-corrected values to
requestFocusNodeHref() as well.

bug:3412519
Change-Id: I7543354b6270976e1f99518581de23c567432b98
2011-02-24 14:58:23 -05:00
Leon Scroggins
5bf4bb97e0 Merge "Stop the blinking caret when moving to another field." 2011-02-24 11:21:41 -08:00
Shimeng (Simon) Wang
ab85a63317 Merge "Pre-calculate view scale and text wrap scale for webkit." 2011-02-24 10:32:18 -08:00
Shimeng (Simon) Wang
76064644a7 Pre-calculate view scale and text wrap scale for webkit.
In viewport setup time, pre-calculate the more likely view scale
and text wrap scale instead of waiting until ZoomManager's FirstLayout
time.  This is to give webkit better and more correct information, such
as window width/height and inner width/height, when it is doing first layout.

issue: 3382398
Change-Id: I53fb15da43fbede6c03a4f51ec1c50e9a94f0236
2011-02-24 10:27:07 -08:00
Leon Scroggins
b611213ea1 Stop the blinking caret when moving to another field.
Bug:2930013

Requires a change in external/webkit.

Change-Id: Ie768efd02da0afe317c0f93e32148ceb5516a1ec
2011-02-24 13:24:00 -05:00
Kristian Monsen
256d603d11 Merge "Hiding deprecated classes and methods" 2011-02-24 08:02:34 -08:00
Michael Kolb
601e779ae7 make @hide actually hide
Change-Id: I84f09acd551d0dc81081322fbeda883d271f8256
2011-02-23 17:43:16 -08:00
Michael Kolb
75a03f9a3c use getTitleHeight for measuring
Bug: 3473996
    change getTitleHeight to be protected so that subclass
    can override it
    use getTitleHeight for rendering
    use getHeight for clipping

Change-Id: I6e9a85d88eba176886e53b260d02082d26b410d8
2011-02-23 17:01:38 -08:00
John Reck
ab5901dab2 Add x- header to prevent url logging in incognito
Bug: 3336575

Change-Id: I4a65242405d731f74c676382a810f608afcaad39
2011-02-23 16:42:10 -08:00
Kristian Monsen
f0d9731313 Hiding deprecated classes and methods
These have been deprecated for more than a yearm so hiding them.

Note that this CL was approved in honeycomb, but moved to MR1:
https://android-git.corp.google.com/g/#change,89487
2011-02-23 23:07:42 +00:00
Leon Scroggins
af5b406ad6 New flag to open intent in a new tab.
Bug:3405773

Change-Id: I363bfbfee90e98cd1e6a57452e599a79637a8555
2011-02-23 10:46:35 -05:00
Patrick Scott
e835fd7212 Merge "Scroll layers on touch events." 2011-02-22 11:06:02 -08:00
Cary Clark
e9290826db don't scale nav slop when zooming
Map the nav slop from device dimensions to content dimensions
so that the nav slop is not scaled when the screen is zoomed.

bug:3465598
Change-Id: I764e7d0ef59107f3f8b3781744df532dd45005b6
2011-02-22 13:20:56 -05:00
Patrick Scott
cfa734a359 Scroll layers on touch events.
Send the LayerAndroid unique id and the current scroll rect during motion up
events and all touch events.

Bug: 3442108
Change-Id: I09a18ded7b7ce15984f61a329b2666f7cfadd0dc
2011-02-22 11:19:02 -05:00
Kristian Monsen
8842b5cc10 Turning on debug logs temporary for bug 3424424
Change-Id: Ic911a244e48312b566e6bcad2f635cc85075d897
2011-02-21 15:19:54 +00:00
Kristian Monsen
3e826c99b9 Part of fix for bug 3424424 Browser hanging
Not calling redundant android stack cookie code when the chrome
stack is enabled.

Change-Id: I6faea89295e0cae02f5aa19a6ddeec43a4b73a44
2011-02-21 15:19:54 +00:00
Shimeng (Simon) Wang
f7107d7e78 A method refactoring and a simple rounding fix.
issue: 3382398
Change-Id: I3b43c6e4954b5040a266da60c9a97314f1a5b91f
2011-02-18 15:30:34 -08:00
Shimeng (Simon) Wang
10d63fada8 Merge "Make sure zoom width is changed before fit-to-screen." 2011-02-18 09:50:11 -08:00
Shimeng (Simon) Wang
a05fa96834 Make sure zoom width is changed before fit-to-screen.
issue: 3466509
Change-Id: I7cdb9544fcb3f261ebd0a831ab4a5cd685c5fc77
2011-02-18 09:31:59 -08:00
Cary Clark
43f608f928 don't start long press when selecting text
The timers to initiate short press and long press shouldn't
be started if text is selected. Since these presses won't
provide any feedback (e.g., the context menu doesn't show
up), with them disabled, the long press can turn into a
drag.

bug:3440375
Change-Id: I019796334a8f3090922747ae3c9e21d3b87b4a3c
2011-02-18 12:10:08 -05:00
Ben Murdoch
42509799f2 Fix crash downloading posters for HTML5 video.
We use the apache HTTP stack to download the poster images
for HTML5 video. This will crash if there is no host to use
as the "Host" header when making the request. Limit the java
poster downloader to just http or https for now. WebKit seems
able to display posters over other schemes like file://, but
doesn't always get the dimensions right. This fix just stops
us crashing.

Bug: 3180037
Change-Id: Idf51efda5b9ca1f2fe373c1fdb9c6bb7d5e254c8
2011-02-18 14:37:15 +00:00
Shimeng (Simon) Wang
88196e38ed Merge "Reset initial zoom overview state when user takes zoom action." 2011-02-17 17:47:15 -08:00
Shimeng (Simon) Wang
459c423956 Reset initial zoom overview state when user takes zoom action.
This will prevent wrong fit-to-screen when a new picture comes.

issue: 3466509
Change-Id: I37d5509190766ba16665527bbdef968bddff8915
2011-02-17 15:02:34 -08:00
Leon Scroggins
defba0cabe Only give WebTextView keys if it has focus.
Bug:3460690
Change-Id: Iab82dc2c6e07a83062338ede8428e9d81ef0b949
2011-02-17 13:51:50 -05:00
Leon Scroggins
90e711670a Merge "Keep track of which keys are pressed." 2011-02-17 10:24:54 -08:00
Shimeng (Simon) Wang
572c4a7dba Merge "Fine tune the zoom overview behavior." 2011-02-17 09:55:36 -08:00
Leon Scroggins
115626a656 Keep track of which keys are pressed.
Bug:3460798

Rather than using a boolean which may not work properly,
keep track of which keys are pressed and handle up for
each key that was pressed.

Change-Id: I381bf617d1752aa194d9d8e8cf8380f9a87fc334
2011-02-17 12:45:21 -05:00
Shimeng (Simon) Wang
d75fd491ea Fine tune the zoom overview behavior.
issue: 3451476
Change-Id: Idc267979ae0b33f4f2fbcb9aab7739bdd1dc1eff
2011-02-17 09:32:23 -08:00
Kristian Monsen
7d63771204 Merge "Updated from comments to previous change after submitting" 2011-02-17 08:47:41 -08:00
Teng-Hui Zhu
8c5d38f85e Merge "Adding a debug setting to enable visual indicator for GL" 2011-02-16 15:13:24 -08:00
John Reck
0f2df4a63e Merge "Adds localization support for incognito start page" 2011-02-16 15:05:04 -08:00
John Reck
d6662b5eb7 Adds localization support for incognito start page
Bug: 3460867
 This change has BrowserFrame intercept browser:incognito URLs to
 provide a localized version of them. It also adds a spanish
 translation for the page.

Change-Id: I888453d895ea1047544a09ba7f23645e2746bea6
2011-02-16 14:43:31 -08:00
Teng-Hui Zhu
da7378e86e Adding a debug setting to enable visual indicator for GL
[This is the WebView part]
  The idea is to turn on the visual indicator without building the code.

  The implementation included:
  1. Setup the UI on browser side to check whether or not this is enabled.
  2. Transfer the info from browser setting to web setting.
  3. Send this info down from WebView to webkit.
  4. In the webkit, we save this info in TilesManager.
  5. At texture generation time, we query this info to decide whether or
     not add the visual indicator on the texture.

  One design decision we made is we don't want to restart the browser for
  debugging purpose. This is better preserving the browser current activity,
  the only pitfall is that the visual indicator is NOT updated on different
  textures simultaneously.

  The corresponding browser change is: #change,97058
  The dependent webkit change is: #change,97052

bug:3458721

Change-Id: I34a0514048df61b414c3386b292f2586efbde74e
2011-02-16 14:35:28 -08:00
Shimeng (Simon) Wang
96b065f001 Remember zoom overview state since the postscale callback is async.
issue: 3451476
Change-Id: I56eaeff4e35f8a791b990fcdd1188ca6cdef601a
2011-02-16 10:38:21 -08:00
Shimeng (Simon) Wang
0f7c903aa1 Merge "Fit to screen for the first new picture with enough different width." 2011-02-16 09:28:16 -08:00
Kristian Monsen
8beb86c043 Updated from comments to previous change after submitting
Previous change:
https://android-git.corp.google.com/g/#change,91471

This change was to fix bug 3270236

Change-Id: I7dc3179a55420d3383647e2bd50d4766dd21231b
2011-02-16 11:32:56 +00:00
Shimeng (Simon) Wang
7c6aaf062b Fit to screen for the first new picture with enough different width.
This is to fix cases where the content width is keep changing due to
animation, such as 2011 google io site.

issue: 3451476
Change-Id: I8b1ba27a34e37a18116131ecc60391975ef75788
2011-02-15 18:08:30 -08:00
Shimeng (Simon) Wang
a94e0c8651 Merge "Keep overview mode when screen is rotated." 2011-02-15 11:52:16 -08:00
Shimeng (Simon) Wang
a5b3d807a1 Keep overview mode when screen is rotated.
issue: 3385613
Change-Id: I49ba8dbdfe72adb1df5e453d7c95ec107e0d3e75
2011-02-15 11:14:57 -08:00
Shimeng (Simon) Wang
0a20767f61 Merge "Keep mobile site's text wrap scale unchanged." 2011-02-15 10:12:29 -08:00