Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: chrome/browser/ui/panels/panel_bounds_animation.h

Issue 2263863002: Remove implementation of Panels on OSes other than ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR feedback Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/panels/panel.cc ('k') | chrome/browser/ui/panels/panel_bounds_animation.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 CHROME_BROWSER_UI_PANELS_PANEL_BOUNDS_ANIMATION_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BOUNDS_ANIMATION_H_
7
8 #include "base/macros.h"
9 #include "ui/gfx/animation/linear_animation.h"
10
11 namespace gfx {
12 class AnimationDelegate;
13 }
14 class Panel;
15
16 class PanelBoundsAnimation : public gfx::LinearAnimation {
17 public:
18 PanelBoundsAnimation(gfx::AnimationDelegate* target,
19 Panel* panel,
20 const gfx::Rect& initial_bounds,
21 const gfx::Rect& final_bounds);
22 ~PanelBoundsAnimation() override;
23 double GetCurrentValue() const override;
24
25 // Static because it is reused on Mac to override NSAnimation's calculation.
26 static double ComputeAnimationValue(double progress,
27 bool for_big_minimize,
28 double animation_stop_to_show_titlebar);
29
30 protected:
31 void AnimateToState(double state) override {}
32
33 private:
34 Panel* panel_; // Weak, owns us.
35 bool for_big_minimize_;
36 double animation_stop_to_show_titlebar_;
37
38 DISALLOW_COPY_AND_ASSIGN(PanelBoundsAnimation);
39 };
40
41 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BOUNDS_ANIMATION_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel.cc ('k') | chrome/browser/ui/panels/panel_bounds_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698