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

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

Issue 8319008: aura: brightness and volume bubble. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 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_view_views.h
diff --git a/chrome/browser/chromeos/brightness_bubble_view_views.h b/chrome/browser/chromeos/brightness_bubble_view_views.h
new file mode 100644
index 0000000000000000000000000000000000000000..9dcb65fb8c3e12ec48ef7c3721ed965c5e8127e2
--- /dev/null
+++ b/chrome/browser/chromeos/brightness_bubble_view_views.h
@@ -0,0 +1,41 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_BRIGHTNESS_BUBBLE_VIEW_VIEWS_H_
+#define CHROME_BROWSER_CHROMEOS_BRIGHTNESS_BUBBLE_VIEW_VIEWS_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "chrome/browser/chromeos/setting_level_bubble_view_views.h"
+
+template <typename T> struct DefaultSingletonTraits;
+
+namespace views{
+class Widget;
+}
+
+namespace chromeos {
+
+// Singleton class controlling brightness bubble.
+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.
+ static views::Widget* widget_;
+ BrightnessBubble();
+ virtual ~BrightnessBubble() {}
+
+ DISALLOW_COPY_AND_ASSIGN(BrightnessBubble);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_BRIGHTNESS_BUBBLE_VIEW_VIEWS_H_

Powered by Google App Engine
This is Rietveld 408576698