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

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

Issue 3442011: Enabling access notifications for login wizard (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 months 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
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/password_changed_view.h" 5 #include "chrome/browser/chromeos/login/password_changed_view.h"
6 6
7 #include "app/keyboard_codes.h" 7 #include "app/keyboard_codes.h"
8 #include "app/l10n_util.h" 8 #include "app/l10n_util.h"
9 #include "app/resource_bundle.h" 9 #include "app/resource_bundle.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" 11 #include "chrome/browser/chromeos/login/rounded_rect_painter.h"
12 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h"
12 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
13 #include "grit/locale_settings.h" 14 #include "grit/locale_settings.h"
14 #include "views/controls/button/radio_button.h" 15 #include "views/controls/button/radio_button.h"
15 #include "views/controls/label.h" 16 #include "views/controls/label.h"
16 #include "views/grid_layout.h" 17 #include "views/grid_layout.h"
17 #include "views/standard_layout.h" 18 #include "views/standard_layout.h"
18 #include "views/window/window.h" 19 #include "views/window/window.h"
19 20
20 using views::Button; 21 using views::Button;
21 using views::GridLayout; 22 using views::GridLayout;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 gfx::Size PasswordChangedView::GetPreferredSize() { 54 gfx::Size PasswordChangedView::GetPreferredSize() {
54 // TODO(nkostylev): Once UI is finalized, create locale settings. 55 // TODO(nkostylev): Once UI is finalized, create locale settings.
55 return gfx::Size(views::Window::GetLocalizedContentsSize( 56 return gfx::Size(views::Window::GetLocalizedContentsSize(
56 IDS_PASSWORD_CHANGED_DIALOG_WIDTH_CHARS, 57 IDS_PASSWORD_CHANGED_DIALOG_WIDTH_CHARS,
57 IDS_PASSWORD_CHANGED_DIALOG_HEIGHT_LINES)); 58 IDS_PASSWORD_CHANGED_DIALOG_HEIGHT_LINES));
58 } 59 }
59 60
60 void PasswordChangedView::ViewHierarchyChanged(bool is_add, 61 void PasswordChangedView::ViewHierarchyChanged(bool is_add,
61 views::View* parent, 62 views::View* parent,
62 views::View* child) { 63 views::View* child) {
63 if (is_add && child == this) 64 if (is_add && child == this) {
64 Init(); 65 Init();
66 WizardAccessibilityHelper::GetInstance()->MaybeEnableAccessibility(this);
67 }
65 } 68 }
66 69
67 void PasswordChangedView::Init() { 70 void PasswordChangedView::Init() {
68 // Set up fonts. 71 // Set up fonts.
69 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 72 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
70 gfx::Font title_font = rb.GetFont(ResourceBundle::MediumBoldFont); 73 gfx::Font title_font = rb.GetFont(ResourceBundle::MediumBoldFont);
71 74
72 // Create controls 75 // Create controls
73 title_label_ = new Label(); 76 title_label_ = new Label();
74 title_label_->SetFont(title_font); 77 title_label_->SetFont(title_font);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 172
170 return false; 173 return false;
171 } 174 }
172 175
173 void PasswordChangedView::SelectDeltaSyncOption() { 176 void PasswordChangedView::SelectDeltaSyncOption() {
174 if (!delta_sync_radio_->checked()) 177 if (!delta_sync_radio_->checked())
175 delta_sync_radio_->SetChecked(true); 178 delta_sync_radio_->SetChecked(true);
176 } 179 }
177 180
178 } // namespace chromeos 181 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698