Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(550)

Side by Side Diff: Source/web/WebMediaPlayerClientImpl.h

Issue 22454003: Support subtitles for native fullscreen video (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/FullscreenController.cpp ('k') | Source/web/WebMediaPlayerClientImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 virtual void paintCurrentFrameInContext(WebCore::GraphicsContext*, const Web Core::IntRect&) OVERRIDE; 124 virtual void paintCurrentFrameInContext(WebCore::GraphicsContext*, const Web Core::IntRect&) OVERRIDE;
125 virtual bool copyVideoTextureToPlatformTexture(WebCore::GraphicsContext3D*, Platform3DObject texture, GC3Dint level, GC3Denum type, GC3Denum internalFormat, bool premultiplyAlpha, bool flipY) OVERRIDE; 125 virtual bool copyVideoTextureToPlatformTexture(WebCore::GraphicsContext3D*, Platform3DObject texture, GC3Dint level, GC3Denum type, GC3Denum internalFormat, bool premultiplyAlpha, bool flipY) OVERRIDE;
126 virtual void setPreload(WebCore::MediaPlayer::Preload) OVERRIDE; 126 virtual void setPreload(WebCore::MediaPlayer::Preload) OVERRIDE;
127 virtual bool hasSingleSecurityOrigin() const OVERRIDE; 127 virtual bool hasSingleSecurityOrigin() const OVERRIDE;
128 virtual bool didPassCORSAccessCheck() const OVERRIDE; 128 virtual bool didPassCORSAccessCheck() const OVERRIDE;
129 virtual double mediaTimeForTimeValue(double timeValue) const OVERRIDE; 129 virtual double mediaTimeForTimeValue(double timeValue) const OVERRIDE;
130 virtual unsigned decodedFrameCount() const OVERRIDE; 130 virtual unsigned decodedFrameCount() const OVERRIDE;
131 virtual unsigned droppedFrameCount() const OVERRIDE; 131 virtual unsigned droppedFrameCount() const OVERRIDE;
132 virtual unsigned audioDecodedByteCount() const OVERRIDE; 132 virtual unsigned audioDecodedByteCount() const OVERRIDE;
133 virtual unsigned videoDecodedByteCount() const OVERRIDE; 133 virtual unsigned videoDecodedByteCount() const OVERRIDE;
134 #if USE(NATIVE_FULLSCREEN_VIDEO) 134 virtual void showFullscreenOverlay() OVERRIDE;
135 virtual void enterFullscreen() OVERRIDE; 135 virtual void hideFullscreenOverlay() OVERRIDE;
136 virtual void exitFullscreen() OVERRIDE; 136 virtual bool canShowFullscreenOverlay() const OVERRIDE;
137 virtual bool canEnterFullscreen() const OVERRIDE;
138 #endif
139 137
140 #if ENABLE(WEB_AUDIO) 138 #if ENABLE(WEB_AUDIO)
141 virtual WebCore::AudioSourceProvider* audioSourceProvider() OVERRIDE; 139 virtual WebCore::AudioSourceProvider* audioSourceProvider() OVERRIDE;
142 #endif 140 #endif
143 141
144 virtual bool supportsAcceleratedRendering() const OVERRIDE; 142 virtual bool supportsAcceleratedRendering() const OVERRIDE;
145 143
146 virtual WebCore::MediaPlayer::MediaKeyException generateKeyRequest(const Str ing& keySystem, const unsigned char* initData, unsigned initDataLength) OVERRIDE ; 144 virtual WebCore::MediaPlayer::MediaKeyException generateKeyRequest(const Str ing& keySystem, const unsigned char* initData, unsigned initDataLength) OVERRIDE ;
147 virtual WebCore::MediaPlayer::MediaKeyException addKey(const String& keySyst em, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataLength, const String& sessionId) OVERRIDE; 145 virtual WebCore::MediaPlayer::MediaKeyException addKey(const String& keySyst em, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataLength, const String& sessionId) OVERRIDE;
148 virtual WebCore::MediaPlayer::MediaKeyException cancelKeyRequest(const Strin g& keySystem, const String& sessionId) OVERRIDE; 146 virtual WebCore::MediaPlayer::MediaKeyException cancelKeyRequest(const Strin g& keySystem, const String& sessionId) OVERRIDE;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 224
227 AudioSourceProviderImpl m_audioSourceProvider; 225 AudioSourceProviderImpl m_audioSourceProvider;
228 #endif 226 #endif
229 227
230 RefPtr<WebCore::HTMLMediaSource> m_mediaSource; 228 RefPtr<WebCore::HTMLMediaSource> m_mediaSource;
231 }; 229 };
232 230
233 } // namespace WebKit 231 } // namespace WebKit
234 232
235 #endif 233 #endif
OLDNEW
« no previous file with comments | « Source/web/FullscreenController.cpp ('k') | Source/web/WebMediaPlayerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698