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

Unified Diff: Source/core/html/track/TextTrack.cpp

Issue 14936003: Remove unused code behind USE(PLATFORM_TEXT_TRACK_MENU) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing 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 | « Source/core/html/track/TextTrack.h ('k') | Source/core/platform/graphics/MediaPlayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/TextTrack.cpp
diff --git a/Source/core/html/track/TextTrack.cpp b/Source/core/html/track/TextTrack.cpp
index 0e86b91e8cff04e13ae50553cc3f527d3af61fe2..7ff21eefeca901b403e357eb40e873cffa455d53 100644
--- a/Source/core/html/track/TextTrack.cpp
+++ b/Source/core/html/track/TextTrack.cpp
@@ -482,38 +482,6 @@ bool TextTrack::hasCue(TextTrackCue* cue)
return false;
}
-#if USE(PLATFORM_TEXT_TRACK_MENU)
-PassRefPtr<PlatformTextTrack> TextTrack::platformTextTrack()
-{
- if (m_platformTextTrack)
- return m_platformTextTrack;
-
- PlatformTextTrack::TrackKind kind = PlatformTextTrack::Caption;
- if (m_kind == subtitlesKeyword())
- kind = PlatformTextTrack::Subtitle;
- else if (m_kind == captionsKeyword())
- kind = PlatformTextTrack::Caption;
- else if (m_kind == descriptionsKeyword())
- kind = PlatformTextTrack::Description;
- else if (m_kind == chaptersKeyword())
- kind = PlatformTextTrack::Chapter;
- else if (m_kind == metadataKeyword())
- kind = PlatformTextTrack::MetaData;
-
- PlatformTextTrack::TrackType type = PlatformTextTrack::OutOfBand;
- if (m_trackType == TrackElement)
- type = PlatformTextTrack::OutOfBand;
- else if (m_trackType == AddTrack)
- type = PlatformTextTrack::Script;
- else if (m_trackType == InBand)
- type = PlatformTextTrack::InBand;
-
- m_platformTextTrack = PlatformTextTrack::create(this, m_label, m_language, kind, type);
-
- return m_platformTextTrack;
-}
-#endif
-
bool TextTrack::isMainProgramContent() const
{
// "Main program" content is intrinsic to the presentation of the media file, regardless of locale. Content such as
« no previous file with comments | « Source/core/html/track/TextTrack.h ('k') | Source/core/platform/graphics/MediaPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698