chromium/chrome/browser/ui/views/location_bar/omnibox_chip_button.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/views/location_bar/omnibox_chip_button.h"

#include "base/numerics/safe_conversions.h"
#include "base/time/time.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/location_bar/location_bar_util.h"
#include "chrome/browser/ui/views/location_bar/omnibox_chip_theme.h"
#include "components/vector_icons/vector_icons.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/theme_provider.h"
#include "ui/base/ui_base_features.h"
#include "ui/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/views/background.h"
#include "ui/views/controls/highlight_path_generator.h"
#include "ui/views/painter.h"
#include "ui/views/view_class_properties.h"

namespace {

// Padding between chip's icon and label.
constexpr int kChipImagePadding =;
// An extra space between chip's label and right edge.
constexpr int kExtraRightPadding =;

// These chrome refresh layout constants are not shared with other views.
constexpr int kChipVerticalPadding =;
constexpr int kChipHorizontalPadding =;

}  // namespace

DEFINE_CLASS_ELEMENT_IDENTIFIER_VALUE(OmniboxChipButton, kChipElementId);

OmniboxChipButton::OmniboxChipButton(PressedCallback callback)
    :{}

OmniboxChipButton::~OmniboxChipButton() = default;

void OmniboxChipButton::VisibilityChanged(views::View* starting_from,
                                          bool is_visible) {}

void OmniboxChipButton::AnimateCollapse(base::TimeDelta duration) {}

void OmniboxChipButton::AnimateExpand(base::TimeDelta duration) {}

void OmniboxChipButton::ResetAnimation(double value) {}

// TODO(crbug.com/40232718): Respect `available_size`.
gfx::Size OmniboxChipButton::CalculatePreferredSize(
    const views::SizeBounds& available_size) const {}

void OmniboxChipButton::OnThemeChanged() {}

void OmniboxChipButton::UpdateBackgroundColor() {}

void OmniboxChipButton::AnimationEnded(const gfx::Animation* animation) {}

void OmniboxChipButton::AnimationProgressed(const gfx::Animation* animation) {}

void OmniboxChipButton::SetTheme(OmniboxChipTheme theme) {}

void OmniboxChipButton::SetMessage(std::u16string message) {}

ui::ImageModel OmniboxChipButton::GetIconImageModel() const {}

const gfx::VectorIcon& OmniboxChipButton::GetIcon() const {}

ui::ColorId OmniboxChipButton::GetForegroundColorId() const {}

ui::ColorId OmniboxChipButton::GetBackgroundColorId() const {}

void OmniboxChipButton::UpdateIconAndColors() {}

void OmniboxChipButton::ForceAnimateExpand() {}

void OmniboxChipButton::ForceAnimateCollapse() {}

void OmniboxChipButton::OnAnimationValueMaybeChanged() {}

int OmniboxChipButton::GetIconSize() const {}

int OmniboxChipButton::GetCornerRadius() const {}

void OmniboxChipButton::AddObserver(Observer* observer) {}

void OmniboxChipButton::RemoveObserver(Observer* observer) {}

BEGIN_METADATA()