| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 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 IntSize; | 38 class IntSize; |
| 39 class PlatformTextTrack; | 39 class PlatformTextTrack; |
| 40 | 40 |
| 41 class MediaPlayerPrivateInterface { | 41 class MediaPlayerPrivateInterface { |
| 42 WTF_MAKE_NONCOPYABLE(MediaPlayerPrivateInterface); WTF_MAKE_FAST_ALLOCATED; | 42 WTF_MAKE_NONCOPYABLE(MediaPlayerPrivateInterface); WTF_MAKE_FAST_ALLOCATED; |
| 43 public: | 43 public: |
| 44 MediaPlayerPrivateInterface() { } | 44 MediaPlayerPrivateInterface() { } |
| 45 virtual ~MediaPlayerPrivateInterface() { } | 45 virtual ~MediaPlayerPrivateInterface() { } |
| 46 | 46 |
| 47 virtual void load(const String& url) = 0; | 47 virtual void load(const String& url) = 0; |
| 48 #if ENABLE(MEDIA_SOURCE) | |
| 49 virtual void load(const String& url, PassRefPtr<MediaSource>) = 0; | 48 virtual void load(const String& url, PassRefPtr<MediaSource>) = 0; |
| 50 #endif | |
| 51 virtual void cancelLoad() = 0; | 49 virtual void cancelLoad() = 0; |
| 52 | 50 |
| 53 virtual void prepareToPlay() { } | 51 virtual void prepareToPlay() { } |
| 54 virtual PlatformMedia platformMedia() const { return NoPlatformMedia; } | 52 virtual PlatformMedia platformMedia() const { return NoPlatformMedia; } |
| 55 #if USE(ACCELERATED_COMPOSITING) | 53 #if USE(ACCELERATED_COMPOSITING) |
| 56 virtual PlatformLayer* platformLayer() const { return 0; } | 54 virtual PlatformLayer* platformLayer() const { return 0; } |
| 57 #endif | 55 #endif |
| 58 | 56 |
| 59 virtual void play() = 0; | 57 virtual void play() = 0; |
| 60 virtual void pause() = 0; | 58 virtual void pause() = 0; |
| 61 | 59 |
| 62 virtual bool supportsFullscreen() const { return false; } | 60 virtual bool supportsFullscreen() const { return false; } |
| 63 virtual bool supportsSave() const { return false; } | 61 virtual bool supportsSave() const { return false; } |
| 64 virtual bool supportsScanning() const { return false; } | 62 virtual bool supportsScanning() const { return false; } |
| 65 | 63 |
| 66 virtual IntSize naturalSize() const = 0; | 64 virtual IntSize naturalSize() const = 0; |
| 67 | 65 |
| 68 virtual bool hasVideo() const = 0; | 66 virtual bool hasVideo() const = 0; |
| 69 virtual bool hasAudio() const = 0; | 67 virtual bool hasAudio() const = 0; |
| 70 | 68 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 188 |
| 191 #if USE(GSTREAMER) | 189 #if USE(GSTREAMER) |
| 192 virtual void simulateAudioInterruption() { } | 190 virtual void simulateAudioInterruption() { } |
| 193 #endif | 191 #endif |
| 194 }; | 192 }; |
| 195 | 193 |
| 196 } | 194 } |
| 197 | 195 |
| 198 #endif | 196 #endif |
| 199 #endif | 197 #endif |
| OLD | NEW |