| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | 8 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Updates the button strip based on the current controller state. | 37 // Updates the button strip based on the current controller state. |
| 38 virtual void UpdateButtonStrip() = 0; | 38 virtual void UpdateButtonStrip() = 0; |
| 39 | 39 |
| 40 // Called when the contents of a section have changed. | 40 // Called when the contents of a section have changed. |
| 41 virtual void UpdateSection(DialogSection section) = 0; | 41 virtual void UpdateSection(DialogSection section) = 0; |
| 42 | 42 |
| 43 // Fills the given section with Autofill data that was triggered by a user | 43 // Fills the given section with Autofill data that was triggered by a user |
| 44 // interaction with |originating_input|. | 44 // interaction with |originating_input|. |
| 45 virtual void FillSection(DialogSection section, | 45 virtual void FillSection(DialogSection section, |
| 46 const DetailInput& originating_input) = 0; | 46 AutofillFieldType originating_input) = 0; |
| 47 | 47 |
| 48 // Fills |output| with data the user manually input. | 48 // Fills |output| with data the user manually input. |
| 49 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) = 0; | 49 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) = 0; |
| 50 | 50 |
| 51 // Gets the CVC value the user typed to go along with the stored credit card | 51 // Gets the CVC value the user typed to go along with the stored credit card |
| 52 // data. If the user is inputing credit card data from scratch, this is not | 52 // data. If the user is inputing credit card data from scratch, this is not |
| 53 // relevant. | 53 // relevant. |
| 54 virtual string16 GetCvc() = 0; | 54 virtual string16 GetCvc() = 0; |
| 55 | 55 |
| 56 // Returns true if new or edited autofill details should be saved. | 56 // Returns true if new or edited autofill details should be saved. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 76 virtual TestableAutofillDialogView* GetTestableView(); | 76 virtual TestableAutofillDialogView* GetTestableView(); |
| 77 | 77 |
| 78 // Factory function to create the dialog (implemented once per view | 78 // Factory function to create the dialog (implemented once per view |
| 79 // implementation). |controller| will own the created dialog. | 79 // implementation). |controller| will own the created dialog. |
| 80 static AutofillDialogView* Create(AutofillDialogController* controller); | 80 static AutofillDialogView* Create(AutofillDialogController* controller); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace autofill | 83 } // namespace autofill |
| 84 | 84 |
| 85 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ | 85 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
| OLD | NEW |