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

Unified Diff: chrome/browser/ui/autofill/generated_credit_card_bubble.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/autofill/generated_credit_card_bubble.h
diff --git a/chrome/browser/ui/autofill/generated_credit_card_bubble.h b/chrome/browser/ui/autofill/generated_credit_card_bubble.h
new file mode 100644
index 0000000000000000000000000000000000000000..5e62c4f61eb5b5d59cb6394dfe31eb7830a4f34f
--- /dev/null
+++ b/chrome/browser/ui/autofill/generated_credit_card_bubble.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_GENERATED_CREDIT_CARD_BUBBLE_H_
+#define CHROME_BROWSER_UI_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_H_
+
+#include "base/memory/weak_ptr.h"
+
+namespace autofill {
+
+class GeneratedCreditCardBubbleController;
+
+////////////////////////////////////////////////////////////////////////////////
+//
+// GeneratedCreditCardBubble
+//
+// A cross-platform interface for a bubble shown to educate users after a
+// credit card number is generated. Anchored to an omnibox icon and shown
+// either on creation or when the anchor is clicked. Hidden when focus is lost.
+//
+////////////////////////////////////////////////////////////////////////////////
+class GeneratedCreditCardBubble {
Evan Stade 2013/08/08 22:43:20 I think this should be called |GeneratedCreditCard
Dan Beam 2013/08/09 01:47:58 Done.
+ public:
+ virtual ~GeneratedCreditCardBubble();
+
+ // Visually reveals the bubble.
+ virtual void Show() = 0;
+
+ // Hides the bubble from view.
+ virtual void Hide() = 0;
+
+ // Returns whether the bubble is currently in the process of hiding itself.
+ virtual bool IsHiding() const = 0;
+
+ // Creates a bubble that's operated by |controller| and owns itself.
+ // |controller| may be invalid while the bubble is closing.
+ static base::WeakPtr<GeneratedCreditCardBubble> Create(
+ const base::WeakPtr<GeneratedCreditCardBubbleController>& controller);
+};
+
+} // namespace autofill
+
+#endif // CHROME_BROWSER_UI_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_H_

Powered by Google App Engine
This is Rietveld 408576698