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

Unified Diff: chrome/browser/ui/views/location_bar/generated_credit_card_view.h

Issue 1303733002: rAc Wallet extirpation, round 2: remove generated card bubble code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another reference Created 5 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/generated_credit_card_view.h b/chrome/browser/ui/views/location_bar/generated_credit_card_view.h
deleted file mode 100644
index a784c1ad11db4732af46425f47a13b24a73c1ea7..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/location_bar/generated_credit_card_view.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// 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_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/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"
-
-namespace autofill {
-class GeneratedCreditCardBubbleController;
-}
-
-////////////////////////////////////////////////////////////////////////////////
-//
-// GeneratedCreditCardView
-//
-// An icon that shows up in the omnibox after successfully generating a credit
-// 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 GeneratedCreditCardView : public LocationBarDecorationView {
- public:
- explicit GeneratedCreditCardView(LocationBarView::Delegate* delegate);
- ~GeneratedCreditCardView() override;
-
- void Update();
-
- protected:
- // LocationBarDecorationView:
- bool CanHandleClick() const override;
- void OnClick() override;
-
- private:
- // Helper to get the GeneratedCreditCardBubbleController associated with the
- // current web contents.
- autofill::GeneratedCreditCardBubbleController* GetController() const;
-
- LocationBarView::Delegate* delegate_; // weak; outlives us.
-
- DISALLOW_COPY_AND_ASSIGN(GeneratedCreditCardView);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_GENERATED_CREDIT_CARD_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698