| 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/login/oobe_progress_bar.h" | 5 #include "chrome/browser/chromeos/login/oobe_progress_bar.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "gfx/canvas_skia.h" | |
| 10 #include "grit/theme_resources.h" | 9 #include "grit/theme_resources.h" |
| 11 #include "third_party/skia/include/core/SkBitmap.h" | 10 #include "third_party/skia/include/core/SkBitmap.h" |
| 12 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
| 13 #include "ui/base/resource/resource_bundle.h" | 12 #include "ui/base/resource/resource_bundle.h" |
| 13 #include "ui/gfx/canvas_skia.h" |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 | 16 |
| 17 // static | 17 // static |
| 18 SkBitmap* OobeProgressBar::dot_current_ = NULL; | 18 SkBitmap* OobeProgressBar::dot_current_ = NULL; |
| 19 SkBitmap* OobeProgressBar::dot_empty_ = NULL; | 19 SkBitmap* OobeProgressBar::dot_empty_ = NULL; |
| 20 SkBitmap* OobeProgressBar::dot_filled_ = NULL; | 20 SkBitmap* OobeProgressBar::dot_filled_ = NULL; |
| 21 SkBitmap* OobeProgressBar::line_ = NULL; | 21 SkBitmap* OobeProgressBar::line_ = NULL; |
| 22 SkBitmap* OobeProgressBar::line_left_ = NULL; | 22 SkBitmap* OobeProgressBar::line_left_ = NULL; |
| 23 SkBitmap* OobeProgressBar::line_right_ = NULL; | 23 SkBitmap* OobeProgressBar::line_right_ = NULL; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 if (steps_[i] == step) { | 132 if (steps_[i] == step) { |
| 133 progress_ = i; | 133 progress_ = i; |
| 134 SchedulePaint(); | 134 SchedulePaint(); |
| 135 return; | 135 return; |
| 136 } | 136 } |
| 137 } | 137 } |
| 138 NOTREACHED(); | 138 NOTREACHED(); |
| 139 } | 139 } |
| 140 | 140 |
| 141 } // namespace chromeos | 141 } // namespace chromeos |
| OLD | NEW |