chromium/ui/gfx/animation/animation_runner.cc

// Copyright 2019 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/gfx/animation/animation_runner.h"

#include <utility>

#include "base/timer/timer.h"

namespace {

// A default AnimationRunner based on base::Timer.
// TODO(crbug.com/41453351): Remove this altogether.
class DefaultAnimationRunner : public gfx::AnimationRunner {};

void DefaultAnimationRunner::Stop() {}

void DefaultAnimationRunner::OnStart(base::TimeDelta min_interval,
                                     base::TimeDelta elapsed) {}

void DefaultAnimationRunner::OnTimerTick() {}

}  // namespace

namespace gfx {

// static
std::unique_ptr<AnimationRunner>
AnimationRunner::CreateDefaultAnimationRunner() {}

AnimationRunner::~AnimationRunner() = default;

void AnimationRunner::Start(
    base::TimeDelta min_interval,
    base::TimeDelta elapsed,
    base::RepeatingCallback<void(base::TimeTicks)> step) {}

AnimationRunner::AnimationRunner() = default;

void AnimationRunner::Step(base::TimeTicks tick) {}

void AnimationRunner::SetAnimationTimeForTesting(base::TimeTicks time) {}

}  // namespace gfx