summaryrefslogtreecommitdiffstats
path: root/ash/display/display_animator.h
blob: 527b0f5b8b73631c4c22d1f7faf80341f754003e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2014 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 ASH_DISPLAY_DISPLAY_ANIMATOR_H_
#define ASH_DISPLAY_DISPLAY_ANIMATOR_H_

#include <map>

#include "ash/ash_export.h"
#include "base/callback.h"

namespace ash {

// Interface class for animating display changes.
class ASH_EXPORT DisplayAnimator {
 public:
  virtual ~DisplayAnimator() {}

  // Starts the fade-out animation for the all root windows. It will
  // call |callback| once all of the animations have finished.
  virtual void StartFadeOutAnimation(base::Closure callback) = 0;

  // Starts the animation to clear the fade-out animation effect
  // for the all root windows.
  virtual void StartFadeInAnimation() = 0;

 private:
  DISALLOW_ASSIGN(DisplayAnimator);
};

}  // namespace ash

#endif  // ASH_DISPLAY_DISPLAY_ANIMATOR_H_