| 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 6fa8048cddb99ace4d2e77859f3352b3ec21e406..6621e343c6edf87cbee644db562e76a1bca62198 100644
|
| --- a/chrome/browser/chromeos/setting_level_bubble_view.h
|
| +++ b/chrome/browser/chromeos/setting_level_bubble_view.h
|
| @@ -22,21 +22,24 @@ class SettingLevelBubbleView : public views::View {
|
| public:
|
| SettingLevelBubbleView();
|
|
|
| - // Initialize the view, setting the progress bar to the specified position.
|
| - // Ownership of |icon| remains with the caller (it's probably a shared
|
| + // 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);
|
| + void Init(SkBitmap* icon, int level_percent, bool enabled);
|
|
|
| // Change the icon that we're currently displaying.
|
| void SetIcon(SkBitmap* icon);
|
|
|
| - // Set the progress bar to the specified position and redraw it.
|
| - void Update(int level_percent);
|
| + // Set the progress bar to the specified level and redraw it.
|
| + void SetLevel(int level_percent);
|
| +
|
| + // Draw the progress bar in an enabled or disabled state.
|
| + void SetEnabled(bool enabled);
|
|
|
| // views::View implementation:
|
| - virtual void OnPaint(gfx::Canvas* canvas);
|
| - virtual void Layout();
|
| - virtual gfx::Size GetPreferredSize();
|
| + virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
|
| + virtual void Layout() OVERRIDE;
|
| + virtual gfx::Size GetPreferredSize() OVERRIDE;
|
|
|
| private:
|
| views::ProgressBar* progress_bar_;
|
|
|