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

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

Issue 835363003: Oilpan: add missing leftmost trace()s for GC mixins. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 | « no previous file | Source/core/html/track/AudioTrack.cpp » ('j') | Source/web/WebRemoteFrameImpl.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef AudioTrack_h 5 #ifndef AudioTrack_h
6 #define AudioTrack_h 6 #define AudioTrack_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/html/track/TrackBase.h" 9 #include "core/html/track/TrackBase.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class AudioTrack final : public NoBaseWillBeGarbageCollectedFinalized<AudioTrack >, public TrackBase, public ScriptWrappable { 13 class AudioTrack final : public NoBaseWillBeGarbageCollectedFinalized<AudioTrack >, public TrackBase, public ScriptWrappable {
14 DEFINE_WRAPPERTYPEINFO(); 14 DEFINE_WRAPPERTYPEINFO();
15 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(AudioTrack); 15 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(AudioTrack);
16 public: 16 public:
17 static PassRefPtrWillBeRawPtr<AudioTrack> create(const String& id, const Ato micString& kind, const AtomicString& label, const AtomicString& language, bool e nabled) 17 static PassRefPtrWillBeRawPtr<AudioTrack> create(const String& id, const Ato micString& kind, const AtomicString& label, const AtomicString& language, bool e nabled)
18 { 18 {
19 return adoptRefWillBeNoop(new AudioTrack(id, kind, label, language, enab led)); 19 return adoptRefWillBeNoop(new AudioTrack(id, kind, label, language, enab led));
20 } 20 }
21
21 virtual ~AudioTrack(); 22 virtual ~AudioTrack();
23 virtual void trace(Visitor*) override;
22 24
23 bool enabled() const { return m_enabled; } 25 bool enabled() const { return m_enabled; }
24 void setEnabled(bool); 26 void setEnabled(bool);
25 27
26 // Valid kind keywords. 28 // Valid kind keywords.
27 static const AtomicString& alternativeKeyword(); 29 static const AtomicString& alternativeKeyword();
28 static const AtomicString& descriptionsKeyword(); 30 static const AtomicString& descriptionsKeyword();
29 static const AtomicString& mainKeyword(); 31 static const AtomicString& mainKeyword();
30 static const AtomicString& mainDescriptionsKeyword(); 32 static const AtomicString& mainDescriptionsKeyword();
31 static const AtomicString& translationKeyword(); 33 static const AtomicString& translationKeyword();
32 static const AtomicString& commentaryKeyword(); 34 static const AtomicString& commentaryKeyword();
33 35
34 static bool isValidKindKeyword(const String&); 36 static bool isValidKindKeyword(const String&);
35 37
36 private: 38 private:
37 AudioTrack(const String& id, const AtomicString& kind, const AtomicString& l abel, const AtomicString& language, bool enabled); 39 AudioTrack(const String& id, const AtomicString& kind, const AtomicString& l abel, const AtomicString& language, bool enabled);
38 40
39 // TrackBase 41 // TrackBase
40 virtual bool isValidKind(const AtomicString& kind) const override { return i sValidKindKeyword(kind); } 42 virtual bool isValidKind(const AtomicString& kind) const override { return i sValidKindKeyword(kind); }
41 virtual AtomicString defaultKind() const override; 43 virtual AtomicString defaultKind() const override;
42 44
43 bool m_enabled; 45 bool m_enabled;
44 }; 46 };
45 47
46 DEFINE_TRACK_TYPE_CASTS(AudioTrack, TrackBase::AudioTrack); 48 DEFINE_TRACK_TYPE_CASTS(AudioTrack, TrackBase::AudioTrack);
47 49
48 } // namespace blink 50 } // namespace blink
49 51
50 #endif // AudioTrack_h 52 #endif // AudioTrack_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/track/AudioTrack.cpp » ('j') | Source/web/WebRemoteFrameImpl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698