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

Side by Side Diff: chrome/browser/ui/views/location_bar/save_credit_card_icon_view.h

Issue 1396923003: Autofill: Replace "save credit card" infobar with a bubble (Views only). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweak SaveCardBubbleControllerImpl::DidNavigateMainFrame logic. Created 5 years, 1 month 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
OLDNEW
(Empty)
1 // Copyright 2015 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_VIEWS_LOCATION_BAR_SAVE_CREDIT_CARD_ICON_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SAVE_CREDIT_CARD_ICON_VIEW_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/ui/views/location_bar/bubble_icon_view.h"
10
11 class Browser;
12 class CommandUpdater;
13
14 // The icon to show the Save Credit Card bubble where the user can choose to
15 // save the credit card info to use again later without re-entering it.
16 class SaveCreditCardIconView : public BubbleIconView {
17 public:
18 explicit SaveCreditCardIconView(CommandUpdater* command_updater,
19 Browser* browser);
20 ~SaveCreditCardIconView() override;
21
22 // Toggles the icon on or off.
23 void SetToggled(bool on);
24
25 protected:
26 // BubbleIconView:
27 void OnExecuting(BubbleIconView::ExecuteSource execute_source) override;
28 views::BubbleDelegateView* GetBubble() const override;
29
30 private:
31 // May be nullptr.
sky 2015/10/26 20:56:26 AFAICT browser_ is always non-null. Am I missing s
bondd 2015/10/27 01:06:39 browser_ is null if LocationBarView is created thr
sky 2015/10/27 20:58:25 Acknowledged.
32 Browser* browser_;
33
34 DISALLOW_COPY_AND_ASSIGN(SaveCreditCardIconView);
35 };
36
37 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SAVE_CREDIT_CARD_ICON_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698