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

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

Issue 14129005: Remove "Use billing for shipping" checkbox in favor of item in suggestions menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 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_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void UpdateProgressBar(double value); 89 void UpdateProgressBar(double value);
90 90
91 // Called when there is an error in an active Autocheckout flow. 91 // Called when there is an error in an active Autocheckout flow.
92 void OnAutocheckoutError(); 92 void OnAutocheckoutError();
93 93
94 // AutofillDialogController implementation. 94 // AutofillDialogController implementation.
95 virtual string16 DialogTitle() const OVERRIDE; 95 virtual string16 DialogTitle() const OVERRIDE;
96 virtual string16 AccountChooserText() const OVERRIDE; 96 virtual string16 AccountChooserText() const OVERRIDE;
97 virtual string16 SignInLinkText() const OVERRIDE; 97 virtual string16 SignInLinkText() const OVERRIDE;
98 virtual string16 EditSuggestionText() const OVERRIDE; 98 virtual string16 EditSuggestionText() const OVERRIDE;
99 virtual string16 UseBillingForShippingText() const OVERRIDE;
100 virtual string16 CancelButtonText() const OVERRIDE; 99 virtual string16 CancelButtonText() const OVERRIDE;
101 virtual string16 ConfirmButtonText() const OVERRIDE; 100 virtual string16 ConfirmButtonText() const OVERRIDE;
102 virtual string16 SaveLocallyText() const OVERRIDE; 101 virtual string16 SaveLocallyText() const OVERRIDE;
103 virtual string16 CancelSignInText() const OVERRIDE; 102 virtual string16 CancelSignInText() const OVERRIDE;
104 virtual string16 ProgressBarText() const OVERRIDE; 103 virtual string16 ProgressBarText() const OVERRIDE;
105 virtual string16 LegalDocumentsText() OVERRIDE; 104 virtual string16 LegalDocumentsText() OVERRIDE;
106 virtual DialogSignedInState SignedInState() const OVERRIDE; 105 virtual DialogSignedInState SignedInState() const OVERRIDE;
107 virtual bool ShouldShowSpinner() const OVERRIDE; 106 virtual bool ShouldShowSpinner() const OVERRIDE;
108 virtual bool ShouldOfferToSaveInChrome() const OVERRIDE; 107 virtual bool ShouldOfferToSaveInChrome() const OVERRIDE;
109 virtual ui::MenuModel* MenuModelForAccountChooser() OVERRIDE; 108 virtual ui::MenuModel* MenuModelForAccountChooser() OVERRIDE;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 virtual void RemoveSuggestion(const string16& value, 158 virtual void RemoveSuggestion(const string16& value,
160 int identifier) OVERRIDE; 159 int identifier) OVERRIDE;
161 virtual void ClearPreviewedForm() OVERRIDE; 160 virtual void ClearPreviewedForm() OVERRIDE;
162 161
163 // content::NotificationObserver implementation. 162 // content::NotificationObserver implementation.
164 virtual void Observe(int type, 163 virtual void Observe(int type,
165 const content::NotificationSource& source, 164 const content::NotificationSource& source,
166 const content::NotificationDetails& details) OVERRIDE; 165 const content::NotificationDetails& details) OVERRIDE;
167 166
168 // SuggestionsMenuModelDelegate implementation. 167 // SuggestionsMenuModelDelegate implementation.
169 virtual void SuggestionItemSelected(const SuggestionsMenuModel& model) 168 virtual void SuggestionItemSelected(SuggestionsMenuModel* model,
170 OVERRIDE; 169 size_t index) OVERRIDE;
171 170
172 // wallet::WalletClientDelegate implementation. 171 // wallet::WalletClientDelegate implementation.
173 virtual const AutofillMetrics& GetMetricLogger() const OVERRIDE; 172 virtual const AutofillMetrics& GetMetricLogger() const OVERRIDE;
174 virtual DialogType GetDialogType() const OVERRIDE; 173 virtual DialogType GetDialogType() const OVERRIDE;
175 virtual std::string GetRiskData() const OVERRIDE; 174 virtual std::string GetRiskData() const OVERRIDE;
176 virtual void OnDidAcceptLegalDocuments() OVERRIDE; 175 virtual void OnDidAcceptLegalDocuments() OVERRIDE;
177 virtual void OnDidAuthenticateInstrument(bool success) OVERRIDE; 176 virtual void OnDidAuthenticateInstrument(bool success) OVERRIDE;
178 virtual void OnDidGetFullWallet( 177 virtual void OnDidGetFullWallet(
179 scoped_ptr<wallet::FullWallet> full_wallet) OVERRIDE; 178 scoped_ptr<wallet::FullWallet> full_wallet) OVERRIDE;
180 virtual void OnDidGetWalletItems( 179 virtual void OnDidGetWalletItems(
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 DialogSection section) const; 318 DialogSection section) const;
320 // And the reverse. 319 // And the reverse.
321 DialogSection SectionForSuggestionsMenuModel( 320 DialogSection SectionForSuggestionsMenuModel(
322 const SuggestionsMenuModel& model); 321 const SuggestionsMenuModel& model);
323 322
324 // Suggested text and icons for sections. Suggestion text is used to show an 323 // Suggested text and icons for sections. Suggestion text is used to show an
325 // abidged overview of the currently used suggestion. Extra text is used when 324 // abidged overview of the currently used suggestion. Extra text is used when
326 // part of a section is suggested but part must be manually input (e.g. during 325 // part of a section is suggested but part must be manually input (e.g. during
327 // a CVC challenge or when using Autofill's CC section [never stores CVC]). 326 // a CVC challenge or when using Autofill's CC section [never stores CVC]).
328 string16 SuggestionTextForSection(DialogSection section); 327 string16 SuggestionTextForSection(DialogSection section);
328 gfx::Font::FontStyle SuggestionTextStyleForSection(DialogSection section)
329 const;
329 string16 RequiredActionTextForSection(DialogSection section) const; 330 string16 RequiredActionTextForSection(DialogSection section) const;
330 gfx::Image SuggestionIconForSection(DialogSection section); 331 gfx::Image SuggestionIconForSection(DialogSection section);
331 string16 ExtraSuggestionTextForSection(DialogSection section) const; 332 string16 ExtraSuggestionTextForSection(DialogSection section) const;
332 gfx::Image ExtraSuggestionIconForSection(DialogSection section) const; 333 gfx::Image ExtraSuggestionIconForSection(DialogSection section) const;
333 334
334 // Whether |section| should be showing an "Edit" link. 335 // Whether |section| should be showing an "Edit" link.
335 bool EditEnabledForSection(DialogSection section) const; 336 bool EditEnabledForSection(DialogSection section) const;
336 337
337 // Loads profiles that can suggest data for |type|. |field_contents| is the 338 // Loads profiles that can suggest data for |type|. |field_contents| is the
338 // part the user has already typed. |inputs| is the rest of section. 339 // part the user has already typed. |inputs| is the rest of section.
(...skipping 26 matching lines...) Expand all
365 bool IsManuallyEditingAnySection() const; 366 bool IsManuallyEditingAnySection() const;
366 367
367 // Whether all of the input fields currently showing in the dialog have valid 368 // Whether all of the input fields currently showing in the dialog have valid
368 // contents. 369 // contents.
369 bool AllSectionsAreValid() const; 370 bool AllSectionsAreValid() const;
370 371
371 // Whether all of the input fields currently showing in the given |section| of 372 // Whether all of the input fields currently showing in the given |section| of
372 // the dialog have valid contents. 373 // the dialog have valid contents.
373 bool SectionIsValid(DialogSection section) const; 374 bool SectionIsValid(DialogSection section) const;
374 375
376 // Returns true if |key| refers to a suggestion, as opposed to some control
377 // menu item.
378 bool IsASuggestionItemKey(const std::string& key);
379
375 // Whether the billing section should be used to fill in the shipping details. 380 // Whether the billing section should be used to fill in the shipping details.
376 bool ShouldUseBillingForShipping(); 381 bool ShouldUseBillingForShipping();
377 382
378 // Whether the user wishes to save information locally to Autofill. 383 // Whether the user wishes to save information locally to Autofill.
379 bool ShouldSaveDetailsLocally(); 384 bool ShouldSaveDetailsLocally();
380 385
381 // Change whether the controller is currently submitting details to Autofill 386 // Change whether the controller is currently submitting details to Autofill
382 // or Online Wallet (|is_submitting_|) and update the view. 387 // or Online Wallet (|is_submitting_|) and update the view.
383 void SetIsSubmitting(bool submitting); 388 void SetIsSubmitting(bool submitting);
384 389
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 529
525 // Whether or not there was an error in the Autocheckout flow. 530 // Whether or not there was an error in the Autocheckout flow.
526 bool had_autocheckout_error_; 531 bool had_autocheckout_error_;
527 532
528 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 533 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
529 }; 534 };
530 535
531 } // namespace autofill 536 } // namespace autofill
532 537
533 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 538 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller.h ('k') | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698