#include "chrome/browser/ui/views/performance_controls/performance_intervention_button.h"
#include <memory>
#include <string>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_element_identifiers.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
#include "chrome/browser/ui/performance_controls/performance_controls_metrics.h"
#include "chrome/browser/ui/performance_controls/performance_intervention_button_controller.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/performance_controls/performance_intervention_bubble.h"
#include "chrome/browser/ui/views/toolbar/toolbar_button.h"
#include "chrome/grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/models/image_model.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/bubble/bubble_dialog_model_host.h"
#include "ui/views/controls/button/button_controller.h"
#include "ui/views/view_class_properties.h"
#include "ui/views/widget/widget.h"
PerformanceInterventionButton::PerformanceInterventionButton(
BrowserView* browser_view)
: … { … }
PerformanceInterventionButton::~PerformanceInterventionButton() = default;
void PerformanceInterventionButton::Show() { … }
void PerformanceInterventionButton::Hide() { … }
bool PerformanceInterventionButton::IsButtonShowing() { … }
bool PerformanceInterventionButton::IsBubbleShowing() { … }
void PerformanceInterventionButton::OnWidgetDestroying(views::Widget* widget) { … }
void PerformanceInterventionButton::OnThemeChanged() { … }
void PerformanceInterventionButton::OnClicked() { … }
void PerformanceInterventionButton::CreateBubble() { … }
void PerformanceInterventionButton::UpdateIconColor() { … }
BEGIN_METADATA(…)