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

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: Rebase 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
« no previous file with comments | « Source/core/html/HTMLMediaElement.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // the network state has changed 46 // the network state has changed
47 virtual void mediaPlayerNetworkStateChanged() = 0; 47 virtual void mediaPlayerNetworkStateChanged() = 0;
48 48
49 // the ready state has changed 49 // the ready state has changed
50 virtual void mediaPlayerReadyStateChanged() = 0; 50 virtual void mediaPlayerReadyStateChanged() = 0;
51 51
52 // time has jumped, eg. not as a result of normal playback 52 // time has jumped, eg. not as a result of normal playback
53 virtual void mediaPlayerTimeChanged() = 0; 53 virtual void mediaPlayerTimeChanged() = 0;
54 54
55 // the media has reached the end
56 virtual void mediaPlayerEnded() = 0;
57
55 // the media file duration has changed, or is now known 58 // the media file duration has changed, or is now known
56 virtual void mediaPlayerDurationChanged() = 0; 59 virtual void mediaPlayerDurationChanged() = 0;
57 60
58 // the play/pause status changed 61 // the play/pause status changed
59 virtual void mediaPlayerPlaybackStateChanged() = 0; 62 virtual void mediaPlayerPlaybackStateChanged() = 0;
60 63
61 virtual void mediaPlayerRequestFullscreen() = 0; 64 virtual void mediaPlayerRequestFullscreen() = 0;
62 65
63 virtual void mediaPlayerRequestSeek(double) = 0; 66 virtual void mediaPlayerRequestSeek(double) = 0;
64 67
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 104
102 #if ENABLE(WEB_AUDIO) 105 #if ENABLE(WEB_AUDIO)
103 virtual AudioSourceProvider* audioSourceProvider() = 0; 106 virtual AudioSourceProvider* audioSourceProvider() = 0;
104 #endif 107 #endif
105 virtual WebMediaPlayer* webMediaPlayer() const = 0; 108 virtual WebMediaPlayer* webMediaPlayer() const = 0;
106 }; 109 };
107 110
108 } // namespace blink 111 } // namespace blink
109 112
110 #endif // MediaPlayer_h 113 #endif // MediaPlayer_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/web/WebMediaPlayerClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698