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

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

Issue 993613005: Stop pushing the value of 'default' to LoadableTextTrack (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/track/LoadableTextTrack.cpp ('k') | no next file » | 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 int trackIndex(); 102 int trackIndex();
103 void invalidateTrackIndex(); 103 void invalidateTrackIndex();
104 104
105 bool isRendered(); 105 bool isRendered();
106 int trackIndexRelativeToRenderedTracks(); 106 int trackIndexRelativeToRenderedTracks();
107 107
108 bool hasBeenConfigured() const { return m_hasBeenConfigured; } 108 bool hasBeenConfigured() const { return m_hasBeenConfigured; }
109 void setHasBeenConfigured(bool flag) { m_hasBeenConfigured = flag; } 109 void setHasBeenConfigured(bool flag) { m_hasBeenConfigured = flag; }
110 110
111 virtual bool isDefault() const { return false; } 111 virtual bool isDefault() const { return false; }
112 virtual void setIsDefault(bool) { }
113 112
114 void removeAllCues(); 113 void removeAllCues();
115 114
116 // EventTarget methods 115 // EventTarget methods
117 virtual const AtomicString& interfaceName() const override; 116 virtual const AtomicString& interfaceName() const override;
118 virtual ExecutionContext* executionContext() const override; 117 virtual ExecutionContext* executionContext() const override;
119 118
120 DECLARE_VIRTUAL_TRACE(); 119 DECLARE_VIRTUAL_TRACE();
121 120
122 protected: 121 protected:
(...skipping 21 matching lines...) Expand all
144 int m_trackIndex; 143 int m_trackIndex;
145 int m_renderedTrackIndex; 144 int m_renderedTrackIndex;
146 bool m_hasBeenConfigured; 145 bool m_hasBeenConfigured;
147 }; 146 };
148 147
149 DEFINE_TRACK_TYPE_CASTS(TextTrack, TrackBase::TextTrack); 148 DEFINE_TRACK_TYPE_CASTS(TextTrack, TrackBase::TextTrack);
150 149
151 } // namespace blink 150 } // namespace blink
152 151
153 #endif // TextTrack_h 152 #endif // TextTrack_h
OLDNEW
« no previous file with comments | « Source/core/html/track/LoadableTextTrack.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698