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

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: compile 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 287
288 // Should be called on the Wallet sign-in error. 288 // Should be called on the Wallet sign-in error.
289 virtual void OnWalletSigninError(); 289 virtual void OnWalletSigninError();
290 290
291 // Whether the information input in this dialog will be securely transmitted 291 // Whether the information input in this dialog will be securely transmitted
292 // to the requesting site. 292 // to the requesting site.
293 virtual bool TransmissionWillBeSecure() const; 293 virtual bool TransmissionWillBeSecure() const;
294 294
295 AutocheckoutState autocheckout_state() const { return autocheckout_state_; } 295 AutocheckoutState autocheckout_state() const { return autocheckout_state_; }
296 296
297 // Shows a new credit card saved bubble and passes ownership of |new_card| and
298 // |billing_profile| to the bubble. Exposed for testing.
299 virtual void ShowNewCreditCardBubble(
300 scoped_ptr<CreditCard> new_card,
301 scoped_ptr<AutofillProfile> billing_profile);
302
297 private: 303 private:
298 // Whether or not the current request wants credit info back. 304 // Whether or not the current request wants credit info back.
299 bool RequestingCreditCardInfo() const; 305 bool RequestingCreditCardInfo() const;
300 306
301 // Initializes or updates |suggested_email_| et al. 307 // Initializes or updates |suggested_email_| et al.
302 void SuggestionsUpdated(); 308 void SuggestionsUpdated();
303 309
304 // Whether the user's wallet items have at least one address and instrument. 310 // Whether the user's wallet items have at least one address and instrument.
305 bool HasCompleteWallet() const; 311 bool HasCompleteWallet() const;
306 312
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 // show a bubble as the dialog closes to confirm a user's new card info was 722 // show a bubble as the dialog closes to confirm a user's new card info was
717 // saved. Never populated while incognito (as nothing's actually saved). 723 // saved. Never populated while incognito (as nothing's actually saved).
718 scoped_ptr<CreditCard> newly_saved_card_; 724 scoped_ptr<CreditCard> newly_saved_card_;
719 725
720 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 726 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
721 }; 727 };
722 728
723 } // namespace autofill 729 } // namespace autofill
724 730
725 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 731 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698