summaryrefslogtreecommitdiff
path: root/core/java/android/webkit/WebViewClassic.java
Commit message (Collapse)AuthorAgeFilesLines
* Delete the old WebView.Torne (Richard Coles)2013-10-151-8810/+0
| | | | | | | | | Delete all the Java classes used only by the old WebView implementation, and also sections of common classes that were only needed for the old WebView. Bug: 10427705 Change-Id: I02549a71104b35d86d99058c71f43e054730ec7d
* Merge "WebView: add an API method to control web contents debugging" into ↵Jonathan Dixon2013-09-211-0/+5
|\ | | | | | | klp-dev
| * WebView: add an API method to control web contents debuggingMikhail Naganov2013-09-111-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | This adds static (as this is for the whole process) method for controlling the web debugging state. Please note that the implementation only makes sense for Chromium WebView, and it's a no-op in WebViewClassic. BUG=8691809 Change-Id: I815b4d69ad9ee814ca4cec1da81490b63ba2da68
* | Publish Print Api for WebviewSelim Gurun2013-09-111-5/+3
|/ | | | | | Bug:10652036 Change-Id: Ibcc7e48f4e4ce1bc437c0d3fb89d3d66a90dca64
* Add tracing to WebView API methods and callbacksJonathan Dixon2013-08-301-0/+2
| | | | | | | | Bug: 10488419 This is useful for debugging numerous SxS issues. Change-Id: I5d0d2e253499741c5f9454582988c99e42dc0a81
* DO NOT MERGE Printing API changes for supporting better page layoutSelim Gurun2013-08-301-3/+4
| | | | | Bug: 10507857 Change-Id: I3120ebfd11716259b9a83312b95a6a3f98a23d89
* Added the callback signal.Selim Gurun2013-08-201-1/+2
| | | | | | Bug:10190508 Change-Id: I52b327e0724938e1de7ce7550d26563364ff1589
* Change the exception msgSelim Gurun2013-08-121-2/+2
| | | | | | Change the exception msg to better identify the webview version. Change-Id: I64c9a433144f9aa0362ad6c9217da92acbb655bc
* Add the API to support webview printingSelim Gurun2013-08-121-0/+11
| | | | | Bug: 10190508 Change-Id: I47fc46bb1ea632876048b29621843f781c47aab7
* Add WebView.evaluateJavaScript(String, ValueCallback) API.Ben Murdoch2013-07-191-0/+6
| | | | | | | | | | | | | | | This API is intended to replace the "WebView.loadUrl("javascript:...") pattern that is the current mechanism for executing JavaScript in the context of the current page displayed in the WebView. The new API is more convenient - it doesn't trigger the normal URL loading path - and so does not have side effects such as hiding the keyboard - and allows the caller to specify a callback that will be invoked once the script execution is complete. BUG=9814043 Change-Id: I3f27e8ff5371077d9265430090d61381a3a86e76
* Plumb View.getAccessibilityNodeProvider though WebViewProvider.Ben Murdoch2013-07-111-0/+6
| | | | | | | This is needed to make use of the new Accessibility implementation in the Chromium WebView. nos for WebView Classic. Change-Id: I96bd2426d2de3b26dc9b72d0fdbacefa9bbe20f7
* Revert "Plumb View.getAccessibilityNodeProvider though WebViewProvider."Ben Murdoch2013-06-291-6/+0
| | | | This reverts commit 150cf1c15b23bb30be8b7267a5e8bc326d0f50cc.
* Plumb View.getAccessibilityNodeProvider though WebViewProvider.Ben Murdoch2013-06-241-0/+6
| | | | | | | This is needed to make use of the new Accessibility implementation in the Chromium WebView. nos for WebView Classic. Change-Id: I8e26035d15af494e4caa50b4c6c7cb4ac8efeb9e
* Enable preloading of the appropriate WebView.Torne (Richard Coles)2013-06-191-0/+14
| | | | | | | | | | | | | | | | | | Allow the appropriate WebView to be preloaded in the zygote by constructing the currently selected WebViewFactoryProvider when the WebViewFactory is preloaded. At runtime, if the preloaded provider is still the current selection, the preloaded instance is used, otherwise the provider is loaded at that time. This change also removes "graceful" fallback from the experimental WebView to the classic implementation: if the option to use the experimental WebView is selected and it could not be loaded successfully at the time a WebView is created, an exception will be thrown, rather than allowing execution to continue with the classic implementation, as the fallback may mislead developers who do not examine logcat output in detail. Change-Id: I0cd01c784d7048abeac55ab5863ca16b8fd9ecf2
* am 28d91bdb: Merge "Revert "Can not mark the same content of browser page ↵John Reck2013-04-291-8/+1
|\ | | | | | | | | | | | | after copy"" * commit '28d91bdbde63ba1afe3bb67c5466527ec7184217': Revert "Can not mark the same content of browser page after copy"
| * Revert "Can not mark the same content of browser page after copy"John Reck2013-04-301-8/+1
| | | | | | | | | | | | | | | | This reverts commit 2b3cef0dd74cb9470e5387b015ee7a13af1fff7b Causes crashes in Email, reverting for now Change-Id: Ia0286763d0ab1f90c2b6082d44a6ca804769f49c
* | am b0e0e54d: Merge "Can not mark the same content of browser page after copy"Victoria Lease2013-04-261-1/+8
|\| | | | | | | | | * commit 'b0e0e54d9dbef720ac653ed87d8ed6b46e1abdbe': Can not mark the same content of browser page after copy
| * Can not mark the same content of browser page after copyPeter Nilsson2013-04-101-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | Marking a text on the web page and then press copy works, but trying to mark the same text again does not work. The reason for this is that the selection never gets cleared in webkit. The fix, calling cleaSelection in the onDestroyActionMode. Also added clearSelection when getting an onConfigurationChange. Change-Id: I59b384cb5441b6a3a05007ea7e77f9699889a87c
* | Part of fix for bug 8629392Kristian Monsen2013-04-161-1/+2
| | | | | | | | | | | | Adding extra logging to fix cts bugs that are only on bots Change-Id: I24b4b7aad200ffc23c002f4a8f0fe9246991c4f0
* | am bd5ee4d3: am 733329a2: Merge "Fix NPE when pasting non-text from Clipboard"John Reck2013-03-121-1/+1
|\| | | | | | | | | * commit 'bd5ee4d39c8d7d1fc2c1f94980875f1900880880': Fix NPE when pasting non-text from Clipboard
| * Fix NPE when pasting non-text from ClipboardNils Holmström2013-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | When copying a link from a bookmark and then pasting it into a textfield a NullPointerException will occur. A ClipData.Item is not guaranteed to always contain a text string and therefore getText() can be set to null. Using method coerceToText() instead of getText() makes sure that a text string is always returned. Change-Id: I81343c0371835a3a7a52045dcd1760e69e59a967
* | am 263554ae: am 7d4e52ba: Merge "FIX Null Pointer Exception on dialog cancel"Victoria Lease2013-03-051-0/+2
|\| | | | | | | | | * commit '263554ae5f51fe1181c0c80123ec7f489e124f1a': FIX Null Pointer Exception on dialog cancel
| * FIX Null Pointer Exception on dialog cancelAmit Kumar2013-02-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Null Pointer Exception occurs because mWebViewCore instance is made to null while calling destroyJava(). When 1.webview hosting activity goest to background, without calling webview onPause(). 2. If app is launched again (having launchmode:singletask ) and another activity (not webview hosting) comes on top top. 3. It destorys the previous activity holding webview which internally tries to cancel the dialog, but webviewcore instance is null. Null pointer exception is raised. Change-Id: Idbcd30d0b0d4a35819444bbaa5c73cced8bb35a3 Signed-off-by: Amit Kumar <amitkecian@gmail.com>
* | Update WebView#PictureListener for JBMR2.Ben Murdoch2013-02-271-6/+2
| | | | | | | | | | | | | | Now JBMR2 constant is defined, update code and docs to use it. Bug: 8241082 Change-Id: If221c6524b79cc259ffc71fc218b141ffe6ed790
* | Update WebView.PictureListener.onNewPicture to pass null picture.Ben Murdoch2013-02-211-2/+10
| | | | | | | | | | | | | | | | When targetting >= CUR_DEVELOPMENT, the WebView.PictureListener.onNewPicture API should pass a null picture in the callback. Bug: 8209022, 8244082 Change-Id: I280c7cc89f2a12b1273cd67bbe2c7a6f2ca5892f
* | am 5782c16d: am c36303a6: Merge "Applying ChannelScrolling to remove ↵Victoria Lease2013-02-191-66/+68
|\| | | | | | | | | | | | | calculateDragAngle" * commit '5782c16d34d839282978f94b1421e91da1e70cde': Applying ChannelScrolling to remove calculateDragAngle
| * Applying ChannelScrolling to remove calculateDragAnglekiwon2013-02-181-66/+68
| | | | | | | | | | | | | | | | | | To avoid angle calculation changed the logic to use virtual areas. When try to drag or pan, check where the current touch point locates and determine how to drag a page. Change-Id: Id9bd08a69c4ac93ff385c8088e6c16bed5dc5f88 Signed-off-by: kiwon <kiwon98.lee@samsung.com>
* | Handle WebKit selection changes synchronously.Alan Viverette2013-02-011-31/+26
| | | | | | | | | | | | | | | | This ensures that performing an accessibility navigation action correctly returns true or false based on the new selected element. Bug: 8027669 Change-Id: Ib7b3e1ec92ef522b23b073d32878dc1dc05723e9
* | Refactor FindActionModeCallback.Ben Murdoch2013-01-181-2/+3
| | | | | | | | | | | | | | | | | | Refactor FindActionModeCallback to make it more suitable for sharing between WebViewClassic and WebViewChromium. Bug=5006564 Change-Id: Ic3156eb50f99033a17ba3f83d0b4f39ba992afa8
* | am 49c2756b: am b3ec0639: am 7e1a45d8: Merge "Fix accessibility API ↵Svetoslav Ganov2012-11-011-0/+3
|\| | | | | | | | | | | | | injection." into jb-mr1-dev * commit '49c2756b1c4996e9ebcc70c89095f436790b5469': Fix accessibility API injection.
| * Fix accessibility API injection.alanv2012-11-011-0/+3
| | | | | | | | | | | | | | | | | | Also adds a heartbeat check so that if something does go wrong while adding the JavaScript APIs, we don't attempt to use the JavaScript-based screen reader. Bug: 7450237 Change-Id: Ifbce77cf93115f658386c520b8226941607b2afe
* | am 935db6c5: am e228b5b9: am 4c38e24a: Merge "Don\'t alter accessibility JS ↵Charles Chen2012-10-121-8/+6
|\| | | | | | | | | | | | | APIs unless a page is about to load." into jb-mr1-dev * commit '935db6c5616d1bc67c3b077ba7ad8f64173792df': Don't alter accessibility JS APIs unless a page is about to load.
| * Merge "Don't alter accessibility JS APIs unless a page is about to load." ↵Charles Chen2012-10-121-8/+6
| |\ | | | | | | | | | into jb-mr1-dev
| | * Don't alter accessibility JS APIs unless a page is about to load.alanv2012-10-121-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we were adding and removing the APIs on window attach and detach, but a page's life cycle is not related to attach/detach. This patch also ensures that ChromeVox is not null before calling. Includes formatting fixes and extra comments in the waitForResultTimedLocked method to improve readability. Fixes parsing of integer resultId, which was being parsed using Long. Bug: 7328348 Change-Id: I6b81a8e4d8209f8e99419da9b8250abe57e25048
* | | am e45ecba9: am be0786ae: am b746febc: Merge "Center text selection point to ↵John Reck2012-10-121-13/+28
|\| | | | | | | | | | | | | | | | | | | | avoid rounding glitches" into jb-mr1-dev * commit 'e45ecba93be4fa5a2ccfd64224b0710dc8712999': Center text selection point to avoid rounding glitches
| * | Center text selection point to avoid rounding glitchesJohn Reck2012-10-111-13/+28
| |/ | | | | | | | | | | Bug: 7313424 Change-Id: I5356bec61e3d1244b506486300f059aa0bba6d9e
* | am 93f7d42d: am 7c72a8f9: Merge "Fix perf regression from scale/density ↵John Reck2012-09-281-2/+2
|\| | | | | | | | | | | | | mismatch" into jb-mr1-dev * commit '93f7d42deb07bdbbc6cc0724247d6efce1f5a3e2': Fix perf regression from scale/density mismatch
| * Fix perf regression from scale/density mismatchJohn Reck2012-09-271-2/+2
| | | | | | | | | | | | Bug: 7242941 Change-Id: I8a45e8ae589cecc6215566b995003b9eefb7827e
* | am 15edd2d5: am b77b3cfe: Merge "Get your own cursor Drawables, ↵Victoria Lease2012-09-241-3/+3
|\| | | | | | | | | | | | | WebViewClassic!" into jb-mr1-dev * commit '15edd2d5ad8ba17e183b5f1222ef39150df38397': Get your own cursor Drawables, WebViewClassic!
| * Get your own cursor Drawables, WebViewClassic!Victoria Lease2012-09-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | These are shared resources! You can't just animate *everyone's* cursors! This is a hand-merge of Icdc86af4fba427a352019cd3e2017f97a3b9fdba from jb-dev branch. I'm not sure why it wouldn't automerge, as it seemed pretty straightforward... Bug: 7110290 Change-Id: I131a611b9e16699a51d3769658f079c2ae4cf262
* | am 6e28f1aa: am 4f8da32f: Merge "Make JavascriptInterface annotation ↵Selim Gurun2012-09-121-2/+10
|\| | | | | | | | | | | | | public." into jb-mr1-dev * commit '6e28f1aacfa4c82ab0c8b740a24ed233b031272f': Make JavascriptInterface annotation public.
| * Make JavascriptInterface annotation public.Selim Gurun2012-09-121-2/+10
| | | | | | | | | | | | | | | | | | | | | | Bug: 7073422 This change makes @JavascriptInterface public and it requires using this annotation to allow javascript access to public java methods for API level JELLY_BEAN_MR1 and above. The behavior does not change for API levels JELLY_BEAN and below. Change-Id: I4108b17cf71b9ac273d7b61b1c8f7f5581e922ee
* | am 77f02ca9: am 79ccb1e8: Merge "Deleting the defunct SearchBox interface." ↵Selim Gurun2012-09-121-7/+0
|\| | | | | | | | | | | | | into jb-mr1-dev * commit '77f02ca908e114df2e14a7671824f3374a509280': Deleting the defunct SearchBox interface.
| * Deleting the defunct SearchBox interface.Selim Gurun2012-09-111-7/+0
| | | | | | | | Change-Id: Iecb698dbe942d3c9680ad1135ba0d604aa211856
* | am a7a5fa82: am 06ee8cde: Merge "Remove defunct searchbox implementation ↵Selim Gurun2012-09-121-4/+1
|\| | | | | | | | | | | | | from webview." into jb-mr1-dev * commit 'a7a5fa82cc997953b0206c4dd1d2ecc1b27f0cf2': Remove defunct searchbox implementation from webview.
| * Remove defunct searchbox implementation from webview.Selim Gurun2012-09-111-4/+1
| | | | | | | | | | | | | | The search box implementation has not been in use since ICS. This removes dead code from webview. Change-Id: I8a28eeeec556619abc4a902a3abec2ac52bad319
* | am d2d3bff2: am befab9e6: Merge "Control access to inherited methods of ↵Selim Gurun2012-09-101-0/+3
|\| | | | | | | | | | | | | jsinterface objects" into jb-mr1-dev * commit 'd2d3bff22c339bc30452a6c79b703b6d22f08d3b': Control access to inherited methods of jsinterface objects
| * Control access to inherited methods of jsinterface objectsSelim Gurun2012-09-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | Bug: 7073422 Create the plumbing to use an annotation to allow access to inherited methods of jsinterface objects. The default webview behavior has not changed yet. However internally an a flag is introduced to restrict javascript access to methods that have an annotation. Change-Id: I41927248e6bc4b09d17c0707c60fe5e6ab681e66
* | am 814b9a6c: am bdf8fa0c: Merge "Fix some destroy bugs" into jb-mr1-devJohn Reck2012-09-101-20/+9
|\| | | | | | | | | * commit '814b9a6cc161da3ec5c897783776faf48877d2e5': Fix some destroy bugs
| * Fix some destroy bugsJohn Reck2012-09-101-20/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 6961494 Don't call clearHelpers in destroy(). It is already called in onDetach, which is where it needs to be. It can't be called by the finalizer Switch onCancel listener to onDismiss listener. Fixes an issue where destroying can live the webcore thread hung because onCancel won't be called, but onDismiss is Change-Id: I669c389c8c9a81d92c27f88d83bcb711c6c0a5ee