Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 10 matching lines...) Expand all Loading... | |
| 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 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 OfflineAudioCompletionEvent_h | 26 #ifndef OfflineAudioCompletionEvent_h |
| 27 #define OfflineAudioCompletionEvent_h | 27 #define OfflineAudioCompletionEvent_h |
| 28 | 28 |
| 29 #include "modules/EventModules.h" | 29 #include "modules/EventModules.h" |
| 30 #include "modules/webaudio/AudioBuffer.h" | 30 #include "modules/webaudio/AudioBuffer.h" |
| 31 #include "modules/webaudio/OfflineAudioCompletionEventInit.h" | |
| 32 | |
| 31 #include "wtf/PassRefPtr.h" | 33 #include "wtf/PassRefPtr.h" |
| 32 #include "wtf/RefPtr.h" | 34 #include "wtf/RefPtr.h" |
| 33 | 35 |
| 34 namespace blink { | 36 namespace blink { |
| 35 | 37 |
| 36 class AudioBuffer; | 38 class AudioBuffer; |
| 39 class OfflineAudioCompletionEventInit; | |
| 37 | 40 |
| 38 class OfflineAudioCompletionEvent final : public Event { | 41 class OfflineAudioCompletionEvent final : public Event { |
| 39 DEFINE_WRAPPERTYPEINFO(); | 42 DEFINE_WRAPPERTYPEINFO(); |
| 40 | 43 |
| 41 public: | 44 public: |
| 42 static OfflineAudioCompletionEvent* create(); | 45 static OfflineAudioCompletionEvent* create(); |
| 43 static OfflineAudioCompletionEvent* create(AudioBuffer* renderedBuffer); | 46 static OfflineAudioCompletionEvent* create(AudioBuffer* renderedBuffer); |
| 47 static OfflineAudioCompletionEvent* create( | |
| 48 const AtomicString& eventType, | |
| 49 const OfflineAudioCompletionEventInit&); | |
| 44 | 50 |
| 45 ~OfflineAudioCompletionEvent() override; | 51 ~OfflineAudioCompletionEvent() override; |
| 46 | 52 |
| 47 AudioBuffer* renderedBuffer() { return m_renderedBuffer.get(); } | 53 AudioBuffer* renderedBuffer() { return m_renderedBuffer.get(); } |
| 48 | 54 |
| 49 const AtomicString& interfaceName() const override; | 55 const AtomicString& interfaceName() const override; |
| 50 | 56 |
| 51 DECLARE_VIRTUAL_TRACE(); | 57 DECLARE_VIRTUAL_TRACE(); |
| 52 | 58 |
| 53 private: | 59 private: |
| 54 OfflineAudioCompletionEvent(); | 60 OfflineAudioCompletionEvent(); |
| 55 explicit OfflineAudioCompletionEvent(AudioBuffer* renderedBuffer); | 61 explicit OfflineAudioCompletionEvent(AudioBuffer* renderedBuffer); |
| 62 explicit OfflineAudioCompletionEvent(const AtomicString&, | |
|
foolip
2016/11/15 19:53:33
Include argument name (type)
hongchan
2016/12/02 18:07:17
What about the second one? I thought Chromium conv
Raymond Toy
2016/12/02 18:50:00
I think AtomicString& by itself carries no info ab
| |
| 63 const OfflineAudioCompletionEventInit&); | |
| 56 | 64 |
| 57 Member<AudioBuffer> m_renderedBuffer; | 65 Member<AudioBuffer> m_renderedBuffer; |
| 58 }; | 66 }; |
| 59 | 67 |
| 60 } // namespace blink | 68 } // namespace blink |
| 61 | 69 |
| 62 #endif // OfflineAudioCompletionEvent_h | 70 #endif // OfflineAudioCompletionEvent_h |
| OLD | NEW |