| Index: chrome/browser/ui/views/location_bar/save_credit_card_icon_view.h
|
| diff --git a/chrome/browser/ui/views/location_bar/save_credit_card_icon_view.h b/chrome/browser/ui/views/location_bar/save_credit_card_icon_view.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6d9b645bcc113f422b718ece7129c20262a375f7
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/views/location_bar/save_credit_card_icon_view.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2015 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_SAVE_CREDIT_CARD_ICON_VIEW_H_
|
| +#define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SAVE_CREDIT_CARD_ICON_VIEW_H_
|
| +
|
| +#include "chrome/browser/ui/views/location_bar/bubble_icon_view.h"
|
| +
|
| +class CommandUpdater;
|
| +
|
| +// The icon to show the Save Credit Card bubble where the user can choose to
|
| +// save the credit card info to use again later without re-entering it.
|
| +class SaveCreditCardIconView : public BubbleIconView {
|
| + public:
|
| + explicit SaveCreditCardIconView(CommandUpdater* command_updater);
|
| + ~SaveCreditCardIconView() override;
|
| +
|
| + // Toggles the icon on or off.
|
| + void SetToggled(bool on);
|
| +
|
| + protected:
|
| + // BubbleIconView:
|
| + void OnExecuting(BubbleIconView::ExecuteSource execute_source) override;
|
| + views::BubbleDelegateView* GetBubble() const override;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(SaveCreditCardIconView);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SAVE_CREDIT_CARD_ICON_VIEW_H_
|
|
|