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

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

Issue 177243018: Prevent 'removetrack' events from firing when all inband text tracks are removed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove console messages Created 6 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/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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 class TextTrack : public TrackBase, public ScriptWrappable, public EventTargetWi thInlineData { 58 class TextTrack : public TrackBase, public ScriptWrappable, public EventTargetWi thInlineData {
59 REFCOUNTED_EVENT_TARGET(TrackBase); 59 REFCOUNTED_EVENT_TARGET(TrackBase);
60 public: 60 public:
61 static PassRefPtr<TextTrack> create(Document& document, TextTrackClient* cli ent, const AtomicString& kind, const AtomicString& label, const AtomicString& la nguage) 61 static PassRefPtr<TextTrack> create(Document& document, TextTrackClient* cli ent, const AtomicString& kind, const AtomicString& label, const AtomicString& la nguage)
62 { 62 {
63 return adoptRef(new TextTrack(document, client, kind, label, language, e mptyAtom, AddTrack)); 63 return adoptRef(new TextTrack(document, client, kind, label, language, e mptyAtom, AddTrack));
64 } 64 }
65 virtual ~TextTrack(); 65 virtual ~TextTrack();
66 66
67 void setTrackList(TextTrackList* trackList) { m_trackList = trackList; } 67 virtual void setTrackList(TextTrackList*);
68 TextTrackList* trackList() { return m_trackList; } 68 TextTrackList* trackList() { return m_trackList; }
69 69
70 virtual void setKind(const AtomicString&) OVERRIDE; 70 virtual void setKind(const AtomicString&) OVERRIDE;
71 71
72 static const AtomicString& subtitlesKeyword(); 72 static const AtomicString& subtitlesKeyword();
73 static const AtomicString& captionsKeyword(); 73 static const AtomicString& captionsKeyword();
74 static const AtomicString& descriptionsKeyword(); 74 static const AtomicString& descriptionsKeyword();
75 static const AtomicString& chaptersKeyword(); 75 static const AtomicString& chaptersKeyword();
76 static const AtomicString& metadataKeyword(); 76 static const AtomicString& metadataKeyword();
77 static bool isValidKindKeyword(const AtomicString&); 77 static bool isValidKindKeyword(const AtomicString&);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 TextTrackType m_trackType; 151 TextTrackType m_trackType;
152 ReadinessState m_readinessState; 152 ReadinessState m_readinessState;
153 int m_trackIndex; 153 int m_trackIndex;
154 int m_renderedTrackIndex; 154 int m_renderedTrackIndex;
155 bool m_hasBeenConfigured; 155 bool m_hasBeenConfigured;
156 }; 156 };
157 157
158 } // namespace WebCore 158 } // namespace WebCore
159 159
160 #endif 160 #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