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

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

Issue 2103043007: Rename AbstractAudioContext to BaseAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use ASSERT(isGraphOwner()) instead of DCHECK Created 4 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
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 16 matching lines...) Expand all
27 */ 27 */
28 28
29 #ifndef AudioScheduledSourceNode_h 29 #ifndef AudioScheduledSourceNode_h
30 #define AudioScheduledSourceNode_h 30 #define AudioScheduledSourceNode_h
31 31
32 #include "bindings/core/v8/ActiveScriptWrappable.h" 32 #include "bindings/core/v8/ActiveScriptWrappable.h"
33 #include "modules/webaudio/AudioSourceNode.h" 33 #include "modules/webaudio/AudioSourceNode.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class AbstractAudioContext; 37 class BaseAudioContext;
38 class AudioBus; 38 class AudioBus;
39 39
40 class AudioScheduledSourceHandler : public AudioHandler { 40 class AudioScheduledSourceHandler : public AudioHandler {
41 public: 41 public:
42 // These are the possible states an AudioScheduledSourceNode can be in: 42 // These are the possible states an AudioScheduledSourceNode can be in:
43 // 43 //
44 // UNSCHEDULED_STATE - Initial playback state. Created, but not yet schedule d. 44 // UNSCHEDULED_STATE - Initial playback state. Created, but not yet schedule d.
45 // SCHEDULED_STATE - Scheduled to play (via start()), but not yet playing. 45 // SCHEDULED_STATE - Scheduled to play (via start()), but not yet playing.
46 // PLAYING_STATE - Generating sound. 46 // PLAYING_STATE - Generating sound.
47 // FINISHED_STATE - Finished generating sound. 47 // FINISHED_STATE - Finished generating sound.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 EventListener* onended(); 132 EventListener* onended();
133 void setOnended(EventListener*); 133 void setOnended(EventListener*);
134 134
135 // ActiveScriptWrappable 135 // ActiveScriptWrappable
136 bool hasPendingActivity() const final; 136 bool hasPendingActivity() const final;
137 137
138 DEFINE_INLINE_VIRTUAL_TRACE() { AudioSourceNode::trace(visitor); } 138 DEFINE_INLINE_VIRTUAL_TRACE() { AudioSourceNode::trace(visitor); }
139 139
140 protected: 140 protected:
141 explicit AudioScheduledSourceNode(AbstractAudioContext&); 141 explicit AudioScheduledSourceNode(BaseAudioContext&);
142 AudioScheduledSourceHandler& audioScheduledSourceHandler() const; 142 AudioScheduledSourceHandler& audioScheduledSourceHandler() const;
143 }; 143 };
144 144
145 } // namespace blink 145 } // namespace blink
146 146
147 #endif // AudioScheduledSourceNode_h 147 #endif // AudioScheduledSourceNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698