blob: 0deac366974c6d3c6334e8451979b8ef99919316 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GFX_ANIMATION_ANIMATION_SETTINGS_PROVIDER_LINUX_H_
#define UI_GFX_ANIMATION_ANIMATION_SETTINGS_PROVIDER_LINUX_H_
#include "base/macros.h"
#include "ui/gfx/animation/animation_export.h"
namespace gfx {
class ANIMATION_EXPORT AnimationSettingsProviderLinux {
public:
AnimationSettingsProviderLinux(const AnimationSettingsProviderLinux&) =
delete;
AnimationSettingsProviderLinux& operator=(
const AnimationSettingsProviderLinux&) = delete;
virtual ~AnimationSettingsProviderLinux();
// Indicates if animations are enabled by the toolkit.
virtual bool AnimationsEnabled() const = 0;
static AnimationSettingsProviderLinux* GetInstance();
protected:
AnimationSettingsProviderLinux();
private:
static AnimationSettingsProviderLinux* instance_;
};
} // namespace gfx
#endif // UI_GFX_ANIMATION_ANIMATION_SETTINGS_PROVIDER_LINUX_H_