blob: c855ae89295c8a9193bb2217e7d753f4711b3084 [file] [log] [blame]
// Copyright 2019 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.
#include "base/strings/string16.h"
namespace chromecast {
// MediaOverlay is responsible for displaying information to the user about
// media playback, such as the volume level, and notifications about volume
// control limitations.
class MediaOverlay {
class Controller {
// Notifies the controller that the media is rendering in surround-sound.
virtual void SetSurroundSoundInUse(bool in_use) = 0;
virtual ~MediaOverlay() = default;
virtual void SetController(Controller* controller) = 0;
// Displays a brief toast to the user.
virtual void ShowMessage(const base::string16& message) = 0;
// Shows the volume bar for a given |volume|.
virtual void ShowVolumeBar(float volume) = 0;
} // namespace chromecast