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 24 matching lines...) Expand all Loading... |
35 return adoptRefWillBeNoop(new OfflineAudioCompletionEvent); | 35 return adoptRefWillBeNoop(new OfflineAudioCompletionEvent); |
36 } | 36 } |
37 | 37 |
38 PassRefPtrWillBeRawPtr<OfflineAudioCompletionEvent> OfflineAudioCompletionEvent:
:create(AudioBuffer* renderedBuffer) | 38 PassRefPtrWillBeRawPtr<OfflineAudioCompletionEvent> OfflineAudioCompletionEvent:
:create(AudioBuffer* renderedBuffer) |
39 { | 39 { |
40 return adoptRefWillBeNoop(new OfflineAudioCompletionEvent(renderedBuffer)); | 40 return adoptRefWillBeNoop(new OfflineAudioCompletionEvent(renderedBuffer)); |
41 } | 41 } |
42 | 42 |
43 OfflineAudioCompletionEvent::OfflineAudioCompletionEvent() | 43 OfflineAudioCompletionEvent::OfflineAudioCompletionEvent() |
44 { | 44 { |
45 ScriptWrappable::init(this); | |
46 } | 45 } |
47 | 46 |
48 OfflineAudioCompletionEvent::OfflineAudioCompletionEvent(AudioBuffer* renderedBu
ffer) | 47 OfflineAudioCompletionEvent::OfflineAudioCompletionEvent(AudioBuffer* renderedBu
ffer) |
49 : Event(EventTypeNames::complete, true, false) | 48 : Event(EventTypeNames::complete, true, false) |
50 , m_renderedBuffer(renderedBuffer) | 49 , m_renderedBuffer(renderedBuffer) |
51 { | 50 { |
52 ScriptWrappable::init(this); | |
53 } | 51 } |
54 | 52 |
55 OfflineAudioCompletionEvent::~OfflineAudioCompletionEvent() | 53 OfflineAudioCompletionEvent::~OfflineAudioCompletionEvent() |
56 { | 54 { |
57 } | 55 } |
58 | 56 |
59 const AtomicString& OfflineAudioCompletionEvent::interfaceName() const | 57 const AtomicString& OfflineAudioCompletionEvent::interfaceName() const |
60 { | 58 { |
61 return EventNames::OfflineAudioCompletionEvent; | 59 return EventNames::OfflineAudioCompletionEvent; |
62 } | 60 } |
63 | 61 |
64 void OfflineAudioCompletionEvent::trace(Visitor* visitor) | 62 void OfflineAudioCompletionEvent::trace(Visitor* visitor) |
65 { | 63 { |
66 visitor->trace(m_renderedBuffer); | 64 visitor->trace(m_renderedBuffer); |
67 Event::trace(visitor); | 65 Event::trace(visitor); |
68 } | 66 } |
69 | 67 |
70 } // namespace blink | 68 } // namespace blink |
71 | 69 |
72 #endif // ENABLE(WEB_AUDIO) | 70 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |