OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_CHROMEOS_SETTING_LEVEL_BUBBLE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTING_LEVEL_BUBBLE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_SETTING_LEVEL_BUBBLE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SETTING_LEVEL_BUBBLE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 virtual ~SettingLevelBubble(); | 55 virtual ~SettingLevelBubble(); |
56 | 56 |
57 private: | 57 private: |
58 FRIEND_TEST_ALL_PREFIXES(SettingLevelBubbleTest, CreateAndUpdate); | 58 FRIEND_TEST_ALL_PREFIXES(SettingLevelBubbleTest, CreateAndUpdate); |
59 FRIEND_TEST_ALL_PREFIXES(SettingLevelBubbleTest, ShowBubble); | 59 FRIEND_TEST_ALL_PREFIXES(SettingLevelBubbleTest, ShowBubble); |
60 FRIEND_TEST_ALL_PREFIXES(BrightnessBubbleTest, UpdateWithoutShowing); | 60 FRIEND_TEST_ALL_PREFIXES(BrightnessBubbleTest, UpdateWithoutShowing); |
61 FRIEND_TEST_ALL_PREFIXES(VolumeBubbleTest, GetInstanceAndShow); | 61 FRIEND_TEST_ALL_PREFIXES(VolumeBubbleTest, GetInstanceAndShow); |
62 | 62 |
63 // views::Widget::Observer overrides: | 63 // views::Widget::Observer overrides: |
64 void OnWidgetClosing(views::Widget* widget) OVERRIDE; | 64 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE; |
65 | 65 |
66 // Creates the bubble content view. | 66 // Creates the bubble content view. |
67 // Caller should call Init() on the returned SettingLevelBubbleView. | 67 // Caller should call Init() on the returned SettingLevelBubbleView. |
68 SettingLevelBubbleView* CreateView(); | 68 SettingLevelBubbleView* CreateView(); |
69 | 69 |
70 // Callback for |hide_timer_|. Starts fading out. | 70 // Callback for |hide_timer_|. Starts fading out. |
71 void OnHideTimeout(); | 71 void OnHideTimeout(); |
72 | 72 |
73 // Callback for |animation_timer_|. Updates the level displayed by the view, | 73 // Callback for |animation_timer_|. Updates the level displayed by the view, |
74 // also stopping the animation if we've reached the target. | 74 // also stopping the animation if we've reached the target. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 117 |
118 // Is |animation_timer_| currently running? | 118 // Is |animation_timer_| currently running? |
119 bool is_animating_; | 119 bool is_animating_; |
120 | 120 |
121 DISALLOW_COPY_AND_ASSIGN(SettingLevelBubble); | 121 DISALLOW_COPY_AND_ASSIGN(SettingLevelBubble); |
122 }; | 122 }; |
123 | 123 |
124 } // namespace chromeos | 124 } // namespace chromeos |
125 | 125 |
126 #endif // CHROME_BROWSER_CHROMEOS_SETTING_LEVEL_BUBBLE_H_ | 126 #endif // CHROME_BROWSER_CHROMEOS_SETTING_LEVEL_BUBBLE_H_ |
OLD | NEW |