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

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

Issue 956323002: Tweak the TextTrackCue "cue index" management (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 5 years, 10 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/CueTimeline.cpp ('k') | Source/core/html/track/TextTrackCue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/TextTrackCue.h
diff --git a/Source/core/html/track/TextTrackCue.h b/Source/core/html/track/TextTrackCue.h
index 398a965d2b04ea0186d290b5e937d228f14eb782..639fecd6760761963327051956e70d08996ed912 100644
--- a/Source/core/html/track/TextTrackCue.h
+++ b/Source/core/html/track/TextTrackCue.h
@@ -70,7 +70,8 @@ public:
bool pauseOnExit() const { return m_pauseOnExit; }
void setPauseOnExit(bool);
- int cueIndex();
+ unsigned cueIndex();
+ void updateCueIndex(unsigned cueIndex) { m_cueIndex = cueIndex; }
void invalidateCueIndex();
using EventTarget::dispatchEvent;
@@ -112,10 +113,11 @@ private:
AtomicString m_id;
double m_startTime;
double m_endTime;
- int m_cueIndex;
RawPtrWillBeMember<TextTrack> m_track;
+ unsigned m_cueIndex;
+
bool m_isActive : 1;
bool m_pauseOnExit : 1;
};
« no previous file with comments | « Source/core/html/track/CueTimeline.cpp ('k') | Source/core/html/track/TextTrackCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698