OLD | NEW |
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 #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 "gfx/canvas.h" | |
11 #include "third_party/skia/include/core/SkBitmap.h" | 10 #include "third_party/skia/include/core/SkBitmap.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 = 100; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 progress_bar_->SetBounds(width() - kPadding - kProgressBarWidth, | 61 progress_bar_->SetBounds(width() - kPadding - kProgressBarWidth, |
62 (height() - kProgressBarHeight) / 2, | 62 (height() - kProgressBarHeight) / 2, |
63 kProgressBarWidth, kProgressBarHeight); | 63 kProgressBarWidth, kProgressBarHeight); |
64 } | 64 } |
65 | 65 |
66 gfx::Size SettingLevelBubbleView::GetPreferredSize() { | 66 gfx::Size SettingLevelBubbleView::GetPreferredSize() { |
67 return gfx::Size(kWidth, kHeight); | 67 return gfx::Size(kWidth, kHeight); |
68 } | 68 } |
69 | 69 |
70 } // namespace chromeos | 70 } // namespace chromeos |
OLD | NEW |