summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused WebViewCore::isPaused() and setIsPaused()Steve Block2012-05-222-18/+0
| | | | | | | | | The last caller of these methods was removed in I7be5b4224555bc8c3893b75275ac3a997a6677d1. See framework change I9e5c0fd914f53d11e130ffcdc0e749f45dfe4013. Change-Id: Ie645cb657407c34a63e5df6b0ade050f1780a7f0
* Remove the hacks used to suspend and resume the non-client-based Geolocation ↵Steve Block2012-05-221-6/+0
| | | | | | | | | | implementation These forks to WebCore code are not required with the client-based implementation, as we can suspend and resume the client directly. Bug: 6511338 Change-Id: I7be5b4224555bc8c3893b75275ac3a997a6677d1
* Hook up client-based Geolocation mockSteve Block2012-05-223-30/+91
| | | | | | | | | | | | | | | | | | | This simply involves updating GeolocationMock, which is called by DRT from Java, to call the GeolocationClientMock via GeolocationManager, rather than the old GeolocationServiceMock. Note that GeolocationClientMock is tied to a specific page, whereas GeolocationServiceMock had static methods, so we need to pass the WebViewCore from Java. We can now safely exclude the non-client-based files from the build. We pass all Geolocation LayoutTests, except for permission-denied-already-[error|success].html, which are flaky due to https://bugs.webkit.org/show_bug.cgi?id=87033. See corresponding framework change I6d88d5dce5c2148812b191a5b452718bf0854aeb. Bug: 6511338 Change-Id: Ib74a3c05991593e75c3138415d4ac0bf0c9aefa9
* Always call back to new Geolocation requestsSteve Block2012-05-222-3/+29
| | | | | | | | | This change makes sure we always call back to new Geolocation requests, even when other requests are ongoing. Note that it requires an Android-specific change to WebCore to fix https://bugs.webkit.org/show_bug.cgi?id=87030. Bug: 6511338 Change-Id: If46d2ef0eb8e81925ae51ed2e8f2d16a9fa6c997
* Switch to client-based GeolocationSteve Block2012-05-2213-88/+635
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The motivation for this switch is that it is required to enable PREEMPT_GEOLOCATION_PERMISSION. See b/4500947. The switch involves changing lots of Android's WebKit plumbing to use a new GeolocationClientAndroid in WebKit (called from WebCore::GeolocationController), rather than the existing GeolocationServiceAndroid in WebCore/platform (called from WebCore::Geolocation). This is complicated by the need to support mocking for LayoutTests. The pattern used is very similar to that used for DeviceOrientation and DeviceMotion. This patch ... - Enables CLIENT_BASED_GEOLOCATION - Leaves PREEMPT_GEOLOCATION_PERMISSION disabled for now - Removes GeolocationServiceAndroid - Adds a new GeolocationClientAndroid - Just a proxy to real client - Adds a new GeolocationManager - Manages switching between the real and mock clients - Provides the appropriate client to GeolocationClientAndroid - Plumbs to the real client calls for permissions and for suspending/resuming - Adds a new GeolocationClientImpl - The real client - Based heavily on GeolocationServiceAndroid - Delegates to GeolocationServiceBridge, as GeolocationServiceAndroid did - Calls back directly to GeolocationController - Owns the existing GeolocationPermissions - Updates WebViewCore to call the GeolocationManager for permissions and for suspending/resuming - Removes superfluous ChromeClient methods for permissions Note that support for mocking will be added in a later change. See bug for details. Bug: 6511338 Change-Id: I4cdbf55846e76b37c161834b83135b4dc48dbcdc
* am 13c0becf: am db197e8d: Merge "Real isn\'t real according to the USPS, but ↵John Reck2012-05-211-1/+1
|\ | | | | | | | | | | | | add it anyway" into jb-dev * commit '13c0becfffb869bb9b66c5e8e44a0792b6ea97c2': Real isn't real according to the USPS, but add it anyway
| * Real isn't real according to the USPS, but add it anywayJohn Reck2012-05-211-1/+1
| | | | | | | | | | | | Bug: 6519914 Change-Id: I437ff480a0fa6ba6aed6e207ac021f666c9843c6
* | am 655f75fe: am 2c52cc31: Merge "Switch to a 4ms/1s timer" into jb-devJohn Reck2012-05-212-3/+9
|\ \ | |/ | | | | | | * commit '655f75feeee4c396740a8e768888c7c8f0602cb8': Switch to a 4ms/1s timer
| * Merge "Switch to a 4ms/1s timer" into jb-devJohn Reck2012-05-212-3/+9
| |\
| | * Switch to a 4ms/1s timerJohn Reck2012-05-182-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 6523124 Bug: 6523033 Use a 4ms timer for foreground tabs, and a 1s timer for background tabs Change-Id: Iea061d63adf82f6e17dd2d47d382fcdfc588b7d3
* | | am 0e518116: am 261f8950: Add checks for null base layer contentChris Craik2012-05-211-2/+2
|\ \ \ | |/ / | | | | | | | | | * commit '0e518116e66e544a899674ed1a5039b2c7e04f05': Add checks for null base layer content
| * | Add checks for null base layer contentChris Craik2012-05-211-2/+2
| | | | | | | | | | | | | | | bug:6519982 Change-Id: I1ef0eda2b94090cc894441c1620ae85e7fd86d22
* | | am 0fec4094: am 6baa213e: Fix memory leak and repaint issues with fixed ↵Nicolas Roard2012-05-211-0/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | background elements * commit '0fec40942c5e424610b19929bbcd0a1dd4f53246': Fix memory leak and repaint issues with fixed background elements
| * | Fix memory leak and repaint issues with fixed background elementsNicolas Roard2012-05-181-0/+2
| |/ | | | | | | | | | | bug:6522485 bug:6486951 Change-Id: Ia707efed9311e4352eed3ab005ec7ca93b8444e4
* | am c328457e: am 37df6b06: Merge "Fix mouse nudging in hit test" into jb-devJohn Reck2012-05-211-13/+20
|\ \ | |/ | | | | | | * commit 'c328457e578cf0c594ef7db2259754d3ee0b1fcd': Fix mouse nudging in hit test
| * Fix mouse nudging in hit testJohn Reck2012-05-171-13/+20
| | | | | | | | | | | | Bug: 6490959 Change-Id: I3b9c17a69d15983093047b31d950c16894f6cd24
* | am c085b5fe: am 02085505: Merge "Track where we want to click the mouse ↵John Reck2012-05-212-6/+16
|\ \ | |/ | | | | | | | | | | independently" into jb-dev * commit 'c085b5fefdf5cbd9a203f11ce239ee0dce48ec1d': Track where we want to click the mouse independently
| * Track where we want to click the mouse independentlyJohn Reck2012-05-162-6/+16
| | | | | | | | | | | | Bug: 6490959 Change-Id: I920167cb16723f63132ecdb5581fb7a19e4461dd
* | Consider fixed layers when scrolling the edit box.George Mount2012-05-181-0/+90
| | | | | | | | | | | | | | Bug 6147580 Framework Change: Idaa538824e611acd64eb5a4ccb7866d3c978a077 Change-Id: I810891decf0bad682e90f29f0f65c6b765b7d6d6
* | Merge changes I2de9dfed,I80436e37Steve Block2012-05-187-31/+343
|\ \ | |/ |/| | | | | | | * changes: Move GeolocationServiceBridge to WebKit/android/jni and extract Listener interface GeolocationPermissions cleanup
| * Move GeolocationServiceBridge to WebKit/android/jni and extract Listener ↵Steve Block2012-05-182-0/+324
| | | | | | | | | | | | | | | | | | | | | | | | | | | | interface Also modify GeolocationServiceBridge to take a WebViewCore rather than a Frame. This will simplify the transition to client-based implementation, which will re-use GeolocationServiceBridge. No functional change. Bug: 6511338 Change-Id: I2de9dfed51d785c85b40f362f20189f208adf6ec
| * GeolocationPermissions cleanupSteve Block2012-05-185-31/+19
| | | | | | | | | | | | | | | | | | | | | | | | - Avoid the need to pass the main frame to GeolocationPermissions. This can be determined from the WebViewCore. - Call GeolocationPermissions::maybeStorePermanentPermissions() directly from WebViewCore to avoid the need for a ChromeClient method. No functional change. Bug: 6511338 Change-Id: I80436e3728080338199a632890a64e573a658bba
* | Merge "flicker fix" into jb-devJohn Reck2012-05-153-31/+29
|\ \
| * | flicker fixJohn Reck2012-05-153-31/+29
| | | | | | | | | | | | | | | | | | | | | Bug: 6479523 After a layout, sync the compositing tree *before* doing any drawing Change-Id: I2c314731620be58c044f100ef335087961cbd223
* | | Merge "Only start or end selection with non-empty text fields." into jb-devGeorge Mount2012-05-152-1/+36
|\ \ \
| * | | Only start or end selection with non-empty text fields.George Mount2012-05-152-1/+36
| |/ / | | | | | | | | | | | | | | | Bug 6496951 Change-Id: I5ea68aebe4c3652eae49b20d4c07418725190549
* | | Merge "Fix crash on arstechnica" into jb-devNicolas Roard2012-05-151-1/+2
|\ \ \ | |/ / |/| |
| * | Fix crash on arstechnicaNicolas Roard2012-05-151-1/+2
| | | | | | | | | | | | | | | | | | | | | Not checking for cachedImage for the background images... bug:6482165 Change-Id: I9de5ee9cef446cd07688b40f6b04bdd493e40edd
* | | Merge "Update bounds calculation to use draw transform" into jb-devChris Craik2012-05-141-30/+5
|\ \ \
| * | | Update bounds calculation to use draw transformChris Craik2012-05-141-30/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove old bounds calculation method. Depends on frameworks/base change: https://android-git.corp.google.com/g/#/c/190474/ bug:6486310 Change-Id: Ieeb09778f810598c38127c66ae12b2b29abcf8e4
* | | | Change selection to work with left/right instead of base/extent.George Mount2012-05-145-101/+68
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 5859620 Use the LTR/RTL content of the text selection to determine which handle is left and which is right. This simplifies text selection logic slightly and helps make RTL text selection handles work properly. Framework Change: Ib88ed2327182ba5b47b3e41584cbe944d05c8ada Change-Id: I3362c5034ce08ce1517a86882c13b78aff35fe3f
* | | Use slop to determine the node used for anchoring top/left.Mangesh Ghiware2012-05-121-0/+10
|/ / | | | | | | | | | | | | | | | | | | Certain sites use tables for layout and padding elements instead of standard CSS. If the exact scrollX/Y is used to find the anchor, hit test result may return an incorrect node. A little bit of slop helps in finding the correct node, if necessary. Bug: 5291151 Change-Id: I13e8d2b04ef5049c14c299be42c6699c3d0c945e
* | Revert "Don't draw when clip is zero."Teng-Hui Zhu2012-05-111-5/+5
|/ | | | This reverts commit 8391ddb06a5b36834e8bafb36763d792c1602ace.
* Don't draw when clip is zero.Teng-Hui Zhu2012-05-111-5/+5
| | | | | | | | In full screen mode, framework still need to call drawGL for now. But we can early return in this case. bug:6477718 Change-Id: I02194f5739d6ae055b1cf14fbf9479b7bb8ebe52
* Ensure getFavicon() does not return uninitialized bitmaps.Jeff Brown2012-05-101-1/+1
| | | | | | | | While a web page is loading, it may not have a favicon. We should return null in this case. Bug: 6467873 Change-Id: Id3ee882fdd59679f3cfddb739661e020a4463399
* Better fix for crash workaroundNicolas Roard2012-05-081-6/+2
| | | | | bug:6431194 Change-Id: I444b1efb7ab12a18994c8b0553fa80f2ce09d386
* Complete implementation fixed backgroundNicolas Roard2012-05-081-2/+6
| | | | | | | | | | - extract image for body background (a lot more memory-friendly) - implement tiling / repeat - handles background color bug:1352305 Change-Id: I0efa27e09416e3c3848a4a53ced650cbb3d9f7ce
* Disable prerenders if we aren't focusedJohn Reck2012-05-083-2/+41
| | | | | | Bug: 6448418 Change-Id: I624d78a2b674cbd91ebe70008c70967101fbb12a
* Merge "Pass webview instance when getting base layer / color, and prevent ↵Chris Craik2012-05-081-13/+13
|\ | | | | | | null value" into jb-dev
| * Pass webview instance when getting base layer / color, and prevent null valueChris Craik2012-05-081-13/+13
| | | | | | | | | | | | | | depends on frameworks/base change: https://android-git.corp.google.com/g/#/c/188470/ bug:6429897 Change-Id: I374534b0302b5029d69b058c670083e6ad33ea95
* | Set the default scrollTo back to animate = falseJohn Reck2012-05-081-1/+1
|/ | | | | | | | Bug: 6427052 Originally changed as part of making keyboard navigation nicer, but had unintended side effects Change-Id: Ib3696490c0861df6a88e63e5af3a6e540e13986c
* Merge "Replace tree observer with a JNI call at draw time" into jb-devTeng-Hui Zhu2012-05-081-19/+14
|\
| * Replace tree observer with a JNI call at draw timeTeng-Hui Zhu2012-05-071-19/+14
| | | | | | | | | | | | | | | | framework change: https://android-git.corp.google.com/g/#/c/188149/ bug:6447729 Change-Id: Id115fd1d4ad62e958fec1ff27f7dc7d55a59b6cc
* | Merge "Delay creating Java objects for WebHistoryItem" into jb-devJohn Reck2012-05-084-86/+190
|\ \ | |/ |/|
| * Delay creating Java objects for WebHistoryItemJohn Reck2012-05-074-86/+190
| | | | | | | | | | | | Bug: 6447632 Change-Id: Ib2fb66f607dd62ffa2d8acbe5882ad6219413120
* | Merge "Disable prerenders while scrolling" into jb-devJohn Reck2012-05-072-0/+8
|\ \
| * | Disable prerenders while scrollingJohn Reck2012-05-062-0/+8
| | | | | | | | | | | | | | | | | | Bug: 6445656 Change-Id: I3d9e2cece4b3ec86deb00e98ae98f281525dab48
* | | Merge "Fix ssl client certs to use the private key ctx" into jb-devSelim Gurun2012-05-071-38/+56
|\ \ \ | |_|/ |/| |
| * | Fix ssl client certs to use the private key ctxSelim Gurun2012-05-041-38/+56
| | | | | | | | | | | | | | | Bug: 6249185 Change-Id: Id9d57dc9adcbb37d1a39d33c6abd8e896ced1785
* | | Merge "Ensure updateGLPositionsAndScale is called from updateLayerPosition." ↵George Mount2012-05-071-1/+1
|\ \ \ | |_|/ |/| | | | | into jb-dev