Index: chrome/browser/chromeos/volume_bubble_view_views.h |
diff --git a/chrome/browser/chromeos/volume_bubble_view_views.h b/chrome/browser/chromeos/volume_bubble_view_views.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cadfe12299a5606e3fbbcc2b5f643a363740602b |
--- /dev/null |
+++ b/chrome/browser/chromeos/volume_bubble_view_views.h |
@@ -0,0 +1,40 @@ |
+// 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_VOLUME_BUBBLE_VIEW_VIEWS_H_ |
+#define CHROME_BROWSER_CHROMEOS_VOLUME_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 volume bubble. |
+class VolumeBubble { |
+ public: |
+ static VolumeBubble* GetInstance(); |
+ static void ShowBubble(double percent, bool enabled); |
+ void HideBubble(); |
+ |
+ private: |
+ friend struct DefaultSingletonTraits<VolumeBubble>; |
+ |
+ // Bubble widget, owned by VolumeBubble. |
+ static views::Widget* widget_; |
+ VolumeBubble(); |
+ virtual ~VolumeBubble() {} |
+ |
+ DISALLOW_COPY_AND_ASSIGN(VolumeBubble); |
+}; |
+ |
+} // namespace chromeos |
+ |
+#endif // CHROME_BROWSER_CHROMEOS_VOLUME_BUBBLE_VIEW_VIEWS_H_ |