| 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_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // one of these sections. TODO(estade): add telephone number. | 65 // one of these sections. TODO(estade): add telephone number. |
| 66 enum DialogSection { | 66 enum DialogSection { |
| 67 SECTION_EMAIL, | 67 SECTION_EMAIL, |
| 68 SECTION_CC, | 68 SECTION_CC, |
| 69 SECTION_BILLING, | 69 SECTION_BILLING, |
| 70 SECTION_SHIPPING, | 70 SECTION_SHIPPING, |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 // Termination actions for the dialog. | 73 // Termination actions for the dialog. |
| 74 enum DialogAction { | 74 enum DialogAction { |
| 75 ACTION_ABORT, | 75 ACTION_CANCEL, |
| 76 ACTION_SUBMIT, | 76 ACTION_SUBMIT, |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 typedef std::vector<DetailInput> DetailInputs; | 79 typedef std::vector<DetailInput> DetailInputs; |
| 80 typedef std::map<const DetailInput*, string16> DetailOutputMap; | 80 typedef std::map<const DetailInput*, string16> DetailOutputMap; |
| 81 | 81 |
| 82 // This class drives the dialog that appears when a site uses the imperative | 82 // This class drives the dialog that appears when a site uses the imperative |
| 83 // autocomplete API to fill out a form. | 83 // autocomplete API to fill out a form. |
| 84 class AutofillDialogController : public AutofillPopupDelegate, | 84 class AutofillDialogController : public AutofillPopupDelegate, |
| 85 public SuggestionsMenuModelDelegate { | 85 public SuggestionsMenuModelDelegate { |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 AutofillPopupControllerImpl* popup_controller_; | 238 AutofillPopupControllerImpl* popup_controller_; |
| 239 | 239 |
| 240 scoped_ptr<AutofillDialogView> view_; | 240 scoped_ptr<AutofillDialogView> view_; |
| 241 | 241 |
| 242 DISALLOW_COPY_AND_ASSIGN(AutofillDialogController); | 242 DISALLOW_COPY_AND_ASSIGN(AutofillDialogController); |
| 243 }; | 243 }; |
| 244 | 244 |
| 245 } // namespace autofill | 245 } // namespace autofill |
| 246 | 246 |
| 247 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 247 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
| OLD | NEW |