| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 OfflineAudioCompletionEvent* OfflineAudioCompletionEvent::create() { | 30 OfflineAudioCompletionEvent* OfflineAudioCompletionEvent::create() { |
| 31 return new OfflineAudioCompletionEvent; | 31 return new OfflineAudioCompletionEvent; |
| 32 } | 32 } |
| 33 | 33 |
| 34 OfflineAudioCompletionEvent* OfflineAudioCompletionEvent::create( | 34 OfflineAudioCompletionEvent* OfflineAudioCompletionEvent::create( |
| 35 AudioBuffer* renderedBuffer) { | 35 AudioBuffer* renderedBuffer) { |
| 36 return new OfflineAudioCompletionEvent(renderedBuffer); | 36 return new OfflineAudioCompletionEvent(renderedBuffer); |
| 37 } | 37 } |
| 38 | 38 |
| 39 OfflineAudioCompletionEvent* OfflineAudioCompletionEvent::create( |
| 40 const AtomicString& eventType, |
| 41 const OfflineAudioCompletionEventInit& eventInit) { |
| 42 return new OfflineAudioCompletionEvent(eventType, eventInit); |
| 43 } |
| 44 |
| 39 OfflineAudioCompletionEvent::OfflineAudioCompletionEvent() {} | 45 OfflineAudioCompletionEvent::OfflineAudioCompletionEvent() {} |
| 40 | 46 |
| 41 OfflineAudioCompletionEvent::OfflineAudioCompletionEvent( | 47 OfflineAudioCompletionEvent::OfflineAudioCompletionEvent( |
| 42 AudioBuffer* renderedBuffer) | 48 AudioBuffer* renderedBuffer) |
| 43 : Event(EventTypeNames::complete, true, false), | 49 : Event(EventTypeNames::complete, true, false), |
| 44 m_renderedBuffer(renderedBuffer) {} | 50 m_renderedBuffer(renderedBuffer) {} |
| 45 | 51 |
| 52 OfflineAudioCompletionEvent::OfflineAudioCompletionEvent( |
| 53 const AtomicString& eventType, |
| 54 const OfflineAudioCompletionEventInit& eventInit) |
| 55 : Event(eventType, eventInit) { |
| 56 m_renderedBuffer = eventInit.renderedBuffer(); |
| 57 } |
| 58 |
| 46 OfflineAudioCompletionEvent::~OfflineAudioCompletionEvent() {} | 59 OfflineAudioCompletionEvent::~OfflineAudioCompletionEvent() {} |
| 47 | 60 |
| 48 const AtomicString& OfflineAudioCompletionEvent::interfaceName() const { | 61 const AtomicString& OfflineAudioCompletionEvent::interfaceName() const { |
| 49 return EventNames::OfflineAudioCompletionEvent; | 62 return EventNames::OfflineAudioCompletionEvent; |
| 50 } | 63 } |
| 51 | 64 |
| 52 DEFINE_TRACE(OfflineAudioCompletionEvent) { | 65 DEFINE_TRACE(OfflineAudioCompletionEvent) { |
| 53 visitor->trace(m_renderedBuffer); | 66 visitor->trace(m_renderedBuffer); |
| 54 Event::trace(visitor); | 67 Event::trace(visitor); |
| 55 } | 68 } |
| 56 | 69 |
| 57 } // namespace blink | 70 } // namespace blink |
| OLD | NEW |