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

Side by Side Diff: Source/platform/graphics/media/MediaPlayer.h

Issue 131763011: Expose the poster image URL to WebMediaPlayer subclasses (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: jochen@ comment 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) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 virtual bool seeking() const = 0; 141 virtual bool seeking() const = 0;
142 142
143 virtual double rate() const = 0; 143 virtual double rate() const = 0;
144 virtual void setRate(double) = 0; 144 virtual void setRate(double) = 0;
145 145
146 virtual bool paused() const = 0; 146 virtual bool paused() const = 0;
147 147
148 virtual void setVolume(double) = 0; 148 virtual void setVolume(double) = 0;
149 virtual void setMuted(bool) = 0; 149 virtual void setMuted(bool) = 0;
150 150
151 virtual void setPoster(const KURL&) = 0;
152
151 enum NetworkState { Empty, Idle, Loading, Loaded, FormatError, NetworkError, DecodeError }; 153 enum NetworkState { Empty, Idle, Loading, Loaded, FormatError, NetworkError, DecodeError };
152 virtual NetworkState networkState() const = 0; 154 virtual NetworkState networkState() const = 0;
153 155
154 enum ReadyState { HaveNothing, HaveMetadata, HaveCurrentData, HaveFutureDat a, HaveEnoughData }; 156 enum ReadyState { HaveNothing, HaveMetadata, HaveCurrentData, HaveFutureDat a, HaveEnoughData };
155 virtual ReadyState readyState() const = 0; 157 virtual ReadyState readyState() const = 0;
156 158
157 virtual double maxTimeSeekable() const = 0; 159 virtual double maxTimeSeekable() const = 0;
158 virtual PassRefPtr<TimeRanges> buffered() const = 0; 160 virtual PassRefPtr<TimeRanges> buffered() const = 0;
159 161
160 virtual bool didLoadingProgress() const = 0; 162 virtual bool didLoadingProgress() const = 0;
(...skipping 29 matching lines...) Expand all
190 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported, InvalidAccess }; 192 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported, InvalidAccess };
191 virtual MediaKeyException addKey(const String&, const unsigned char*, unsign ed, const unsigned char*, unsigned, const String&) = 0; 193 virtual MediaKeyException addKey(const String&, const unsigned char*, unsign ed, const unsigned char*, unsigned, const String&) = 0;
192 virtual MediaKeyException generateKeyRequest(const String&, const unsigned c har*, unsigned) = 0; 194 virtual MediaKeyException generateKeyRequest(const String&, const unsigned c har*, unsigned) = 0;
193 virtual MediaKeyException cancelKeyRequest(const String&, const String&) = 0 ; 195 virtual MediaKeyException cancelKeyRequest(const String&, const String&) = 0 ;
194 virtual void setContentDecryptionModule(blink::WebContentDecryptionModule*) = 0; 196 virtual void setContentDecryptionModule(blink::WebContentDecryptionModule*) = 0;
195 }; 197 };
196 198
197 } 199 }
198 200
199 #endif // MediaPlayer_h 201 #endif // MediaPlayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698