Commit Graph

1965 Commits

Author SHA1 Message Date
John Reck
c99e447ea7 Don't switch to handle drag mode when starting selection
Bug: 5327408

Change-Id: Ibda37b1a661d9cdc80a86bc16488178b69fac4a2
2011-09-16 13:23:43 -07:00
John Reck
5dd1916c24 Merge "Fix text selection drawing on SW" 2011-09-16 10:39:16 -07:00
John Reck
57efcffc7f Fix text selection drawing on SW
Bug: 5312770
 Helps if you actually draw stuff...

Change-Id: I5ab8cd0726cac77a91fb476c7db0873132ba91d9
2011-09-15 13:52:38 -07:00
John Reck
5540abcdef DO NOT MERGE Fix finalization
Bug: 5321358
 Destroy does run with this. Ideally we should get rid of the need
 to run this on the UI thread at all. GL destroy should instead
 take place when the view is detached or something like that.

 Cherry picked from master

Change-Id: I693ce83cd607186173d8cf58485c5df28004e52c
2011-09-15 11:08:00 -07:00
Adam Powell
ad804e34b9 Fix bug 5321195 - Starting WebView text selection with long press does
not invoke haptic feedback

Change-Id: I6ba6b7e5b0ecedf721ab6d1bf87d7d2a92dc7200
2011-09-14 19:11:08 -07:00
Adam Powell
f4f520ae9f Fix bug 5314559 - Slow menu scrolling in browser on some devices
nativeSetIsScrolling has other side effects. Just pause picture
updating when WebView loses focus.

Change-Id: I917851c806f35a91a12a25c7457712123669384f
2011-09-13 20:16:32 -07:00
John Reck
d4fdc0f562 Merge "Prevent pause/resuming a destroyed WebViewCore" 2011-09-13 17:23:11 -07:00
Adam Powell
911d63d159 Merge "Fix bug 5309557 - Monkeys and SIGSEGV do not mix!" 2011-09-13 17:15:46 -07:00
Adam Powell
cc2264fe47 Fix bug 5309557 - Monkeys and SIGSEGV do not mix!
Make sure that the native component of WebView has been initialized
before any native-level optimization involving window focus occurs.

Change-Id: I24ca5fe21657aeb1a1faf5bc36fba5ea11064f86
2011-09-13 16:11:29 -07:00
John Reck
2f4d30a2a6 Prevent pause/resuming a destroyed WebViewCore
Bug: 5246901

Change-Id: I697cd26b74ffb0584bb992d8caa6bae1e6eee0fd
2011-09-13 15:50:41 -07:00
John Reck
b9376464ab Make sure the finalizer destroy runs on the UI thread
Bug: 5208786
 The finalizer runs on its own thread, but destroy must be called
 on the UI thread

Change-Id: I01ddd675b8aea49aa4e212693551e808a83e45d5
2011-09-13 14:38:22 -07:00
Adam Powell
e00e8a7837 Pause WebKit drawing when WebView loses window focus.
This prevents animations and other live page content from consuming
too many resources while the user is interacting with a popup window.

Bug 5300522

Change-Id: I40fb6d16d56b540c431172052a1ae7fead7109be
2011-09-12 18:04:00 -07:00
Mangesh Ghiware
fa0d2316f9 Merge "On zoom to overview, reflow text, if necessary." 2011-09-12 09:46:49 -07:00
Mangesh Ghiware
886b372b52 On zoom to overview, reflow text, if necessary.
Reset the text wrap scale to the correct value (i.e., reading level
scale) on zoom to overview. This addresses the scenario where text is
wrapped at a larger scale following a pinch zoom and double tap to
reflow.

Bug: 5254253
Change-Id: I57f706ef4254dd3f194cc35f109dd48b61b72f73
2011-09-09 16:22:51 -07:00
Ben Murdoch
2376f8253f Relax form autocomplete conditions
Use the URL host and path rather than the complete url to store
form autocomplete data. This helps in the situation that a site
uses some dynamic query string on the page that contains the form.

Also set the autoocmplete threshold to 1 so that we don't flick the
autocomplete options up and down as you type the first few characters.

