| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_INPUT_STATIC_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_INPUT_STATIC_H_ |
| 7 |
| 8 #include "chrome/browser/ui/autofill/autofill_dialog_input.h" |
| 9 |
| 10 namespace autofill { |
| 11 namespace common { |
| 12 |
| 13 // An implementation of AutofillDialogInput with static fields. This |
| 14 // implementation does not allow changing the country/region field. Do not |
| 15 // instantiate this object directly. Use AutofillDialogInput::BuildInstance() |
| 16 // instead. |
| 17 class AutofillDialogInputStatic : public AutofillDialogInput { |
| 18 public: |
| 19 AutofillDialogInputStatic(); |
| 20 virtual ~AutofillDialogInputStatic(); |
| 21 |
| 22 // AutofillDialogInput implementation. |
| 23 virtual void BuildInputsForSection(DialogSection dialog_section, |
| 24 DetailInputs* inputs) OVERRIDE; |
| 25 virtual void BuildInputsForSection(DialogSection dialog_section, |
| 26 const std::string& selected_country_region, |
| 27 DetailInputs* inputs) OVERRIDE; |
| 28 |
| 29 private: |
| 30 DISALLOW_COPY_AND_ASSIGN(AutofillDialogInputStatic); |
| 31 }; |
| 32 |
| 33 } // namespace common |
| 34 } // namespace autofill |
| 35 |
| 36 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_INPUT_STATIC_H_ |
| OLD | NEW |