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

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

Issue 242113012: Make text track and cue wrapper objects dependent on their media element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Tidy up code in places Created 6 years, 8 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 unified diff | Download patch
« no previous file with comments | « Source/core/html/track/TextTrack.idl ('k') | Source/core/html/track/TextTrackCue.cpp » ('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) 2012, 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 { 49 {
50 DEFINE_STATIC_LOCAL(const AtomicString, cue, ("cue", AtomicString::Const ructFromLiteral)); 50 DEFINE_STATIC_LOCAL(const AtomicString, cue, ("cue", AtomicString::Const ructFromLiteral));
51 return cue; 51 return cue;
52 } 52 }
53 53
54 virtual ~TextTrackCue() { } 54 virtual ~TextTrackCue() { }
55 55
56 TextTrack* track() const; 56 TextTrack* track() const;
57 void setTrack(TextTrack*); 57 void setTrack(TextTrack*);
58 58
59 Node* owner() const;
60
59 const AtomicString& id() const { return m_id; } 61 const AtomicString& id() const { return m_id; }
60 void setId(const AtomicString&); 62 void setId(const AtomicString&);
61 63
62 double startTime() const { return m_startTime; } 64 double startTime() const { return m_startTime; }
63 void setStartTime(double, ExceptionState&); 65 void setStartTime(double, ExceptionState&);
64 66
65 double endTime() const { return m_endTime; } 67 double endTime() const { return m_endTime; }
66 void setEndTime(double, ExceptionState&); 68 void setEndTime(double, ExceptionState&);
67 69
68 bool pauseOnExit() const { return m_pauseOnExit; } 70 bool pauseOnExit() const { return m_pauseOnExit; }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 110
109 TextTrack* m_track; 111 TextTrack* m_track;
110 112
111 bool m_isActive : 1; 113 bool m_isActive : 1;
112 bool m_pauseOnExit : 1; 114 bool m_pauseOnExit : 1;
113 }; 115 };
114 116
115 } // namespace WebCore 117 } // namespace WebCore
116 118
117 #endif 119 #endif
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrack.idl ('k') | Source/core/html/track/TextTrackCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698