blob: 5c1fab8acb1aa6e220d4e2d17ff14f934af8b7de [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 "ash/public/cpp/ash_public_export.h"
namespace ash {
// This delegate allows the UI code in ash to forward UI commands.
class ASH_PUBLIC_EXPORT MediaClient {
// Handles the Next Track Media shortcut key.
virtual void HandleMediaNextTrack() = 0;
// Handles the Play/Pause Toggle Media shortcut key.
virtual void HandleMediaPlayPause() = 0;
// Handles the Previous Track Media shortcut key.
virtual void HandleMediaPrevTrack() = 0;
// Requests that the client resends the NotifyMediaCaptureChanged() message.
virtual void RequestCaptureState() = 0;
// Suspends all WebContents-associated media sessions to stop managed players.
virtual void SuspendMediaSessions() = 0;
virtual ~MediaClient() = default;
} // namespace ash