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

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

Issue 530993002: WebMediaPlayerImpl should notify ended event Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // the network state has changed 48 // the network state has changed
49 virtual void mediaPlayerNetworkStateChanged() = 0; 49 virtual void mediaPlayerNetworkStateChanged() = 0;
50 50
51 // the ready state has changed 51 // the ready state has changed
52 virtual void mediaPlayerReadyStateChanged() = 0; 52 virtual void mediaPlayerReadyStateChanged() = 0;
53 53
54 // time has jumped, eg. not as a result of normal playback 54 // time has jumped, eg. not as a result of normal playback
55 virtual void mediaPlayerTimeChanged() = 0; 55 virtual void mediaPlayerTimeChanged() = 0;
56 56
57 // the media has reached the end
58 virtual void mediaPlayerEnded() = 0;
59
57 // the media file duration has changed, or is now known 60 // the media file duration has changed, or is now known
58 virtual void mediaPlayerDurationChanged() = 0; 61 virtual void mediaPlayerDurationChanged() = 0;
59 62
60 // the play/pause status changed 63 // the play/pause status changed
61 virtual void mediaPlayerPlaybackStateChanged() = 0; 64 virtual void mediaPlayerPlaybackStateChanged() = 0;
62 65
63 virtual void mediaPlayerRequestFullscreen() = 0; 66 virtual void mediaPlayerRequestFullscreen() = 0;
64 67
65 virtual void mediaPlayerRequestSeek(double) = 0; 68 virtual void mediaPlayerRequestSeek(double) = 0;
66 69
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 106
104 #if ENABLE(WEB_AUDIO) 107 #if ENABLE(WEB_AUDIO)
105 virtual AudioSourceProvider* audioSourceProvider() = 0; 108 virtual AudioSourceProvider* audioSourceProvider() = 0;
106 #endif 109 #endif
107 virtual WebMediaPlayer* webMediaPlayer() const = 0; 110 virtual WebMediaPlayer* webMediaPlayer() const = 0;
108 }; 111 };
109 112
110 } // namespace blink 113 } // namespace blink
111 114
112 #endif // MediaPlayer_h 115 #endif // MediaPlayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698