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

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

Issue 55243005: Implement learn more bubble on views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 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 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_VIEW_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_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"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Strings ------------------------------------------------------------------- 44 // Strings -------------------------------------------------------------------
45 45
46 virtual string16 DialogTitle() const = 0; 46 virtual string16 DialogTitle() const = 0;
47 virtual string16 AccountChooserText() const = 0; 47 virtual string16 AccountChooserText() const = 0;
48 virtual string16 SignInLinkText() const = 0; 48 virtual string16 SignInLinkText() const = 0;
49 virtual string16 SpinnerText() const = 0; 49 virtual string16 SpinnerText() const = 0;
50 virtual string16 EditSuggestionText() const = 0; 50 virtual string16 EditSuggestionText() const = 0;
51 virtual string16 CancelButtonText() const = 0; 51 virtual string16 CancelButtonText() const = 0;
52 virtual string16 ConfirmButtonText() const = 0; 52 virtual string16 ConfirmButtonText() const = 0;
53 virtual string16 SaveLocallyText() const = 0; 53 virtual string16 SaveLocallyText() const = 0;
54 virtual string16 SaveLocallyTooltip() const = 0; 54 virtual string16 SaveLocallyLearnMoreText() const = 0;
55 virtual string16 LegalDocumentsText() = 0; 55 virtual string16 LegalDocumentsText() = 0;
56 56
57 // State --------------------------------------------------------------------- 57 // State ---------------------------------------------------------------------
58 58
59 // Whether the sign-in link should be disabled. 59 // Whether the sign-in link should be disabled.
60 virtual bool ShouldDisableSignInLink() const = 0; 60 virtual bool ShouldDisableSignInLink() const = 0;
61 61
62 // Whether a loading animation should be shown (e.g. while signing in, 62 // Whether a loading animation should be shown (e.g. while signing in,
63 // retreiving Wallet data, etc.). 63 // retreiving Wallet data, etc.).
64 virtual bool ShouldShowSpinner() const = 0; 64 virtual bool ShouldShowSpinner() const = 0;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 // Returns the icons to be displayed along with the given |user_inputs| in a 129 // Returns the icons to be displayed along with the given |user_inputs| in a
130 // section. 130 // section.
131 virtual FieldIconMap IconsForFields( 131 virtual FieldIconMap IconsForFields(
132 const FieldValueMap& user_inputs) const = 0; 132 const FieldValueMap& user_inputs) const = 0;
133 133
134 // Returns true if the value of this field |type| controls the icons for the 134 // Returns true if the value of this field |type| controls the icons for the
135 // rest of the fields in a section. 135 // rest of the fields in a section.
136 virtual bool FieldControlsIcons(ServerFieldType type) const = 0; 136 virtual bool FieldControlsIcons(ServerFieldType type) const = 0;
137 137
138 // Returns a tooltip for the given field, or an empty string if none exists. 138 // Returns the "learn more" text for the given field, or an empty string if
139 virtual string16 TooltipForField(ServerFieldType type) const = 0; 139 // none exists.
140 virtual string16 LearnMoreTextForField(ServerFieldType type) const = 0;
140 141
141 // Whether a particular DetailInput in |section| should be edited or not. 142 // Whether a particular DetailInput in |section| should be edited or not.
142 virtual bool InputIsEditable(const DetailInput& input, 143 virtual bool InputIsEditable(const DetailInput& input,
143 DialogSection section) = 0; 144 DialogSection section) = 0;
144 145
145 // Decides whether input of |value| is valid for a field of type |type|. If 146 // Decides whether input of |value| is valid for a field of type |type|. If
146 // valid, the returned string will be empty. Otherwise it will contain an 147 // valid, the returned string will be empty. Otherwise it will contain an
147 // error message. 148 // error message.
148 virtual string16 InputValidityMessage(DialogSection section, 149 virtual string16 InputValidityMessage(DialogSection section,
149 ServerFieldType type, 150 ServerFieldType type,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // The web contents that prompted the dialog. 215 // The web contents that prompted the dialog.
215 virtual content::WebContents* GetWebContents() = 0; 216 virtual content::WebContents* GetWebContents() = 0;
216 217
217 protected: 218 protected:
218 virtual ~AutofillDialogViewDelegate(); 219 virtual ~AutofillDialogViewDelegate();
219 }; 220 };
220 221
221 } // namespace autofill 222 } // namespace autofill
222 223
223 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ 224 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698