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

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

Issue 21668003: Implement newly saved card bubble for realz and update generated card bubble to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 4 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 <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 284
285 // Should be called on the Wallet sign-in error. 285 // Should be called on the Wallet sign-in error.
286 virtual void OnWalletSigninError(); 286 virtual void OnWalletSigninError();
287 287
288 // Whether the information input in this dialog will be securely transmitted 288 // Whether the information input in this dialog will be securely transmitted
289 // to the requesting site. 289 // to the requesting site.
290 virtual bool TransmissionWillBeSecure() const; 290 virtual bool TransmissionWillBeSecure() const;
291 291
292 AutocheckoutState autocheckout_state() const { return autocheckout_state_; } 292 AutocheckoutState autocheckout_state() const { return autocheckout_state_; }
293 293
294 // Shows a new credit card saved bubble and passes ownership of |new_card| and
295 // |billing_profile| to the bubble. Exposed for testing.
296 virtual void ShowNewCreditCardBubble(
297 scoped_ptr<CreditCard> new_card,
298 scoped_ptr<AutofillProfile> billing_profile);
299
294 private: 300 private:
295 // Whether or not the current request wants credit info back. 301 // Whether or not the current request wants credit info back.
296 bool RequestingCreditCardInfo() const; 302 bool RequestingCreditCardInfo() const;
297 303
298 // Initializes or updates |suggested_email_| et al. 304 // Initializes or updates |suggested_email_| et al.
299 void SuggestionsUpdated(); 305 void SuggestionsUpdated();
300 306
301 // Whether the user's wallet items have at least one address and instrument. 307 // Whether the user's wallet items have at least one address and instrument.
302 bool HasCompleteWallet() const; 308 bool HasCompleteWallet() const;
303 309
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 // show a bubble as the dialog closes to confirm a user's new card info was 719 // show a bubble as the dialog closes to confirm a user's new card info was
714 // saved. Never populated while incognito (as nothing's actually saved). 720 // saved. Never populated while incognito (as nothing's actually saved).
715 scoped_ptr<CreditCard> newly_saved_card_; 721 scoped_ptr<CreditCard> newly_saved_card_;
716 722
717 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 723 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
718 }; 724 };
719 725
720 } // namespace autofill 726 } // namespace autofill
721 727
722 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 728 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698