#include "chrome/browser/ui/views/sad_tab_view.h"
#include <string>
#include "base/ranges/algorithm.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/chrome_typography.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "content/public/browser/web_contents.h"
#include "ui/accessibility/ax_enums.mojom.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/color/color_id.h"
#include "ui/compositor/layer.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/native_theme/common_theme.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/background.h"
#include "ui/views/controls/bulleted_label_list/bulleted_label_list_view.h"
#include "ui/views/controls/button/md_text_button.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/link.h"
#include "ui/views/controls/webview/webview.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/flex_layout_view.h"
#include "ui/views/style/typography.h"
#include "ui/views/view_class_properties.h"
#include "ui/views/widget/widget.h"
#if BUILDFLAG(IS_CHROMEOS)
#include "chromeos/components/kiosk/kiosk_utils.h"
#endif
namespace {
std::unique_ptr<views::Label> CreateFormattedLabel(
const std::u16string& message) { … }
std::u16string ErrorToString(int error_code) { … }
std::unique_ptr<views::Label> CreateErrorCodeLabel(int format_string,
int error_code) { … }
}
SadTabView::SadTabView(content::WebContents* web_contents, SadTabKind kind)
: … { … }
SadTabView::~SadTabView() { … }
void SadTabView::ReinstallInWebView() { … }
gfx::RoundedCornersF SadTabView::GetBackgroundRadii() const { … }
void SadTabView::SetBackgroundRadii(const gfx::RoundedCornersF& radii) { … }
void SadTabView::OnPaint(gfx::Canvas* canvas) { … }
void SadTabView::RemovedFromWidget() { … }
void SadTabView::AttachToWebView() { … }
void SadTabView::EnableHelpLink(views::FlexLayoutView* actions_container) { … }
void SadTabView::OnBoundsChanged(const gfx::Rect& previous_bounds) { … }
SadTab* SadTab::Create(content::WebContents* web_contents, SadTabKind kind) { … }
BEGIN_METADATA(…)