Commit Graph

851 Commits

Author SHA1 Message Date
Grace Kloba
28ca72e9b9 am 3c8c6919: am bd17156f: am 85a8dcec: Merge "Only honor the scrollbar mode at the minimum zoom level. This reduced the impact of https://android-git.corp.google.com/g/#change,48683. In GB, we need to revisit this issue." into froyo 2010-04-26 10:11:27 -07:00
Ben Murdoch
fc0bcdd92a If the user performed a very quick touch sequence without a response
from WebCore, then we would enter the ACTION_UP handler and cancel
pending touch events in WebCore's message queue. This cancellation
was orginally needed for Flash but the touch model for Flash has now changed
and it's no longer necessary. In the case of the layout test controller
the events do come very fast, and we were hitting this case so
WebCore was losing the events that got cancelled meaning that the
JS touch callbacks weren't getting invoked.

This was exposed by fast/events/basic-single-touch-events.html.

Change-Id: Icea09fb55a5b77f7ab9c19473cfa5ae272867a9a
2010-04-23 16:24:04 -07:00
Grace Kloba
0653d22f62 Only honor the scrollbar mode at the minimum zoom
level. This reduced the impact of https://android-git.corp.google.com/g/#change,48683.
In GB, we need to revisit this issue.

Wit this CL, http://b/issue?id=2512549 is still fine.

Fix http://b/issue?id=2619398
It should fix http://b/issue?id=2619415 when it is not in zoom out case.
It doesn't fix http://b/issue?id=2620979 as the site
is a mobile site. We have conflict with the requirement
from http://b/issue?id=2512549
2010-04-23 15:21:24 -07:00
Leon Scroggins
da3e835ce5 am 39837c5a: am 986a0380: am 69ec5c22: Remove the WebTextView if it is drawing when it shouldn\'t. 2010-04-22 14:36:10 -07:00
Leon Scroggins
69ec5c22d0 Remove the WebTextView if it is drawing when it shouldn't.
Bug 2614064

Change-Id: Id5d0a27e862bb783299f6fa4863221a27318f52c
2010-04-22 17:09:24 -04:00
Grace Kloba
9c7686b9a6 am dbfd5e25: am 627728d2: am a6ece18d: Merge "Added the subset of partial content support so that we can continue the interrupted request to support streaming the content even with a brief disconnection." into froyo 2010-04-22 13:36:56 -07:00
Grace Kloba
0b11f7ae80 am 204eca64: am b42b5a6e: am 2fba6d1c: Merge "Post a message to set SurfaceView to be visible when we switch to use the layout size. Otherwise it will first use the old dimension which can exceed the limit, which in turn causes the Browser to crash." into froyo 2010-04-22 13:36:34 -07:00
Grace Kloba
a6ece18d95 Merge "Added the subset of partial content support so that we can continue the interrupted request to support streaming the content even with a brief disconnection." into froyo 2010-04-22 13:01:55 -07:00
Grace Kloba
52e41583f5 Added the subset of partial content support so that
we can continue the interrupted request to support
streaming the content even with a brief disconnection.

Note: we don't update the headers for partial content
as the headers we care should not be updated. See
a list in chromium/net/http/http_response_headers.cc.

We currently also don't support cache for partial content.

Fix http://b/issue?id=2616477
2010-04-22 09:51:18 -07:00
Grace Kloba
8aedd10aca Post a message to set SurfaceView to be visible when
we switch to use the layout size. Otherwise it will
first use the old dimension which can exceed the 
limit, which in turn causes the Browser to crash.

Fix http://b/issue?id=2616263
2010-04-21 21:23:30 -07:00
Leon Scroggins III
901a7c230c Remove call to rebuildWebTextView from handling selection change.
The call was originally added to fix bug 2431351, where touching
a <textarea> sent a message with the new selection, but the UI
thread had not yet updated the WebTextView, so the new selection
was ignored.  However, since then,
https://android-git.corp.google.com/g/#change,45476 was submitted
to pass the selection and open the keyboard at the same time. So
when UPDATE_TEXT_SELECTION_MSG_ID is received, we no longer need
to worry about the case where the WebTextView is not set up yet.

Bug 2600847

Change-Id: I19eb102a7188e6edafaa5ac17b19ebd4ab5764f0
2010-04-21 12:37:39 -04:00
Leon Scroggins III
b24e18b1c0 Update mTextGeneration when setting the selection to the default.
Bug 2610682

Change-Id: Ib3b95cd9443ef31a6c736cdac076260b4f3bbe71
2010-04-21 12:13:49 -04:00
Nicolas Roard
f343a043ef Speed up layers rendering when using animations
Cherry-pick from master