Bug: 5265606
Change-Id: I7b372400062ae34f70a78b786007910dc179b101
2011-09-09 22:38:39 +01:00
Teng-Hui Zhu
a4248f6932 Merge "Don't sleep when inline video start" 2011-09-08 15:41:54 -07:00
Teng-Hui Zhu
690ad54090 Don't sleep when inline video start
bug:4563692

Change-Id: I0174403e3f78b5a637500fbaaf7f9219efe0cbc8
2011-09-08 14:36:33 -07:00
John Reck
606ce48ba2 Merge "Register to receive onTrimMemory callbacks" 2011-09-07 15:47:30 -07:00
John Reck
d5417040be Merge "OnTrimMemory plumbing" 2011-09-07 14:26:47 -07:00
John Reck
34a676bd08 Register to receive onTrimMemory callbacks
Bug: 5269460

Change-Id: Ic2429af1ba0b6e86157f6ba16d420d10c17920e5
2011-09-07 13:41:17 -07:00
John Reck
faa42dbede OnTrimMemory plumbing
Bug: 5269460

Change-Id: I012e2eb077c3671b856d0163de6b10ad7bd4d577
2011-09-07 13:16:58 -07:00
Kristian Monsen
9041d9254e Fix for bug 5100096 Repeated Security Waring
Only giving the host to SslError.

Change-Id: I6112643cf25293348ff20193e67da5f52063ffa2
2011-09-07 01:37:02 +01:00
Chris Craik
e2f3aee9d5 Notify native that scrolling has stopped correctly
bug:5255022
bug:5218838

When the view starts scrolling, we tell native so it can block updates until the
view stops scrolling. This change fixes an issue where wouldn't tell native that
we stopped scrolling because the view didn't have room to move.

Change-Id: I5f2eec31493570937f7b8b2992a85283de06fb60
2011-09-02 18:47:19 -07:00
Mangesh Ghiware
5afd2bd02a Merge "Set reading level scale to display density instead of a fixed minimum." 2011-09-02 11:14:14 -07:00
Kristian Monsen
ff7130288f Merge "Close idle connections on pause timers" 2011-09-01 20:30:19 -07:00
Kristian Monsen
64decc6082 Close idle connections on pause timers
Part of fix for bug 4487538 Current Drain

Change-Id: Ie957321d11ee3a94a5549aebb5be6e3cb444ebcf
2011-09-02 01:50:04 +01:00
John Reck
f9fa8be5e3 Merge "Prevent serialization after being destroyed" 2011-09-01 13:48:42 -07:00
John Reck
b71fe052ab Merge "Fix destroy race condition" 2011-09-01 13:47:50 -07:00
John Reck
0aadeca6cc Merge "Partial rollback of I9ebc92dc" 2011-09-01 13:46:03 -07:00
John Reck
45576fae46 Fix destroy race condition
Bug: 5246901

Change-Id: I97a211b23afb17314d7a37779593556529be7e32
2011-09-01 11:50:19 -07:00
John Reck
90afe21dbb Prevent serialization after being destroyed
Bug: 5246900

Change-Id: Ic0be139b26e1b52203b8d0286c12175df6a1a46c
2011-09-01 11:39:37 -07:00
John Reck
39bb698cd2 Partial rollback of I9ebc92dc
Bug: 5239166
 Turns out nativeRecordButtons is necessary even if we are not
 using the native selection rings.

Change-Id: I8e7713928b77c0098640b51ce8e8815dad0c9545
2011-09-01 11:05:03 -07:00
Mangesh Ghiware
b5f9fc32ec Set reading level scale to display density instead of a fixed minimum.
On a double tap, zoom to either reading level scale or 0.5f more than
current (overview) scale, whichever is greater. This addresses the
scenario for large screen devices where overview and reading level scale
are the same.

Bug: 5165527
Change-Id: I50216d60f98b2904f06742336b9c8c7c512328a6
2011-09-01 10:49:04 -07:00
Ben Murdoch
ea24a4015a Merge "Preload libchromium_net in addition to libwebcore." 2011-09-01 10:40:29 -07:00
John Reck
6c859576ad Merge "Draw text selection in Java" 2011-09-01 08:43:30 -07:00
Ben Murdoch
492bbe3f7b Preload libchromium_net in addition to libwebcore.
To improve WebView app startup time, preload libchromium_net which
was recently split from libwebcore into its own shared library.

