Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller.h

Issue 15961007: Highlight fields we know to be invalid but have no way of locally checking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <vector> 8 #include <vector>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 20 matching lines...) Expand all
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 AutofillDialogController {
39 public: 39 public:
40 enum ValidationType { 40 enum ValidationType {
41 VALIDATE_EDIT, // validate user edits. Allow for empty fields. 41 VALIDATE_SELECT, // Validate existing suggestions (card might've expired).
42 VALIDATE_FINAL, // Full form validation. Mandatory fields can't be empty. 42 VALIDATE_EDIT, // Validate user edits. Allow for empty fields.
43 VALIDATE_FINAL, // Full form validation. Mandatory fields can't be empty.
43 }; 44 };
44 45
45 // Strings ------------------------------------------------------------------- 46 // Strings -------------------------------------------------------------------
46 47
47 virtual string16 DialogTitle() const = 0; 48 virtual string16 DialogTitle() const = 0;
48 virtual string16 AccountChooserText() const = 0; 49 virtual string16 AccountChooserText() const = 0;
49 virtual string16 SignInLinkText() const = 0; 50 virtual string16 SignInLinkText() const = 0;
50 virtual string16 EditSuggestionText() const = 0; 51 virtual string16 EditSuggestionText() const = 0;
51 virtual string16 CancelButtonText() const = 0; 52 virtual string16 CancelButtonText() const = 0;
52 virtual string16 ConfirmButtonText() const = 0; 53 virtual string16 ConfirmButtonText() const = 0;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // The web contents that prompted the dialog. 194 // The web contents that prompted the dialog.
194 virtual content::WebContents* web_contents() = 0; 195 virtual content::WebContents* web_contents() = 0;
195 196
196 protected: 197 protected:
197 virtual ~AutofillDialogController(); 198 virtual ~AutofillDialogController();
198 }; 199 };
199 200
200 } // namespace autofill 201 } // namespace autofill
201 202
202 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ 203 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698