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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h

Issue 1962113003: Make ActiveScriptWrappable the GC mixin it is. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 double m_endTime; // in seconds 115 double m_endTime; // in seconds
116 116
117 static const double UnknownTime; 117 static const double UnknownTime;
118 private: 118 private:
119 // This is accessed by both the main thread and audio thread. Use the sette r and getter to 119 // This is accessed by both the main thread and audio thread. Use the sette r and getter to
120 // protect the access to this! 120 // protect the access to this!
121 int m_playbackState; 121 int m_playbackState;
122 }; 122 };
123 123
124 class AudioScheduledSourceNode : public AudioSourceNode, public ActiveScriptWrap pable { 124 class AudioScheduledSourceNode : public AudioSourceNode, public ActiveScriptWrap pable {
125 USING_GARBAGE_COLLECTED_MIXIN(AudioScheduledSourceNode);
125 public: 126 public:
126 void start(ExceptionState&); 127 void start(ExceptionState&);
127 void start(double when, ExceptionState&); 128 void start(double when, ExceptionState&);
128 void stop(ExceptionState&); 129 void stop(ExceptionState&);
129 void stop(double when, ExceptionState&); 130 void stop(double when, ExceptionState&);
130 131
131 EventListener* onended(); 132 EventListener* onended();
132 void setOnended(EventListener*); 133 void setOnended(EventListener*);
133 134
134 // ActiveScriptWrappable 135 // ActiveScriptWrappable
135 bool hasPendingActivity() const final; 136 bool hasPendingActivity() const final;
136 137
138 DEFINE_INLINE_VIRTUAL_TRACE() { AudioSourceNode::trace(visitor); }
139
137 protected: 140 protected:
138 explicit AudioScheduledSourceNode(AbstractAudioContext&); 141 explicit AudioScheduledSourceNode(AbstractAudioContext&);
139 AudioScheduledSourceHandler& audioScheduledSourceHandler() const; 142 AudioScheduledSourceHandler& audioScheduledSourceHandler() const;
140 }; 143 };
141 144
142 } // namespace blink 145 } // namespace blink
143 146
144 #endif // AudioScheduledSourceNode_h 147 #endif // AudioScheduledSourceNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698