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

Unified Diff: chrome/browser/ui/views/payments/editor_view_controller.h

Issue 2862913002: [Web Payments] Let subsheets define the initial focus (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/payments/editor_view_controller.h
diff --git a/chrome/browser/ui/views/payments/editor_view_controller.h b/chrome/browser/ui/views/payments/editor_view_controller.h
index ec792873ff2893e2abe30538a9ed89669ef12846..402d6673a1b636747967ddb08d8a7753337f72a7 100644
--- a/chrome/browser/ui/views/payments/editor_view_controller.h
+++ b/chrome/browser/ui/views/payments/editor_view_controller.h
@@ -134,6 +134,7 @@ class EditorViewController : public PaymentRequestSheetController,
private:
// PaymentRequestSheetController:
void ButtonPressed(views::Button* sender, const ui::Event& event) override;
+ views::View* GetFirstFocusedView() override;
// views::TextfieldController:
void ContentsChanged(views::Textfield* sender,
@@ -158,6 +159,9 @@ class EditorViewController : public PaymentRequestSheetController,
// Tracks the relationship between a field and its error label.
ErrorLabelMap error_labels_;
+ // The first label in the editor, used to set the initial focus.
+ views::View* first_field_view_;
+
DISALLOW_COPY_AND_ASSIGN(EditorViewController);
};

Powered by Google App Engine
This is Rietveld 408576698