Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1550)

Unified Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 135863004: Downloads and passes the poster image to Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/android/webmediaplayer_android.h
diff --git a/content/renderer/media/android/webmediaplayer_android.h b/content/renderer/media/android/webmediaplayer_android.h
index 7e6bb2d258d5d1ad401d94f7b9edc8ddb5da16fd..541039e6852d88c5fd627f43804d44b153c93601 100644
--- a/content/renderer/media/android/webmediaplayer_android.h
+++ b/content/renderer/media/android/webmediaplayer_android.h
@@ -41,6 +41,7 @@ class MediaLog;
namespace blink {
class WebFrame;
+class WebURL;
}
namespace webkit {
@@ -96,6 +97,9 @@ class WebMediaPlayerAndroid
virtual const blink::WebTimeRanges& buffered();
virtual double maxTimeSeekable() const;
+ // Poster image, as defined in the <video> element.
+ virtual void setPoster(const blink::WebURL& poster) OVERRIDE;
+
// Methods for painting.
virtual void paint(blink::WebCanvas* canvas,
const blink::WebRect& rect,
@@ -424,6 +428,8 @@ class WebMediaPlayerAndroid
// has been selected.
blink::WebString current_key_system_;
+ blink::WebURL poster_url_;
+
// Temporary for EME v0.1. In the future the init data type should be passed
// through GenerateKeyRequest() directly from WebKit.
std::string init_data_type_;

Powered by Google App Engine
This is Rietveld 408576698