widget/windows/AudioSession.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/widget/windows/AudioSession.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     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 "nsAutoPtr.h"
    1.11 +#include "nsString.h"
    1.12 +
    1.13 +namespace mozilla {
    1.14 +namespace widget {
    1.15 +
    1.16 +// Start the audio session in the current process
    1.17 +nsresult StartAudioSession();
    1.18 +
    1.19 +// Pass the information necessary to start an audio session in another process
    1.20 +nsresult GetAudioSessionData(nsID& aID,
    1.21 +                             nsString& aSessionName,
    1.22 +                             nsString& aIconPath);
    1.23 +
    1.24 +// Receive the information necessary to start an audio session in a non-chrome
    1.25 +// process
    1.26 +nsresult RecvAudioSessionData(const nsID& aID,
    1.27 +                              const nsString& aSessionName,
    1.28 +                              const nsString& aIconPath);
    1.29 +
    1.30 +// Stop the audio session in the current process
    1.31 +nsresult StopAudioSession();
    1.32 +
    1.33 +} // namespace widget
    1.34 +} // namespace mozilla

mercurial