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

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: Add TrackDefault to global constructors layout test expectation 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..18abe424f28fa2a6bbf30bf5813214f969d44536 100644
--- a/Source/core/html/track/VideoTrack.cpp
+++ b/Source/core/html/track/VideoTrack.cpp
@@ -69,14 +69,26 @@ 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());
+ || (kind == commentaryKeyword())
+ || (kind == emptyAtom);
+}
+
+bool VideoTrack::isValidKindKeyword(const String& kind)
+{
+ return (kind == alternativeKeyword())
+ || (kind == captionsKeyword())
+ || (kind == mainKeyword())
+ || (kind == signKeyword())
+ || (kind == subtitlesKeyword())
+ || (kind == commentaryKeyword())
+ || (kind == emptyAtom);
}
AtomicString VideoTrack::defaultKind() const

Powered by Google App Engine
This is Rietveld 408576698