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

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

Issue 1219013005: Fix virtual/override/final usage in Source/core/html/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « Source/core/html/track/TextTrackContainer.h ('k') | Source/core/html/track/TextTrackList.h » ('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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class TextTrackCue : public EventTargetWithInlineData, public RefCountedWillBeNo Base<TextTrackCue> { 44 class TextTrackCue : public EventTargetWithInlineData, public RefCountedWillBeNo Base<TextTrackCue> {
45 DEFINE_WRAPPERTYPEINFO(); 45 DEFINE_WRAPPERTYPEINFO();
46 REFCOUNTED_EVENT_TARGET(TextTrackCue); 46 REFCOUNTED_EVENT_TARGET(TextTrackCue);
47 public: 47 public:
48 static const AtomicString& cueShadowPseudoId() 48 static const AtomicString& cueShadowPseudoId()
49 { 49 {
50 DEFINE_STATIC_LOCAL(const AtomicString, cue, ("cue", AtomicString::Const ructFromLiteral)); 50 DEFINE_STATIC_LOCAL(const AtomicString, cue, ("cue", AtomicString::Const ructFromLiteral));
51 return cue; 51 return cue;
52 } 52 }
53 53
54 virtual ~TextTrackCue() { } 54 ~TextTrackCue() override { }
55 55
56 TextTrack* track() const; 56 TextTrack* track() const;
57 void setTrack(TextTrack*); 57 void setTrack(TextTrack*);
58 58
59 Node* owner() const; 59 Node* owner() const;
60 60
61 const AtomicString& id() const { return m_id; } 61 const AtomicString& id() const { return m_id; }
62 void setId(const AtomicString&); 62 void setId(const AtomicString&);
63 63
64 double startTime() const { return m_startTime; } 64 double startTime() const { return m_startTime; }
65 void setStartTime(double); 65 void setStartTime(double);
66 66
67 double endTime() const { return m_endTime; } 67 double endTime() const { return m_endTime; }
68 void setEndTime(double); 68 void setEndTime(double);
69 69
70 bool pauseOnExit() const { return m_pauseOnExit; } 70 bool pauseOnExit() const { return m_pauseOnExit; }
71 void setPauseOnExit(bool); 71 void setPauseOnExit(bool);
72 72
73 unsigned cueIndex(); 73 unsigned cueIndex();
74 void updateCueIndex(unsigned cueIndex) { m_cueIndex = cueIndex; } 74 void updateCueIndex(unsigned cueIndex) { m_cueIndex = cueIndex; }
75 void invalidateCueIndex(); 75 void invalidateCueIndex();
76 76
77 using EventTarget::dispatchEvent; 77 using EventTarget::dispatchEvent;
78 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override; 78 bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override;
79 79
80 bool isActive() const { return m_isActive; } 80 bool isActive() const { return m_isActive; }
81 void setIsActive(bool active) { m_isActive = active; } 81 void setIsActive(bool active) { m_isActive = active; }
82 82
83 // Updates the display tree and appends it to container if it has not 83 // Updates the display tree and appends it to container if it has not
84 // already been added. 84 // already been added.
85 virtual void updateDisplay(HTMLDivElement& container) = 0; 85 virtual void updateDisplay(HTMLDivElement& container) = 0;
86 86
87 // Marks the nodes of the display tree as past or future relative to 87 // Marks the nodes of the display tree as past or future relative to
88 // movieTime. If updateDisplay() has not been called there is no display 88 // movieTime. If updateDisplay() has not been called there is no display
89 // tree and nothing is done. 89 // tree and nothing is done.
90 virtual void updatePastAndFutureNodes(double movieTime) = 0; 90 virtual void updatePastAndFutureNodes(double movieTime) = 0;
91 91
92 // FIXME: Refactor to eliminate removeDisplayTree(). https://crbug.com/32243 4 92 // FIXME: Refactor to eliminate removeDisplayTree(). https://crbug.com/32243 4
93 enum RemovalNotification { 93 enum RemovalNotification {
94 DontNotifyRegion, 94 DontNotifyRegion,
95 NotifyRegion 95 NotifyRegion
96 }; 96 };
97 virtual void removeDisplayTree(RemovalNotification = NotifyRegion) = 0; 97 virtual void removeDisplayTree(RemovalNotification = NotifyRegion) = 0;
98 98
99 virtual const AtomicString& interfaceName() const override; 99 const AtomicString& interfaceName() const override;
100 100
101 #ifndef NDEBUG 101 #ifndef NDEBUG
102 virtual String toString() const = 0; 102 virtual String toString() const = 0;
103 #endif 103 #endif
104 104
105 DEFINE_ATTRIBUTE_EVENT_LISTENER(enter); 105 DEFINE_ATTRIBUTE_EVENT_LISTENER(enter);
106 DEFINE_ATTRIBUTE_EVENT_LISTENER(exit); 106 DEFINE_ATTRIBUTE_EVENT_LISTENER(exit);
107 107
108 DECLARE_VIRTUAL_TRACE(); 108 DECLARE_VIRTUAL_TRACE();
109 109
(...skipping 12 matching lines...) Expand all
122 122
123 unsigned m_cueIndex; 123 unsigned m_cueIndex;
124 124
125 bool m_isActive : 1; 125 bool m_isActive : 1;
126 bool m_pauseOnExit : 1; 126 bool m_pauseOnExit : 1;
127 }; 127 };
128 128
129 } // namespace blink 129 } // namespace blink
130 130
131 #endif // TextTrackCue_h 131 #endif // TextTrackCue_h
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrackContainer.h ('k') | Source/core/html/track/TextTrackList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698