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

Side by Side Diff: chrome/browser/chromeos/setting_level_bubble_view.cc

Issue 7529038: chromeos: Minor changes to volume/brightness bubble UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/chromeos/setting_level_bubble_view.h" 5 #include "chrome/browser/chromeos/setting_level_bubble_view.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "third_party/skia/include/core/SkBitmap.h" 10 #include "third_party/skia/include/core/SkBitmap.h"
11 #include "ui/gfx/canvas.h" 11 #include "ui/gfx/canvas.h"
12 #include "views/controls/progress_bar.h" 12 #include "views/controls/progress_bar.h"
13 13
14 using views::Background; 14 using views::Background;
15 using views::View; 15 using views::View;
16 using views::Widget; 16 using views::Widget;
17 17
18 namespace { 18 namespace {
19 19
20 // Bubble metrics. 20 // Bubble metrics.
21 const int kWidth = 350, kHeight = 100; 21 const int kWidth = 350, kHeight = 90;
22 const int kPadding = 20; 22 const int kPadding = 20;
23 const int kProgressBarWidth = 211; 23 const int kProgressBarWidth = 211;
24 const int kProgressBarHeight = 17; 24 const int kProgressBarHeight = 17;
25 25
26 } // namespace 26 } // namespace
27 27
28 namespace chromeos { 28 namespace chromeos {
29 29
30 SettingLevelBubbleView::SettingLevelBubbleView() 30 SettingLevelBubbleView::SettingLevelBubbleView()
31 : progress_bar_(NULL), 31 : progress_bar_(NULL),
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 progress_bar_->SetBounds(width() - kPadding - kProgressBarWidth, 70 progress_bar_->SetBounds(width() - kPadding - kProgressBarWidth,
71 (height() - kProgressBarHeight) / 2, 71 (height() - kProgressBarHeight) / 2,
72 kProgressBarWidth, kProgressBarHeight); 72 kProgressBarWidth, kProgressBarHeight);
73 } 73 }
74 74
75 gfx::Size SettingLevelBubbleView::GetPreferredSize() { 75 gfx::Size SettingLevelBubbleView::GetPreferredSize() {
76 return gfx::Size(kWidth, kHeight); 76 return gfx::Size(kWidth, kHeight);
77 } 77 }
78 78
79 } // namespace chromeos 79 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/setting_level_bubble.cc ('k') | chrome/browser/ui/views/bubble/bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698