OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_VIEWS_CONTROLS_GLOW_HOVER_CONTROLLER_H_ | 5 #ifndef UI_VIEWS_CONTROLS_GLOW_HOVER_CONTROLLER_H_ |
6 #define UI_VIEWS_CONTROLS_GLOW_HOVER_CONTROLLER_H_ | 6 #define UI_VIEWS_CONTROLS_GLOW_HOVER_CONTROLLER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/gfx/animation/animation_delegate.h" | 9 #include "ui/gfx/animation/animation_delegate.h" |
10 #include "ui/gfx/animation/slide_animation.h" | 10 #include "ui/gfx/animation/slide_animation.h" |
11 #include "ui/views/views_export.h" | 11 #include "ui/views/views_export.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 class Canvas; | |
15 class ImageSkia; | |
16 class Point; | 14 class Point; |
17 } | 15 } |
18 | 16 |
19 namespace views { | 17 namespace views { |
20 | 18 |
21 class View; | 19 class View; |
22 | 20 |
23 // GlowHoverController is responsible for drawing a hover effect as is used by | 21 // GlowHoverController is responsible for drawing a hover effect as is used by |
24 // the tabstrip. Typical usage: | 22 // the tabstrip. Typical usage: |
25 // OnMouseEntered() -> invoke Show(). | 23 // OnMouseEntered() -> invoke Show(). |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // Location of the glow, relative to view. | 77 // Location of the glow, relative to view. |
80 gfx::Point location_; | 78 gfx::Point location_; |
81 double opacity_scale_; | 79 double opacity_scale_; |
82 | 80 |
83 DISALLOW_COPY_AND_ASSIGN(GlowHoverController); | 81 DISALLOW_COPY_AND_ASSIGN(GlowHoverController); |
84 }; | 82 }; |
85 | 83 |
86 } // namespace views | 84 } // namespace views |
87 | 85 |
88 #endif // UI_VIEWS_CONTROLS_GLOW_HOVER_CONTROLLER_H_ | 86 #endif // UI_VIEWS_CONTROLS_GLOW_HOVER_CONTROLLER_H_ |
OLD | NEW |