Bug:2522049
Change-Id: I441f00b6e7551930c4f76983681f4cd0c57ce017
2010-04-20 12:05:39 -07:00
Grace Kloba
7da0c067b8 am 20fa839d: am 19fa6d45: am 738a0460: Merge "Don\'t inflate the zoom button controller until we are going to show it. This should shave 5% of Browser start up time on Sapphire." into froyo 2010-04-20 11:53:01 -07:00
Nicolas Roard
cc2c842053 Speed up layers rendering when using animations
Bug:2522049
Change-Id: Ib3a79a10d46a234343207f27d6e74587e74be493
2010-04-20 11:47:14 -07:00
Grace Kloba
f4c66efa20 Don't inflate the zoom button controller until we
are going to show it. This should shave 5% of Browser
start up time on Sapphire.

Fix http://b/issue?id=2604295
2010-04-20 11:23:50 -07:00
Grace Kloba
9a6c37a522 am fcc08fb8: am 8831d4dc: am 8f655cb6: Merge "Update the comment which supposed to be checked in in the last CL." into froyo 2010-04-19 16:26:50 -07:00
Grace Kloba
8f655cb6c8 Merge "Update the comment which supposed to be checked in in the last CL." into froyo 2010-04-19 16:11:21 -07:00
Grace Kloba
f706ef857b Update the comment which supposed to be checked in
in the last CL.

Fix http://b/issue?id=2607352
2010-04-19 16:05:19 -07:00
Grace Kloba
53be241f73 am 4a77f9e9: am e3ce4c89: am 2dc78498: Merge "Remove fixed size restriction on the SurfaceView before setting it to the full screen content view." into froyo 2010-04-19 13:27:44 -07:00
Grace Kloba
2dc784988a Merge "Remove fixed size restriction on the SurfaceView before setting it to the full screen content view." into froyo 2010-04-19 13:14:21 -07:00
Grace Kloba
4ead13caa3 am e5afb10c: am 66fa5cc7: am 99c5179f: Merge "Force redraw in touch_up if there is a move." into froyo 2010-04-19 12:35:57 -07:00
Grace Kloba
6edb3792d8 Remove fixed size restriction on the SurfaceView
before setting it to the full screen content view.

Fix http://b/issue?id=2607352
2010-04-19 12:14:17 -07:00
Grace Kloba
c36862d53a Force redraw in touch_up if there is a move.
Fix http://b/issue?id=2606815
2010-04-19 10:16:42 -07:00
Grace Kloba
5a2e428ce8 am eb94c44c: am 17e36d23: am 3c44db3f: Merge "Missed a case to resumeUpdatePicture." into froyo 2010-04-16 17:22:51 -07:00
Grace Kloba
aa373c9868 Missed a case to resumeUpdatePicture.
Fix http://b/issue?id=2603882
2010-04-16 15:49:36 -07:00
Mike Reed
6758a1dd6b am 3edf3a56: am e0a40686: am f066611a: retool resize logic to use max dimension and max area. 2010-04-16 12:35:26 -07:00
Mike Reed
f066611aab retool resize logic to use max dimension and max area.
Change-Id: I32446b41afe9e7c241868c0cb7b9b7d9056b2d38
http://b/issue?id=2598253
2010-04-16 15:19:02 -04:00
Leon Scroggins III
ae9f8e4abd Request focus when MotionEvent.ACTION_UP is received.
Bug 2585857

Change-Id: I2e852d2225db4d1ba48815354a31e0823e4d3a8d
2010-04-16 09:23:08 -04:00
Shimeng (Simon) Wang
62d8a0f8a9 Merge "Convert obsolete language codes to new standards in Accept-Language and User-Agent." 2010-04-15 14:36:28 -07:00
Shimeng (Simon) Wang
0e4cb9d89f Convert obsolete language codes to new standards in Accept-Language and User-Agent.
Bug:2593415
Change-Id: I6b0bd161a0a2222da6ab7812614c1ba03d8c22eb
2010-04-15 14:25:49 -07:00
Grace Kloba
bf07bc932b am 8579f211: am e35a45b7: am 8a878dde: Merge "Pass WebKit scrollbar mode to Java. When scrollbar is alwaysOff, don\'t trigger scroll." into froyo 2010-04-15 12:33:26 -07:00
Leon Scroggins III
dfbb1f4209 Call InputMethodManager.updateSelection at draw time.
Bug 2499860

