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

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

Issue 388803005: Eliminate MediaPlayer abstraction(seek, duration, poster APIs) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: updated as per review Created 6 years, 5 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
« no previous file with comments | « Source/platform/graphics/media/MediaPlayer.h ('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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 virtual void removeVideoTrack(WebMediaPlayer::TrackId) OVERRIDE; 91 virtual void removeVideoTrack(WebMediaPlayer::TrackId) OVERRIDE;
92 virtual void addTextTrack(WebInbandTextTrack*) OVERRIDE; 92 virtual void addTextTrack(WebInbandTextTrack*) OVERRIDE;
93 virtual void removeTextTrack(WebInbandTextTrack*) OVERRIDE; 93 virtual void removeTextTrack(WebInbandTextTrack*) OVERRIDE;
94 virtual void mediaSourceOpened(WebMediaSource*) OVERRIDE; 94 virtual void mediaSourceOpened(WebMediaSource*) OVERRIDE;
95 virtual void requestFullscreen() OVERRIDE; 95 virtual void requestFullscreen() OVERRIDE;
96 virtual void requestSeek(double) OVERRIDE; 96 virtual void requestSeek(double) OVERRIDE;
97 97
98 // MediaPlayer methods: 98 // MediaPlayer methods:
99 virtual WebMediaPlayer* webMediaPlayer() const OVERRIDE; 99 virtual WebMediaPlayer* webMediaPlayer() const OVERRIDE;
100 virtual void load(WebMediaPlayer::LoadType, const WTF::String& url, WebMedia Player::CORSMode) OVERRIDE; 100 virtual void load(WebMediaPlayer::LoadType, const WTF::String& url, WebMedia Player::CORSMode) OVERRIDE;
101 virtual double duration() const OVERRIDE;
102 virtual double currentTime() const OVERRIDE;
103 virtual void seek(double time) OVERRIDE;
104 virtual bool seeking() const OVERRIDE;
105 virtual void setPoster(const WebCore::KURL&) OVERRIDE;
106 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect&) OVERR IDE; 101 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect&) OVERR IDE;
107 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platfo rm3DObject texture, GLint level, GLenum type, GLenum internalFormat, bool premul tiplyAlpha, bool flipY) OVERRIDE; 102 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platfo rm3DObject texture, GLint level, GLenum type, GLenum internalFormat, bool premul tiplyAlpha, bool flipY) OVERRIDE;
108 virtual void setPreload(WebCore::MediaPlayer::Preload) OVERRIDE; 103 virtual void setPreload(WebCore::MediaPlayer::Preload) OVERRIDE;
109 104
110 #if ENABLE(WEB_AUDIO) 105 #if ENABLE(WEB_AUDIO)
111 virtual WebCore::AudioSourceProvider* audioSourceProvider() OVERRIDE; 106 virtual WebCore::AudioSourceProvider* audioSourceProvider() OVERRIDE;
112 #endif 107 #endif
113 108
114 private: 109 private:
115 explicit WebMediaPlayerClientImpl(WebCore::MediaPlayerClient*); 110 explicit WebMediaPlayerClientImpl(WebCore::MediaPlayerClient*);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 Mutex provideInputLock; 169 Mutex provideInputLock;
175 }; 170 };
176 171
177 AudioSourceProviderImpl m_audioSourceProvider; 172 AudioSourceProviderImpl m_audioSourceProvider;
178 #endif 173 #endif
179 }; 174 };
180 175
181 } // namespace blink 176 } // namespace blink
182 177
183 #endif 178 #endif
OLDNEW
« no previous file with comments | « Source/platform/graphics/media/MediaPlayer.h ('k') | Source/web/WebMediaPlayerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698