Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

Side by Side Diff: chrome/browser/chromeos/login/user_image_view.cc

Issue 4179001: [cros] Fix UI issues on SignIn pod. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/login/user_controller.cc ('k') | views/controls/link.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user_controller.cc ('k') | views/controls/link.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698