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

Side by Side Diff: Source/core/html/shadow/MediaControls.cpp

Issue 363563007: Only show overlay play button when controls are enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@shouldShowControls
Patch Set: 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/core/html/shadow/MediaControlElements.cpp ('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) 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2011, 2012 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 void MediaControls::mediaElementFocused() 196 void MediaControls::mediaElementFocused()
197 { 197 {
198 show(); 198 show();
199 stopHideMediaControlsTimer(); 199 stopHideMediaControlsTimer();
200 } 200 }
201 201
202 void MediaControls::hide() 202 void MediaControls::hide()
203 { 203 {
204 m_panel->setIsDisplayed(false); 204 m_panel->setIsDisplayed(false);
205 m_panel->hide(); 205 m_panel->hide();
206 if (m_overlayPlayButton)
207 m_overlayPlayButton->hide();
acolwell GONE FROM CHROMIUM 2014/07/01 17:06:22 It seems like there should coorresponding "show" l
206 } 208 }
207 209
208 void MediaControls::makeOpaque() 210 void MediaControls::makeOpaque()
209 { 211 {
210 m_panel->makeOpaque(); 212 m_panel->makeOpaque();
211 } 213 }
212 214
213 void MediaControls::makeTransparent() 215 void MediaControls::makeTransparent()
214 { 216 {
215 m_panel->makeTransparent(); 217 m_panel->makeTransparent();
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 visitor->trace(m_muteButton); 474 visitor->trace(m_muteButton);
473 visitor->trace(m_volumeSlider); 475 visitor->trace(m_volumeSlider);
474 visitor->trace(m_toggleClosedCaptionsButton); 476 visitor->trace(m_toggleClosedCaptionsButton);
475 visitor->trace(m_fullScreenButton); 477 visitor->trace(m_fullScreenButton);
476 visitor->trace(m_durationDisplay); 478 visitor->trace(m_durationDisplay);
477 visitor->trace(m_enclosure); 479 visitor->trace(m_enclosure);
478 HTMLDivElement::trace(visitor); 480 HTMLDivElement::trace(visitor);
479 } 481 }
480 482
481 } 483 }
OLDNEW
« no previous file with comments | « Source/core/html/shadow/MediaControlElements.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698