1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/media/webaudio/OfflineAudioCompletionEvent.cpp Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,39 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* vim:set ts=2 sw=2 sts=2 et cindent: */ 1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#include "OfflineAudioCompletionEvent.h" 1.11 +#include "mozilla/dom/OfflineAudioCompletionEventBinding.h" 1.12 +#include "AudioContext.h" 1.13 + 1.14 +namespace mozilla { 1.15 +namespace dom { 1.16 + 1.17 +NS_IMPL_CYCLE_COLLECTION_INHERITED(OfflineAudioCompletionEvent, Event, 1.18 + mRenderedBuffer) 1.19 + 1.20 +NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(OfflineAudioCompletionEvent) 1.21 +NS_INTERFACE_MAP_END_INHERITING(Event) 1.22 + 1.23 +NS_IMPL_ADDREF_INHERITED(OfflineAudioCompletionEvent, Event) 1.24 +NS_IMPL_RELEASE_INHERITED(OfflineAudioCompletionEvent, Event) 1.25 + 1.26 +OfflineAudioCompletionEvent::OfflineAudioCompletionEvent(AudioContext* aOwner, 1.27 + nsPresContext* aPresContext, 1.28 + WidgetEvent* aEvent) 1.29 + : Event(aOwner, aPresContext, aEvent) 1.30 +{ 1.31 + SetIsDOMBinding(); 1.32 +} 1.33 + 1.34 +JSObject* 1.35 +OfflineAudioCompletionEvent::WrapObject(JSContext* aCx) 1.36 +{ 1.37 + return OfflineAudioCompletionEventBinding::Wrap(aCx, this); 1.38 +} 1.39 + 1.40 +} 1.41 +} 1.42 +