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

Unified Diff: Source/core/html/HTMLMediaElement.cpp

Issue 16047004: Remove dead code behind USE(PLATFORM_TEXT_TRACK_MENU) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.cpp
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
index b5f9b83def8e2387194a7088dbf59f9dcc93af81..36ad5e5939bd3ff8ffaf03d91db6fb0aaa498ce4 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -501,11 +501,6 @@ void HTMLMediaElement::scheduleDelayedAction(DelayedActionType actionType)
if (RuntimeEnabledFeatures::videoTrackEnabled() && (actionType & LoadTextTrackResource))
m_pendingActionFlags |= LoadTextTrackResource;
-#if USE(PLATFORM_TEXT_TRACK_MENU)
- if (actionType & TextTrackChangesNotification)
- m_pendingActionFlags |= TextTrackChangesNotification;
-#endif
-
if (!m_loadTimer.isActive())
m_loadTimer.startOneShot(0);
}
@@ -542,11 +537,6 @@ void HTMLMediaElement::loadTimerFired(Timer<HTMLMediaElement>*)
loadInternal();
}
-#if USE(PLATFORM_TEXT_TRACK_MENU)
- if (RuntimeEnabledFeatures::videoTrackEnabled() && (m_pendingActionFlags & TextTrackChangesNotification))
- notifyMediaPlayerOfTextTrackChanges();
-#endif
-
m_pendingActionFlags = 0;
}
@@ -1189,11 +1179,6 @@ void HTMLMediaElement::textTrackModeChanged(TextTrack* track)
} else if (track->trackType() == TextTrack::AddTrack && track->mode() != TextTrack::disabledKeyword())
textTrackAddCues(track, track->cues());
-#if USE(PLATFORM_TEXT_TRACK_MENU)
- if (platformTextTrackMenu())
- platformTextTrackMenu()->trackWasSelected(track->platformTextTrack());
-#endif
-
configureTextTrackDisplay();
updateActiveTextTrackCues(currentTime());
}
@@ -3463,13 +3448,6 @@ void HTMLMediaElement::userCancelledLoad()
void HTMLMediaElement::clearMediaPlayer(int flags)
{
-#if USE(PLATFORM_TEXT_TRACK_MENU)
- if (platformTextTrackMenu()) {
- m_platformMenu->setClient(0);
- m_platformMenu = 0;
- }
-#endif
-
removeAllInbandTracks();
closeMediaSource();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698