Commit Graph

1547 Commits

Author SHA1 Message Date
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
Teng-Hui Zhu
53a3081bd9 Merge "WebView's scrollBarStyle need to be set at init" 2011-02-14 17:23:58 -08:00
Teng-Hui Zhu
15bfa5358e WebView's scrollBarStyle need to be set at init
At initialization time of WebView, the View's scrollBarStyle is set
according to the xml file.
But WebView didn't pick that info up to specialize its own variable.

The fix is to call WebView's setScrollBarStyle according to the View's
ScrollBarStyle at the init() time.
This will help Gmail to pick up the scrollBarStyle from xml file
correctly.

bug:3409308

Change-Id: I3792b12a36bd989b6c31e0054ebacce4269300da
2011-02-14 17:05:47 -08:00
Shimeng (Simon) Wang
a7699fea04 Keep mobile site's text wrap scale unchanged.
issue: 3376306
Change-Id: Ifce67215486f09eadb34c30c085b0e502a5a8b05
2011-02-14 16:44:08 -08:00
Michael Kolb
28dcdd77ed Merge "Add title bar gravity" 2011-02-14 10:26:55 -08:00
Cary Clark
03f0022518 delay action CAB until word select succeeds
bug:3442865
Change-Id: Ic13ac7abfe43b9b6d9ec1444a960ba24ed444855
2011-02-14 09:20:12 -05:00
Leon Scroggins
03e0119c93 Do not show the dropdown unless there is something to show.
Bug:3427152
Change-Id: I2f0c36193f762085c2e1e7036387ff04f6f259d0
2011-02-11 10:19:22 -05:00
Michael Kolb
c4ca53fedf Add title bar gravity
Enable rendering of the embedded title bar
    at the top of the page or
    at the top of the screen

Change-Id: Ic979b641c8cc80acb83eeab49c4f700fc5c50e72
2011-02-10 15:51:20 -08:00
Shimeng (Simon) Wang
a22a011fab Merge "Don't send scroll events in case of new picture from webkit." 2011-02-10 15:07:07 -08:00
Huahui Wu
36d2823e57 Merge "b/3416864 Send the cert info from Native to Java side." 2011-02-10 15:00:23 -08:00
Shimeng (Simon) Wang
c566185c70 Don't send scroll events in case of new picture from webkit.
When user goes back to a page, the new picture may potentially cause
a scroll event which overrides the history scroll position, since
the scroll position may be bigger than the initial new picture.

Setting the scroll event to be not-user-scrolled will preserve the
history scroll position.

issue: 3433562
Change-Id: Ida176a4bc3a22de0385aed71e11f8b8e0db06f24
2011-02-10 14:50:05 -08:00
Huahui Wu
c56c3e262c b/3416864 Send the cert info from Native to Java side.
Change-Id: Ib4f045f0dd58d85b329eae972c4a4a61ee95f078
2011-02-10 14:40:50 -08:00
Steve Block
6dfef1b86d Merge "Adds CookieManager methods to configure policy for cookies for file scheme URLs" 2011-02-10 13:59:09 -08:00
Cary Clark
1477b8f34d only allow dpad center for key long press
Holding down the enter key on a physical keyboard
doesn't make sense to map to long press; the desktop
doesn't work that way either.

bug:3344108
Change-Id: Icf02940dcadf194357b680ae1e3028751d16a1ea
2011-02-09 19:33:00 -05:00
Patrick Scott
fa8be1cccc Call window.onscroll event at the end of scrolling.
Remove some old cruft code that isn't necessary anymore.  We almost always send
the scroll event to webkit except when restoring the scroll position when going
back.

I have verified that the scroll position is restored when going between pages
and that gmail receives the final scroll position.

