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

Side by Side Diff: chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_AUTOFILL_MOCK_NEW_CREDIT_CARD_BUBBLE_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_MOCK_NEW_CREDIT_CARD_BUBBLE_CONTROLLER_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10
11 namespace autofill {
12
13 class AutofillProfile;
14 class CreditCard;
15
16 class MockNewCreditCardBubbleController {
17 public:
18 MockNewCreditCardBubbleController();
19
20 ~MockNewCreditCardBubbleController();
21
22 void Show(scoped_ptr<CreditCard> new_card,
23 scoped_ptr<AutofillProfile> billing_profile);
24
25 const CreditCard* new_card() const { return new_card_.get(); }
26
27 const AutofillProfile* billing_profile() const {
28 return billing_profile_.get();
29 }
30
31 int bubbles_shown() const { return bubbles_shown_; }
32
33 private:
34 scoped_ptr<CreditCard> new_card_;
35 scoped_ptr<AutofillProfile> billing_profile_;
36
37 int bubbles_shown_;
38
39 DISALLOW_COPY_AND_ASSIGN(MockNewCreditCardBubbleController);
40 };
41
42 } // namespace autofill
43
44 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_NEW_CREDIT_CARD_BUBBLE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698