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

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

Issue 2676663006: Remove SetWrapperReferenceTo and SetWrapperReferenceFrom (Closed)
Patch Set: Rebase on master Created 3 years, 10 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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 WebMediaPlayer::TrackType type() const { return m_type; } 45 WebMediaPlayer::TrackType type() const { return m_type; }
46 46
47 const AtomicString& kind() const { return m_kind; } 47 const AtomicString& kind() const { return m_kind; }
48 AtomicString label() const { return m_label; } 48 AtomicString label() const { return m_label; }
49 AtomicString language() const { return m_language; } 49 AtomicString language() const { return m_language; }
50 50
51 void setMediaElement(HTMLMediaElement* mediaElement) { 51 void setMediaElement(HTMLMediaElement* mediaElement) {
52 m_mediaElement = mediaElement; 52 m_mediaElement = mediaElement;
53 } 53 }
54 HTMLMediaElement* mediaElement() const { return m_mediaElement; } 54 HTMLMediaElement* mediaElement() const { return m_mediaElement; }
55 Node* owner() const;
56 55
57 DECLARE_VIRTUAL_TRACE(); 56 DECLARE_VIRTUAL_TRACE();
58 57
59 protected: 58 protected:
60 TrackBase(WebMediaPlayer::TrackType, 59 TrackBase(WebMediaPlayer::TrackType,
61 const AtomicString& kind, 60 const AtomicString& kind,
62 const AtomicString& label, 61 const AtomicString& label,
63 const AtomicString& language, 62 const AtomicString& language,
64 const String& id); 63 const String& id);
65 64
66 WebMediaPlayer::TrackType m_type; 65 WebMediaPlayer::TrackType m_type;
67 AtomicString m_kind; 66 AtomicString m_kind;
68 AtomicString m_label; 67 AtomicString m_label;
69 AtomicString m_language; 68 AtomicString m_language;
70 String m_id; 69 String m_id;
71 Member<HTMLMediaElement> m_mediaElement; 70 Member<HTMLMediaElement> m_mediaElement;
72 }; 71 };
73 72
74 #define DEFINE_TRACK_TYPE_CASTS(thisType, predicate) \ 73 #define DEFINE_TRACK_TYPE_CASTS(thisType, predicate) \
75 DEFINE_TYPE_CASTS(thisType, TrackBase, track, track->type() == predicate, \ 74 DEFINE_TYPE_CASTS(thisType, TrackBase, track, track->type() == predicate, \
76 track.type() == predicate) 75 track.type() == predicate)
77 76
78 } // namespace blink 77 } // namespace blink
79 78
80 #endif // TrackBase_h 79 #endif // TrackBase_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/track/TextTrackList.idl ('k') | third_party/WebKit/Source/core/html/track/TrackBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698