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

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: Address Aaron's final comments 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
« no previous file with comments | « Source/core/html/HTMLVideoElement.cpp ('k') | Source/web/WebMediaPlayerClientImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // the media file duration has changed, or is now known 75 // the media file duration has changed, or is now known
76 virtual void mediaPlayerDurationChanged() = 0; 76 virtual void mediaPlayerDurationChanged() = 0;
77 77
78 // the play/pause status changed 78 // the play/pause status changed
79 virtual void mediaPlayerPlaybackStateChanged() = 0; 79 virtual void mediaPlayerPlaybackStateChanged() = 0;
80 80
81 virtual void mediaPlayerRequestFullscreen() = 0; 81 virtual void mediaPlayerRequestFullscreen() = 0;
82 82
83 virtual void mediaPlayerRequestSeek(double) = 0; 83 virtual void mediaPlayerRequestSeek(double) = 0;
84 84
85 // The URL for video poster image.
86 // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not d epend on it.
87 virtual KURL mediaPlayerPosterURL() = 0;
88
85 // Presentation-related methods 89 // Presentation-related methods
86 // a new frame of video is available 90 // a new frame of video is available
87 virtual void mediaPlayerRepaint() = 0; 91 virtual void mediaPlayerRepaint() = 0;
88 92
89 // the movie size has changed 93 // the movie size has changed
90 virtual void mediaPlayerSizeChanged() = 0; 94 virtual void mediaPlayerSizeChanged() = 0;
91 95
92 enum MediaKeyErrorCode { UnknownError = 1, ClientError, ServiceError, Output Error, HardwareChangeError, DomainError }; 96 enum MediaKeyErrorCode { UnknownError = 1, ClientError, ServiceError, Output Error, HardwareChangeError, DomainError };
93 virtual void mediaPlayerKeyAdded(const String& /* keySystem */, const String & /* sessionId */) = 0; 97 virtual void mediaPlayerKeyAdded(const String& /* keySystem */, const String & /* sessionId */) = 0;
94 virtual void mediaPlayerKeyError(const String& /* keySystem */, const String & /* sessionId */, MediaKeyErrorCode, unsigned short /* systemCode */) = 0; 98 virtual void mediaPlayerKeyError(const String& /* keySystem */, const String & /* sessionId */, MediaKeyErrorCode, unsigned short /* systemCode */) = 0;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 virtual bool seeking() const = 0; 145 virtual bool seeking() const = 0;
142 146
143 virtual double rate() const = 0; 147 virtual double rate() const = 0;
144 virtual void setRate(double) = 0; 148 virtual void setRate(double) = 0;
145 149
146 virtual bool paused() const = 0; 150 virtual bool paused() const = 0;
147 151
148 virtual void setVolume(double) = 0; 152 virtual void setVolume(double) = 0;
149 virtual void setMuted(bool) = 0; 153 virtual void setMuted(bool) = 0;
150 154
155 virtual void setPoster(const KURL&) = 0;
156
151 enum NetworkState { Empty, Idle, Loading, Loaded, FormatError, NetworkError, DecodeError }; 157 enum NetworkState { Empty, Idle, Loading, Loaded, FormatError, NetworkError, DecodeError };
152 virtual NetworkState networkState() const = 0; 158 virtual NetworkState networkState() const = 0;
153 159
154 enum ReadyState { HaveNothing, HaveMetadata, HaveCurrentData, HaveFutureDat a, HaveEnoughData }; 160 enum ReadyState { HaveNothing, HaveMetadata, HaveCurrentData, HaveFutureDat a, HaveEnoughData };
155 virtual ReadyState readyState() const = 0; 161 virtual ReadyState readyState() const = 0;
156 162
157 virtual double maxTimeSeekable() const = 0; 163 virtual double maxTimeSeekable() const = 0;
158 virtual PassRefPtr<TimeRanges> buffered() const = 0; 164 virtual PassRefPtr<TimeRanges> buffered() const = 0;
159 165
160 virtual bool didLoadingProgress() const = 0; 166 virtual bool didLoadingProgress() const = 0;
(...skipping 29 matching lines...) Expand all
190 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported, InvalidAccess }; 196 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported, InvalidAccess };
191 virtual MediaKeyException addKey(const String&, const unsigned char*, unsign ed, const unsigned char*, unsigned, const String&) = 0; 197 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; 198 virtual MediaKeyException generateKeyRequest(const String&, const unsigned c har*, unsigned) = 0;
193 virtual MediaKeyException cancelKeyRequest(const String&, const String&) = 0 ; 199 virtual MediaKeyException cancelKeyRequest(const String&, const String&) = 0 ;
194 virtual void setContentDecryptionModule(blink::WebContentDecryptionModule*) = 0; 200 virtual void setContentDecryptionModule(blink::WebContentDecryptionModule*) = 0;
195 }; 201 };
196 202
197 } 203 }
198 204
199 #endif // MediaPlayer_h 205 #endif // MediaPlayer_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLVideoElement.cpp ('k') | Source/web/WebMediaPlayerClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698