| 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_VIEW_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" | 11 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
| 12 #include "components/autofill/content/browser/wallet/required_action.h" | 12 #include "components/autofill/content/browser/wallet/required_action.h" |
| 13 #include "components/autofill/core/browser/field_types.h" | 13 #include "components/autofill/core/browser/field_types.h" |
| 14 #include "ui/base/range/range.h" | 14 #include "ui/base/range/range.h" |
| 15 #include "ui/base/ui_base_types.h" | 15 #include "ui/base/ui_base_types.h" |
| 16 #include "ui/gfx/image/image.h" | 16 #include "ui/gfx/image/image.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace ui { | 30 namespace ui { |
| 31 class ComboboxModel; | 31 class ComboboxModel; |
| 32 class MenuModel; | 32 class MenuModel; |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace autofill { | 35 namespace autofill { |
| 36 | 36 |
| 37 // This class defines the interface to the controller that the dialog view sees. | 37 // This class defines the interface to the controller that the dialog view sees. |
| 38 class AutofillDialogController { | 38 class AutofillDialogViewDelegate { |
| 39 public: | 39 public: |
| 40 // Strings ------------------------------------------------------------------- | 40 // Strings ------------------------------------------------------------------- |
| 41 | 41 |
| 42 virtual string16 DialogTitle() const = 0; | 42 virtual string16 DialogTitle() const = 0; |
| 43 virtual string16 AccountChooserText() const = 0; | 43 virtual string16 AccountChooserText() const = 0; |
| 44 virtual string16 SignInLinkText() const = 0; | 44 virtual string16 SignInLinkText() const = 0; |
| 45 virtual string16 EditSuggestionText() const = 0; | 45 virtual string16 EditSuggestionText() const = 0; |
| 46 virtual string16 CancelButtonText() const = 0; | 46 virtual string16 CancelButtonText() const = 0; |
| 47 virtual string16 ConfirmButtonText() const = 0; | 47 virtual string16 ConfirmButtonText() const = 0; |
| 48 virtual string16 SaveLocallyText() const = 0; | 48 virtual string16 SaveLocallyText() const = 0; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 // close, or false to keep it open. | 201 // close, or false to keep it open. |
| 202 virtual bool OnAccept() = 0; | 202 virtual bool OnAccept() = 0; |
| 203 | 203 |
| 204 // Returns the profile for this dialog. | 204 // Returns the profile for this dialog. |
| 205 virtual Profile* profile() = 0; | 205 virtual Profile* profile() = 0; |
| 206 | 206 |
| 207 // The web contents that prompted the dialog. | 207 // The web contents that prompted the dialog. |
| 208 virtual content::WebContents* web_contents() = 0; | 208 virtual content::WebContents* web_contents() = 0; |
| 209 | 209 |
| 210 protected: | 210 protected: |
| 211 virtual ~AutofillDialogController(); | 211 virtual ~AutofillDialogViewDelegate(); |
| 212 }; | 212 }; |
| 213 | 213 |
| 214 } // namespace autofill | 214 } // namespace autofill |
| 215 | 215 |
| 216 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 216 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
| OLD | NEW |