1 // Copyright 2020 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef UI_GFX_ANIMATION_ANIMATION_SETTINGS_PROVIDER_LINUX_H_
6 #define UI_GFX_ANIMATION_ANIMATION_SETTINGS_PROVIDER_LINUX_H_
7 
8 #include "base/macros.h"
9 #include "ui/gfx/animation/animation_export.h"
10 
11 namespace gfx {
12 
13 class ANIMATION_EXPORT AnimationSettingsProviderLinux {
14  public:
15   virtual ~AnimationSettingsProviderLinux();
16 
17   // Indicates if animations are enabled by the toolkit.
18   virtual bool AnimationsEnabled() const = 0;
19 
20   static AnimationSettingsProviderLinux* GetInstance();
21 
22  protected:
23   AnimationSettingsProviderLinux();
24 
25  private:
26   static AnimationSettingsProviderLinux* instance_;
27 
28   DISALLOW_COPY_AND_ASSIGN(AnimationSettingsProviderLinux);
29 };
30 
31 }  // namespace gfx
32 
33 #endif  // UI_GFX_ANIMATION_ANIMATION_SETTINGS_PROVIDER_LINUX_H_
34