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

Unified Diff: Source/core/html/track/TrackBase.h

Issue 392193002: Apply toFoo generation macro to TrackBase classes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/track/TextTrack.h ('k') | Source/core/html/track/VideoTrack.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/TrackBase.h
diff --git a/Source/core/html/track/TrackBase.h b/Source/core/html/track/TrackBase.h
index cff2b8a65629d2fda6ebc844459645e93e79635d..060df6b4d8dcd328a6a9199fc17d5aef1cc2c605 100644
--- a/Source/core/html/track/TrackBase.h
+++ b/Source/core/html/track/TrackBase.h
@@ -78,6 +78,9 @@ private:
RawPtrWillBeMember<HTMLMediaElement> m_mediaElement;
};
+#define DEFINE_TRACK_TYPE_CASTS(thisType, predicate) \
+ DEFINE_TYPE_CASTS(thisType, TrackBase, track, track->type() == predicate, track.type() == predicate)
+
} // namespace WebCore
#endif // TrackBase_h
« no previous file with comments | « Source/core/html/track/TextTrack.h ('k') | Source/core/html/track/VideoTrack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698