OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_VOLUME_BUBBLE_VIEW_VIEWS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_VOLUME_BUBBLE_VIEW_VIEWS_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 #include "chrome/browser/chromeos/setting_level_bubble_view_views.h" |
| 11 |
| 12 template <typename T> struct DefaultSingletonTraits; |
| 13 |
| 14 namespace views { |
| 15 class Widget; |
| 16 } |
| 17 |
| 18 namespace chromeos { |
| 19 |
| 20 // Singleton class controlling volume bubble. |
| 21 class VolumeBubble { |
| 22 public: |
| 23 static VolumeBubble* GetInstance(); |
| 24 static void ShowBubble(double percent, bool enabled); |
| 25 void HideBubble(); |
| 26 |
| 27 private: |
| 28 friend struct DefaultSingletonTraits<VolumeBubble>; |
| 29 |
| 30 // Bubble widget, owned by VolumeBubble. |
| 31 static views::Widget* widget_; |
| 32 VolumeBubble(); |
| 33 virtual ~VolumeBubble() {} |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(VolumeBubble); |
| 36 }; |
| 37 |
| 38 } // namespace chromeos |
| 39 |
| 40 #endif // CHROME_BROWSER_CHROMEOS_VOLUME_BUBBLE_VIEW_VIEWS_H_ |
OLD | NEW |