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

Side by Side Diff: public/platform/WebMediaPlayerClient.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/web/WebMediaPlayerClientImpl.cpp ('k') | no next file » | 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) 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 AudioTrackKindDescriptions, 69 AudioTrackKindDescriptions,
70 AudioTrackKindMain, 70 AudioTrackKindMain,
71 AudioTrackKindMainDescriptions, 71 AudioTrackKindMainDescriptions,
72 AudioTrackKindTranslation, 72 AudioTrackKindTranslation,
73 AudioTrackKindCommentary 73 AudioTrackKindCommentary
74 }; 74 };
75 75
76 virtual void networkStateChanged() = 0; 76 virtual void networkStateChanged() = 0;
77 virtual void readyStateChanged() = 0; 77 virtual void readyStateChanged() = 0;
78 virtual void timeChanged() = 0; 78 virtual void timeChanged() = 0;
79 virtual void mediaEnded() = 0;
79 virtual void repaint() = 0; 80 virtual void repaint() = 0;
80 virtual void durationChanged() = 0; 81 virtual void durationChanged() = 0;
81 virtual void sizeChanged() = 0; 82 virtual void sizeChanged() = 0;
82 virtual void playbackStateChanged() = 0; 83 virtual void playbackStateChanged() = 0;
83 virtual void keyAdded(const WebString& keySystem, const WebString& sessionId ) = 0; 84 virtual void keyAdded(const WebString& keySystem, const WebString& sessionId ) = 0;
84 virtual void keyError(const WebString& keySystem, const WebString& sessionId , MediaKeyErrorCode, unsigned short systemCode) = 0; 85 virtual void keyError(const WebString& keySystem, const WebString& sessionId , MediaKeyErrorCode, unsigned short systemCode) = 0;
85 virtual void keyMessage(const WebString& keySystem, const WebString& session Id, const unsigned char* message, unsigned messageLength, const WebURL& defaultU RL) = 0; 86 virtual void keyMessage(const WebString& keySystem, const WebString& session Id, const unsigned char* message, unsigned messageLength, const WebURL& defaultU RL) = 0;
86 virtual void keyNeeded(const WebString& contentType, const unsigned char* in itData, unsigned initDataLength) = 0; 87 virtual void keyNeeded(const WebString& contentType, const unsigned char* in itData, unsigned initDataLength) = 0;
87 virtual void setWebLayer(WebLayer*) = 0; 88 virtual void setWebLayer(WebLayer*) = 0;
88 virtual WebMediaPlayer::TrackId addAudioTrack(const WebString& id, AudioTrac kKind, const WebString& label, const WebString& language, bool enabled) = 0; 89 virtual WebMediaPlayer::TrackId addAudioTrack(const WebString& id, AudioTrac kKind, const WebString& label, const WebString& language, bool enabled) = 0;
89 virtual void removeAudioTrack(WebMediaPlayer::TrackId) = 0; 90 virtual void removeAudioTrack(WebMediaPlayer::TrackId) = 0;
90 virtual WebMediaPlayer::TrackId addVideoTrack(const WebString& id, VideoTrac kKind, const WebString& label, const WebString& language, bool selected) = 0; 91 virtual WebMediaPlayer::TrackId addVideoTrack(const WebString& id, VideoTrac kKind, const WebString& label, const WebString& language, bool selected) = 0;
91 virtual void removeVideoTrack(WebMediaPlayer::TrackId) = 0; 92 virtual void removeVideoTrack(WebMediaPlayer::TrackId) = 0;
92 virtual void addTextTrack(WebInbandTextTrack*) = 0; 93 virtual void addTextTrack(WebInbandTextTrack*) = 0;
93 virtual void removeTextTrack(WebInbandTextTrack*) = 0; 94 virtual void removeTextTrack(WebInbandTextTrack*) = 0;
94 virtual void mediaSourceOpened(WebMediaSource*) = 0; 95 virtual void mediaSourceOpened(WebMediaSource*) = 0;
95 virtual void requestFullscreen() = 0; 96 virtual void requestFullscreen() = 0;
96 virtual void requestSeek(double) = 0; 97 virtual void requestSeek(double) = 0;
97 virtual void remoteRouteAvailabilityChanged(bool) = 0; 98 virtual void remoteRouteAvailabilityChanged(bool) = 0;
98 virtual void connectedToRemoteDevice() = 0; 99 virtual void connectedToRemoteDevice() = 0;
99 virtual void disconnectedFromRemoteDevice() = 0; 100 virtual void disconnectedFromRemoteDevice() = 0;
100 101
101 protected: 102 protected:
102 ~WebMediaPlayerClient() { } 103 ~WebMediaPlayerClient() { }
103 }; 104 };
104 105
105 } // namespace blink 106 } // namespace blink
106 107
107 #endif 108 #endif
OLDNEW
« no previous file with comments | « Source/web/WebMediaPlayerClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698