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

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

Issue 8319008: aura: brightness and volume bubble. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: minor cleanup. 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/brightness_bubble.h
diff --git a/chrome/browser/chromeos/brightness_bubble.h b/chrome/browser/chromeos/brightness_bubble.h
index 7b5ed8c5cf9a47d2b7d197fba0829fb24dda93e3..4c3627e55dd2ff618f8219e4a9e1d03cdb181c0c 100644
--- a/chrome/browser/chromeos/brightness_bubble.h
+++ b/chrome/browser/chromeos/brightness_bubble.h
@@ -11,16 +11,25 @@
template <typename T> struct DefaultSingletonTraits;
+namespace views{
+class Widget;
+}
+
namespace chromeos {
// Singleton class controlling brightness bubble.
-class BrightnessBubble : public SettingLevelBubble {
+class BrightnessBubble {
public:
static BrightnessBubble* GetInstance();
+ static void ShowBubble(double percent, bool enabled);
+ void UpdateWithoutShowingBubble(int level, bool enabled);
+ void HideBubble();
private:
friend struct DefaultSingletonTraits<BrightnessBubble>;
+ // Bubble widget, owned by VolumeBubble.
Daniel Erat 2011/10/19 17:28:09 is this comment incorrect?
alicet1 2011/10/20 15:03:08 updated.
+ static views::Widget* widget_;
Daniel Erat 2011/10/19 17:28:09 nit: add a blank line after this
Daniel Erat 2011/10/19 17:28:09 could this be non-static?
alicet1 2011/10/20 15:03:08 Done.
alicet1 2011/10/20 15:03:08 Done.
BrightnessBubble();
virtual ~BrightnessBubble() {}
« no previous file with comments | « no previous file | chrome/browser/chromeos/brightness_bubble.cc » ('j') | chrome/browser/chromeos/brightness_bubble.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698