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

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

Issue 325513002: Revert 175508 "Eliminate MediaPlayer & MediaPlayerClient abstrac..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 6 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
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual void setWebLayer(WebLayer*) OVERRIDE; 87 virtual void setWebLayer(WebLayer*) OVERRIDE;
88 virtual void addTextTrack(WebInbandTextTrack*) OVERRIDE; 88 virtual void addTextTrack(WebInbandTextTrack*) OVERRIDE;
89 virtual void removeTextTrack(WebInbandTextTrack*) OVERRIDE; 89 virtual void removeTextTrack(WebInbandTextTrack*) OVERRIDE;
90 virtual void mediaSourceOpened(WebMediaSource*) OVERRIDE; 90 virtual void mediaSourceOpened(WebMediaSource*) OVERRIDE;
91 virtual void requestFullscreen() OVERRIDE; 91 virtual void requestFullscreen() OVERRIDE;
92 virtual void requestSeek(double) OVERRIDE; 92 virtual void requestSeek(double) OVERRIDE;
93 93
94 // MediaPlayer methods: 94 // MediaPlayer methods:
95 virtual WebMediaPlayer* webMediaPlayer() const OVERRIDE; 95 virtual WebMediaPlayer* webMediaPlayer() const OVERRIDE;
96 virtual void load(WebMediaPlayer::LoadType, const WTF::String& url, WebMedia Player::CORSMode) OVERRIDE; 96 virtual void load(WebMediaPlayer::LoadType, const WTF::String& url, WebMedia Player::CORSMode) OVERRIDE;
97 virtual void play() OVERRIDE;
98 virtual void pause() OVERRIDE;
99 virtual bool supportsSave() const OVERRIDE;
97 virtual double duration() const OVERRIDE; 100 virtual double duration() const OVERRIDE;
98 virtual double currentTime() const OVERRIDE; 101 virtual double currentTime() const OVERRIDE;
99 virtual void seek(double time) OVERRIDE; 102 virtual void seek(double time) OVERRIDE;
100 virtual bool seeking() const OVERRIDE; 103 virtual bool seeking() const OVERRIDE;
101 virtual double rate() const OVERRIDE; 104 virtual double rate() const OVERRIDE;
102 virtual void setRate(double) OVERRIDE; 105 virtual void setRate(double) OVERRIDE;
106 virtual bool paused() const OVERRIDE;
103 virtual void setPoster(const WebCore::KURL&) OVERRIDE; 107 virtual void setPoster(const WebCore::KURL&) OVERRIDE;
104 virtual WebCore::MediaPlayer::NetworkState networkState() const OVERRIDE; 108 virtual WebCore::MediaPlayer::NetworkState networkState() const OVERRIDE;
105 virtual WebCore::MediaPlayer::ReadyState readyState() const OVERRIDE; 109 virtual WebCore::MediaPlayer::ReadyState readyState() const OVERRIDE;
106 virtual double maxTimeSeekable() const OVERRIDE; 110 virtual double maxTimeSeekable() const OVERRIDE;
107 virtual WTF::PassRefPtr<WebCore::TimeRanges> buffered() const OVERRIDE; 111 virtual WTF::PassRefPtr<WebCore::TimeRanges> buffered() const OVERRIDE;
108 virtual bool didLoadingProgress() const OVERRIDE; 112 virtual bool didLoadingProgress() const OVERRIDE;
109 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect&) OVERR IDE; 113 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect&) OVERR IDE;
110 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platfo rm3DObject texture, GLint level, GLenum type, GLenum internalFormat, bool premul tiplyAlpha, bool flipY) OVERRIDE; 114 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platfo rm3DObject texture, GLint level, GLenum type, GLenum internalFormat, bool premul tiplyAlpha, bool flipY) OVERRIDE;
111 virtual void setPreload(WebCore::MediaPlayer::Preload) OVERRIDE; 115 virtual void setPreload(WebCore::MediaPlayer::Preload) OVERRIDE;
116 virtual bool hasSingleSecurityOrigin() const OVERRIDE;
117 virtual double mediaTimeForTimeValue(double timeValue) const OVERRIDE;
112 118
113 #if ENABLE(WEB_AUDIO) 119 #if ENABLE(WEB_AUDIO)
114 virtual WebCore::AudioSourceProvider* audioSourceProvider() OVERRIDE; 120 virtual WebCore::AudioSourceProvider* audioSourceProvider() OVERRIDE;
115 #endif 121 #endif
116 122
117 private: 123 private:
118 explicit WebMediaPlayerClientImpl(WebCore::MediaPlayerClient*); 124 explicit WebMediaPlayerClientImpl(WebCore::MediaPlayerClient*);
119 125
120 WebCore::HTMLMediaElement& mediaElement() const; 126 WebCore::HTMLMediaElement& mediaElement() const;
121 127
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 Mutex provideInputLock; 184 Mutex provideInputLock;
179 }; 185 };
180 186
181 AudioSourceProviderImpl m_audioSourceProvider; 187 AudioSourceProviderImpl m_audioSourceProvider;
182 #endif 188 #endif
183 }; 189 };
184 190
185 } // namespace blink 191 } // namespace blink
186 192
187 #endif 193 #endif
OLDNEW
« no previous file with comments | « trunk/Source/platform/graphics/media/MediaPlayer.h ('k') | trunk/Source/web/WebMediaPlayerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698