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

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

Issue 307433003: Oilpan: Allocate all EventTarget derived types on the manged heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 6 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/TextTrack.cpp ('k') | Source/core/html/track/TextTrackCue.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 24 matching lines...) Expand all
35 #include "core/events/EventTarget.h" 35 #include "core/events/EventTarget.h"
36 #include "core/html/HTMLDivElement.h" 36 #include "core/html/HTMLDivElement.h"
37 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
38 #include "wtf/RefCounted.h" 38 #include "wtf/RefCounted.h"
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 class ExceptionState; 42 class ExceptionState;
43 43
44 class TextTrackCue : public RefCountedWillBeRefCountedGarbageCollected<TextTrack Cue>, public EventTargetWithInlineData { 44 class TextTrackCue : public RefCountedWillBeRefCountedGarbageCollected<TextTrack Cue>, public EventTargetWithInlineData {
45 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<T extTrackCue>); 45 REFCOUNTED_EVENT_TARGET(TextTrackCue);
46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(TextTrackCue);
46 public: 47 public:
47 static const AtomicString& cueShadowPseudoId() 48 static const AtomicString& cueShadowPseudoId()
48 { 49 {
49 DEFINE_STATIC_LOCAL(const AtomicString, cue, ("cue", AtomicString::Const ructFromLiteral)); 50 DEFINE_STATIC_LOCAL(const AtomicString, cue, ("cue", AtomicString::Const ructFromLiteral));
50 return cue; 51 return cue;
51 } 52 }
52 53
53 virtual ~TextTrackCue() { } 54 virtual ~TextTrackCue() { }
54 55
55 TextTrack* track() const; 56 TextTrack* track() const;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 89
89 virtual const AtomicString& interfaceName() const OVERRIDE; 90 virtual const AtomicString& interfaceName() const OVERRIDE;
90 91
91 #ifndef NDEBUG 92 #ifndef NDEBUG
92 virtual String toString() const = 0; 93 virtual String toString() const = 0;
93 #endif 94 #endif
94 95
95 DEFINE_ATTRIBUTE_EVENT_LISTENER(enter); 96 DEFINE_ATTRIBUTE_EVENT_LISTENER(enter);
96 DEFINE_ATTRIBUTE_EVENT_LISTENER(exit); 97 DEFINE_ATTRIBUTE_EVENT_LISTENER(exit);
97 98
98 virtual void trace(Visitor*); 99 virtual void trace(Visitor*) OVERRIDE;
99 100
100 protected: 101 protected:
101 TextTrackCue(double start, double end); 102 TextTrackCue(double start, double end);
102 103
103 void cueWillChange(); 104 void cueWillChange();
104 virtual void cueDidChange(); 105 virtual void cueDidChange();
105 106
106 private: 107 private:
107 AtomicString m_id; 108 AtomicString m_id;
108 double m_startTime; 109 double m_startTime;
109 double m_endTime; 110 double m_endTime;
110 int m_cueIndex; 111 int m_cueIndex;
111 112
112 RawPtrWillBeMember<TextTrack> m_track; 113 RawPtrWillBeMember<TextTrack> m_track;
113 114
114 bool m_isActive : 1; 115 bool m_isActive : 1;
115 bool m_pauseOnExit : 1; 116 bool m_pauseOnExit : 1;
116 }; 117 };
117 118
118 } // namespace WebCore 119 } // namespace WebCore
119 120
120 #endif 121 #endif
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrack.cpp ('k') | Source/core/html/track/TextTrackCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698