#include "chrome/browser/ui/views/frame/tab_strip_region_view.h"
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#include "chrome/browser/themes/theme_properties.h"
#include "chrome/browser/ui/browser_element_identifiers.h"
#include "chrome/browser/ui/browser_window/public/browser_window_features.h"
#include "chrome/browser/ui/frame/window_frame_util.h"
#include "chrome/browser/ui/layout_constants.h"
#include "chrome/browser/ui/tabs/features.h"
#include "chrome/browser/ui/tabs/tab_strip_prefs.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/commerce/product_specifications_button.h"
#include "chrome/browser/ui/views/tab_search_bubble_host.h"
#include "chrome/browser/ui/views/tabs/new_tab_button.h"
#include "chrome/browser/ui/views/tabs/tab_drag_controller.h"
#include "chrome/browser/ui/views/tabs/tab_organization_button.h"
#include "chrome/browser/ui/views/tabs/tab_search_button.h"
#include "chrome/browser/ui/views/tabs/tab_search_container.h"
#include "chrome/browser/ui/views/tabs/tab_strip.h"
#include "chrome/browser/ui/views/tabs/tab_strip_control_button.h"
#include "chrome/browser/ui/views/tabs/tab_strip_controller.h"
#include "chrome/browser/ui/views/tabs/tab_strip_scroll_container.h"
#include "chrome/browser/ui/views/tabs/tab_style_views.h"
#include "chrome/browser/ui/views/toolbar/toolbar_view.h"
#include "chrome/browser/ui/web_applications/app_browser_controller.h"
#include "chrome/common/pref_names.h"
#include "chrome/grit/generated_resources.h"
#include "components/commerce/core/commerce_feature_list.h"
#include "components/vector_icons/vector_icons.h"
#include "tab_strip_region_view.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/base/clipboard/clipboard_constants.h"
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/base/dragdrop/mojom/drag_drop_types.mojom.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/ui_base_features.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/layer_type.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/point.h"
#include "ui/views/accessible_pane_view.h"
#include "ui/views/border.h"
#include "ui/views/cascading_property.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/layout/flex_layout.h"
#include "ui/views/layout/flex_layout_types.h"
#include "ui/views/style/typography.h"
#include "ui/views/view.h"
#include "ui/views/view_class_properties.h"
#include "ui/views/view_utils.h"
#if BUILDFLAG(IS_WIN)
#include <windows.h>
#include "base/metrics/histogram_functions.h"
#endif
namespace {
class FrameGrabHandle : public views::View { … };
BEGIN_METADATA(…)
bool ShouldShowNewTabButton(const Browser* browser) { … }
}
TabStripRegionView::TabStripRegionView(std::unique_ptr<TabStrip> tab_strip)
: … { … }
TabStripRegionView::~TabStripRegionView() = default;
bool TabStripRegionView::IsRectInWindowCaption(const gfx::Rect& rect) { … }
bool TabStripRegionView::IsPositionInWindowCaption(const gfx::Point& point) { … }
views::View::Views TabStripRegionView::GetChildrenInZOrder() { … }
void TabStripRegionView::Layout(PassKey) { … }
bool TabStripRegionView::CanDrop(const OSExchangeData& data) { … }
bool TabStripRegionView::GetDropFormats(
int* formats,
std::set<ui::ClipboardFormatType>* format_types) { … }
void TabStripRegionView::OnDragEntered(const ui::DropTargetEvent& event) { … }
int TabStripRegionView::OnDragUpdated(const ui::DropTargetEvent& event) { … }
void TabStripRegionView::OnDragExited() { … }
void TabStripRegionView::ChildPreferredSizeChanged(views::View* child) { … }
gfx::Size TabStripRegionView::GetMinimumSize() const { … }
views::View* TabStripRegionView::GetDefaultFocusableChild() { … }
void TabStripRegionView::ReportCaptionHitTestInReservedGrabHandleSpace(
bool in_reserved_grab_handle_space) { … }
void TabStripRegionView::UpdateButtonBorders() { … }
void TabStripRegionView::UpdateTabStripMargin() { … }
void TabStripRegionView::AdjustViewBoundsRect(View* view, int offset) { … }
class TabSearchPositionMetricsLogger { … };
BEGIN_METADATA(…)