summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/constrained_window_animation.h
blob: 8504155969bcd043851144fbacc73d546b80935a (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
// Copyright (c) 2006-2008 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 CHROME_BROWSER_VIEWS_CONSTRAINED_WINDOW_ANIMATION_H__
#define CHROME_BROWSER_VIEWS_CONSTRAINED_WINDOW_ANIMATION_H__

#include "chrome/common/animation.h"

class ConstrainedWindowImpl;

// Animates a titlebar of a suppressed constrained window up from the
// bottom of the screen.
class ConstrainedWindowAnimation : public Animation {
 public:
  explicit ConstrainedWindowAnimation(ConstrainedWindowImpl* window);
  virtual ~ConstrainedWindowAnimation();

  // Overridden from Animation:
  virtual void AnimateToState(double state);

 private:
  // The constrained window we're displaying.
  ConstrainedWindowImpl* window_;

  DISALLOW_EVIL_CONSTRUCTORS(ConstrainedWindowAnimation);
};

#endif  // CHROME_BROWSER_VIEWS_CONSTRAINED_WINDOW_ANIMATION_H__