chromium/ui/views/controls/throbber.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/throbber.h"

#include <algorithm>

#include "base/functional/bind.h"
#include "base/location.h"
#include "base/time/time.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/gfx/animation/tween.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/paint_throbber.h"
#include "ui/gfx/paint_vector_icon.h"

namespace views {

namespace {

// The larger the diameter, the smaller the delay returned. This is intended
// because large diameters need less delay to look smooth and not jarring.
int GetFrameDelay(int diameter) {}

}  // namespace

Throbber::Throbber(int diameter) :{}

Throbber::~Throbber() {}

void Throbber::Start() {}

void Throbber::Stop() {}

bool Throbber::GetChecked() const {}

void Throbber::SetChecked(bool checked) {}

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

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

bool Throbber::IsRunning() const {}

BEGIN_METADATA()

// Smoothed throbber ---------------------------------------------------------

SmoothedThrobber::SmoothedThrobber(int diameter)
    :{}

SmoothedThrobber::~SmoothedThrobber() = default;

void SmoothedThrobber::Start() {}

void SmoothedThrobber::StartDelayOver() {}

void SmoothedThrobber::Stop() {}

base::TimeDelta SmoothedThrobber::GetStartDelay() const {}

void SmoothedThrobber::SetStartDelay(const base::TimeDelta& start_delay) {}

base::TimeDelta SmoothedThrobber::GetStopDelay() const {}

void SmoothedThrobber::SetStopDelay(const base::TimeDelta& stop_delay) {}

void SmoothedThrobber::StopDelayOver() {}

BEGIN_METADATA()

}  // namespace views