| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 namespace gpu { | 43 namespace gpu { |
| 44 namespace gles2 { | 44 namespace gles2 { |
| 45 class GLES2Interface; | 45 class GLES2Interface; |
| 46 } | 46 } |
| 47 } | 47 } |
| 48 | 48 |
| 49 namespace blink { | 49 namespace blink { |
| 50 | 50 |
| 51 class WebAudioSourceProvider; | 51 class WebAudioSourceProvider; |
| 52 class WebContentDecryptionModule; | 52 class WebContentDecryptionModule; |
| 53 class WebMediaElementSource; |
| 53 class WebSecurityOrigin; | 54 class WebSecurityOrigin; |
| 54 class WebString; | 55 class WebString; |
| 55 class WebURL; | 56 class WebURL; |
| 56 struct WebRect; | 57 struct WebRect; |
| 57 struct WebSize; | 58 struct WebSize; |
| 58 | 59 |
| 59 class WebMediaPlayer { | 60 class WebMediaPlayer { |
| 60 public: | 61 public: |
| 61 enum NetworkState { | 62 enum NetworkState { |
| 62 NetworkStateEmpty, | 63 NetworkStateEmpty, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 LoadTypeMediaSource = 1, | 100 LoadTypeMediaSource = 1, |
| 100 LoadTypeMediaStream = 2, | 101 LoadTypeMediaStream = 2, |
| 101 LoadTypeMax = LoadTypeMediaStream, | 102 LoadTypeMax = LoadTypeMediaStream, |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 typedef unsigned TrackId; | 105 typedef unsigned TrackId; |
| 105 enum TrackType { TextTrack, AudioTrack, VideoTrack }; | 106 enum TrackType { TextTrack, AudioTrack, VideoTrack }; |
| 106 | 107 |
| 107 virtual ~WebMediaPlayer() { } | 108 virtual ~WebMediaPlayer() { } |
| 108 | 109 |
| 109 virtual void load(LoadType, const WebURL&, CORSMode) = 0; | 110 virtual void load(LoadType, const WebMediaElementSource&, CORSMode) = 0; |
| 110 | 111 |
| 111 // Playback controls. | 112 // Playback controls. |
| 112 virtual void play() = 0; | 113 virtual void play() = 0; |
| 113 virtual void pause() = 0; | 114 virtual void pause() = 0; |
| 114 virtual bool supportsSave() const = 0; | 115 virtual bool supportsSave() const = 0; |
| 115 virtual void seek(double seconds) = 0; | 116 virtual void seek(double seconds) = 0; |
| 116 virtual void setRate(double) = 0; | 117 virtual void setRate(double) = 0; |
| 117 virtual void setVolume(double) = 0; | 118 virtual void setVolume(double) = 0; |
| 118 | 119 |
| 119 virtual void requestRemotePlayback() { } | 120 virtual void requestRemotePlayback() { } |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 virtual void exitedFullscreen() { } | 197 virtual void exitedFullscreen() { } |
| 197 | 198 |
| 198 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } | 199 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } |
| 199 // |selectedTrackId| is null if no track is selected. | 200 // |selectedTrackId| is null if no track is selected. |
| 200 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } | 201 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } |
| 201 }; | 202 }; |
| 202 | 203 |
| 203 } // namespace blink | 204 } // namespace blink |
| 204 | 205 |
| 205 #endif | 206 #endif |
| OLD | NEW |