| 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" | 10 #include "app/resource_bundle.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 // Margin in pixels from the left and right borders of screen's contents. | 28 // Margin in pixels from the left and right borders of screen's contents. |
| 29 const int kHorizontalMargin = 10; | 29 const int kHorizontalMargin = 10; |
| 30 // Margin in pixels from the top and bottom borders of screen's contents. | 30 // Margin in pixels from the top and bottom borders of screen's contents. |
| 31 const int kVerticalMargin = 10; | 31 const int kVerticalMargin = 10; |
| 32 // Padding between horizontally neighboring elements. | 32 // Padding between horizontally neighboring elements. |
| 33 const int kHorizontalPadding = 10; | 33 const int kHorizontalPadding = 10; |
| 34 // Padding between vertically neighboring elements. | 34 // Padding between vertically neighboring elements. |
| 35 const int kVerticalPadding = 10; | 35 const int kVerticalPadding = 10; |
| 36 // Size for user image shown on the screen. | |
| 37 const int kUserImageSize = 256; | |
| 38 | 36 |
| 39 // IDs of column sets for grid layout manager. | 37 // IDs of column sets for grid layout manager. |
| 40 enum ColumnSets { | 38 enum ColumnSets { |
| 41 kTitleRow, // Column set for screen title. | 39 kTitleRow, // Column set for screen title. |
| 42 kImageRow, // Column set for image from camera and snapshot button. | 40 kImageRow, // Column set for image from camera and snapshot button. |
| 43 kButtonsRow, // Column set for Skip and OK buttons. | 41 kButtonsRow, // Column set for Skip and OK buttons. |
| 44 }; | 42 }; |
| 45 | 43 |
| 46 } // namespace | 44 } // namespace |
| 47 | 45 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 delegate_->OnOK(user_image_->GetImage()); | 210 delegate_->OnOK(user_image_->GetImage()); |
| 213 } else if (sender == skip_button_) { | 211 } else if (sender == skip_button_) { |
| 214 delegate_->OnSkip(); | 212 delegate_->OnSkip(); |
| 215 } else { | 213 } else { |
| 216 NOTREACHED(); | 214 NOTREACHED(); |
| 217 } | 215 } |
| 218 } | 216 } |
| 219 | 217 |
| 220 } // namespace chromeos | 218 } // namespace chromeos |
| 221 | 219 |
| OLD | NEW |