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

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: update 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 chromeos { 14 namespace chromeos {
15 15
16 // Singleton class controlling volume bubble. 16 // Singleton class controlling volume bubble.
17 class VolumeBubble : public SettingLevelBubble { 17 class VolumeBubble {
18 public: 18 public:
19 // Returns a the singleton volume bubble instance.
msw 2011/10/21 02:42:06 remove 'a'
alicet1 2011/10/21 18:11:36 Done.
19 static VolumeBubble* GetInstance(); 20 static VolumeBubble* GetInstance();
20 21
22 // Updates the target |percent| and icon to be used, sets
23 // the bubble to |enabled| and shows the bubble.
24 void ShowBubble(double percent, bool enabled);
25
26 // Hides the bubble.
27 void HideBubble();
28
21 private: 29 private:
22 friend struct DefaultSingletonTraits<VolumeBubble>; 30 friend struct DefaultSingletonTraits<VolumeBubble>;
23 31
32 // Bubble widget, owned by VolumeBubble.
33 views::Widget* widget_;
msw 2011/10/21 02:42:06 data members belong below functions.
alicet1 2011/10/21 18:11:36 Done.
24 VolumeBubble(); 34 VolumeBubble();
25 virtual ~VolumeBubble() {} 35 virtual ~VolumeBubble();
26 36
27 DISALLOW_COPY_AND_ASSIGN(VolumeBubble); 37 DISALLOW_COPY_AND_ASSIGN(VolumeBubble);
28 }; 38 };
29 39
30 } // namespace chromeos 40 } // namespace chromeos
31 41
32 #endif // CHROME_BROWSER_CHROMEOS_VOLUME_BUBBLE_H_ 42 #endif // CHROME_BROWSER_CHROMEOS_VOLUME_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698