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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/location_bar/generated_credit_card_view.h
diff --git a/chrome/browser/ui/views/location_bar/autofill_credit_card_view.h b/chrome/browser/ui/views/location_bar/generated_credit_card_view.h
similarity index 54%
rename from chrome/browser/ui/views/location_bar/autofill_credit_card_view.h
rename to chrome/browser/ui/views/location_bar/generated_credit_card_view.h
index 169c5f242af82c77bb1faa522f59ed1a53347899..1c1c051659b81c3812309a5f59804b7cf79dfe3f 100644
--- a/chrome/browser/ui/views/location_bar/autofill_credit_card_view.h
+++ b/chrome/browser/ui/views/location_bar/generated_credit_card_view.h
@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_AUTOFILL_CREDIT_CARD_VIEW_H_
-#define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_AUTOFILL_CREDIT_CARD_VIEW_H_
+#ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_GENERATED_CREDIT_CARD_VIEW_H_
+#define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_GENERATED_CREDIT_CARD_VIEW_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
-#include "chrome/browser/ui/autofill/autofill_credit_card_bubble_controller.h"
+#include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h"
#include "chrome/browser/ui/views/location_bar/location_bar_decoration_view.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "ui/views/controls/image_view.h"
@@ -15,23 +15,23 @@
class ToolbarModel;
namespace autofill {
-class AutofillCreditCardBubbleController;
+class GeneratedCreditCardBubbleController;
}
////////////////////////////////////////////////////////////////////////////////
//
-// AutofillCreditCardView
+// GeneratedCreditCardView
//
-// An icon that shows up in the omnibox after successfully submitting the
-// Autofill dialog. Used as an anchor and click target to show the associated
+// 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.
+// card number. Used as an anchor and click target to show the associated
// bubble with more details about the credit cards saved or used.
//
////////////////////////////////////////////////////////////////////////////////
-class AutofillCreditCardView : public LocationBarDecorationView {
+class GeneratedCreditCardView : public LocationBarDecorationView {
public:
- AutofillCreditCardView(ToolbarModel* toolbar_model,
+ GeneratedCreditCardView(ToolbarModel* toolbar_model,
LocationBarView::Delegate* delegate);
- virtual ~AutofillCreditCardView();
+ virtual ~GeneratedCreditCardView();
void Update();
@@ -41,14 +41,14 @@ class AutofillCreditCardView : public LocationBarDecorationView {
virtual void OnClick() OVERRIDE;
private:
- // Helper to get the AutofillCreditCardBubbleController associated with the
+ // Helper to get the GeneratedCreditCardBubbleController associated with the
// current web contents.
- autofill::AutofillCreditCardBubbleController* GetController() const;
+ autofill::GeneratedCreditCardBubbleController* GetController() const;
ToolbarModel* toolbar_model_; // weak; outlives us.
LocationBarView::Delegate* delegate_; // weak; outlives us.
- DISALLOW_COPY_AND_ASSIGN(AutofillCreditCardView);
+ DISALLOW_COPY_AND_ASSIGN(GeneratedCreditCardView);
};
-#endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_AUTOFILL_CREDIT_CARD_VIEW_H_
+#endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_GENERATED_CREDIT_CARD_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698