Chromium Code Reviews| Index: chrome/browser/chromeos/brightness_bubble.h |
| diff --git a/chrome/browser/chromeos/brightness_bubble.h b/chrome/browser/chromeos/brightness_bubble.h |
| index 7b5ed8c5cf9a47d2b7d197fba0829fb24dda93e3..b3c9e845d8bab4aa6a260ac96dc69093c192438b 100644 |
| --- a/chrome/browser/chromeos/brightness_bubble.h |
| +++ b/chrome/browser/chromeos/brightness_bubble.h |
| @@ -11,18 +11,37 @@ |
| template <typename T> struct DefaultSingletonTraits; |
| +namespace views { |
| +class Widget; |
|
msw
2011/10/20 19:36:13
forward decl shouldn't be needed.
alicet1
2011/10/20 22:36:30
Done.
|
| +} |
| + |
| namespace chromeos { |
| // Singleton class controlling brightness bubble. |
| -class BrightnessBubble : public SettingLevelBubble { |
| +class BrightnessBubble { |
| public: |
| + // Returns a the singleton brightness bubble instance. |
|
Daniel Erat
2011/10/20 15:43:39
nit: delete "a"
alicet1
2011/10/20 22:36:30
Done.
|
| static BrightnessBubble* GetInstance(); |
| + // Updates the target |percent| and icon to be used, sets |
| + // the bubble to |enabled| and shows the bubble. |
| + void ShowBubble(double percent, bool enabled); |
| + |
| + // Update the bubble |level| and |enabled| state. See |
|
Daniel Erat
2011/10/20 15:43:39
tiny nit: s/Update/Updates/; add trailing period t
alicet1
2011/10/20 22:36:30
Done.
|
| + // comments at setting_level_bubble.h |
| + void UpdateWithoutShowingBubble(int level, bool enabled); |
| + |
| + // Hides the bubble. |
| + void HideBubble(); |
| + |
| private: |
| friend struct DefaultSingletonTraits<BrightnessBubble>; |
| + // Bubble widget, owned by BrightnessBubble. |
| + views::Widget* widget_; |
| + |
| BrightnessBubble(); |
| - virtual ~BrightnessBubble() {} |
| + virtual ~BrightnessBubble(); |
| DISALLOW_COPY_AND_ASSIGN(BrightnessBubble); |
| }; |