#include "chrome/browser/ui/views/tab_sharing/tab_sharing_infobar.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "build/build_config.h"
#include "chrome/browser/ui/layout_constants.h"
#include "chrome/browser/ui/tab_sharing/tab_sharing_infobar_delegate.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/chrome_typography.h"
#include "components/infobars/content/content_infobar_manager.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/base/ui_base_features.h"
#include "ui/base/window_open_disposition.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/button/md_text_button.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/link.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/style/platform_style.h"
#include "ui/views/view_class_properties.h"
namespace {
constexpr auto kCapturedSurfaceControlIndicatorButtonInsets = …;
}
TabSharingInfoBar::TabSharingInfoBar(
std::unique_ptr<TabSharingInfoBarDelegate> delegate)
: … { … }
TabSharingInfoBar::~TabSharingInfoBar() = default;
void TabSharingInfoBar::Layout(PassKey) { … }
void TabSharingInfoBar::StopButtonPressed() { … }
void TabSharingInfoBar::ShareThisTabInsteadButtonPressed() { … }
void TabSharingInfoBar::QuickNavButtonPressed() { … }
void TabSharingInfoBar::OnCapturedSurfaceControlActivityIndicatorPressed() { … }
TabSharingInfoBarDelegate* TabSharingInfoBar::GetDelegate() { … }
int TabSharingInfoBar::GetContentMinimumWidth() const { … }
int TabSharingInfoBar::NonLabelWidth() const { … }
std::unique_ptr<infobars::InfoBar> CreateTabSharingInfoBar(
std::unique_ptr<TabSharingInfoBarDelegate> delegate) { … }