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

Side by Side Diff: chrome/browser/chromeos/volume_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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/basictypes.h"
10 #include "chrome/browser/chromeos/setting_level_bubble.h" 10 #include "chrome/browser/chromeos/setting_level_bubble.h"
11 11
12 template <typename T> struct DefaultSingletonTraits; 12 template <typename T> struct DefaultSingletonTraits;
13 13
14 namespace views {
15 class Widget;
16 }
17
14 namespace chromeos { 18 namespace chromeos {
15 19
16 // Singleton class controlling volume bubble. 20 // Singleton class controlling volume bubble.
17 class VolumeBubble : public SettingLevelBubble { 21 class VolumeBubble {
18 public: 22 public:
19 static VolumeBubble* GetInstance(); 23 static VolumeBubble* GetInstance();
24 static void ShowBubble(double percent, bool enabled);
25 void HideBubble();
20 26
21 private: 27 private:
22 friend struct DefaultSingletonTraits<VolumeBubble>; 28 friend struct DefaultSingletonTraits<VolumeBubble>;
23 29
30 // Bubble widget, owned by VolumeBubble.
31 static views::Widget* widget_;
24 VolumeBubble(); 32 VolumeBubble();
25 virtual ~VolumeBubble() {} 33 virtual ~VolumeBubble() {}
26 34
27 DISALLOW_COPY_AND_ASSIGN(VolumeBubble); 35 DISALLOW_COPY_AND_ASSIGN(VolumeBubble);
28 }; 36 };
29 37
30 } // namespace chromeos 38 } // namespace chromeos
31 39
32 #endif // CHROME_BROWSER_CHROMEOS_VOLUME_BUBBLE_H_ 40 #endif // CHROME_BROWSER_CHROMEOS_VOLUME_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698