| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_EDITOR_VIEW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_EDITOR_VIEW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_EDITOR_VIEW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_EDITOR_VIEW_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <tuple> | 10 #include <tuple> |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 virtual bool ValidateModelAndSave() = 0; | 122 virtual bool ValidateModelAndSave() = 0; |
| 123 // Creates a ValidationDelegate which knows how to validate for a given | 123 // Creates a ValidationDelegate which knows how to validate for a given |
| 124 // |field| definition. | 124 // |field| definition. |
| 125 virtual std::unique_ptr<ValidationDelegate> CreateValidationDelegate( | 125 virtual std::unique_ptr<ValidationDelegate> CreateValidationDelegate( |
| 126 const EditorField& field) = 0; | 126 const EditorField& field) = 0; |
| 127 virtual std::unique_ptr<ui::ComboboxModel> GetComboboxModelForType( | 127 virtual std::unique_ptr<ui::ComboboxModel> GetComboboxModelForType( |
| 128 const autofill::ServerFieldType& type) = 0; | 128 const autofill::ServerFieldType& type) = 0; |
| 129 | 129 |
| 130 // PaymentRequestSheetController; | 130 // PaymentRequestSheetController; |
| 131 std::unique_ptr<views::Button> CreatePrimaryButton() override; | 131 std::unique_ptr<views::Button> CreatePrimaryButton() override; |
| 132 base::string16 GetSecondaryButtonLabel() override; |
| 132 void FillContentView(views::View* content_view) override; | 133 void FillContentView(views::View* content_view) override; |
| 133 std::unique_ptr<views::View> CreateExtraFooterView() override; | |
| 134 | 134 |
| 135 // views::ComboboxListener: | 135 // views::ComboboxListener: |
| 136 void OnPerformAction(views::Combobox* combobox) override; | 136 void OnPerformAction(views::Combobox* combobox) override; |
| 137 | 137 |
| 138 // Update the editor view by removing all it's child views and recreating | 138 // Update the editor view by removing all it's child views and recreating |
| 139 // the input fields returned by GetFieldDefinitions. Note that | 139 // the input fields returned by GetFieldDefinitions. Note that |
| 140 // CreateEditorView MUST have been called at least once before calling | 140 // CreateEditorView MUST have been called at least once before calling |
| 141 // UpdateEditorView. | 141 // UpdateEditorView. |
| 142 virtual void UpdateEditorView(); | 142 virtual void UpdateEditorView(); |
| 143 | 143 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 174 | 174 |
| 175 // Identifies where to go back when the editing completes successfully. | 175 // Identifies where to go back when the editing completes successfully. |
| 176 BackNavigationType back_navigation_type_; | 176 BackNavigationType back_navigation_type_; |
| 177 | 177 |
| 178 DISALLOW_COPY_AND_ASSIGN(EditorViewController); | 178 DISALLOW_COPY_AND_ASSIGN(EditorViewController); |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 } // namespace payments | 181 } // namespace payments |
| 182 | 182 |
| 183 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_EDITOR_VIEW_CONTROLLER_H_ | 183 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_EDITOR_VIEW_CONTROLLER_H_ |
| OLD | NEW |