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

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

Issue 59913005: Remove unused TextTrack virtual functions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 unified diff | Download patch
« no previous file with comments | « Source/core/html/track/InbandTextTrack.cpp ('k') | Source/core/html/track/TextTrack.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) 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void removeRegion(VTTRegion*, ExceptionState&); 106 void removeRegion(VTTRegion*, ExceptionState&);
107 107
108 void cueWillChange(TextTrackCue*); 108 void cueWillChange(TextTrackCue*);
109 void cueDidChange(TextTrackCue*); 109 void cueDidChange(TextTrackCue*);
110 110
111 DEFINE_ATTRIBUTE_EVENT_LISTENER(cuechange); 111 DEFINE_ATTRIBUTE_EVENT_LISTENER(cuechange);
112 112
113 enum TextTrackType { TrackElement, AddTrack, InBand }; 113 enum TextTrackType { TrackElement, AddTrack, InBand };
114 TextTrackType trackType() const { return m_trackType; } 114 TextTrackType trackType() const { return m_trackType; }
115 115
116 virtual bool isClosedCaptions() const { return false; }
117
118 virtual bool containsOnlyForcedSubtitles() const { return false; }
119 virtual bool isMainProgramContent() const;
120 virtual bool isEasyToRead() const { return false; }
121
122 int trackIndex(); 116 int trackIndex();
123 void invalidateTrackIndex(); 117 void invalidateTrackIndex();
124 118
125 bool isRendered(); 119 bool isRendered();
126 int trackIndexRelativeToRenderedTracks(); 120 int trackIndexRelativeToRenderedTracks();
127 121
128 bool hasBeenConfigured() const { return m_hasBeenConfigured; } 122 bool hasBeenConfigured() const { return m_hasBeenConfigured; }
129 void setHasBeenConfigured(bool flag) { m_hasBeenConfigured = flag; } 123 void setHasBeenConfigured(bool flag) { m_hasBeenConfigured = flag; }
130 124
131 virtual bool isDefault() const { return false; } 125 virtual bool isDefault() const { return false; }
(...skipping 30 matching lines...) Expand all
162 TextTrackType m_trackType; 156 TextTrackType m_trackType;
163 ReadinessState m_readinessState; 157 ReadinessState m_readinessState;
164 int m_trackIndex; 158 int m_trackIndex;
165 int m_renderedTrackIndex; 159 int m_renderedTrackIndex;
166 bool m_hasBeenConfigured; 160 bool m_hasBeenConfigured;
167 }; 161 };
168 162
169 } // namespace WebCore 163 } // namespace WebCore
170 164
171 #endif 165 #endif
OLDNEW
« no previous file with comments | « Source/core/html/track/InbandTextTrack.cpp ('k') | Source/core/html/track/TextTrack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698