blob: f133b0d2ad0f4fbb6ddde7362ede40e9864d89b5 (
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
35
36
37
38
39
40
41
|
// Copyright (c) 2011 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_UI_PANELS_PANEL_SLIDE_ANIMATION_H_
#define CHROME_BROWSER_UI_PANELS_PANEL_SLIDE_ANIMATION_H_
#pragma once
#include "ui/base/animation/linear_animation.h"
namespace ui {
class AnimationDelegate;
}
class Panel;
class PanelSlideAnimation : public ui::LinearAnimation {
public:
PanelSlideAnimation(ui::AnimationDelegate* target,
Panel* panel,
const gfx::Rect& initial_bounds,
const gfx::Rect& final_bounds);
virtual ~PanelSlideAnimation();
virtual double GetCurrentValue() const OVERRIDE;
// Static because it is reused on Mac to override NSAnimation's calculation.
static double ComputeAnimationValue(double progress,
bool for_big_minimize,
double animation_stop_to_show_titlebar);
protected:
virtual void AnimateToState(double state) OVERRIDE {}
private:
Panel* panel_; // Weak, owns us.
bool for_big_minimize_;
double animation_stop_to_show_titlebar_;
DISALLOW_COPY_AND_ASSIGN(PanelSlideAnimation);
};
#endif // CHROME_BROWSER_UI_PANELS_PANEL_SLIDE_ANIMATION_H_
|