blob: 18d3aeb34702ab888e70920a41987321ea8456c0 [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 "services/media_session/public/mojom/media_session.mojom.h"
#include "ui/views/view.h"
namespace gfx {
class ImageSkia;
} // namespace gfx
namespace media_session {
struct MediaMetadata;
} // namespace media_session
namespace media_message_center {
// MediaNotificationView will show up as a custom view. It will show the
// currently playing media and provide playback controls.
: public views::View {
// When |forced_expanded_state| has a value, the notification will be forced
// into that expanded state and the user won't be given a button to toggle the
// expanded state. Subsequent |SetExpanded()| calls will be ignored until
// |SetForcedExpandedState(nullptr)| is called.
virtual void SetForcedExpandedState(bool* forced_expanded_state) = 0;
virtual void SetExpanded(bool expanded) = 0;
virtual void UpdateCornerRadius(int top_radius, int bottom_radius) = 0;
virtual void UpdateWithMediaSessionInfo(
const media_session::mojom::MediaSessionInfoPtr& session_info) = 0;
virtual void UpdateWithMediaMetadata(
const media_session::MediaMetadata& metadata) = 0;
virtual void UpdateWithMediaActions(
const base::flat_set<media_session::mojom::MediaSessionAction>&
actions) = 0;
virtual void UpdateWithMediaArtwork(const gfx::ImageSkia& image) = 0;
} // namespace media_message_center