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

Side by Side Diff: Source/core/html/track/TextTrackCue.cpp

Issue 104473002: Tweak TextTrackCue/VTTCue virtual functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/track/TextTrackCue.h ('k') | Source/core/html/track/vtt/VTTCue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 TextTrackCue::TextTrackCue(double start, double end) 54 TextTrackCue::TextTrackCue(double start, double end)
55 : m_startTime(start) 55 : m_startTime(start)
56 , m_endTime(end) 56 , m_endTime(end)
57 , m_cueIndex(invalidCueIndex) 57 , m_cueIndex(invalidCueIndex)
58 , m_track(0) 58 , m_track(0)
59 , m_isActive(false) 59 , m_isActive(false)
60 , m_pauseOnExit(false) 60 , m_pauseOnExit(false)
61 { 61 {
62 } 62 }
63 63
64 String TextTrackCue::toString() const
65 {
66 return String::format("%p id=%s interval=%f-->%f)", this, id().utf8().data() , startTime(), endTime());
67 }
68
69 void TextTrackCue::cueWillChange() 64 void TextTrackCue::cueWillChange()
70 { 65 {
71 if (m_track) 66 if (m_track)
72 m_track->cueWillChange(this); 67 m_track->cueWillChange(this);
73 } 68 }
74 69
75 void TextTrackCue::cueDidChange() 70 void TextTrackCue::cueDidChange()
76 { 71 {
77 if (m_track) 72 if (m_track)
78 m_track->cueDidChange(this); 73 m_track->cueDidChange(this);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 if (!active) 168 if (!active)
174 removeDisplayTree(); 169 removeDisplayTree();
175 } 170 }
176 171
177 const AtomicString& TextTrackCue::interfaceName() const 172 const AtomicString& TextTrackCue::interfaceName() const
178 { 173 {
179 return EventTargetNames::TextTrackCue; 174 return EventTargetNames::TextTrackCue;
180 } 175 }
181 176
182 } // namespace WebCore 177 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrackCue.h ('k') | Source/core/html/track/vtt/VTTCue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698