Commit Graph

1942 Commits

Author SHA1 Message Date
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
Chris Craik
cb41847901 Removed setExtendedTileBounds
bug:5178457
for real this time
Change-Id: I4f40206d66feb8ddf6fd844e9fe5cce2096317bc
2011-08-18 10:24:16 -07:00
Kristian Monsen
deed89a8d5 Merge "Fix for bug 3429537 Google voice (web version) does not play messages on HC" 2011-08-17 02:41:39 -07:00
Ben Murdoch
f1142b051b Merge "No need to pass an AssetManager to native when creating a WebView" 2011-08-17 02:28:52 -07:00
Huahui Wu
3a81ac4a21 Merge "b/5080166 Enalbe multi-touch on external touch escreen." 2011-08-16 15:09:08 -07:00
Kristian Monsen
9a1b3c9c99 Fix for bug 3429537 Google voice (web version) does not play messages on HC
Sending cookies to the MediaPlayer

Depends on external/webkit CL: https://android-git.corp.google.com/g/#/c/128457/

Change-Id: Ic4929a73eb6eb857a21fe7e745ae15e92420d3d8
2011-08-16 16:53:16 +01:00
Ben Murdoch
4d830071fa No need to pass an AssetManager to native when creating a WebView
See external/webkit change:
Ia6c17634f535ed75b2a0757ac4d53f1a0befb78a

Bug: 5084146
Change-Id: I5a2e87d03d73fa74ebb00c33567783225ed97d3a
2011-08-16 11:10:00 +01:00
Ben Murdoch
2fd1f816cd Merge "Add a function to query the available memory on the device." 2011-08-16 02:11:45 -07:00
John Reck
8b84ac9553 Merge "Remove WebDriver" 2011-08-12 14:20:11 -07:00
John Reck
62e55fc77b Remove WebDriver
Bug: 5155997

Change-Id: I66413032d0be90971fcca2278d96a40d6e221b89
2011-08-12 13:48:20 -07:00
Ben Murdoch
84029a8e06 Add a function to query the available memory on the device.
This function is called over JNI to determine wheter a particular
size of memory allocation will leave us in a low memory state.

Bug: 5142892
Change-Id: I3d0f85075497c2a374cd866b0223eecaaa4b5f46
2011-08-12 17:22:15 +01:00
Ben Murdoch
adf096c852 Increase WebView.TAP_TIMEOUT to 300ms to account for trackpad taps.
Track pad taps will have a duration of 300ms, so we need to take this
into account when handling touch events in the WebView.

Bug: 5076008
Change-Id: Ia0d7ad88637b1f6b85440283ab29086a5f60fdba
2011-08-12 12:47:00 +01:00
Ben Murdoch
3882486dcd Allow fractional and signed input for number fields.
Bug: 5150575
Change-Id: I36f8dd59f630d77ea3f4ef6271f4cbaaaa3df0ad
2011-08-11 11:08:38 +01:00
Ben Murdoch
a7f0ed4620 Add a flag to force suppression of the auth dialog.
Requires external/webkit change:
If8c6f22e8307e1e13b8f7ad29f79305ce24b3255

Requires packages/apps/Browser change:
Id901855830bbe17ede8a18293cff2bbc0aad4ba8

Bug: 5094761
Change-Id: Ida5708aad7cbe5633106e9ae2997c9231aaf95b8
2011-08-05 16:08:52 +01:00
Steve Block
cb484804e0 Merge "In DeviceMotionService, handle the fact that we may receive updates from SensorManager after unregistering." 2011-08-03 10:48:07 -07:00
Steve Block
d09001fea4 In DeviceMotionService, handle the fact that we may receive updates from SensorManager after unregistering.
Bug: 5110230
Change-Id: I9be502538517a094c83d2d1a9073dfaee3b436e7
2011-08-03 14:18:20 +01:00
Chris Craik
555c55ed65 Added automated performance test to TileBenchmark
bug:5062896

Depends on external/webkit change:
https://android-git.corp.google.com/g/#change,125566

Loads pages from SD card, and scrolls through them reporting results. Added
contentInvalidateAll hidden WebView method, and made pageSwapCallback
extensible.

Change-Id: I9f7377aad6fd7c101177dde552a72357c8b4e400
2011-08-02 16:47:21 -07:00
Kristian Monsen
abecca9c60 Merge "Part of fix for bug 4997380: Some error types unknown to SslError" 2011-07-29 12:35:45 -07:00
Derek Sollenberger
ecfeebebff Merge "Add a runtime switch between Raster and Ganesh rendering modes." 2011-07-29 12:34:32 -07:00
Kristian Monsen
0d6c6a73c6 Part of fix for bug 4997380: Some error types unknown to SslError
Use the new SslError chromium error codes parser.

Change-Id: I0b5584bd3f3e042600caebe72f4e41989318cd6a
2011-07-29 20:10:21 +01:00
Chris Craik
5cf78f7bd8 use pageswap callback to sync WebTextView with drawing of page
bug:5008210

Redraw the WebTextView when the page swaps (and thus the background is updated)
That way it updates at (approximately) the same time as the page. In software
rendering, do as before.

Depends on following external/webkit change:
https://android-git.corp.google.com/g/#change,124606

Change-Id: I59d7266a49d0ba734efdb88fef5fafe68aecfbce
2011-07-28 15:42:58 -07:00
Chris Craik
24f2936d35 Merge "Use WebTextView overlay to render text fields/areas much faster" 2011-07-27 15:46:44 -07:00
Chris Craik
e3e7a88b4d Use WebTextView overlay to render text fields/areas much faster
bug:5008210

Still has the following issues:

* colors are always black & white

* ignores centering, word wrap from text area

* gray background text (such as with instant search) and other textfield effects
  aren't shown

The DebugFlags.DRAW_WEBTEXTVIEW can still be used to overlay red text over the
input box.

Change-Id: I7f22321c31b9edbc5351cac13f2e17b0ee19d563
2011-07-27 11:19:14 -07:00
Huahui Wu
3e066c35e8 b/5080166 Enalbe multi-touch on external touch escreen.
Change-Id: I49d44528283a6b47a4caa95bec3c1837f500b004
2011-07-26 13:20:11 -07:00