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

Side by Side Diff: chrome/browser/chromeos/brightness_bubble_view_views.h

Issue 8319008: aura: brightness and volume bubble. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 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
(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_BRIGHTNESS_BUBBLE_VIEW_VIEWS_H_
6 #define CHROME_BROWSER_CHROMEOS_BRIGHTNESS_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 brightness bubble.
21 class BrightnessBubble {
22 public:
23 static BrightnessBubble* GetInstance();
24 static void ShowBubble(double percent, bool enabled);
25 void UpdateWithoutShowingBubble(int level, bool enabled);
26 void HideBubble();
27
28 private:
29 friend struct DefaultSingletonTraits<BrightnessBubble>;
30
31 // Bubble widget, owned by VolumeBubble.
32 static views::Widget* widget_;
33 BrightnessBubble();
34 virtual ~BrightnessBubble() {}
35
36 DISALLOW_COPY_AND_ASSIGN(BrightnessBubble);
37 };
38
39 } // namespace chromeos
40
41 #endif // CHROME_BROWSER_CHROMEOS_BRIGHTNESS_BUBBLE_VIEW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698