#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/ui/tabs/tab_style.h"
#include "chrome/browser/ui/layout_constants.h"
#include "chrome/browser/ui/tabs/features.h"
#include "chrome/browser/ui/ui_features.h"
#include "ui/base/ui_base_features.h"
#include "ui/color/color_provider.h"
#include "ui/gfx/color_utils.h"
#include "ui/views/layout/layout_provider.h"
namespace {
constexpr int kChromeRefreshSeparatorThickness = …;
constexpr int kChromeRefreshSeparatorHorizontalMargin = …;
constexpr int kChromeRefreshSeparatorHeight = …;
constexpr int kChromeRefreshTabVerticalPadding = …;
constexpr int kChromeRefreshTabHorizontalPadding = …;
class ChromeRefresh2023TabStyle : public TabStyle { … };
}
TabStyle::~TabStyle() = default;
int ChromeRefresh2023TabStyle::GetStandardWidth() const { … }
int ChromeRefresh2023TabStyle::GetPinnedWidth() const { … }
int ChromeRefresh2023TabStyle::GetMinimumActiveWidth() const { … }
int ChromeRefresh2023TabStyle::GetMinimumInactiveWidth() const { … }
int ChromeRefresh2023TabStyle::GetTopCornerRadius() const { … }
int ChromeRefresh2023TabStyle::GetBottomCornerRadius() const { … }
int ChromeRefresh2023TabStyle::GetTabOverlap() const { … }
gfx::Size ChromeRefresh2023TabStyle::GetPreviewImageSize() const { … }
gfx::Size ChromeRefresh2023TabStyle::GetSeparatorSize() const { … }
gfx::Insets ChromeRefresh2023TabStyle::GetSeparatorMargins() const { … }
int ChromeRefresh2023TabStyle::GetSeparatorCornerRadius() const { … }
int ChromeRefresh2023TabStyle::GetDragHandleExtension(int height) const { … }
SkColor ChromeRefresh2023TabStyle::GetTabBackgroundColor(
const TabSelectionState state,
const bool hovered,
const bool frame_active,
const ui::ColorProvider& color_provider) const { … }
gfx::Insets ChromeRefresh2023TabStyle::GetContentsInsets() const { … }
float ChromeRefresh2023TabStyle::GetSelectedTabOpacity() const { … }
const TabStyle* TabStyle::Get() { … }