#include "chrome/browser/ui/views/tabs/fade_footer_view.h"
#include "base/check.h"
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
#include "chrome/browser/ui/layout_constants.h"
#include "chrome/browser/ui/views/tabs/alert_indicator_button.h"
#include "chrome/grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/models/image_model.h"
#include "ui/base/text/bytes_formatting.h"
#include "ui/base/ui_base_features.h"
#include "ui/compositor/layer.h"
#include "ui/views/border.h"
#include "ui/views/layout/flex_layout_types.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/view.h"
#include "ui/views/view_class_properties.h"
namespace {
constexpr int kIconLabelSpacing = …;
constexpr auto kFooterMargins = …;
constexpr int kFooterRowSpacing = …;
}
template <typename T>
FooterRow<T>::FooterRow(bool is_fade_out_view)
: … { … }
template <typename T>
void FooterRow<T>::SetContent(const ui::ImageModel& icon_image_model,
std::u16string label_text) { … }
template <typename T>
gfx::Size FooterRow<T>::CalculatePreferredSize(
const views::SizeBounds& available_size) const { … }
template <typename T>
gfx::Size FooterRow<T>::GetMinimumSize() const { … }
template <typename T>
void FooterRow<T>::SetFade(double percent) { … }
FooterRow_AlertFooterRowData;
BEGIN_TEMPLATE_METADATA(…)
FooterRow_PerformanceRowData;
BEGIN_TEMPLATE_METADATA(…)
template class FooterRow<AlertFooterRowData>;
template class FooterRow<PerformanceRowData>;
void FadeAlertFooterRow::SetData(const AlertFooterRowData& data) { … }
BEGIN_METADATA(…)
void FadePerformanceFooterRow::SetData(const PerformanceRowData& data) { … }
BEGIN_METADATA(…)
DEFINE_CLASS_ELEMENT_IDENTIFIER_VALUE(FooterView, kHoverCardFooterElementId);
FooterView::FooterView() { … }
void FooterView::SetAlertData(const AlertFooterRowData& data) { … }
void FooterView::SetPerformanceData(const PerformanceRowData& data) { … }
void FooterView::SetFade(double percent) { … }
void FooterView::UpdateVisibility() { … }
FadeWrapper_View_PerformanceRowData;
BEGIN_TEMPLATE_METADATA(…)
FadeWrapper_View_AlertFooterRowData;
BEGIN_TEMPLATE_METADATA(…)
FadeView_FadeAlertFooterRow_FadeAlertFooterRow_AlertFooterRowData;
BEGIN_TEMPLATE_METADATA(…)
FadeView_FadePerformanceFooterRow_FadePerformanceFooterRow_PerformanceRowData;
BEGIN_TEMPLATE_METADATA(…)
BEGIN_METADATA(…)