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

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

Issue 1415683009: Support earliest seekable time in WMPI. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more androidfixes. Created 5 years, 1 month 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
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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // it is never marked as not fitting. 243 // it is never marked as not fitting.
244 m_durationDisplay->setIsWanted(std::isfinite(duration)); 244 m_durationDisplay->setIsWanted(std::isfinite(duration));
245 m_currentTimeDisplay->setIsWanted(true); 245 m_currentTimeDisplay->setIsWanted(true);
246 m_timeline->setIsWanted(true); 246 m_timeline->setIsWanted(true);
247 } 247 }
248 248
249 updatePlayState(); 249 updatePlayState();
250 250
251 updateCurrentTimeDisplay(); 251 updateCurrentTimeDisplay();
252 252
253 m_timeline->setEarliestPosition(mediaElement().earliestTime());
253 m_timeline->setDuration(duration); 254 m_timeline->setDuration(duration);
254 m_timeline->setPosition(mediaElement().currentTime()); 255 m_timeline->setPosition(mediaElement().currentTime());
255 256
256 updateVolume(); 257 updateVolume();
257 258
258 refreshClosedCaptionsButtonVisibility(); 259 refreshClosedCaptionsButtonVisibility();
259 260
260 m_fullScreenButton->setIsWanted(shouldShowFullscreenButton(mediaElement())); 261 m_fullScreenButton->setIsWanted(shouldShowFullscreenButton(mediaElement()));
261 262
262 refreshCastButtonVisibilityWithoutUpdate(); 263 refreshCastButtonVisibilityWithoutUpdate();
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 visitor->trace(m_toggleClosedCaptionsButton); 740 visitor->trace(m_toggleClosedCaptionsButton);
740 visitor->trace(m_fullScreenButton); 741 visitor->trace(m_fullScreenButton);
741 visitor->trace(m_durationDisplay); 742 visitor->trace(m_durationDisplay);
742 visitor->trace(m_enclosure); 743 visitor->trace(m_enclosure);
743 visitor->trace(m_castButton); 744 visitor->trace(m_castButton);
744 visitor->trace(m_overlayCastButton); 745 visitor->trace(m_overlayCastButton);
745 HTMLDivElement::trace(visitor); 746 HTMLDivElement::trace(visitor);
746 } 747 }
747 748
748 } 749 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698