| Index: chrome/browser/ui/autofill/autofill_dialog_input_static.h
|
| diff --git a/chrome/browser/ui/autofill/autofill_dialog_input_static.h b/chrome/browser/ui/autofill/autofill_dialog_input_static.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e1861ad518c682ef0362dd13da359992aed45abf
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/autofill/autofill_dialog_input_static.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_INPUT_STATIC_H_
|
| +#define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_INPUT_STATIC_H_
|
| +
|
| +#include "chrome/browser/ui/autofill/autofill_dialog_input.h"
|
| +
|
| +namespace autofill {
|
| +namespace common {
|
| +
|
| +// An implementation of AutofillDialogInput with static fields. This
|
| +// implementation does not allow changing the country/region field. Do not
|
| +// instantiate this object directly. Use AutofillDialogInput::BuildInstance()
|
| +// instead.
|
| +class AutofillDialogInputStatic : public AutofillDialogInput {
|
| + public:
|
| + AutofillDialogInputStatic();
|
| + virtual ~AutofillDialogInputStatic();
|
| +
|
| + // AutofillDialogInput implementation.
|
| + virtual void BuildInputsForSection(DialogSection dialog_section,
|
| + DetailInputs* inputs) OVERRIDE;
|
| + virtual void BuildInputsForSection(DialogSection dialog_section,
|
| + const std::string& selected_country_region,
|
| + DetailInputs* inputs) OVERRIDE;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(AutofillDialogInputStatic);
|
| +};
|
| +
|
| +} // namespace common
|
| +} // namespace autofill
|
| +
|
| +#endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_INPUT_STATIC_H_
|
|
|