diff options
| author | Guang Zhu <guangzhu@google.com> | 2009-05-11 18:09:51 -0700 |
|---|---|---|
| committer | Guang Zhu <guangzhu@google.com> | 2009-05-11 18:09:51 -0700 |
| commit | 10e4d2068aa687e30dd4e5fcae6417f66874823b (patch) | |
| tree | a50014e19e541ba1c0c6f62cd95b73fa9ef04bde /core/java/android/webkit/WebChromeClient.java | |
| parent | 11e8fe5a7208c9cd6afc2a0373761ae506d7707f (diff) | |
| parent | 25fdf352d40476e8d87cea44e73581a86dda208d (diff) | |
merged 25fdf35, resolved conflicts
Diffstat (limited to 'core/java/android/webkit/WebChromeClient.java')
| -rw-r--r-- | core/java/android/webkit/WebChromeClient.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebChromeClient.java b/core/java/android/webkit/WebChromeClient.java index 0b874fad5352..bd64f897fe15 100644 --- a/core/java/android/webkit/WebChromeClient.java +++ b/core/java/android/webkit/WebChromeClient.java @@ -174,4 +174,19 @@ public class WebChromeClient { // WebCore will interpret this that new quota was declined. quotaUpdater.updateQuota(currentQuota); } + + /** + * Tell the client that a JavaScript execution timeout has occured. And the + * client may decide whether or not to interrupt the execution. If the + * client returns true, the JavaScript will be interrupted. If the client + * returns false, the execution will continue. Note that in the case of + * continuing execution, the timeout counter will be reset, and the callback + * will continue to occur if the script does not finish at the next check + * point. + * @return boolean Whether the JavaScript execution should be interrupted. + * @hide pending API Council approval + */ + public boolean onJsTimeout() { + return true; + } } |
