#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/ui/webui/tab_strip/tab_strip_ui.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/themes/theme_properties.h"
#include "chrome/browser/themes/theme_service.h"
#include "chrome/browser/themes/theme_service_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/webui/favicon_source.h"
#include "chrome/browser/ui/webui/tab_strip/tab_strip_page_handler.h"
#include "chrome/browser/ui/webui/tab_strip/tab_strip_ui_embedder.h"
#include "chrome/browser/ui/webui/tab_strip/tab_strip_ui_layout.h"
#include "chrome/browser/ui/webui/webui_util.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/tab_strip_resources.h"
#include "chrome/grit/tab_strip_resources_map.h"
#include "components/favicon_base/favicon_url_parser.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/host_zoom_map.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/url_data_source.h"
#include "content/public/browser/web_ui_data_source.h"
#include "content/public/browser/web_ui_message_handler.h"
#include "content/public/common/url_constants.h"
#include "ui/base/theme_provider.h"
#include "ui/base/ui_base_features.h"
#include "ui/base/webui/web_ui_util.h"
#include "ui/gfx/color_utils.h"
#include "ui/webui/color_change_listener/color_change_handler.h"
TabStripUI::TabStripUI(content::WebUI* web_ui)
: … { … }
TabStripUI::~TabStripUI() = default;
WEB_UI_CONTROLLER_TYPE_IMPL(TabStripUI)
void TabStripUI::BindInterface(
mojo::PendingReceiver<tab_strip::mojom::PageHandlerFactory> receiver) { … }
void TabStripUI::BindInterface(
mojo::PendingReceiver<color_change_listener::mojom::PageHandler> receiver) { … }
void TabStripUI::CreatePageHandler(
mojo::PendingRemote<tab_strip::mojom::Page> page,
mojo::PendingReceiver<tab_strip::mojom::PageHandler> receiver) { … }
void TabStripUI::Initialize(Browser* browser, TabStripUIEmbedder* embedder) { … }
void TabStripUI::Deinitialize() { … }
void TabStripUI::LayoutChanged() { … }
void TabStripUI::ReceivedKeyboardFocus() { … }