#include "chrome/browser/ui/views/toolbar/toolbar_icon_container_view.h"
#include <memory>
#include "base/containers/contains.h"
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/observer_list.h"
#include "base/scoped_observation.h"
#include "chrome/browser/themes/theme_properties.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
#include "chrome/browser/ui/layout_constants.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/toolbar/toolbar_button.h"
#include "chrome/browser/ui/views/toolbar/toolbar_ink_drop_util.h"
#include "extensions/common/extension_features.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/color/color_provider.h"
#include "ui/compositor/paint_recorder.h"
#include "ui/gfx/canvas.h"
#include "ui/native_theme/native_theme.h"
#include "ui/views/animation/ink_drop.h"
#include "ui/views/background.h"
#include "ui/views/layout/animating_layout_manager.h"
#include "ui/views/layout/flex_layout.h"
#include "ui/views/view_class_properties.h"
#include "ui/views/view_observer.h"
ToolbarIconContainerView::RoundRectBorder::RoundRectBorder(views::View* parent)
: … { … }
void ToolbarIconContainerView::RoundRectBorder::OnPaintLayer(
const ui::PaintContext& context) { … }
void ToolbarIconContainerView::RoundRectBorder::OnDeviceScaleFactorChanged(
float old_device_scale_factor,
float new_device_scale_factor) { … }
class ToolbarIconContainerView::WidgetRestoreObserver
: public views::ViewObserver { … };
ToolbarIconContainerView::ToolbarIconContainerView(
bool uses_highlight,
bool use_default_target_layout)
: … { … }
ToolbarIconContainerView::~ToolbarIconContainerView() { … }
void ToolbarIconContainerView::AddMainItem(views::View* item) { … }
void ToolbarIconContainerView::ObserveButton(views::Button* button) { … }
void ToolbarIconContainerView::AddObserver(Observer* obs) { … }
void ToolbarIconContainerView::RemoveObserver(const Observer* obs) { … }
bool ToolbarIconContainerView::GetHighlighted() const { … }
void ToolbarIconContainerView::OnThemeChanged() { … }
void ToolbarIconContainerView::OnViewFocused(views::View* observed_view) { … }
void ToolbarIconContainerView::OnViewBlurred(views::View* observed_view) { … }
views::AnimatingLayoutManager*
ToolbarIconContainerView::GetAnimatingLayoutManager() { … }
const views::AnimatingLayoutManager*
ToolbarIconContainerView::GetAnimatingLayoutManager() const { … }
views::FlexLayout* ToolbarIconContainerView::GetTargetLayoutManager() { … }
void ToolbarIconContainerView::OnBoundsChanged(
const gfx::Rect& previous_bounds) { … }
void ToolbarIconContainerView::OnMouseEntered(const ui::MouseEvent& event) { … }
void ToolbarIconContainerView::OnMouseExited(const ui::MouseEvent& event) { … }
void ToolbarIconContainerView::AddedToWidget() { … }
void ToolbarIconContainerView::UpdateHighlight() { … }
void ToolbarIconContainerView::OnButtonHighlightedChanged(
views::Button* button) { … }
BEGIN_METADATA(…)