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

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

Issue 8319008: aura: brightness and volume bubble. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: update comments 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/setting_level_bubble_view.cc
diff --git a/chrome/browser/chromeos/setting_level_bubble_view.cc b/chrome/browser/chromeos/setting_level_bubble_view.cc
index 5f4ae7c825184f07cd179de8b26a8598959a04d5..5835cfb763fcc2e6f23de5d4e36e8c9060756716 100644
--- a/chrome/browser/chromeos/setting_level_bubble_view.cc
+++ b/chrome/browser/chromeos/setting_level_bubble_view.cc
@@ -30,13 +30,13 @@ namespace chromeos {
SettingLevelBubbleView::SettingLevelBubbleView()
: progress_bar_(NULL),
icon_(NULL) {
+ progress_bar_ = new views::ProgressBar();
+ AddChildView(progress_bar_);
msw 2011/10/26 18:51:42 Why are you moving this out of init?
alicet1 2011/10/27 00:34:51 the view is created as part of bubble delegate ini
Daniel Erat 2011/10/27 00:40:21 Init() should still just be getting called once, r
alicet1 2011/10/27 15:20:06 init is still called only once (per lifetime of th
}
void SettingLevelBubbleView::Init(SkBitmap* icon, double level, bool enabled) {
DCHECK(icon);
icon_ = icon;
- progress_bar_ = new views::ProgressBar();
- AddChildView(progress_bar_);
progress_bar_->SetDisplayRange(0.0, 100.0);
progress_bar_->EnableCanvasFlippingForRTLUI(true);
EnableCanvasFlippingForRTLUI(true);

Powered by Google App Engine
This is Rietveld 408576698