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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.h
diff --git a/chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.h b/chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..c3b7d9e72b9ea041f2b906a2eadbc1b0abc353b5
--- /dev/null
+++ b/chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.h
@@ -0,0 +1,44 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_AUTOFILL_MOCK_NEW_CREDIT_CARD_BUBBLE_CONTROLLER_H_
+#define CHROME_BROWSER_UI_AUTOFILL_MOCK_NEW_CREDIT_CARD_BUBBLE_CONTROLLER_H_
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace autofill {
+
+class AutofillProfile;
+class CreditCard;
+
+class MockNewCreditCardBubbleController {
+ public:
+ MockNewCreditCardBubbleController();
+
+ ~MockNewCreditCardBubbleController();
+
+ void Show(scoped_ptr<CreditCard> new_card,
+ scoped_ptr<AutofillProfile> billing_profile);
+
+ const CreditCard* new_card() const { return new_card_.get(); }
+
+ const AutofillProfile* billing_profile() const {
+ return billing_profile_.get();
+ }
+
+ int bubbles_shown() const { return bubbles_shown_; }
+
+ private:
+ scoped_ptr<CreditCard> new_card_;
+ scoped_ptr<AutofillProfile> billing_profile_;
+
+ int bubbles_shown_;
+
+ DISALLOW_COPY_AND_ASSIGN(MockNewCreditCardBubbleController);
+};
+
+} // namespace autofill
+
+#endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_NEW_CREDIT_CARD_BUBBLE_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698