diff options
| author | Ben Murdoch <benm@google.com> | 2009-11-19 09:17:43 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2009-11-19 09:17:43 -0800 |
| commit | 6d5d55c103a9816ed6c3873f72ae814afb7ddd4c (patch) | |
| tree | 5b2e0cee6c25160336d49ca3c837d73339b34784 | |
| parent | 9f81a58578c15490558b48c2c3856128b979bc1c (diff) | |
| parent | ff8cec7083f2b3ffa2e009ee3f4e9337ce9361e7 (diff) | |
| download | frameworks_base-6d5d55c103a9816ed6c3873f72ae814afb7ddd4c.zip frameworks_base-6d5d55c103a9816ed6c3873f72ae814afb7ddd4c.tar.gz frameworks_base-6d5d55c103a9816ed6c3873f72ae814afb7ddd4c.tar.bz2 | |
am ff8cec70: am b0fbb7cc: Merge change I09e159ce into eclair-mr2
Merge commit 'ff8cec7083f2b3ffa2e009ee3f4e9337ce9361e7'
* commit 'ff8cec7083f2b3ffa2e009ee3f4e9337ce9361e7':
Update JavaDoc for CacheManger.CacheResult, WebChromeClient.getDefaultVideoPoster and WebChromeClient.getVideoLoadingProgressView.
| -rw-r--r-- | core/java/android/webkit/CacheManager.java | 5 | ||||
| -rw-r--r-- | core/java/android/webkit/WebChromeClient.java | 17 |
2 files changed, 16 insertions, 6 deletions
diff --git a/core/java/android/webkit/CacheManager.java b/core/java/android/webkit/CacheManager.java index 910d7b2..c167414 100644 --- a/core/java/android/webkit/CacheManager.java +++ b/core/java/android/webkit/CacheManager.java @@ -74,6 +74,11 @@ public final class CacheManager { // Flag to clear the cache when the CacheManager is initialized private static boolean mClearCacheOnInit = false; + /** + * This class represents a resource retrieved from the HTTP cache. + * Instances of this class can be obtained by invoking the + * CacheManager.getCacheFile() method. + */ public static class CacheResult { // these fields are saved to the database int httpStatusCode; diff --git a/core/java/android/webkit/WebChromeClient.java b/core/java/android/webkit/WebChromeClient.java index 6adac0b..dd494e1 100644 --- a/core/java/android/webkit/WebChromeClient.java +++ b/core/java/android/webkit/WebChromeClient.java @@ -266,20 +266,25 @@ public class WebChromeClient { public void addMessageToConsole(String message, int lineNumber, String sourceID) {} /** - * Ask the host application for an icon to represent a <video> element. - * This icon will be used if the Web page did not specify a poster attribute. + * When not playing, video elements are represented by a 'poster' image. The + * image to use can be specified by the poster attribute of the video tag in + * HTML. If the attribute is absent, then a default poster will be used. This + * method allows the ChromeClient to provide that default image. * - * @return Bitmap The icon or null if no such icon is available. + * @return Bitmap The image to use as a default poster, or null if no such image is + * available. */ public Bitmap getDefaultVideoPoster() { return null; } /** - * Ask the host application for a custom progress view to show while - * a <video> is loading. + * When the user starts to playback a video element, it may take time for enough + * data to be buffered before the first frames can be rendered. While this buffering + * is taking place, the ChromeClient can use this function to provide a View to be + * displayed. For example, the ChromeClient could show a spinner animation. * - * @return View The progress view. + * @return View The View to be displayed whilst the video is loading. */ public View getVideoLoadingProgressView() { return null; |
