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

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: merge 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 // Should be called on the Wallet sign-in error. 281 // Should be called on the Wallet sign-in error.
282 virtual void OnWalletSigninError(); 282 virtual void OnWalletSigninError();
283 283
284 // Whether the information input in this dialog will be securely transmitted 284 // Whether the information input in this dialog will be securely transmitted
285 // to the requesting site. 285 // to the requesting site.
286 virtual bool TransmissionWillBeSecure() const; 286 virtual bool TransmissionWillBeSecure() const;
287 287
288 AutocheckoutState autocheckout_state() const { return autocheckout_state_; } 288 AutocheckoutState autocheckout_state() const { return autocheckout_state_; }
289 289
290 // Shows a new credit card saved bubble and passes ownership of |new_card| and
291 // |billing_profile| to the bubble. Exposed for testing.
292 virtual void ShowNewCreditCardBubble(
293 scoped_ptr<CreditCard> new_card,
294 scoped_ptr<AutofillProfile> billing_profile);
295
290 private: 296 private:
291 // Whether or not the current request wants credit info back. 297 // Whether or not the current request wants credit info back.
292 bool RequestingCreditCardInfo() const; 298 bool RequestingCreditCardInfo() const;
293 299
294 // Initializes or updates |suggested_email_| et al. 300 // Initializes or updates |suggested_email_| et al.
295 void SuggestionsUpdated(); 301 void SuggestionsUpdated();
296 302
297 // Whether the user's wallet items have at least one address and instrument. 303 // Whether the user's wallet items have at least one address and instrument.
298 bool HasCompleteWallet() const; 304 bool HasCompleteWallet() const;
299 305
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 // show a bubble as the dialog closes to confirm a user's new card info was 712 // show a bubble as the dialog closes to confirm a user's new card info was
707 // saved. Never populated while incognito (as nothing's actually saved). 713 // saved. Never populated while incognito (as nothing's actually saved).
708 scoped_ptr<CreditCard> newly_saved_card_; 714 scoped_ptr<CreditCard> newly_saved_card_;
709 715
710 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 716 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
711 }; 717 };
712 718
713 } // namespace autofill 719 } // namespace autofill
714 720
715 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 721 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698