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

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

Issue 18778002: Inherit EventTarget interface instead of duplicating its code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 22 matching lines...) Expand all
33 #include "wtf/PassRefPtr.h" 33 #include "wtf/PassRefPtr.h"
34 #include "wtf/RefCounted.h" 34 #include "wtf/RefCounted.h"
35 #include "wtf/Vector.h" 35 #include "wtf/Vector.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 class HTMLMediaElement; 39 class HTMLMediaElement;
40 class TextTrack; 40 class TextTrack;
41 class TextTrackList; 41 class TextTrackList;
42 42
43 class TextTrackList : public RefCounted<TextTrackList>, public ScriptWrappable, public EventTarget { 43 class TextTrackList : public EventTarget, public RefCounted<TextTrackList>, publ ic ScriptWrappable {
44 public: 44 public:
45 static PassRefPtr<TextTrackList> create(HTMLMediaElement* owner, ScriptExecu tionContext* context) 45 static PassRefPtr<TextTrackList> create(HTMLMediaElement* owner, ScriptExecu tionContext* context)
46 { 46 {
47 return adoptRef(new TextTrackList(owner, context)); 47 return adoptRef(new TextTrackList(owner, context));
48 } 48 }
49 ~TextTrackList(); 49 ~TextTrackList();
50 50
51 unsigned length() const; 51 unsigned length() const;
52 int getTrackIndex(TextTrack*); 52 int getTrackIndex(TextTrack*);
53 int getTrackIndexRelativeToRenderedTracks(TextTrack*); 53 int getTrackIndexRelativeToRenderedTracks(TextTrack*);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 Vector<RefPtr<TextTrack> > m_addTrackTracks; 94 Vector<RefPtr<TextTrack> > m_addTrackTracks;
95 Vector<RefPtr<TextTrack> > m_elementTracks; 95 Vector<RefPtr<TextTrack> > m_elementTracks;
96 Vector<RefPtr<TextTrack> > m_inbandTracks; 96 Vector<RefPtr<TextTrack> > m_inbandTracks;
97 97
98 int m_dispatchingEvents; 98 int m_dispatchingEvents;
99 }; 99 };
100 100
101 } // namespace WebCore 101 } // namespace WebCore
102 102
103 #endif 103 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698