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

Unified Diff: Source/core/html/track/vtt/VTTCue.h

Issue 224833002: Implement DataCue interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove text attribute Created 6 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/TextTrackCue.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/vtt/VTTCue.h
diff --git a/Source/core/html/track/vtt/VTTCue.h b/Source/core/html/track/vtt/VTTCue.h
index e30c4fe3acad897c3019c24e43a7658e6333e32c..4c9348be8d44a875a33c8f9c2fa8758515fcf269 100644
--- a/Source/core/html/track/vtt/VTTCue.h
+++ b/Source/core/html/track/vtt/VTTCue.h
@@ -134,6 +134,8 @@ public:
};
CueAlignment getAlignment() const { return m_cueAlignment; }
+ virtual CueType cueType() const OVERRIDE { return WebVTT; }
+
virtual ExecutionContext* executionContext() const OVERRIDE;
#ifndef NDEBUG
@@ -192,8 +194,7 @@ private:
bool m_notifyRegion : 1;
};
-// VTTCue is currently the only TextTrackCue subclass.
-DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true);
+DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, cue->cueType() == TextTrackCue::WebVTT, cue.cueType() == TextTrackCue::WebVTT);
} // namespace WebCore
« no previous file with comments | « Source/core/html/track/TextTrackCue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698