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

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

Issue 932403002: InlinedVisitor: Migrate html to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/shadow/SpinButtonElement.cpp ('k') | Source/core/html/track/AudioTrack.cpp » ('j') | no next file with comments »
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
22 virtual ~AudioTrack(); 22 virtual ~AudioTrack();
23 virtual void trace(Visitor*) override; 23 DECLARE_VIRTUAL_TRACE();
24 24
25 bool enabled() const { return m_enabled; } 25 bool enabled() const { return m_enabled; }
26 void setEnabled(bool); 26 void setEnabled(bool);
27 27
28 // Valid kind keywords. 28 // Valid kind keywords.
29 static const AtomicString& alternativeKeyword(); 29 static const AtomicString& alternativeKeyword();
30 static const AtomicString& descriptionsKeyword(); 30 static const AtomicString& descriptionsKeyword();
31 static const AtomicString& mainKeyword(); 31 static const AtomicString& mainKeyword();
32 static const AtomicString& mainDescriptionsKeyword(); 32 static const AtomicString& mainDescriptionsKeyword();
33 static const AtomicString& translationKeyword(); 33 static const AtomicString& translationKeyword();
34 static const AtomicString& commentaryKeyword(); 34 static const AtomicString& commentaryKeyword();
35 35
36 static bool isValidKindKeyword(const String&); 36 static bool isValidKindKeyword(const String&);
37 37
38 private: 38 private:
39 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);
40 40
41 // TrackBase 41 // TrackBase
42 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); }
43 virtual AtomicString defaultKind() const override; 43 virtual AtomicString defaultKind() const override;
44 44
45 bool m_enabled; 45 bool m_enabled;
46 }; 46 };
47 47
48 DEFINE_TRACK_TYPE_CASTS(AudioTrack, TrackBase::AudioTrack); 48 DEFINE_TRACK_TYPE_CASTS(AudioTrack, TrackBase::AudioTrack);
49 49
50 } // namespace blink 50 } // namespace blink
51 51
52 #endif // AudioTrack_h 52 #endif // AudioTrack_h
OLDNEW
« no previous file with comments | « Source/core/html/shadow/SpinButtonElement.cpp ('k') | Source/core/html/track/AudioTrack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698