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

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

Issue 5620004: chromeos: Show onscreen bubble when brightness changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser/chromeos
Patch Set: update comment Created 10 years 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_SETTING_LEVEL_BUBBLE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTING_LEVEL_BUBBLE_H_
6 #define CHROME_BROWSER_CHROMEOS_SETTING_LEVEL_BUBBLE_H_ 6 #define CHROME_BROWSER_CHROMEOS_SETTING_LEVEL_BUBBLE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "app/animation_delegate.h" 9 #include "app/animation_delegate.h"
10 #include "app/slide_animation.h" 10 #include "app/slide_animation.h"
11 #include "base/basictypes.h"
Charlie Lee 2010/12/09 21:35:04 is this new include needed?
Daniel Erat 2010/12/09 21:43:54 It provides DISALLOW_COPY_AND_ASSIGN(). (We get b
11 #include "base/timer.h" 12 #include "base/timer.h"
12 #include "chrome/browser/views/info_bubble.h" 13 #include "chrome/browser/views/info_bubble.h"
13 14
14 class SkBitmap; 15 class SkBitmap;
15 16
16 namespace chromeos { 17 namespace chromeos {
17 18
18 class SettingLevelBubbleView; 19 class SettingLevelBubbleView;
19 20
20 // Singleton class controlling a bubble displaying a level-based setting like 21 // Singleton class controlling a bubble displaying a level-based setting like
21 // volume or brightness. 22 // volume or brightness.
22 class SettingLevelBubble : public InfoBubbleDelegate, 23 class SettingLevelBubble : public InfoBubbleDelegate,
23 public AnimationDelegate { 24 public AnimationDelegate {
24 public: 25 public:
25 void ShowBubble(int percent); 26 void ShowBubble(int percent);
27 void HideBubble();
26 28
27 protected: 29 protected:
28 explicit SettingLevelBubble(SkBitmap* increase_icon, 30 explicit SettingLevelBubble(SkBitmap* increase_icon,
29 SkBitmap* decrease_icon, 31 SkBitmap* decrease_icon,
30 SkBitmap* zero_icon); 32 SkBitmap* zero_icon);
31 virtual ~SettingLevelBubble() {} 33 virtual ~SettingLevelBubble() {}
32 34
33 private: 35 private:
34 void OnTimeout(); 36 void OnTimeout();
35 37
(...skipping 25 matching lines...) Expand all
61 63
62 SlideAnimation animation_; 64 SlideAnimation animation_;
63 base::OneShotTimer<SettingLevelBubble> timeout_timer_; 65 base::OneShotTimer<SettingLevelBubble> timeout_timer_;
64 66
65 DISALLOW_COPY_AND_ASSIGN(SettingLevelBubble); 67 DISALLOW_COPY_AND_ASSIGN(SettingLevelBubble);
66 }; 68 };
67 69
68 } // namespace chromeos 70 } // namespace chromeos
69 71
70 #endif // CHROME_BROWSER_CHROMEOS_SETTING_LEVEL_BUBBLE_H_ 72 #endif // CHROME_BROWSER_CHROMEOS_SETTING_LEVEL_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698