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

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

Issue 691313002: MSE: Implement TrackDefault object (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Interim upload not ready for review. BIG TODO needs addressing. Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/track/VideoTrack.cpp
diff --git a/Source/core/html/track/VideoTrack.cpp b/Source/core/html/track/VideoTrack.cpp
index 86d26b57cf077973b8ab39a406cdc856d6914768..c6a60604efc655b8843859ea3fde54f47c166b6e 100644
--- a/Source/core/html/track/VideoTrack.cpp
+++ b/Source/core/html/track/VideoTrack.cpp
@@ -69,7 +69,17 @@ const AtomicString& VideoTrack::commentaryKeyword()
return keyword;
}
-bool VideoTrack::isValidKind(const AtomicString& kind) const
+bool VideoTrack::isValidKindKeyword(const AtomicString& kind)
+{
+ return (kind == alternativeKeyword())
+ || (kind == captionsKeyword())
+ || (kind == mainKeyword())
+ || (kind == signKeyword())
+ || (kind == subtitlesKeyword())
+ || (kind == commentaryKeyword());
+}
+
+bool VideoTrack::isValidKindKeyword(const String& kind)
{
return (kind == alternativeKeyword())
|| (kind == captionsKeyword())

Powered by Google App Engine
This is Rietveld 408576698