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

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

Issue 12221040: Interactive autofill: Handle Online Wallet being unavailable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: x Created 7 years, 10 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 31
32 namespace autofill { 32 namespace autofill {
33 33
34 // This class defines the interface to the controller that the dialog view sees. 34 // This class defines the interface to the controller that the dialog view sees.
35 class AutofillDialogController { 35 class AutofillDialogController {
36 public: 36 public:
37 37
38 // Strings ------------------------------------------------------------------- 38 // Strings -------------------------------------------------------------------
39 39
40 virtual string16 DialogTitle() const = 0; 40 virtual string16 DialogTitle() const = 0;
41 virtual string16 PayWithoutWallet() const = 0;
41 virtual string16 EditSuggestionText() const = 0; 42 virtual string16 EditSuggestionText() const = 0;
42 virtual string16 UseBillingForShippingText() const = 0; 43 virtual string16 UseBillingForShippingText() const = 0;
43 virtual string16 WalletOptionText() const = 0; 44 virtual string16 WalletOptionText() const = 0;
44 virtual string16 CancelButtonText() const = 0; 45 virtual string16 CancelButtonText() const = 0;
45 virtual string16 ConfirmButtonText() const = 0; 46 virtual string16 ConfirmButtonText() const = 0;
46 virtual string16 SignInText() const = 0; 47 virtual string16 SignInText() const = 0;
48 virtual string16 SignedInUser() const = 0;
Evan Stade 2013/02/06 21:57:49 notice how these all end in a word that makes it o
Dan Beam 2013/02/07 01:22:40 I do now! :)
47 virtual string16 CancelSignInText() const = 0; 49 virtual string16 CancelSignInText() const = 0;
48 virtual string16 SaveLocallyText() const = 0; 50 virtual string16 SaveLocallyText() const = 0;
49 virtual string16 ProgressBarText() const = 0; 51 virtual string16 ProgressBarText() const = 0;
50 52
51 // State --------------------------------------------------------------------- 53 // State ---------------------------------------------------------------------
52 54
53 // Whether the user is known to be signed in. 55 // Whether the user is known to be signed in.
54 virtual DialogSignedInState SignedInState() const = 0; 56 virtual DialogSignedInState SignedInState() const = 0;
55 57
58 // Whether wallet is available to get information from.
Evan Stade 2013/02/06 21:57:49 this comment doesn't add much value... you should
Dan Beam 2013/02/07 01:22:40 I've added a better comment and renamed to CanPayW
59 virtual bool IsWalletAvailable() const = 0;
60
56 // Detail inputs ------------------------------------------------------------- 61 // Detail inputs -------------------------------------------------------------
57 62
58 // Returns the set of inputs the page has requested which fall under 63 // Returns the set of inputs the page has requested which fall under
59 // |section|. 64 // |section|.
60 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) 65 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section)
61 const = 0; 66 const = 0;
62 67
63 // Returns the combobox model for inputs of type |type|, or NULL if the input 68 // Returns the combobox model for inputs of type |type|, or NULL if the input
64 // should be a text field. 69 // should be a text field.
65 virtual ui::ComboboxModel* ComboboxModelForAutofillType( 70 virtual ui::ComboboxModel* ComboboxModelForAutofillType(
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // The web contents that prompted the dialog. 119 // The web contents that prompted the dialog.
115 virtual content::WebContents* web_contents() = 0; 120 virtual content::WebContents* web_contents() = 0;
116 121
117 protected: 122 protected:
118 virtual ~AutofillDialogController(); 123 virtual ~AutofillDialogController();
119 }; 124 };
120 125
121 } // namespace autofill 126 } // namespace autofill
122 127
123 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ 128 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698