| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/take_photo_view.h" | 5 #include "chrome/browser/chromeos/login/take_photo_view.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/chromeos/login/helper.h" | 8 #include "chrome/browser/chromeos/login/helper.h" |
| 9 #include "grit/generated_resources.h" | 9 #include "grit/generated_resources.h" |
| 10 #include "grit/theme_resources.h" | 10 #include "grit/theme_resources.h" |
| 11 #include "skia/ext/image_operations.h" | 11 #include "skia/ext/image_operations.h" |
| 12 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
| 13 #include "ui/base/resource/resource_bundle.h" | 13 #include "ui/base/resource/resource_bundle.h" |
| 14 #include "ui/gfx/canvas.h" | 14 #include "ui/gfx/canvas.h" |
| 15 #include "ui/views/layout/grid_layout.h" |
| 15 #include "views/background.h" | 16 #include "views/background.h" |
| 16 #include "views/border.h" | 17 #include "views/border.h" |
| 17 #include "views/controls/button/image_button.h" | 18 #include "views/controls/button/image_button.h" |
| 18 #include "views/controls/image_view.h" | 19 #include "views/controls/image_view.h" |
| 19 #include "views/controls/label.h" | 20 #include "views/controls/label.h" |
| 20 #include "views/controls/throbber.h" | 21 #include "views/controls/throbber.h" |
| 21 #include "views/layout/grid_layout.h" | |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 // Padding between horizontally neighboring elements. | 25 // Padding between horizontally neighboring elements. |
| 26 const int kHorizontalPadding = 10; | 26 const int kHorizontalPadding = 10; |
| 27 // Padding between vertically neighboring elements. | 27 // Padding between vertically neighboring elements. |
| 28 const int kVerticalPadding = 10; | 28 const int kVerticalPadding = 10; |
| 29 // Color of image view border. | 29 // Color of image view border. |
| 30 const SkColor kImageBorderColor = SkColorSetARGB(38, 0, 0, 0); | 30 const SkColor kImageBorderColor = SkColorSetARGB(38, 0, 0, 0); |
| 31 | 31 |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 snapshot_button_->SetImage( | 301 snapshot_button_->SetImage( |
| 302 views::CustomButton::BS_NORMAL, | 302 views::CustomButton::BS_NORMAL, |
| 303 ResourceBundle::GetSharedInstance().GetBitmapNamed( | 303 ResourceBundle::GetSharedInstance().GetBitmapNamed( |
| 304 IDR_USER_IMAGE_CAPTURE)); | 304 IDR_USER_IMAGE_CAPTURE)); |
| 305 delegate_->OnCapturingStarted(); | 305 delegate_->OnCapturingStarted(); |
| 306 snapshot_button_->SchedulePaint(); | 306 snapshot_button_->SchedulePaint(); |
| 307 } | 307 } |
| 308 } | 308 } |
| 309 | 309 |
| 310 } // namespace chromeos | 310 } // namespace chromeos |
| OLD | NEW |