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

Unified Diff: chrome/browser/chromeos/setting_level_bubble_view.h

Issue 7646004: chromeos: Improve brightness and volume animations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: hopefully fix windows compile and DCHECK Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/setting_level_bubble_view.h
diff --git a/chrome/browser/chromeos/setting_level_bubble_view.h b/chrome/browser/chromeos/setting_level_bubble_view.h
index 6621e343c6edf87cbee644db562e76a1bca62198..3e1c6a90dc547d760bfb669447aa83a6b0841480 100644
--- a/chrome/browser/chromeos/setting_level_bubble_view.h
+++ b/chrome/browser/chromeos/setting_level_bubble_view.h
@@ -22,16 +22,16 @@ class SettingLevelBubbleView : public views::View {
public:
SettingLevelBubbleView();
- // Initialize the view, setting the progress bar to the specified level and
- // state. Ownership of |icon| remains with the caller (it's probably a shared
- // instance from ResourceBundle).
- void Init(SkBitmap* icon, int level_percent, bool enabled);
+ // Initialize the view, setting the progress bar to the specified level in the
+ // range [0.0, 100.0] and state. Ownership of |icon| remains with the caller
+ // (it's probably a shared instance from ResourceBundle).
+ void Init(SkBitmap* icon, double level, bool enabled);
// Change the icon that we're currently displaying.
void SetIcon(SkBitmap* icon);
// Set the progress bar to the specified level and redraw it.
- void SetLevel(int level_percent);
+ void SetLevel(double level);
// Draw the progress bar in an enabled or disabled state.
void SetEnabled(bool enabled);
« no previous file with comments | « chrome/browser/chromeos/setting_level_bubble.cc ('k') | chrome/browser/chromeos/setting_level_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698