chromium/ui/views/controls/progress_bar.cc

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

#include "ui/views/controls/progress_bar.h"

#include <algorithm>
#include <cmath>
#include <memory>
#include <string>

#include "base/check_op.h"
#include "base/i18n/number_formatting.h"
#include "cc/paint/paint_flags.h"
#include "third_party/skia/include/core/SkRRect.h"
#include "third_party/skia/include/effects/SkGradientShader.h"
#include "ui/accessibility/ax_enums.mojom.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/gfx/animation/linear_animation.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/geometry/skia_conversions.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/widget/widget.h"

namespace views {

namespace {

// Adds a rectangle to the path.
void AddPossiblyRoundRectToPath(
    const gfx::Rect& rectangle,
    const gfx::RoundedCornersF& preferred_corner_radii,
    SkPath* path) {}

int RoundToPercent(double fractional_value) {}

}  // namespace

ProgressBar::ProgressBar() {}

ProgressBar::~ProgressBar() = default;

gfx::Size ProgressBar::CalculatePreferredSize(
    const SizeBounds& /*available_size*/) const {}

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

void ProgressBar::AddedToWidget() {}

void ProgressBar::OnPaint(gfx::Canvas* canvas) {}

double ProgressBar::GetValue() const {}

void ProgressBar::SetValue(double value) {}

void ProgressBar::SetPaused(bool is_paused) {}

SkColor ProgressBar::GetForegroundColor() const {}

void ProgressBar::SetForegroundColor(SkColor color) {}

std::optional<ui::ColorId> ProgressBar::GetForegroundColorId() const {}

void ProgressBar::SetForegroundColorId(std::optional<ui::ColorId> color_id) {}

SkColor ProgressBar::GetBackgroundColor() const {}

void ProgressBar::SetBackgroundColor(SkColor color) {}

std::optional<ui::ColorId> ProgressBar::GetBackgroundColorId() const {}

void ProgressBar::SetBackgroundColorId(std::optional<ui::ColorId> color_id) {}

int ProgressBar::GetPreferredHeight() const {}

void ProgressBar::SetPreferredHeight(int preferred_height) {}

gfx::RoundedCornersF ProgressBar::GetPreferredCornerRadii() const {}

void ProgressBar::SetPreferredCornerRadii(
    std::optional<gfx::RoundedCornersF> preferred_corner_radii) {}

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

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

bool ProgressBar::IsIndeterminate() {}

void ProgressBar::OnPaintIndeterminate(gfx::Canvas* canvas) {}

void ProgressBar::MaybeNotifyAccessibilityValueChanged() {}

BEGIN_METADATA()

}  // namespace views