| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_VOLUME_BUBBLE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_VOLUME_BUBBLE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_VOLUME_BUBBLE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_VOLUME_BUBBLE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" |
| 9 #include "base/singleton.h" | 10 #include "base/singleton.h" |
| 10 #include "chrome/browser/chromeos/setting_level_bubble.h" | 11 #include "chrome/browser/chromeos/setting_level_bubble.h" |
| 11 | 12 |
| 12 namespace chromeos { | 13 namespace chromeos { |
| 13 | 14 |
| 14 // Singleton class controlling volume bubble. | 15 // Singleton class controlling volume bubble. |
| 15 class VolumeBubble : public SettingLevelBubble { | 16 class VolumeBubble : public SettingLevelBubble { |
| 16 public: | 17 public: |
| 17 static VolumeBubble* instance() { | 18 static VolumeBubble* instance() { |
| 18 return Singleton<VolumeBubble>::get(); | 19 return Singleton<VolumeBubble>::get(); |
| 19 } | 20 } |
| 20 | 21 |
| 21 private: | 22 private: |
| 22 friend struct DefaultSingletonTraits<VolumeBubble>; | 23 friend struct DefaultSingletonTraits<VolumeBubble>; |
| 23 | 24 |
| 24 VolumeBubble(); | 25 VolumeBubble(); |
| 25 virtual ~VolumeBubble() {} | 26 virtual ~VolumeBubble() {} |
| 26 | 27 |
| 27 DISALLOW_COPY_AND_ASSIGN(VolumeBubble); | 28 DISALLOW_COPY_AND_ASSIGN(VolumeBubble); |
| 28 }; | 29 }; |
| 29 | 30 |
| 30 } // namespace chromeos | 31 } // namespace chromeos |
| 31 | 32 |
| 32 #endif // CHROME_BROWSER_CHROMEOS_VOLUME_BUBBLE_H_ | 33 #endif // CHROME_BROWSER_CHROMEOS_VOLUME_BUBBLE_H_ |
| OLD | NEW |