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

Side by Side Diff: chrome/browser/ui/views/location_bar/generated_credit_card_view.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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_AUTOFILL_CREDIT_CARD_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_GENERATED_CREDIT_CARD_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_AUTOFILL_CREDIT_CARD_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_GENERATED_CREDIT_CARD_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/ui/autofill/autofill_credit_card_bubble_controller.h" 10 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h"
11 #include "chrome/browser/ui/views/location_bar/location_bar_decoration_view.h" 11 #include "chrome/browser/ui/views/location_bar/location_bar_decoration_view.h"
12 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" 12 #include "chrome/browser/ui/views/location_bar/location_bar_view.h"
13 #include "ui/views/controls/image_view.h" 13 #include "ui/views/controls/image_view.h"
14 14
15 class ToolbarModel; 15 class ToolbarModel;
16 16
17 namespace autofill { 17 namespace autofill {
18 class AutofillCreditCardBubbleController; 18 class GeneratedCreditCardBubbleController;
19 } 19 }
20 20
21 //////////////////////////////////////////////////////////////////////////////// 21 ////////////////////////////////////////////////////////////////////////////////
22 // 22 //
23 // AutofillCreditCardView 23 // GeneratedCreditCardView
24 // 24 //
25 // An icon that shows up in the omnibox after successfully submitting the 25 // An icon that shows up in the omnibox after successfully generating credit
Peter Kasting 2013/08/09 18:15:28 Nit: credit -> a credit
Dan Beam 2013/08/09 18:56:54 Done.
26 // Autofill dialog. Used as an anchor and click target to show the associated 26 // card number. Used as an anchor and click target to show the associated
27 // bubble with more details about the credit cards saved or used. 27 // bubble with more details about the credit cards saved or used.
28 // 28 //
29 //////////////////////////////////////////////////////////////////////////////// 29 ////////////////////////////////////////////////////////////////////////////////
30 class AutofillCreditCardView : public LocationBarDecorationView { 30 class GeneratedCreditCardView : public LocationBarDecorationView {
31 public: 31 public:
32 AutofillCreditCardView(ToolbarModel* toolbar_model, 32 GeneratedCreditCardView(ToolbarModel* toolbar_model,
33 LocationBarView::Delegate* delegate); 33 LocationBarView::Delegate* delegate);
34 virtual ~AutofillCreditCardView(); 34 virtual ~GeneratedCreditCardView();
35 35
36 void Update(); 36 void Update();
37 37
38 protected: 38 protected:
39 // LocationBarDecorationView: 39 // LocationBarDecorationView:
40 virtual bool CanHandleClick() const OVERRIDE; 40 virtual bool CanHandleClick() const OVERRIDE;
41 virtual void OnClick() OVERRIDE; 41 virtual void OnClick() OVERRIDE;
42 42
43 private: 43 private:
44 // Helper to get the AutofillCreditCardBubbleController associated with the 44 // Helper to get the GeneratedCreditCardBubbleController associated with the
45 // current web contents. 45 // current web contents.
46 autofill::AutofillCreditCardBubbleController* GetController() const; 46 autofill::GeneratedCreditCardBubbleController* GetController() const;
47 47
48 ToolbarModel* toolbar_model_; // weak; outlives us. 48 ToolbarModel* toolbar_model_; // weak; outlives us.
49 LocationBarView::Delegate* delegate_; // weak; outlives us. 49 LocationBarView::Delegate* delegate_; // weak; outlives us.
50 50
51 DISALLOW_COPY_AND_ASSIGN(AutofillCreditCardView); 51 DISALLOW_COPY_AND_ASSIGN(GeneratedCreditCardView);
52 }; 52 };
53 53
54 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_AUTOFILL_CREDIT_CARD_VIEW_H_ 54 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_GENERATED_CREDIT_CARD_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698