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

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

Issue 691313002: MSE: Implement TrackDefault object (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased and addressed PS9 comments 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
« no previous file with comments | « Source/core/html/track/TextTrack.cpp ('k') | Source/core/html/track/VideoTrack.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/VideoTrack.h
diff --git a/Source/core/html/track/VideoTrack.h b/Source/core/html/track/VideoTrack.h
index 678a17ebbfca004443a7e838b2a9b4b54c611da6..34958c4ee1ac5a02ee8dd70628f284807d653323 100644
--- a/Source/core/html/track/VideoTrack.h
+++ b/Source/core/html/track/VideoTrack.h
@@ -34,11 +34,13 @@ public:
static const AtomicString& subtitlesKeyword();
static const AtomicString& commentaryKeyword();
+ static bool isValidKindKeyword(const String&);
+
private:
VideoTrack(const String& id, const AtomicString& kind, const AtomicString& label, const AtomicString& language, bool selected);
// TrackBase
- virtual bool isValidKind(const AtomicString&) const override;
+ virtual bool isValidKind(const AtomicString& kind) const override { return isValidKindKeyword(kind); }
virtual AtomicString defaultKind() const override;
bool m_selected;
« no previous file with comments | « Source/core/html/track/TextTrack.cpp ('k') | Source/core/html/track/VideoTrack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698