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

Side by Side Diff: webkit/api/src/WebMediaPlayerClientImpl.cpp

Issue 149604: Begin implementation of the context menu for Video and Audio tags. (Closed)
Patch Set: Fix small style issues. Created 11 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 | « webkit/api/src/WebMediaPlayerClientImpl.h ('k') | webkit/glue/context_menu.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "WebMediaPlayerClientImpl.h" 6 #include "WebMediaPlayerClientImpl.h"
7 7
8 #if ENABLE(VIDEO) 8 #if ENABLE(VIDEO)
9 9
10 #include "TemporaryGlue.h" 10 #include "TemporaryGlue.h"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 m_webMediaPlayer->setRate(rate); 194 m_webMediaPlayer->setRate(rate);
195 } 195 }
196 196
197 bool WebMediaPlayerClientImpl::paused() const 197 bool WebMediaPlayerClientImpl::paused() const
198 { 198 {
199 if (m_webMediaPlayer.get()) 199 if (m_webMediaPlayer.get())
200 return m_webMediaPlayer->paused(); 200 return m_webMediaPlayer->paused();
201 return false; 201 return false;
202 } 202 }
203 203
204 bool WebMediaPlayerClientImpl::supportsFullscreen() const
205 {
206 if (m_webMediaPlayer.get())
207 return m_webMediaPlayer->supportsFullscreen();
208 return false;
209 }
210
211 bool WebMediaPlayerClientImpl::supportsSave() const
212 {
213 if (m_webMediaPlayer.get())
214 return m_webMediaPlayer->supportsSave();
215 return false;
216 }
217
204 void WebMediaPlayerClientImpl::setVolume(float volume) 218 void WebMediaPlayerClientImpl::setVolume(float volume)
205 { 219 {
206 if (m_webMediaPlayer.get()) 220 if (m_webMediaPlayer.get())
207 m_webMediaPlayer->setVolume(volume); 221 m_webMediaPlayer->setVolume(volume);
208 } 222 }
209 223
210 MediaPlayer::NetworkState WebMediaPlayerClientImpl::networkState() const 224 MediaPlayer::NetworkState WebMediaPlayerClientImpl::networkState() const
211 { 225 {
212 COMPILE_ASSERT( 226 COMPILE_ASSERT(
213 int(WebMediaPlayer::Empty) == int(MediaPlayer::Empty), Empty); 227 int(WebMediaPlayer::Empty) == int(MediaPlayer::Empty), Empty);
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 } 384 }
371 385
372 WebMediaPlayerClientImpl::WebMediaPlayerClientImpl() 386 WebMediaPlayerClientImpl::WebMediaPlayerClientImpl()
373 : m_mediaPlayer(0) 387 : m_mediaPlayer(0)
374 { 388 {
375 } 389 }
376 390
377 } // namespace WebKit 391 } // namespace WebKit
378 392
379 #endif // ENABLE(VIDEO) 393 #endif // ENABLE(VIDEO)
OLDNEW
« no previous file with comments | « webkit/api/src/WebMediaPlayerClientImpl.h ('k') | webkit/glue/context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698