OLD | NEW |
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 repaint() = 0; | 79 virtual void repaint() = 0; |
80 virtual void durationChanged() = 0; | 80 virtual void durationChanged() = 0; |
81 virtual void sizeChanged() = 0; | 81 virtual void sizeChanged() = 0; |
82 // FIXME: Remove once calls on the Chromium-side have been removed. | |
83 virtual double volume() const = 0; | |
84 virtual void playbackStateChanged() = 0; | 82 virtual void playbackStateChanged() = 0; |
85 virtual WebMediaPlayer::Preload preload() const = 0; | |
86 virtual void keyAdded(const WebString& keySystem, const WebString& sessionId
) = 0; | 83 virtual void keyAdded(const WebString& keySystem, const WebString& sessionId
) = 0; |
87 virtual void keyError(const WebString& keySystem, const WebString& sessionId
, MediaKeyErrorCode, unsigned short systemCode) = 0; | 84 virtual void keyError(const WebString& keySystem, const WebString& sessionId
, MediaKeyErrorCode, unsigned short systemCode) = 0; |
88 virtual void keyMessage(const WebString& keySystem, const WebString& session
Id, const unsigned char* message, unsigned messageLength, const WebURL& defaultU
RL) = 0; | 85 virtual void keyMessage(const WebString& keySystem, const WebString& session
Id, const unsigned char* message, unsigned messageLength, const WebURL& defaultU
RL) = 0; |
89 virtual void keyNeeded(const WebString& contentType, const unsigned char* in
itData, unsigned initDataLength) = 0; | 86 virtual void keyNeeded(const WebString& contentType, const unsigned char* in
itData, unsigned initDataLength) = 0; |
90 virtual void setWebLayer(WebLayer*) = 0; | 87 virtual void setWebLayer(WebLayer*) = 0; |
91 virtual WebMediaPlayer::TrackId addAudioTrack(const WebString& id, AudioTrac
kKind, const WebString& label, const WebString& language, bool enabled) = 0; | 88 virtual WebMediaPlayer::TrackId addAudioTrack(const WebString& id, AudioTrac
kKind, const WebString& label, const WebString& language, bool enabled) = 0; |
92 virtual void removeAudioTrack(WebMediaPlayer::TrackId) = 0; | 89 virtual void removeAudioTrack(WebMediaPlayer::TrackId) = 0; |
93 virtual WebMediaPlayer::TrackId addVideoTrack(const WebString& id, VideoTrac
kKind, const WebString& label, const WebString& language, bool selected) = 0; | 90 virtual WebMediaPlayer::TrackId addVideoTrack(const WebString& id, VideoTrac
kKind, const WebString& label, const WebString& language, bool selected) = 0; |
94 virtual void removeVideoTrack(WebMediaPlayer::TrackId) = 0; | 91 virtual void removeVideoTrack(WebMediaPlayer::TrackId) = 0; |
95 virtual void addTextTrack(WebInbandTextTrack*) = 0; | 92 virtual void addTextTrack(WebInbandTextTrack*) = 0; |
96 virtual void removeTextTrack(WebInbandTextTrack*) = 0; | 93 virtual void removeTextTrack(WebInbandTextTrack*) = 0; |
97 virtual void mediaSourceOpened(WebMediaSource*) = 0; | 94 virtual void mediaSourceOpened(WebMediaSource*) = 0; |
98 virtual void requestFullscreen() = 0; | 95 virtual void requestFullscreen() = 0; |
99 virtual void requestSeek(double) = 0; | 96 virtual void requestSeek(double) = 0; |
100 | 97 |
101 protected: | 98 protected: |
102 ~WebMediaPlayerClient() { } | 99 ~WebMediaPlayerClient() { } |
103 }; | 100 }; |
104 | 101 |
105 } // namespace blink | 102 } // namespace blink |
106 | 103 |
107 #endif | 104 #endif |
OLD | NEW |