michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim:set ts=2 sw=2 sts=2 et cindent: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "OfflineAudioCompletionEvent.h" michael@0: #include "mozilla/dom/OfflineAudioCompletionEventBinding.h" michael@0: #include "AudioContext.h" michael@0: michael@0: namespace mozilla { michael@0: namespace dom { michael@0: michael@0: NS_IMPL_CYCLE_COLLECTION_INHERITED(OfflineAudioCompletionEvent, Event, michael@0: mRenderedBuffer) michael@0: michael@0: NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(OfflineAudioCompletionEvent) michael@0: NS_INTERFACE_MAP_END_INHERITING(Event) michael@0: michael@0: NS_IMPL_ADDREF_INHERITED(OfflineAudioCompletionEvent, Event) michael@0: NS_IMPL_RELEASE_INHERITED(OfflineAudioCompletionEvent, Event) michael@0: michael@0: OfflineAudioCompletionEvent::OfflineAudioCompletionEvent(AudioContext* aOwner, michael@0: nsPresContext* aPresContext, michael@0: WidgetEvent* aEvent) michael@0: : Event(aOwner, aPresContext, aEvent) michael@0: { michael@0: SetIsDOMBinding(); michael@0: } michael@0: michael@0: JSObject* michael@0: OfflineAudioCompletionEvent::WrapObject(JSContext* aCx) michael@0: { michael@0: return OfflineAudioCompletionEventBinding::Wrap(aCx, this); michael@0: } michael@0: michael@0: } michael@0: } michael@0: