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

Side by Side Diff: chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc

Issue 2862913002: [Web Payments] Let subsheets define the initial focus (Closed)
Patch Set: Rebase Created 3 years, 7 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/payments/cvc_unmask_view_controller.h" 5 #include "chrome/browser/ui/views/payments/cvc_unmask_view_controller.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/autofill/risk_util.h" 10 #include "chrome/browser/autofill/risk_util.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 } 204 }
205 205
206 dialog()->ShowProcessingSpinner(); 206 dialog()->ShowProcessingSpinner();
207 } 207 }
208 208
209 bool CvcUnmaskViewController::GetSheetId(DialogViewID* sheet_id) { 209 bool CvcUnmaskViewController::GetSheetId(DialogViewID* sheet_id) {
210 *sheet_id = DialogViewID::CVC_UNMASK_SHEET; 210 *sheet_id = DialogViewID::CVC_UNMASK_SHEET;
211 return true; 211 return true;
212 } 212 }
213 213
214 views::View* CvcUnmaskViewController::GetFirstFocusedView() {
215 return cvc_field_;
216 }
217
214 } // namespace payments 218 } // namespace payments
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698