| 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/volume_bubble_view.h" | 5 #include "chrome/browser/chromeos/volume_bubble_view.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "app/resource_bundle.h" | 9 #include "app/resource_bundle.h" |
| 10 #include "base/logging.h" |
| 10 #include "gfx/canvas.h" | 11 #include "gfx/canvas.h" |
| 11 #include "grit/theme_resources.h" | 12 #include "grit/theme_resources.h" |
| 12 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
| 13 #include "views/controls/progress_bar.h" | 14 #include "views/controls/progress_bar.h" |
| 14 | 15 |
| 15 using views::Background; | 16 using views::Background; |
| 16 using views::View; | 17 using views::View; |
| 17 using views::Widget; | 18 using views::Widget; |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 (height() - kProgressBarHeight) / 2, | 57 (height() - kProgressBarHeight) / 2, |
| 57 width() - volume_icon_->width() - kMargin * 3, | 58 width() - volume_icon_->width() - kMargin * 3, |
| 58 kProgressBarHeight); | 59 kProgressBarHeight); |
| 59 } | 60 } |
| 60 | 61 |
| 61 gfx::Size VolumeBubbleView::GetPreferredSize() { | 62 gfx::Size VolumeBubbleView::GetPreferredSize() { |
| 62 return gfx::Size(kWidth, kHeight); | 63 return gfx::Size(kWidth, kHeight); |
| 63 } | 64 } |
| 64 | 65 |
| 65 } // namespace chromeos | 66 } // namespace chromeos |
| OLD | NEW |