Change-Id: Ie0b2a16c12ba59d30e3de5b614753e93b526d8cc
2010-04-15 11:14:32 -04:00
Andrei Popescu
7a8a91d1b0 am 0476f7a0: am 6083f5eb: am 01e3feaf: Merge "Make sure the onended event is dispatched even when the user dismisses the video before it plays to completion." into froyo 2010-04-15 06:38:29 -07:00
Leon Scroggins
67329aa3ec am 7ba155bf: am 876a5dfe: am b2212464: Merge "Ensure the selection does not change in setTextAndKeepSelection." into froyo 2010-04-15 06:37:43 -07:00
Kristian Monsen
c8c5363df3 am d2688cb1: am a18df134: am d503a152: Merge "Fix for 2585858, load invalid urls." into froyo 2010-04-15 06:37:33 -07:00
Kristian Monsen
42ae4885ed am 11d60e0b: am 3e360000: am 53c0c0da: Merge "Fix (again) for bug 2558156, update cache encoding correctly" into froyo 2010-04-15 06:37:21 -07:00
Grace Kloba
8a878dde9d Merge "Pass WebKit scrollbar mode to Java. When scrollbar is alwaysOff, don't trigger scroll." into froyo 2010-04-14 12:44:05 -07:00
Andrei Popescu
c4fbceb57b Make sure the onended event is dispatched even when
the user dismisses the video before it plays to completion.

Fix bug: 2533272

Change-Id: I73f216f4f416f5fdca0bbba2244b88666f8f6eac
2010-04-14 17:31:17 +01:00
Leon Scroggins
b2212464a3 Merge "Ensure the selection does not change in setTextAndKeepSelection." into froyo 2010-04-14 06:42:20 -07:00
Kristian Monsen
d503a1524a Merge "Fix for 2585858, load invalid urls." into froyo 2010-04-14 02:22:18 -07:00
Kristian Monsen
53c0c0daf4 Merge "Fix (again) for bug 2558156, update cache encoding correctly" into froyo 2010-04-14 02:22:05 -07:00
Grace Kloba
50004bcd4b Pass WebKit scrollbar mode to Java. When scrollbar
is alwaysOff, don't trigger scroll.

If there is no horizontal and vertical scrollbar,
don't trigger the zoom control neither.

Fix http://b/issue?id=2512549
2010-04-13 22:58:51 -07:00
Grace Kloba
102ed89dbc If we defer processing the touch events, pass the
original view coordinate with TouchEventData and use
them when we reprocess the events. We can't depend
on contentToView() to convert the doc point to the
view point. When we originally convert the view to
doc, the scroll position in UI doesn't change. When
we convert the doc back to view, we are chasing a
moving target. That is why we saw bigger delta.

Fix  http://b/issue?id=2577274
2010-04-13 16:27:41 -07:00
Grace Kloba
d40746b13d am 105c58de: am 346c97c4: am 58af51a1: am 763e62a8: Fix a case introduced by https://android-git.corp.google.com/g/#change,47640 2010-04-13 16:24:42 -07:00
Leon Scroggins
3fcf486359 Ensure the selection does not change in setTextAndKeepSelection.
Bug: 2589778
Change-Id: I72752797003216fdd12cebffbdf4cd9ffbf523e1
2010-04-13 15:08:18 -04:00
Steve Howard
16bd9372ee Hide zoom buttons when a view gets hidden, i.e. by a TabHost
When a View uses a ZoomButtonsController, it needs to explicitly hide
the zoom controls when it gets hidden itself, such as when it's within
a TabHost.  Add a note to the javadoc to do this via
onVisibilityChanged(), and update WebView to follow the instructions.

Thanks to Ross Levinsky for discovering and tracking this one down.

Bug: 2582718
Change-Id: Ia0c9ea4efcb29eb1f321be54f3d8ae1e056df6b7
CC: rosslevinsky@google.com
2010-04-13 11:55:02 -07:00
Grace Kloba
763e62a831 Fix a case introduced by https://android-git.corp.google.com/g/#change,47640
We skipped a call to WebKit at the end of the zoom
animation in the last CL.

Fix http://b/issue?id=2578820
2010-04-13 11:35:10 -07:00
Kristian Monsen
b2d95503fd Fix for 2585858, load invalid urls.
The browser currently does not try to load invalid urls, that can be a problem. Now we only check if the host is correctly encoded.

Change-Id: Ie7380c59d4faab68a2f957e7f1ba8347e15e45a1
2010-04-13 16:48:32 +01:00
Patrick Scott
36acfbc2b8 Add a bulk request method for bookmark icons.
Rather than dispatch a message for every url in the db, send a message to the
WebCoreThread to handle the query and iteration.  Update the documentation for
requestAllIcons.

Bug: 2581894
Change-Id: I8af4f87570465dff3839db4ac492883e8805b007
2010-04-12 14:26:13 -04:00