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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.h

Issue 1973863003: Implement SetWrapperReferenceFrom idl attribute within traceWrappers for media tracks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary tracing Created 4 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 enum class RecordMetricsBehavior { 77 enum class RecordMetricsBehavior {
78 DoNotRecord, 78 DoNotRecord,
79 DoRecord 79 DoRecord
80 }; 80 };
81 81
82 static void setMediaStreamRegistry(URLRegistry*); 82 static void setMediaStreamRegistry(URLRegistry*);
83 static bool isMediaStreamURL(const String& url); 83 static bool isMediaStreamURL(const String& url);
84 84
85 DECLARE_VIRTUAL_TRACE(); 85 DECLARE_VIRTUAL_TRACE();
86
87 DECLARE_VIRTUAL_TRACE_WRAPPERS();
88
86 void clearWeakMembers(Visitor*); 89 void clearWeakMembers(Visitor*);
87 WebMediaPlayer* webMediaPlayer() const 90 WebMediaPlayer* webMediaPlayer() const
88 { 91 {
89 return m_webMediaPlayer.get(); 92 return m_webMediaPlayer.get();
90 } 93 }
91 94
92 // Returns true if the loaded media has a video track. 95 // Returns true if the loaded media has a video track.
93 // Note that even an audio element can have video track in cases such as 96 // Note that even an audio element can have video track in cases such as
94 // <audio src="video.webm">, in which case this function will return true. 97 // <audio src="video.webm">, in which case this function will return true.
95 bool hasVideo() const; 98 bool hasVideo() const;
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 inline bool isHTMLMediaElement(const HTMLElement& element) 657 inline bool isHTMLMediaElement(const HTMLElement& element)
655 { 658 {
656 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 659 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
657 } 660 }
658 661
659 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 662 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
660 663
661 } // namespace blink 664 } // namespace blink
662 665
663 #endif // HTMLMediaElement_h 666 #endif // HTMLMediaElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698