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 16 matching lines...) Expand all Loading... |
27 #define MediaPlayerPrivate_h | 27 #define MediaPlayerPrivate_h |
28 | 28 |
29 #include "core/html/TimeRanges.h" | 29 #include "core/html/TimeRanges.h" |
30 #include "core/platform/graphics/MediaPlayer.h" | 30 #include "core/platform/graphics/MediaPlayer.h" |
31 #include <wtf/Forward.h> | 31 #include <wtf/Forward.h> |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 | 34 |
35 class IntRect; | 35 class IntRect; |
36 class IntSize; | 36 class IntSize; |
37 class PlatformTextTrack; | |
38 | 37 |
39 class MediaPlayerPrivateInterface { | 38 class MediaPlayerPrivateInterface { |
40 WTF_MAKE_NONCOPYABLE(MediaPlayerPrivateInterface); WTF_MAKE_FAST_ALLOCATED; | 39 WTF_MAKE_NONCOPYABLE(MediaPlayerPrivateInterface); WTF_MAKE_FAST_ALLOCATED; |
41 public: | 40 public: |
42 MediaPlayerPrivateInterface() { } | 41 MediaPlayerPrivateInterface() { } |
43 virtual ~MediaPlayerPrivateInterface() { } | 42 virtual ~MediaPlayerPrivateInterface() { } |
44 | 43 |
45 virtual void load(const String& url) = 0; | 44 virtual void load(const String& url) = 0; |
46 virtual void load(const String& url, PassRefPtr<WebKitMediaSource>) = 0; | 45 virtual void load(const String& url, PassRefPtr<WebKitMediaSource>) = 0; |
47 virtual void cancelLoad() = 0; | 46 virtual void cancelLoad() = 0; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 #endif | 151 #endif |
153 | 152 |
154 #if ENABLE(ENCRYPTED_MEDIA) | 153 #if ENABLE(ENCRYPTED_MEDIA) |
155 virtual MediaPlayer::MediaKeyException addKey(const String&, const unsigned
char*, unsigned, const unsigned char*, unsigned, const String&) { return MediaPl
ayer::KeySystemNotSupported; } | 154 virtual MediaPlayer::MediaKeyException addKey(const String&, const unsigned
char*, unsigned, const unsigned char*, unsigned, const String&) { return MediaPl
ayer::KeySystemNotSupported; } |
156 virtual MediaPlayer::MediaKeyException generateKeyRequest(const String&, con
st unsigned char*, unsigned) { return MediaPlayer::KeySystemNotSupported; } | 155 virtual MediaPlayer::MediaKeyException generateKeyRequest(const String&, con
st unsigned char*, unsigned) { return MediaPlayer::KeySystemNotSupported; } |
157 virtual MediaPlayer::MediaKeyException cancelKeyRequest(const String&, const
String&) { return MediaPlayer::KeySystemNotSupported; } | 156 virtual MediaPlayer::MediaKeyException cancelKeyRequest(const String&, const
String&) { return MediaPlayer::KeySystemNotSupported; } |
158 #endif | 157 #endif |
159 | 158 |
160 virtual bool requiresTextTrackRepresentation() const { return false; } | 159 virtual bool requiresTextTrackRepresentation() const { return false; } |
161 virtual void setTextTrackRepresentation(TextTrackRepresentation*) { } | 160 virtual void setTextTrackRepresentation(TextTrackRepresentation*) { } |
162 | |
163 #if USE(PLATFORM_TEXT_TRACK_MENU) | |
164 virtual bool implementsTextTrackControls() const { return false; } | |
165 virtual PassRefPtr<PlatformTextTrackMenuInterface> textTrackMenu() { return
0; } | |
166 #endif | |
167 | |
168 }; | 161 }; |
169 | 162 |
170 } | 163 } |
171 | 164 |
172 #endif | 165 #endif |
OLD | NEW |