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

Side by Side Diff: Source/modules/webaudio/AudioNode.h

Issue 1163253003: Clean up macros around DEFINE_EVENT_TARGET_REFCOUNTING (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/modules/webaudio/AudioContext.h ('k') | Source/modules/webmidi/MIDIAccess.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) 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 protected: 268 protected:
269 unsigned m_channelCount; 269 unsigned m_channelCount;
270 ChannelCountMode m_channelCountMode; 270 ChannelCountMode m_channelCountMode;
271 AudioBus::ChannelInterpretation m_channelInterpretation; 271 AudioBus::ChannelInterpretation m_channelInterpretation;
272 // The new channel count mode that will be used to set the actual mode in th e pre or post 272 // The new channel count mode that will be used to set the actual mode in th e pre or post
273 // rendering phase. 273 // rendering phase.
274 ChannelCountMode m_newChannelCountMode; 274 ChannelCountMode m_newChannelCountMode;
275 }; 275 };
276 276
277 class MODULES_EXPORT AudioNode : public RefCountedGarbageCollectedEventTargetWit hInlineData<AudioNode> { 277 class MODULES_EXPORT AudioNode : public RefCountedGarbageCollectedEventTargetWit hInlineData<AudioNode> {
278 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<A udioNode>); 278 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(AudioNode);
279 DEFINE_WRAPPERTYPEINFO(); 279 DEFINE_WRAPPERTYPEINFO();
280 USING_PRE_FINALIZER(AudioNode, dispose); 280 USING_PRE_FINALIZER(AudioNode, dispose);
281 public: 281 public:
282 DECLARE_VIRTUAL_TRACE(); 282 DECLARE_VIRTUAL_TRACE();
283 AudioHandler& handler() const; 283 AudioHandler& handler() const;
284 284
285 virtual void connect(AudioNode*, unsigned outputIndex, unsigned inputIndex, ExceptionState&); 285 virtual void connect(AudioNode*, unsigned outputIndex, unsigned inputIndex, ExceptionState&);
286 void connect(AudioParam*, unsigned outputIndex, ExceptionState&); 286 void connect(AudioParam*, unsigned outputIndex, ExceptionState&);
287 void disconnect(); 287 void disconnect();
288 virtual void disconnect(unsigned outputIndex, ExceptionState&); 288 virtual void disconnect(unsigned outputIndex, ExceptionState&);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 HeapVector<Member<HeapHashSet<Member<AudioNode>>>> m_connectedNodes; 332 HeapVector<Member<HeapHashSet<Member<AudioNode>>>> m_connectedNodes;
333 // Represents audio node graph with Oilpan references. N-th HeapHashSet 333 // Represents audio node graph with Oilpan references. N-th HeapHashSet
334 // represents a set of AudioParam objects connected to this AudioNode's N-th 334 // represents a set of AudioParam objects connected to this AudioNode's N-th
335 // output. 335 // output.
336 HeapVector<Member<HeapHashSet<Member<AudioParam>>>> m_connectedParams; 336 HeapVector<Member<HeapHashSet<Member<AudioParam>>>> m_connectedParams;
337 }; 337 };
338 338
339 } // namespace blink 339 } // namespace blink
340 340
341 #endif // AudioNode_h 341 #endif // AudioNode_h
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioContext.h ('k') | Source/modules/webmidi/MIDIAccess.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698