chromium/chrome/browser/ui/views/global_media_controls/cast_device_selector_view.h

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_UI_VIEWS_GLOBAL_MEDIA_CONTROLS_CAST_DEVICE_SELECTOR_VIEW_H_
#define CHROME_BROWSER_UI_VIEWS_GLOBAL_MEDIA_CONTROLS_CAST_DEVICE_SELECTOR_VIEW_H_

#include "chrome/browser/ui/views/controls/hover_button.h"
#include "components/global_media_controls/public/mojom/device_service.mojom.h"
#include "components/global_media_controls/public/views/media_action_button.h"
#include "components/global_media_controls/public/views/media_item_ui_device_selector.h"
#include "components/media_message_center/notification_theme.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "ui/base/metadata/metadata_header_macros.h"

namespace global_media_controls {
class MediaItemUIUpdatedView;
}  // namespace global_media_controls

namespace views {
class BoxLayoutView;
}  // namespace views

// Special hover button that displays a device with issue text. We create a
// subclass because the hover button lacks functionalities to customize the
// labels.
class IssueHoverButton : public HoverButton {};

// CastDeviceSelectorView holds a list of devices available for casting the
// given media session. This is used within MediaDialogView on non-CrOS desktop
// platforms and replaces MediaItemUIDeviceSelectorView when the
// media::kGlobalMediaControlsUpdatedUI flag is enabled.
class CastDeviceSelectorView
    : public global_media_controls::MediaItemUIDeviceSelector,
      public global_media_controls::mojom::DeviceListClient {};

#endif  // CHROME_BROWSER_UI_VIEWS_GLOBAL_MEDIA_CONTROLS_CAST_DEVICE_SELECTOR_VIEW_H_