OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_UI_VIEWS_TABS_MEDIA_INDICATOR_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_MEDIA_INDICATOR_BUTTON_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TABS_MEDIA_INDICATOR_BUTTON_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_MEDIA_INDICATOR_BUTTON_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/ui/tabs/tab_utils.h" | 10 #include "chrome/browser/ui/tabs/tab_utils.h" |
10 #include "ui/views/controls/button/image_button.h" | 11 #include "ui/views/controls/button/image_button.h" |
11 #include "ui/views/view_targeter_delegate.h" | 12 #include "ui/views/view_targeter_delegate.h" |
12 | 13 |
13 class Tab; | 14 class Tab; |
14 | 15 |
15 namespace gfx { | 16 namespace gfx { |
16 class Animation; | 17 class Animation; |
17 class AnimationDelegate; | 18 class AnimationDelegate; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // Media indicator fade-in/out animation (i.e., only on show/hide, not a | 93 // Media indicator fade-in/out animation (i.e., only on show/hide, not a |
93 // continuous animation). | 94 // continuous animation). |
94 scoped_ptr<gfx::AnimationDelegate> fade_animation_delegate_; | 95 scoped_ptr<gfx::AnimationDelegate> fade_animation_delegate_; |
95 scoped_ptr<gfx::Animation> fade_animation_; | 96 scoped_ptr<gfx::Animation> fade_animation_; |
96 TabMediaState showing_media_state_; | 97 TabMediaState showing_media_state_; |
97 | 98 |
98 DISALLOW_COPY_AND_ASSIGN(MediaIndicatorButton); | 99 DISALLOW_COPY_AND_ASSIGN(MediaIndicatorButton); |
99 }; | 100 }; |
100 | 101 |
101 #endif // CHROME_BROWSER_UI_VIEWS_TABS_MEDIA_INDICATOR_BUTTON_H_ | 102 #endif // CHROME_BROWSER_UI_VIEWS_TABS_MEDIA_INDICATOR_BUTTON_H_ |
OLD | NEW |