| 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 25 matching lines...) Expand all Loading... |
| 36 class IntSize; | 36 class IntSize; |
| 37 class PlatformTextTrack; | 37 class PlatformTextTrack; |
| 38 | 38 |
| 39 class MediaPlayerPrivateInterface { | 39 class MediaPlayerPrivateInterface { |
| 40 WTF_MAKE_NONCOPYABLE(MediaPlayerPrivateInterface); WTF_MAKE_FAST_ALLOCATED; | 40 WTF_MAKE_NONCOPYABLE(MediaPlayerPrivateInterface); WTF_MAKE_FAST_ALLOCATED; |
| 41 public: | 41 public: |
| 42 MediaPlayerPrivateInterface() { } | 42 MediaPlayerPrivateInterface() { } |
| 43 virtual ~MediaPlayerPrivateInterface() { } | 43 virtual ~MediaPlayerPrivateInterface() { } |
| 44 | 44 |
| 45 virtual void load(const String& url) = 0; | 45 virtual void load(const String& url) = 0; |
| 46 virtual void load(const String& url, PassRefPtr<MediaSource>) = 0; | 46 virtual void load(const String& url, PassRefPtr<WebKitMediaSource>) = 0; |
| 47 virtual void cancelLoad() = 0; | 47 virtual void cancelLoad() = 0; |
| 48 | 48 |
| 49 virtual void prepareToPlay() { } | 49 virtual void prepareToPlay() { } |
| 50 virtual PlatformMedia platformMedia() const { return NoPlatformMedia; } | 50 virtual PlatformMedia platformMedia() const { return NoPlatformMedia; } |
| 51 virtual PlatformLayer* platformLayer() const { return 0; } | 51 virtual PlatformLayer* platformLayer() const { return 0; } |
| 52 | 52 |
| 53 virtual void play() = 0; | 53 virtual void play() = 0; |
| 54 virtual void pause() = 0; | 54 virtual void pause() = 0; |
| 55 | 55 |
| 56 virtual bool supportsFullscreen() const { return false; } | 56 virtual bool supportsFullscreen() const { return false; } |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 #if USE(PLATFORM_TEXT_TRACK_MENU) | 164 #if USE(PLATFORM_TEXT_TRACK_MENU) |
| 165 virtual bool implementsTextTrackControls() const { return false; } | 165 virtual bool implementsTextTrackControls() const { return false; } |
| 166 virtual PassRefPtr<PlatformTextTrackMenuInterface> textTrackMenu() { return
0; } | 166 virtual PassRefPtr<PlatformTextTrackMenuInterface> textTrackMenu() { return
0; } |
| 167 #endif | 167 #endif |
| 168 | 168 |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 } | 171 } |
| 172 | 172 |
| 173 #endif | 173 #endif |
| OLD | NEW |