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

Side by Side Diff: chrome/browser/ui/autofill/new_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 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_NEW_CREDIT_CARD_BUBBLE_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_NEW_CREDIT_CARD_BUBBLE_H_
7
8 #include "base/memory/weak_ptr.h"
9
10 namespace autofill {
11
12 class NewCreditCardBubbleController;
13
14 ////////////////////////////////////////////////////////////////////////////////
Evan Stade 2013/08/08 22:43:20 This comment block is overkill, why not just // c
Dan Beam 2013/08/09 01:47:58 Done.
15 //
16 // NewCreditCardBubble
17 //
18 // A cross-platform interface for a bubble that is shown when a new credit card
19 // is saved. Points at the settings menu in the toolbar and hides when
20 // activation is lost.
21 //
22 ////////////////////////////////////////////////////////////////////////////////
23 class NewCreditCardBubble {
Evan Stade 2013/08/08 22:43:20 ditto on naming convention.
Dan Beam 2013/08/09 01:47:58 Done.
24 public:
25 virtual ~NewCreditCardBubble();
26
27 // Visually reveals the bubble.
28 virtual void Show() = 0;
29
30 // Hides the bubble from view.
31 virtual void Hide() = 0;
32
33 // Creates a bubble that's operated by |controller| and owns itself.
34 // |controller| may be invalid while the bubble is closing.
35 static base::WeakPtr<NewCreditCardBubble> Create(
36 const base::WeakPtr<NewCreditCardBubbleController>& controller);
37 };
38
39 } // namespace autofill
40
41 #endif // CHROME_BROWSER_UI_AUTOFILL_NEW_CREDIT_CARD_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698