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

Side by Side Diff: public/platform/WebMediaPlayer.h

Issue 131763011: Expose the poster image URL to WebMediaPlayer subclasses (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 virtual WebAudioSourceProvider* audioSourceProvider() { return 0; } 148 virtual WebAudioSourceProvider* audioSourceProvider() { return 0; }
149 149
150 // Returns whether keySystem is supported. If true, the result will be 150 // Returns whether keySystem is supported. If true, the result will be
151 // reported by an event. 151 // reported by an event.
152 virtual MediaKeyException generateKeyRequest(const WebString& keySystem, con st unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionK eySystemNotSupported; } 152 virtual MediaKeyException generateKeyRequest(const WebString& keySystem, con st unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionK eySystemNotSupported; }
153 virtual MediaKeyException addKey(const WebString& keySystem, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataL ength, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupport ed; } 153 virtual MediaKeyException addKey(const WebString& keySystem, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataL ength, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupport ed; }
154 virtual MediaKeyException cancelKeyRequest(const WebString& keySystem, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; } 154 virtual MediaKeyException cancelKeyRequest(const WebString& keySystem, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; }
155 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm) { } 155 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm) { }
156 156
157 virtual void setPoster(const WebURL& poster) { }
158
157 // Instruct WebMediaPlayer to enter/exit fullscreen. 159 // Instruct WebMediaPlayer to enter/exit fullscreen.
158 virtual void enterFullscreen() { } 160 virtual void enterFullscreen() { }
159 virtual void exitFullscreen() { } 161 virtual void exitFullscreen() { }
160 // Returns true if the player can enter fullscreen. 162 // Returns true if the player can enter fullscreen.
161 virtual bool canEnterFullscreen() const { return false; } 163 virtual bool canEnterFullscreen() const { return false; }
162 }; 164 };
163 165
164 } // namespace blink 166 } // namespace blink
165 167
166 #endif 168 #endif
OLDNEW
« Source/web/WebMediaPlayerClientImpl.cpp ('K') | « Source/web/WebMediaPlayerClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698