OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/views/throbber.h" | 5 #include "chrome/views/throbber.h" |
6 | 6 |
7 #include "chrome/app/theme/theme_resources.h" | 7 #include "chrome/app/theme/theme_resources.h" |
8 #include "chrome/common/gfx/chrome_canvas.h" | 8 #include "chrome/common/gfx/chrome_canvas.h" |
9 #include "chrome/common/logging_chrome.h" | 9 #include "chrome/common/logging_chrome.h" |
10 #include "chrome/common/resource_bundle.h" | 10 #include "chrome/common/resource_bundle.h" |
11 #include "skia/include/SkBitmap.h" | 11 #include "skia/include/SkBitmap.h" |
12 | 12 |
| 13 using base::TimeDelta; |
| 14 |
13 namespace views { | 15 namespace views { |
14 | 16 |
15 Throbber::Throbber(int frame_time_ms, | 17 Throbber::Throbber(int frame_time_ms, |
16 bool paint_while_stopped) | 18 bool paint_while_stopped) |
17 : paint_while_stopped_(paint_while_stopped), | 19 : paint_while_stopped_(paint_while_stopped), |
18 running_(false), | 20 running_(false), |
19 last_frame_drawn_(-1), | 21 last_frame_drawn_(-1), |
20 frame_time_ms_(frame_time_ms), | 22 frame_time_ms_(frame_time_ms), |
21 frames_(NULL), | 23 frames_(NULL), |
22 last_time_recorded_(0) { | 24 last_time_recorded_(0) { |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 checkmark_ = rb.GetBitmapNamed(IDR_INPUT_GOOD); | 175 checkmark_ = rb.GetBitmapNamed(IDR_INPUT_GOOD); |
174 initialized = true; | 176 initialized = true; |
175 } | 177 } |
176 } | 178 } |
177 | 179 |
178 // static | 180 // static |
179 SkBitmap* CheckmarkThrobber::checkmark_ = NULL; | 181 SkBitmap* CheckmarkThrobber::checkmark_ = NULL; |
180 | 182 |
181 } // namespace views | 183 } // namespace views |
182 | 184 |
OLD | NEW |