| 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 27 matching lines...) Expand all Loading... |
| 38 return adoptRef(new OfflineAudioCompletionEvent); | 38 return adoptRef(new OfflineAudioCompletionEvent); |
| 39 } | 39 } |
| 40 | 40 |
| 41 PassRefPtr<OfflineAudioCompletionEvent> OfflineAudioCompletionEvent::create(Pass
RefPtr<AudioBuffer> renderedBuffer) | 41 PassRefPtr<OfflineAudioCompletionEvent> OfflineAudioCompletionEvent::create(Pass
RefPtr<AudioBuffer> renderedBuffer) |
| 42 { | 42 { |
| 43 return adoptRef(new OfflineAudioCompletionEvent(renderedBuffer)); | 43 return adoptRef(new OfflineAudioCompletionEvent(renderedBuffer)); |
| 44 } | 44 } |
| 45 | 45 |
| 46 OfflineAudioCompletionEvent::OfflineAudioCompletionEvent() | 46 OfflineAudioCompletionEvent::OfflineAudioCompletionEvent() |
| 47 { | 47 { |
| 48 ScriptWrappable::init(this); |
| 48 } | 49 } |
| 49 | 50 |
| 50 | |
| 51 OfflineAudioCompletionEvent::OfflineAudioCompletionEvent(PassRefPtr<AudioBuffer>
renderedBuffer) | 51 OfflineAudioCompletionEvent::OfflineAudioCompletionEvent(PassRefPtr<AudioBuffer>
renderedBuffer) |
| 52 : Event(eventNames().completeEvent, true, false) | 52 : Event(eventNames().completeEvent, true, false) |
| 53 , m_renderedBuffer(renderedBuffer) | 53 , m_renderedBuffer(renderedBuffer) |
| 54 { | 54 { |
| 55 ScriptWrappable::init(this); |
| 55 } | 56 } |
| 56 | 57 |
| 57 OfflineAudioCompletionEvent::~OfflineAudioCompletionEvent() | 58 OfflineAudioCompletionEvent::~OfflineAudioCompletionEvent() |
| 58 { | 59 { |
| 59 } | 60 } |
| 60 | 61 |
| 61 const AtomicString& OfflineAudioCompletionEvent::interfaceName() const | 62 const AtomicString& OfflineAudioCompletionEvent::interfaceName() const |
| 62 { | 63 { |
| 63 return eventNames().interfaceForOfflineAudioCompletionEvent; | 64 return eventNames().interfaceForOfflineAudioCompletionEvent; |
| 64 } | 65 } |
| 65 | 66 |
| 66 } // namespace WebCore | 67 } // namespace WebCore |
| 67 | 68 |
| 68 #endif // ENABLE(WEB_AUDIO) | 69 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |