| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| module blink.mojom; |
| |
| // Interface for allowing a real-time AudioContext to send |
| // notifications to browser that the AudioContext has started (or |
| // stopped) playing audible sounds. Audibility is computed by the |
| // AudioContext. |
| interface AudioContextManager { |
| // AudioContext started producing audible sound. The id is the ID |
| // of the AudioContext. |
| AudioContextAudiblePlaybackStarted(int32 id); |
| |
| // AudioContext stopped producing audible sound. The id is the ID |
| // of the AudioContext. |
| AudioContextAudiblePlaybackStopped(int32 id); |
| }; |