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

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

Issue 2567913002: Rename ActiveDOMObject to SuspendableObject (Closed)
Patch Set: Created 4 years 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) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, 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 * 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 11 matching lines...) Expand all
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
23 * DAMAGE. 23 * DAMAGE.
24 */ 24 */
25 25
26 #ifndef BaseAudioContext_h 26 #ifndef BaseAudioContext_h
27 #define BaseAudioContext_h 27 #define BaseAudioContext_h
28 28
29 #include "bindings/core/v8/ActiveScriptWrappable.h" 29 #include "bindings/core/v8/ActiveScriptWrappable.h"
30 #include "bindings/core/v8/ScriptPromise.h" 30 #include "bindings/core/v8/ScriptPromise.h"
31 #include "bindings/core/v8/ScriptPromiseResolver.h" 31 #include "bindings/core/v8/ScriptPromiseResolver.h"
32 #include "core/dom/ActiveDOMObject.h"
33 #include "core/dom/DOMTypedArray.h" 32 #include "core/dom/DOMTypedArray.h"
33 #include "core/dom/SuspendableObject.h"
34 #include "core/events/EventListener.h" 34 #include "core/events/EventListener.h"
35 #include "modules/EventTargetModules.h" 35 #include "modules/EventTargetModules.h"
36 #include "modules/ModulesExport.h" 36 #include "modules/ModulesExport.h"
37 #include "modules/webaudio/AsyncAudioDecoder.h" 37 #include "modules/webaudio/AsyncAudioDecoder.h"
38 #include "modules/webaudio/AudioDestinationNode.h" 38 #include "modules/webaudio/AudioDestinationNode.h"
39 #include "modules/webaudio/DeferredTaskHandler.h" 39 #include "modules/webaudio/DeferredTaskHandler.h"
40 #include "modules/webaudio/IIRFilterNode.h" 40 #include "modules/webaudio/IIRFilterNode.h"
41 #include "platform/audio/AudioBus.h" 41 #include "platform/audio/AudioBus.h"
42 #include "platform/heap/Handle.h" 42 #include "platform/heap/Handle.h"
43 #include "wtf/HashSet.h" 43 #include "wtf/HashSet.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 class SecurityOrigin; 80 class SecurityOrigin;
81 class StereoPannerNode; 81 class StereoPannerNode;
82 class WaveShaperNode; 82 class WaveShaperNode;
83 83
84 // BaseAudioContext is the cornerstone of the web audio API and all AudioNodes 84 // BaseAudioContext is the cornerstone of the web audio API and all AudioNodes
85 // are created from it. For thread safety between the audio thread and the main 85 // are created from it. For thread safety between the audio thread and the main
86 // thread, it has a rendering graph locking mechanism. 86 // thread, it has a rendering graph locking mechanism.
87 87
88 class MODULES_EXPORT BaseAudioContext : public EventTargetWithInlineData, 88 class MODULES_EXPORT BaseAudioContext : public EventTargetWithInlineData,
89 public ActiveScriptWrappable, 89 public ActiveScriptWrappable,
90 public ActiveDOMObject { 90 public SuspendableObject {
91 USING_GARBAGE_COLLECTED_MIXIN(BaseAudioContext); 91 USING_GARBAGE_COLLECTED_MIXIN(BaseAudioContext);
92 DEFINE_WRAPPERTYPEINFO(); 92 DEFINE_WRAPPERTYPEINFO();
93 93
94 public: 94 public:
95 // The state of an audio context. On creation, the state is Suspended. The 95 // The state of an audio context. On creation, the state is Suspended. The
96 // state is Running if audio is being processed (audio graph is being pulled 96 // state is Running if audio is being processed (audio graph is being pulled
97 // for data). The state is Closed if the audio context has been closed. The 97 // for data). The state is Closed if the audio context has been closed. The
98 // valid transitions are from Suspended to either Running or Closed; Running 98 // valid transitions are from Suspended to either Running or Closed; Running
99 // to Suspended or Closed. Once Closed, there are no valid transitions. 99 // to Suspended or Closed. Once Closed, there are no valid transitions.
100 enum AudioContextState { Suspended, Running, Closed }; 100 enum AudioContextState { Suspended, Running, Closed };
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 // This is considering 32 is large enough for multiple channels audio. 447 // This is considering 32 is large enough for multiple channels audio.
448 // It is somewhat arbitrary and could be increased if necessary. 448 // It is somewhat arbitrary and could be increased if necessary.
449 enum { MaxNumberOfChannels = 32 }; 449 enum { MaxNumberOfChannels = 32 };
450 450
451 Optional<AutoplayStatus> m_autoplayStatus; 451 Optional<AutoplayStatus> m_autoplayStatus;
452 }; 452 };
453 453
454 } // namespace blink 454 } // namespace blink
455 455
456 #endif // BaseAudioContext_h 456 #endif // BaseAudioContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698