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

Side by Side Diff: Source/core/html/track/vtt/VTTCue.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/track/VideoTrack.cpp ('k') | Source/core/html/track/vtt/VTTCue.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 /* 1 /*
2 * Copyright (c) 2013, Opera Software ASA. All rights reserved. 2 * Copyright (c) 2013, Opera Software ASA. 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class VTTCueBox final : public HTMLDivElement { 53 class VTTCueBox final : public HTMLDivElement {
54 public: 54 public:
55 static PassRefPtrWillBeRawPtr<VTTCueBox> create(Document& document, VTTCue* cue) 55 static PassRefPtrWillBeRawPtr<VTTCueBox> create(Document& document, VTTCue* cue)
56 { 56 {
57 return adoptRefWillBeNoop(new VTTCueBox(document, cue)); 57 return adoptRefWillBeNoop(new VTTCueBox(document, cue));
58 } 58 }
59 59
60 VTTCue* getCue() const { return m_cue; } 60 VTTCue* getCue() const { return m_cue; }
61 void applyCSSProperties(const VTTDisplayParameters&); 61 void applyCSSProperties(const VTTDisplayParameters&);
62 62
63 virtual void trace(Visitor*) override; 63 DECLARE_VIRTUAL_TRACE();
64 64
65 private: 65 private:
66 VTTCueBox(Document&, VTTCue*); 66 VTTCueBox(Document&, VTTCue*);
67 67
68 virtual LayoutObject* createRenderer(const LayoutStyle&) override; 68 virtual LayoutObject* createRenderer(const LayoutStyle&) override;
69 69
70 RawPtrWillBeMember<VTTCue> m_cue; 70 RawPtrWillBeMember<VTTCue> m_cue;
71 }; 71 };
72 72
73 class VTTCue final : public TextTrackCue { 73 class VTTCue final : public TextTrackCue {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 NumberOfAlignments 135 NumberOfAlignments
136 }; 136 };
137 CueAlignment cueAlignment() const { return m_cueAlignment; } 137 CueAlignment cueAlignment() const { return m_cueAlignment; }
138 138
139 virtual ExecutionContext* executionContext() const override; 139 virtual ExecutionContext* executionContext() const override;
140 140
141 #ifndef NDEBUG 141 #ifndef NDEBUG
142 virtual String toString() const override; 142 virtual String toString() const override;
143 #endif 143 #endif
144 144
145 virtual void trace(Visitor*) override; 145 DECLARE_VIRTUAL_TRACE();
146 146
147 private: 147 private:
148 VTTCue(Document&, double startTime, double endTime, const String& text); 148 VTTCue(Document&, double startTime, double endTime, const String& text);
149 149
150 Document& document() const; 150 Document& document() const;
151 151
152 VTTCueBox& ensureDisplayTree(); 152 VTTCueBox& ensureDisplayTree();
153 PassRefPtrWillBeRawPtr<VTTCueBox> getDisplayTree(); 153 PassRefPtrWillBeRawPtr<VTTCueBox> getDisplayTree();
154 154
155 virtual void cueDidChange() override; 155 virtual void cueDidChange() override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 bool m_displayTreeShouldChange : 1; 191 bool m_displayTreeShouldChange : 1;
192 bool m_notifyRegion : 1; 192 bool m_notifyRegion : 1;
193 }; 193 };
194 194
195 // VTTCue is currently the only TextTrackCue subclass. 195 // VTTCue is currently the only TextTrackCue subclass.
196 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); 196 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true);
197 197
198 } // namespace blink 198 } // namespace blink
199 199
200 #endif // VTTCue_h 200 #endif // VTTCue_h
OLDNEW
« no previous file with comments | « Source/core/html/track/VideoTrack.cpp ('k') | Source/core/html/track/vtt/VTTCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698