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

Side by Side Diff: Source/WebCore/html/HTMLMediaElement.cpp

Issue 7005009: Merge 84611 - <rdar://problem/9322486> REGRESSION (r83397): Default controls fade out when playin... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 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 | « LayoutTests/media/audio-controls-do-not-fade-out-expected.txt ('k') | no next file » | 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) 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after
1608 } 1608 }
1609 1609
1610 void HTMLMediaElement::playbackProgressTimerFired(Timer<HTMLMediaElement>*) 1610 void HTMLMediaElement::playbackProgressTimerFired(Timer<HTMLMediaElement>*)
1611 { 1611 {
1612 ASSERT(m_player); 1612 ASSERT(m_player);
1613 if (!m_playbackRate) 1613 if (!m_playbackRate)
1614 return; 1614 return;
1615 1615
1616 scheduleTimeupdateEvent(true); 1616 scheduleTimeupdateEvent(true);
1617 if (hasMediaControls()) { 1617 if (hasMediaControls()) {
1618 if (!m_mouseOver && controls()) 1618 if (!m_mouseOver && controls() && hasVideo())
1619 mediaControls()->makeTransparent(); 1619 mediaControls()->makeTransparent();
1620 mediaControls()->playbackProgressed(); 1620 mediaControls()->playbackProgressed();
1621 } 1621 }
1622 // FIXME: deal with cue ranges here 1622 // FIXME: deal with cue ranges here
1623 } 1623 }
1624 1624
1625 void HTMLMediaElement::scheduleTimeupdateEvent(bool periodicEvent) 1625 void HTMLMediaElement::scheduleTimeupdateEvent(bool periodicEvent)
1626 { 1626 {
1627 double now = WTF::currentTime(); 1627 double now = WTF::currentTime();
1628 double timedelta = now - m_lastTimeUpdateEventWallTime; 1628 double timedelta = now - m_lastTimeUpdateEventWallTime;
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after
2689 } else if (hasMediaControls()) 2689 } else if (hasMediaControls())
2690 mediaControls()->hide(); 2690 mediaControls()->hide();
2691 } 2691 }
2692 return 0; 2692 return 0;
2693 } 2693 }
2694 2694
2695 2695
2696 } 2696 }
2697 2697
2698 #endif 2698 #endif
OLDNEW
« no previous file with comments | « LayoutTests/media/audio-controls-do-not-fade-out-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698