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

Side by Side Diff: Source/WebCore/html/shadow/MediaControlRootElement.cpp

Issue 8496044: Repaint video controls when buffering during pause. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Nits, drop whitespace. Created 9 years 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) 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 { 525 {
526 m_hideFullscreenControlsTimer.stop(); 526 m_hideFullscreenControlsTimer.stop();
527 } 527 }
528 528
529 const AtomicString& MediaControlRootElement::shadowPseudoId() const 529 const AtomicString& MediaControlRootElement::shadowPseudoId() const
530 { 530 {
531 DEFINE_STATIC_LOCAL(AtomicString, id, ("-webkit-media-controls")); 531 DEFINE_STATIC_LOCAL(AtomicString, id, ("-webkit-media-controls"));
532 return id; 532 return id;
533 } 533 }
534 534
535 void MediaControlRootElement::bufferingProgressed()
536 {
537 // We only need to update buffering progress when paused, during normal
538 // playback playbackProgressed() will take care of it.
539 if (m_mediaElement->paused())
540 m_timeline->setPosition(m_mediaElement->currentTime());
541 }
542
535 } 543 }
536 544
537 #endif 545 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/html/shadow/MediaControlRootElement.h ('k') | Source/WebCore/html/shadow/MediaControlRootElementChromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698