Index: chrome/browser/ui/autofill/new_credit_card_bubble.h |
diff --git a/chrome/browser/ui/autofill/new_credit_card_bubble.h b/chrome/browser/ui/autofill/new_credit_card_bubble.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6557c776223fc77e0a14737546cebe97ec8dce23 |
--- /dev/null |
+++ b/chrome/browser/ui/autofill/new_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_NEW_CREDIT_CARD_BUBBLE_H_ |
+#define CHROME_BROWSER_UI_AUTOFILL_NEW_CREDIT_CARD_BUBBLE_H_ |
+ |
+#include "base/memory/weak_ptr.h" |
+ |
+namespace autofill { |
+ |
+class NewCreditCardBubbleController; |
+ |
+//////////////////////////////////////////////////////////////////////////////// |
+// |
+// NewCreditCardBubble |
+// |
+// A cross-platform interface for a bubble that is shown when a new credit card |
+// is saved. Points at the settings menu in the toolbar and hides when |
+// activation is lost. |
+// |
+//////////////////////////////////////////////////////////////////////////////// |
+class NewCreditCardBubble { |
+ public: |
+ // The width of the bubble's contents. |
+ static const int kContentWidth; |
+ |
+ virtual ~NewCreditCardBubble(); |
+ |
+ // Visually reveal the bubble. |
+ virtual void Show() = 0; |
+ |
+ // Hide the bubble from view. |
+ virtual void Hide() = 0; |
+ |
+ // Create a bubble view that's operated by |controller| and owns itself. |
+ // |controller| may be invalid while the bubble is closing. |
+ static base::WeakPtr<NewCreditCardBubble> Create( |
+ const base::WeakPtr<NewCreditCardBubbleController>& controller); |
+}; |
+ |
+} // namespace autofill |
+ |
+#endif // CHROME_BROWSER_UI_AUTOFILL_NEW_CREDIT_CARD_BUBBLE_H_ |