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

Unified Diff: chrome/browser/chromeos/volume_bubble.h

Issue 8319008: aura: brightness and volume bubble. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: updates Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/volume_bubble.h
diff --git a/chrome/browser/chromeos/volume_bubble.h b/chrome/browser/chromeos/volume_bubble.h
index 17f72fc1a19190531045f546058336a2b61af3e0..9bcfe56bd9b991d818d985b1a32be2dde89542ae 100644
--- a/chrome/browser/chromeos/volume_bubble.h
+++ b/chrome/browser/chromeos/volume_bubble.h
@@ -11,18 +11,32 @@
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 volume bubble.
-class VolumeBubble : public SettingLevelBubble {
+class VolumeBubble {
public:
+ // Returns a the singleton volume bubble instance.
msw 2011/10/20 19:36:13 ditto here on dan's comment elsewhere; remove "a"
alicet1 2011/10/20 22:36:30 Done.
static VolumeBubble* 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);
+
+ // hides the bubble.
msw 2011/10/20 19:36:13 capitalize 'hides'
alicet1 2011/10/20 22:36:30 Done.
+ void HideBubble();
+
private:
friend struct DefaultSingletonTraits<VolumeBubble>;
+ // Bubble widget, owned by VolumeBubble.
+ views::Widget* widget_;
VolumeBubble();
- virtual ~VolumeBubble() {}
+ virtual ~VolumeBubble();
DISALLOW_COPY_AND_ASSIGN(VolumeBubble);
};

Powered by Google App Engine
This is Rietveld 408576698