Bug: 3187015
Change-Id: I0b1dfd1096d44247729bdd13bdad908310c2f19a
2011-02-09 12:42:55 -05:00
Shimeng (Simon) Wang
6a0b5ca114 Fix bug: use content height instead of view height.
issue: 3396895
Change-Id: I3012fa2c48d3e215d5b877ac525fdba89c0f9251
2011-02-08 10:19:53 -08:00
Shimeng (Simon) Wang
ae7272d8cb Merge "Send actual view height to webkit for window.innerHeight." 2011-02-07 15:30:52 -08:00
Patrick Scott
f01e3b5b8f am 01b7a98c: am 160c18a4: Merge "Need a public way to wait for cookie operations." into honeycomb
* commit '01b7a98c31f3d4587fb6739c8c6b35530177c20c':
  Need a public way to wait for cookie operations.
2011-02-07 13:44:41 -08:00
Patrick Scott
01b7a98c31 am 160c18a4: Merge "Need a public way to wait for cookie operations." into honeycomb
* commit '160c18a4d209f56766fdd90e4711c8e29fd407e6':
  Need a public way to wait for cookie operations.
2011-02-04 11:22:41 -08:00
Shimeng (Simon) Wang
48fc9097cc Send actual view height to webkit for window.innerHeight.
Currently only fixed height is sent over to webkit, which is to
avoid relayout when url bar is being scrolled.
And this fixed height is used also as the visible height and shown up
as window.innerheight, which is not correct.

This change sends the actual view height as the screen height to
webkit, so window.innerheight is correct.  This may potentially
help fixed elments in a page's bottom.  The relayout is still avoided
as before.

issue: 3396895
Change-Id: I0426a7d6dc76a823d8d26943a92689f49026fba8
2011-02-04 10:57:54 -08:00
Patrick Scott
b88e52c760 Need a public way to wait for cookie operations.
Hidden for now as we are past the public api deadline.

Bug: 3421214
Change-Id: I8a65ae479d0b8b020af2600d7d29d5d358414add
2011-02-04 12:52:46 -05:00
Leon Scroggins
2f7fa83507 Save form data when submitted.
Bug:3280725

Save form data when submitted, rather than when a page
loads.

Requires a change in external/webkit.

Change-Id: I3ff9515ef9e9ab28992cdc8a7beb537752ed1e8c
2011-02-04 11:43:19 -05:00
Cary Clark
39530f8fc7 am 859563eb: am aa7dc928: Merge "stop GL drawing thread before killing WebCore" into honeycomb
* commit '859563ebf7edbb6d556ef10bac7315fdc564e73a':
  stop GL drawing thread before killing WebCore
2011-02-03 17:17:45 -08:00
Shimeng (Simon) Wang
4eb02a13b3 Merge "Use more accurate height/width ratio." 2011-02-03 11:44:06 -08:00
Shimeng (Simon) Wang
a0cc8642cc Use more accurate height/width ratio.
When calculating the view height, use more accurate height/width
ratio, instead of the second hand ratio after height and width
are calculated and rounded.

This prevents the height value to be fluctuated by 1 sometimes
when zooming.

issue: 3385757
Change-Id: I08bf5478ae8b8fd799df892e19f450cb558d8b7f
2011-02-03 10:24:03 -08:00
Cary Clark
859563ebf7 am aa7dc928: Merge "stop GL drawing thread before killing WebCore" into honeycomb
* commit 'aa7dc92838f4e3d423b2a738f54de9b83f83794b':
  stop GL drawing thread before killing WebCore
2011-02-03 08:52:21 -08:00
Cary Clark
aa7dc92838 Merge "stop GL drawing thread before killing WebCore" into honeycomb 2011-02-03 08:48:24 -08:00
Cary Clark
d9fd857ca9 stop GL drawing thread before killing WebCore
The TexturesGenerator thread references pictures owned by the
WebCore thread, so must be stopped before the WebCore thread
is deleted.

Requires a companion change in external/webkit

bug:3406185
Change-Id: I5b2f8b3b52367b05301c76e5bd22a95fcd0338d5
2011-02-03 05:37:04 -05:00