Bug: 5112647
Change-Id: I4417d5a4f8c7783e8fa7b8eaddf89aaeb3693fac
2011-09-01 03:33:43 +01:00
John Reck
086a514e6b Draw text selection in Java
Bug: 5208328
 Bug: 5224394
 Also use framework assets

Change-Id: If704fd7df5aa95648d78e615571d4a2658d29534
2011-08-31 17:09:44 -07:00
Adam Powell
89935e41c5 Make EdgeEffect public API.
This enables apps to make use of the system's visual edge effect used
during overscroll in 2D content.

Also un-@hide the getCurrVelocity methods from Scroller/OverScroller,
without which it becomes cumbersome to obtain values to pass to the
EdgeEffect#onAbsorb method.

Change-Id: I40e452455f5cb5d45d1fb3687f739fc8eae65560
2011-08-31 14:59:19 -07:00
Jamie Gennis
8d102eb672 Merge changes I33f59705,Ia4c8c822,I2fb695ab,I2e587afc
* changes:
  MediaDump: use the MediaPlayer#setSurface method
  HTML5VideoView: switch to MediaPlayer#setSurface
  MediaPlayer: unhide the setSurface method
  Surface: unhide the SurfaceTexture ctor
2011-08-30 14:38:56 -07:00
John Reck
30cca6020d Merge "Fix contentInvalidateAll NPE" 2011-08-29 17:14:11 -07:00
Jamie Gennis
fd8feeef49 HTML5VideoView: switch to MediaPlayer#setSurface
This change updates HTML5VideoView to use the new MediaPlayer#setSurface
method rather than MediaPlayer#setTexture, which is going to be removed.

Change-Id: Ia4c8c822bd4735caf95f3f295485d60f016577c1
2011-08-29 14:33:11 -07:00
John Reck
c87b7705a0 Fix contentInvalidateAll NPE
Bug: 5220835
 It is possible to call setProperty before webcore has initialized.
 In that case, the content invalidate is unnecessary as there is no
 content to invalidate, so just ignore the request.

Change-Id: I52471a1739443ba8f1e514a5908678552246d80b
2011-08-29 11:48:56 -07:00
John Reck
0ba72ad45b Tap highlight fix + small perf increase
Bug: 5229717

Change-Id: I9ebc92dc96d77ff9051517b717d203686b574f7a
2011-08-29 10:29:09 -07:00
John Reck
2c5423da4e Merge "Better touch rects" 2011-08-26 15:31:16 -07:00
John Reck
335f454753 Better touch rects
Bug: 5164486
 Get the focus rings from webkit instead of the navcache
 and draw them in Java.

Change-Id: Ib44d3f6972b3cdbca4d2f0a3034f53d9ae5bb2a8
2011-08-26 15:17:55 -07:00
John Reck
f4565a91a5 Merge "After calling loadData invalidate the content" 2011-08-26 11:15:29 -07:00
John Reck
fb2b9b2695 After calling loadData invalidate the content
Bug: 5205296

Change-Id: I7470faf0b71a769926c007b964987e8bc7a61efb
2011-08-25 15:38:33 -07:00
Chris Craik
58d94af539 actually pause webkit thread, remove costly invalidate
pass isScrolling info to glwebviewstate
pause webkit in a way that doesn't require full inval on resume

depends on change https://android-git.corp.google.com/g/#/c/130210/

bug:5106313
Change-Id: Icbe57e3a163c17c99bd1ea49ab42e40f9d41cc6d
2011-08-25 14:27:44 -07:00
Nicolas Roard
fc8f2ca621 Merge "Modify nativeSetProperty to return a boolean indicating if we need to invalidate the content or not." 2011-08-18 15:45:27 -07:00
Nicolas Roard
872cf224f3 Modify nativeSetProperty to return a boolean indicating if we
need to invalidate the content or not.

corresponding C++ CL: https://android-git.corp.google.com/g/#/c/129130/

bug:5167645
Change-Id: I48a3dd252e2a7ef24f3828e1e2955f86867423dd
2011-08-18 11:53:04 -07:00