Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 27 matching lines...) Expand all Loading... | |
| 38 class WebInbandTextTrack; | 38 class WebInbandTextTrack; |
| 39 class WebLayer; | 39 class WebLayer; |
| 40 class WebMediaSource; | 40 class WebMediaSource; |
| 41 } | 41 } |
| 42 | 42 |
| 43 namespace WebCore { | 43 namespace WebCore { |
| 44 | 44 |
| 45 class AudioSourceProvider; | 45 class AudioSourceProvider; |
| 46 class GraphicsContext; | 46 class GraphicsContext; |
| 47 class IntRect; | 47 class IntRect; |
| 48 class IntSize; | 48 class IntSize; |
|
acolwell GONE FROM CHROMIUM
2014/05/20 16:40:21
I think you can remove this now
| |
| 49 class KURL; | 49 class KURL; |
| 50 class MediaPlayer; | 50 class MediaPlayer; |
| 51 class TimeRanges; | 51 class TimeRanges; |
| 52 | 52 |
| 53 // GL types as defined in OpenGL ES 2.0 header file gl2.h from khronos.org. | 53 // GL types as defined in OpenGL ES 2.0 header file gl2.h from khronos.org. |
| 54 // That header cannot be included directly due to a conflict with NPAPI headers. | 54 // That header cannot be included directly due to a conflict with NPAPI headers. |
| 55 // See crbug.com/328085. | 55 // See crbug.com/328085. |
| 56 typedef unsigned GC3Denum; | 56 typedef unsigned GC3Denum; |
| 57 typedef int GC3Dint; | 57 typedef int GC3Dint; |
| 58 | 58 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 110 | 110 |
| 111 MediaPlayer() { } | 111 MediaPlayer() { } |
| 112 virtual ~MediaPlayer() { } | 112 virtual ~MediaPlayer() { } |
| 113 | 113 |
| 114 virtual void load(blink::WebMediaPlayer::LoadType, const String& url, blink: :WebMediaPlayer::CORSMode) = 0; | 114 virtual void load(blink::WebMediaPlayer::LoadType, const String& url, blink: :WebMediaPlayer::CORSMode) = 0; |
| 115 | 115 |
| 116 virtual void play() = 0; | 116 virtual void play() = 0; |
| 117 virtual void pause() = 0; | 117 virtual void pause() = 0; |
| 118 | 118 |
| 119 virtual bool supportsSave() const = 0; | 119 virtual bool supportsSave() const = 0; |
| 120 virtual IntSize naturalSize() const = 0; | |
| 121 | 120 |
| 122 virtual bool hasVideo() const = 0; | |
| 123 virtual bool hasAudio() const = 0; | 121 virtual bool hasAudio() const = 0; |
|
acolwell GONE FROM CHROMIUM
2014/05/20 16:40:21
Please remove this as well so that both hasXXX met
| |
| 124 | 122 |
| 125 virtual double duration() const = 0; | 123 virtual double duration() const = 0; |
| 126 | 124 |
| 127 virtual double currentTime() const = 0; | 125 virtual double currentTime() const = 0; |
| 128 | 126 |
| 129 virtual void seek(double) = 0; | 127 virtual void seek(double) = 0; |
| 130 | 128 |
| 131 virtual bool seeking() const = 0; | 129 virtual bool seeking() const = 0; |
| 132 | 130 |
| 133 virtual double rate() const = 0; | 131 virtual double rate() const = 0; |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 153 | 151 |
| 154 enum Preload { None, MetaData, Auto }; | 152 enum Preload { None, MetaData, Auto }; |
| 155 virtual void setPreload(Preload) = 0; | 153 virtual void setPreload(Preload) = 0; |
| 156 | 154 |
| 157 virtual void showFullscreenOverlay() = 0; | 155 virtual void showFullscreenOverlay() = 0; |
| 158 virtual void hideFullscreenOverlay() = 0; | 156 virtual void hideFullscreenOverlay() = 0; |
| 159 virtual bool canShowFullscreenOverlay() const = 0; | 157 virtual bool canShowFullscreenOverlay() const = 0; |
| 160 | 158 |
| 161 virtual bool hasSingleSecurityOrigin() const = 0; | 159 virtual bool hasSingleSecurityOrigin() const = 0; |
| 162 | 160 |
| 163 virtual bool didPassCORSAccessCheck() const = 0; | |
| 164 | |
| 165 // Time value in the movie's time scale. It is only necessary to override th is if the media | 161 // Time value in the movie's time scale. It is only necessary to override th is if the media |
| 166 // engine uses rational numbers to represent media time. | 162 // engine uses rational numbers to represent media time. |
| 167 virtual double mediaTimeForTimeValue(double timeValue) const = 0; | 163 virtual double mediaTimeForTimeValue(double timeValue) const = 0; |
| 168 | 164 |
| 169 virtual unsigned decodedFrameCount() const = 0; | |
| 170 virtual unsigned droppedFrameCount() const = 0; | |
| 171 virtual unsigned corruptedFrameCount() const = 0; | |
| 172 virtual unsigned audioDecodedByteCount() const = 0; | 165 virtual unsigned audioDecodedByteCount() const = 0; |
| 173 virtual unsigned videoDecodedByteCount() const = 0; | 166 virtual unsigned videoDecodedByteCount() const = 0; |
|
acolwell GONE FROM CHROMIUM
2014/05/20 16:40:21
Please remove these two as well so that all the st
| |
| 174 | 167 |
| 175 #if ENABLE(WEB_AUDIO) | 168 #if ENABLE(WEB_AUDIO) |
| 176 virtual AudioSourceProvider* audioSourceProvider() = 0; | 169 virtual AudioSourceProvider* audioSourceProvider() = 0; |
| 177 #endif | 170 #endif |
| 178 virtual blink::WebMediaPlayer* webMediaPlayer() const = 0; | 171 virtual blink::WebMediaPlayer* webMediaPlayer() const = 0; |
| 179 }; | 172 }; |
| 180 | 173 |
| 181 } | 174 } |
| 182 | 175 |
| 183 #endif // MediaPlayer_h | 176 #endif // MediaPlayer_h |
| OLD | NEW |