| 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 26 matching lines...) Expand all Loading... |
| 37 #include "WebMediaSource.h" | 37 #include "WebMediaSource.h" |
| 38 #include "WebSetSinkIdCallbacks.h" | 38 #include "WebSetSinkIdCallbacks.h" |
| 39 #include "WebString.h" | 39 #include "WebString.h" |
| 40 #include "WebTimeRange.h" | 40 #include "WebTimeRange.h" |
| 41 #include "third_party/skia/include/core/SkXfermode.h" | 41 #include "third_party/skia/include/core/SkXfermode.h" |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 class WebAudioSourceProvider; | 45 class WebAudioSourceProvider; |
| 46 class WebContentDecryptionModule; | 46 class WebContentDecryptionModule; |
| 47 class WebMediaElementSource; |
| 47 class WebSecurityOrigin; | 48 class WebSecurityOrigin; |
| 48 class WebString; | 49 class WebString; |
| 49 class WebURL; | 50 class WebURL; |
| 50 struct WebRect; | 51 struct WebRect; |
| 51 struct WebSize; | 52 struct WebSize; |
| 52 class WebGraphicsContext3D; | 53 class WebGraphicsContext3D; |
| 53 | 54 |
| 54 class WebMediaPlayer { | 55 class WebMediaPlayer { |
| 55 public: | 56 public: |
| 56 enum NetworkState { | 57 enum NetworkState { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 LoadTypeURL = 0, | 94 LoadTypeURL = 0, |
| 94 LoadTypeMediaSource = 1, | 95 LoadTypeMediaSource = 1, |
| 95 LoadTypeMediaStream = 2, | 96 LoadTypeMediaStream = 2, |
| 96 LoadTypeMax = LoadTypeMediaStream, | 97 LoadTypeMax = LoadTypeMediaStream, |
| 97 }; | 98 }; |
| 98 | 99 |
| 99 typedef unsigned TrackId; | 100 typedef unsigned TrackId; |
| 100 | 101 |
| 101 virtual ~WebMediaPlayer() { } | 102 virtual ~WebMediaPlayer() { } |
| 102 | 103 |
| 103 virtual void load(LoadType, const WebURL&, CORSMode) = 0; | 104 virtual void load(LoadType, const WebMediaElementSource&, CORSMode) = 0; |
| 104 | 105 |
| 105 // Playback controls. | 106 // Playback controls. |
| 106 virtual void play() = 0; | 107 virtual void play() = 0; |
| 107 virtual void pause() = 0; | 108 virtual void pause() = 0; |
| 108 virtual bool supportsSave() const = 0; | 109 virtual bool supportsSave() const = 0; |
| 109 virtual void seek(double seconds) = 0; | 110 virtual void seek(double seconds) = 0; |
| 110 virtual void setRate(double) = 0; | 111 virtual void setRate(double) = 0; |
| 111 virtual void setVolume(double) = 0; | 112 virtual void setVolume(double) = 0; |
| 112 | 113 |
| 113 virtual void requestRemotePlayback() { } | 114 virtual void requestRemotePlayback() { } |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 virtual void exitedFullscreen() { } | 191 virtual void exitedFullscreen() { } |
| 191 | 192 |
| 192 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } | 193 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } |
| 193 // |selectedTrackId| is null if no track is selected. | 194 // |selectedTrackId| is null if no track is selected. |
| 194 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } | 195 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } |
| 195 }; | 196 }; |
| 196 | 197 |
| 197 } // namespace blink | 198 } // namespace blink |
| 198 | 199 |
| 199 #endif | 200 #endif |
| OLD | NEW |