// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_CLOSE_BUTTON_H_ #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_CLOSE_BUTTON_H_ #include "base/functional/callback_forward.h" #include "chrome/browser/ui/views/tabs/tab_style_views.h" #include "ui/base/metadata/metadata_header_macros.h" #include "ui/views/controls/button/label_button.h" #include "ui/views/masked_targeter_delegate.h" // This is a Button subclass that shows the tab closed icon. // // In addition to setup for the icon, it forwards middle clicks to the parent // View by explicitly not handling them in OnMousePressed. class TabCloseButton : public views::LabelButton, public views::MaskedTargeterDelegate { … }; #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CLOSE_BUTTON_H_