2013-05-16 23:30:41 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim:set ts=2 sw=2 sts=2 et cindent: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "OfflineAudioCompletionEvent.h"
|
|
|
|
#include "mozilla/dom/OfflineAudioCompletionEventBinding.h"
|
2013-08-15 19:44:14 +00:00
|
|
|
#include "AudioContext.h"
|
2013-05-16 23:30:41 +00:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2014-03-05 00:37:43 +00:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_INHERITED_1(OfflineAudioCompletionEvent, Event,
|
2013-05-16 23:30:41 +00:00
|
|
|
mRenderedBuffer)
|
|
|
|
|
|
|
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(OfflineAudioCompletionEvent)
|
2014-03-05 00:37:43 +00:00
|
|
|
NS_INTERFACE_MAP_END_INHERITING(Event)
|
2013-05-16 23:30:41 +00:00
|
|
|
|
2014-03-05 00:37:43 +00:00
|
|
|
NS_IMPL_ADDREF_INHERITED(OfflineAudioCompletionEvent, Event)
|
|
|
|
NS_IMPL_RELEASE_INHERITED(OfflineAudioCompletionEvent, Event)
|
2013-05-16 23:30:41 +00:00
|
|
|
|
|
|
|
OfflineAudioCompletionEvent::OfflineAudioCompletionEvent(AudioContext* aOwner,
|
|
|
|
nsPresContext* aPresContext,
|
2013-10-02 03:46:04 +00:00
|
|
|
WidgetEvent* aEvent)
|
2014-03-05 00:37:43 +00:00
|
|
|
: Event(aOwner, aPresContext, aEvent)
|
2013-05-16 23:30:41 +00:00
|
|
|
{
|
|
|
|
SetIsDOMBinding();
|
|
|
|
}
|
|
|
|
|
|
|
|
JSObject*
|
|
|
|
OfflineAudioCompletionEvent::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aScope)
|
|
|
|
{
|
|
|
|
return OfflineAudioCompletionEventBinding::Wrap(aCx, aScope, this);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|