summaryrefslogtreecommitdiff
path: root/core/java/android/webkit/WebViewDelegate.java
Commit message (Collapse)AuthorAgeFilesLines
* Rework WebView startup timestamp system API.Torne (Richard Coles)2021-05-181-6/+3
| | | | | | | | | | Rework the new WebView startup timestamp system API to use a class with named getters instead of an array with an @IntDef index. Fixes: 184026615 CTS-Coverage-Bug: 183239482 Test: n/a Change-Id: I22c95b1c2dc98f8ecd23ce22dc21e3d0158d9e1b
* webview: switch timestamps to uptimeMillis().Torne (Richard Coles)2021-04-291-2/+2
| | | | | | | | | We should use uptimeMillis for the startup timestamps since it doesn't count time in device sleep. Fixes: 184786485 Test: n/a Change-Id: I4073e73de9b76d50398b820879c4fcf7b8f614e8
* Document WebViewDelegate.getTimestamps() better.Torne (Richard Coles)2021-04-271-0/+2
| | | | | | | | | | Specify that the values are @ElapsedRealtimeLong and document the entries in the array via the index constants. Fixes: 184786485 Bug: 184026615 Test: n/a Change-Id: I26e3df80e79b14d2301e28da93f7814bc67bdb6a
* Record WebView startup timestamps and add API to access them.Anna Malova2021-01-291-0/+11
| | | | | | | | | This change records timestamps that happen before the WebView APK's code is loaded and can record timestamps itself. Bug: 177895749 Test: n/a Change-Id: Ibb832fa13e868846625cc02c584a535a11561c66
* Remove legacy callDrawGlFunction2 from HWUIJohn Reck2020-06-261-40/+8
| | | | | | | Bug: 151439970 Test: CtsUiRenderingTestCases passes Change-Id: I1c29df17bb6e8b078467edf73cb3547db6948cdd
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-1/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I5be7335b23a92b8ac80d2fd890198273b66ad644
* Handle WebView assets correctly when multiple APKs are used.Torne (Richard Coles)2019-03-121-13/+11
| | | | | | | | | | | | | | | Add all splits and shared libraries used by the WebView implementation to the application's asset path, instead of just the base APK. Fix the asset manipulation code path in WebViewFactory to reuse the modern implementation in WebViewDelegate (using appendLibAssetForMainAssetPath) instead of relying on addAssetPathAsSharedLibrary. Add a new variant of appendLibAssetForMainAssetPath which accepts multiple paths at once, to make it more efficient. Bug: 124116212 Test: atest CtsWebkitTestCases Change-Id: Ie55525d78089a4595c5b0b126e4ff1530303afe8
* Cleanup functor system-api surfaceJohn Reck2019-03-041-1/+12
| | | | | | Fixes: 127282736 Test: none Change-Id: I5982d3f4f0671a3c351c11d8baf04aff5640e0a6
* Plumb new functor in native/webviewBo Liu2019-01-031-0/+14
| | | | | | | | | | Add plumbing to native/webview for the new functor. Add a void* data parameter to avoid having to use a thread safe map for in both the plumbing and in webview. Test: Compiles and webview runs Bug: 120997728 Change-Id: I0f9f3acb05688a5afcf95974bc0b3b117f33a8e3
* Rename & package shuffleJohn Reck2018-10-041-5/+5
| | | | | | | | | | Rename DisplayListCanvas -> RecordingCanvas Move RecordingCanvas to android.graphics Move RenderNode to android.graphics Bug: 112709971 Test: make & boot Change-Id: Iddeb6a89f8923ea81a1f37bbee4e9b1db8ede238
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-161-0/+2
| | | | | | | | | | | | | | | | For packages: android.webkit This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I41643e1e47391a12b0aed3058b3d9987a8e6ee2f
* Make WebView data directory configurable.Torne (Richard Coles)2017-12-121-0/+7
| | | | | | | | | | | | | | | Add WebView.setDataDirectory(String suffix) and WebView.disableWebView() interfaces. These will enable applications to better control the use of WebView when running multiple processes, since it's not safe for more than one process in an app to use the same data directory. disableWebView is completely implemented in this change; setDataDirectory will require WebView-side implementation changes to be functional. Bug: 63748219 Test: cts android.webkit.cts.WebViewDataDirTest Change-Id: Ieff225dc99b6b3ca5f223c35f7a854f0c53692df
* WebView: wrap Java literals with {@code}Nate Fischer2017-09-051-4/+4
| | | | | | | | | | | | | | | | Docs change only. This wraps some Java literals (true, false, null) with {@code} blocks, as per Android API guidelines. This also addresses other presubmit errors: * fix lines that have become too long * fix broken import order and unused imports Bug: 65213517 Test: make docs (and manually verify things look better) Change-Id: Idc7fe28d40bea7bd1edcad539b75fa9c689b8d46
* Expose isMultiProcessEnabled via WebViewDelegate.Torne (Richard Coles)2017-01-231-0/+12
| | | | | | | | | | Allow the WebView implementation to call isMultiProcessEnabled via the delegate, so that it doesn't have to fetch and interpret the value of the system setting itself. Bug: 21643067 Test: manual (requires modifications to chromium to call) Change-Id: I1ef2b7ea0054c606965040e02034c938d5e6464c
* ResourcesManager: Allow managed addition of library asset pathsAdam Lesinski2016-06-151-2/+28
| | | | | | | | | This allows WebView to add itself to the ResourcesManager and remain their even after configuration changes and multi-window changes. Bug:29112218 Change-Id: I2cb131ae2c61fb58c48babafdd46c1882be96aa9
* Revert "Expose setDrawGLFunctionDetachedCallback to webview"Bo Liu2016-04-221-18/+0
| | | | | | | | | | | | | | | | | | | | This reverts commit ee34ef1633592e31d4ea99c3a41492a82a970c11. This API is no longer needed by webview since 51.0.2704.22. So remove this API. Note that this system API has never shipped so it's ok to simply remove it. Original description: > Expose setDrawGLFunctionDetachedCallback to webview > > Add WebViewDelegate.setDrawGLFunctionDetachedCallback system API that's > used for webview to receive the functor detach callback. > > BUG: 27709981 > Change-Id: Ie6b5e445c0090a181f94fcd2ec1ea77095c9cb03 BUG: 27709981 Change-Id: I9920dbedc6a280b4a19a8715832c4d2f64a7a7be
* webview: canInvokeDrawGlFunctor should always return trueBo Liu2016-04-201-3/+1
| | | | | | | | | | Now that invokeDrawGlFunctor doesn't use the View anymore, and just calls a static method on ViewRootImpl. In particular this is required since invokeDrwaGlFunctor need to still function for views that already detached. BUG: 27709981 Change-Id: I2c8c8f4a6943f7eec773265ca709349c5ce0be54
* Expose DisplayListCanvas.drawGLFunctor to webviewBo Liu2016-04-151-1/+23
| | | | | BUG: 27709981 Change-Id: If3d2f57bfa50450e5f6834ef3ec2f48e26c294a6
* Expose setDrawGLFunctionDetachedCallback to webviewBo Liu2016-04-011-0/+20
| | | | | | | | Add WebViewDelegate.setDrawGLFunctionDetachedCallback system API that's used for webview to receive the functor detach callback. BUG: 27709981 Change-Id: Ie6b5e445c0090a181f94fcd2ec1ea77095c9cb03
* Add a callback for rendernode parentcount=0John Reck2016-03-311-2/+1
| | | | | | | Bug: 27709981 Fixes: 22565656 Change-Id: I1cb4461baf9069dc4e7ca6de10d5862578c107f4
* Using addAssetPathAsSharedLibrary in WebViewDelegateTao Bai2016-02-231-1/+1
| | | | | BUG: 27245306 Change-Id: I346bc526cd9d311c290f61d0de04e33d708b81c4
* Remove HardwareCanvasChris Craik2015-03-101-5/+5
| | | | Change-Id: I239646a7f00f09d3f76fe6b6162eed86bc0d6e77
* am ed2c9c60: am 10a36fb7: Merge "Stop using ErrorStrings for apache."Narayan Kamath2014-11-271-2/+1
|\ | | | | | | | | * commit 'ed2c9c6029b18df9c25d6c98c909ac5f300d6ab1': Stop using ErrorStrings for apache.
| * Stop using ErrorStrings for apache.Narayan Kamath2014-11-271-2/+1
| | | | | | | | | | | | | | | | | | | | These strings only ever end up in logcat (at best), so there's no point having them translated. Also, rename the ErrorStrings class and move it android.webkit where the last remaining caller lives. (congrats webview people, this is now your mess to maintain.) Change-Id: I04dae37c34191b26a69282970318c1b782af1edf
| * [WebView] Allow the WebView to be compiled against the system SDK.Ignacio Solla2014-11-251-0/+2
| | | | | | | | | | BUG:18152150 Change-Id: Ifd6dcac17663631058d895c61bb6e8018c5aeecc
| * [WebView] Interface to access hidden APIs. (DO NOT MERGE)Ignacio Solla2014-11-191-0/+161
| | | | | | | | | | | The WeView provider implementation needs access to these APIs to implement the WebView functionality. BUG:18152150 Change-Id: I6b41c623b1e8a776dcee8977d0d17259cb4b34f1 (cherry picked from commits 94ef789f0cf0387df20c2c602857ada1e5abfdd6 and 53f256948724b8d4009d8a8a47da96a06402f9a2)
* Rename callDrawGLFunctionJohn Reck2014-11-201-1/+1
| | | | | Bug: 18471503 Change-Id: I00cb356ff2338da7fd07b9ba30b5b3dcbdffdb2e
* [WebView] Allow the WebView to be compiled against the system SDK.Ignacio Solla2014-11-121-0/+2
| | | | | BUG:18152150 Change-Id: Ifd6dcac17663631058d895c61bb6e8018c5aeecc
* Fix docs build breakageIgnacio Solla2014-11-121-1/+1
| | | | Change-Id: Id20a54d8da2b80f277e31c342fffbb3b7d0dc854
* [WebView] Interface to access hidden APIs.Ignacio Solla2014-11-101-0/+161
The WeView provider implementation needs access to these APIs to implement the WebView functionality. BUG:18152150 Change-Id: I6b41c623b1e8a776dcee8977d0d17259cb4b34f1