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/user_image_view.h" | 5 #include "chrome/browser/chromeos/login/user_image_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "app/resource_bundle.h" | |
11 #include "base/callback.h" | 10 #include "base/callback.h" |
12 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
13 #include "chrome/browser/chromeos/login/helper.h" | 12 #include "chrome/browser/chromeos/login/helper.h" |
14 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" | 13 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" |
15 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h" | 14 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h" |
16 #include "chrome/browser/profiles/profile_manager.h" | 15 #include "chrome/browser/profiles/profile_manager.h" |
17 #include "gfx/canvas.h" | 16 #include "gfx/canvas.h" |
18 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
19 #include "grit/theme_resources.h" | 18 #include "grit/theme_resources.h" |
20 #include "skia/ext/image_operations.h" | 19 #include "skia/ext/image_operations.h" |
| 20 #include "ui/base/resource/resource_bundle.h" |
21 #include "views/controls/button/image_button.h" | 21 #include "views/controls/button/image_button.h" |
22 #include "views/controls/button/native_button.h" | 22 #include "views/controls/button/native_button.h" |
23 #include "views/controls/image_view.h" | 23 #include "views/controls/image_view.h" |
24 #include "views/controls/label.h" | 24 #include "views/controls/label.h" |
25 #include "views/controls/throbber.h" | 25 #include "views/controls/throbber.h" |
26 #include "views/grid_layout.h" | 26 #include "views/grid_layout.h" |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 // Margin in pixels from the left and right borders of screen's contents. | 30 // Margin in pixels from the left and right borders of screen's contents. |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 delegate_->OnOK(user_image_->GetImage()); | 323 delegate_->OnOK(user_image_->GetImage()); |
324 } else if (sender == skip_button_) { | 324 } else if (sender == skip_button_) { |
325 delegate_->OnSkip(); | 325 delegate_->OnSkip(); |
326 } else { | 326 } else { |
327 NOTREACHED(); | 327 NOTREACHED(); |
328 } | 328 } |
329 } | 329 } |
330 | 330 |
331 } // namespace chromeos | 331 } // namespace chromeos |
332 | 332 |
OLD | NEW |