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

Side by Side Diff: chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc

Issue 1870573003: Full Keyboard Access: Second Approach (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/ui/views/sync/profile_signin_confirmation_dialog_views. h" 5 #include "chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views. h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 return ui::DIALOG_BUTTON_NONE; 102 return ui::DIALOG_BUTTON_NONE;
103 } 103 }
104 104
105 views::View* ProfileSigninConfirmationDialogViews::CreateExtraView() { 105 views::View* ProfileSigninConfirmationDialogViews::CreateExtraView() {
106 if (prompt_for_new_profile_) { 106 if (prompt_for_new_profile_) {
107 const base::string16 continue_signin_text = 107 const base::string16 continue_signin_text =
108 l10n_util::GetStringUTF16(IDS_ENTERPRISE_SIGNIN_CONTINUE_NEW_STYLE); 108 l10n_util::GetStringUTF16(IDS_ENTERPRISE_SIGNIN_CONTINUE_NEW_STYLE);
109 continue_signin_button_ = 109 continue_signin_button_ =
110 new views::LabelButton(this, continue_signin_text); 110 new views::LabelButton(this, continue_signin_text);
111 continue_signin_button_->SetStyle(views::Button::STYLE_BUTTON); 111 continue_signin_button_->SetStyle(views::Button::STYLE_BUTTON);
112 continue_signin_button_->SetFocusable(true);
113 } 112 }
114 return continue_signin_button_; 113 return continue_signin_button_;
115 } 114 }
116 115
117 bool ProfileSigninConfirmationDialogViews::Accept() { 116 bool ProfileSigninConfirmationDialogViews::Accept() {
118 if (delegate_) { 117 if (delegate_) {
119 if (prompt_for_new_profile_) 118 if (prompt_for_new_profile_)
120 delegate_->OnSigninWithNewProfile(); 119 delegate_->OnSigninWithNewProfile();
121 else 120 else
122 delegate_->OnContinueSignin(); 121 delegate_->OnContinueSignin();
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 views::Button* sender, 245 views::Button* sender,
247 const ui::Event& event) { 246 const ui::Event& event) {
248 DCHECK(prompt_for_new_profile_); 247 DCHECK(prompt_for_new_profile_);
249 DCHECK_EQ(continue_signin_button_, sender); 248 DCHECK_EQ(continue_signin_button_, sender);
250 if (delegate_) { 249 if (delegate_) {
251 delegate_->OnContinueSignin(); 250 delegate_->OnContinueSignin();
252 delegate_ = NULL; 251 delegate_ = NULL;
253 } 252 }
254 GetWidget()->Close(); 253 GetWidget()->Close();
255 } 254 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | chrome/browser/ui/views/toolbar/app_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698