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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_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: Change object lifecycles + add interface classes. Created 5 years, 2 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/location_bar_view.h
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.h b/chrome/browser/ui/views/location_bar/location_bar_view.h
index a5d11271afbf1aae66559841551c61931cc833bd..92e7bbcb07e35c05122f61d5a124e2380afede4c 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.h
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.h
@@ -44,6 +44,7 @@ class ManagePasswordsIconView;
class PageActionWithBadgeView;
class PageActionImageView;
class Profile;
+class SaveCreditCardIconView;
class SelectedKeywordView;
class StarView;
class TemplateURLService;
@@ -174,6 +175,11 @@ class LocationBarView : public LocationBar,
// The star. It may not be visible.
StarView* star_view() { return star_view_; }
+ // The save credit card icon. It may not be visible.
+ SaveCreditCardIconView* save_credit_card_icon_view() {
+ return save_credit_card_icon_view_;
+ }
+
// Toggles the translate icon on or off.
void SetTranslateIconToggled(bool on);
@@ -301,6 +307,9 @@ class LocationBarView : public LocationBar,
// true if the visibility of the view changed.
bool RefreshZoomView();
+ // Updates |save_credit_card_icon_view_|. Returns true if visibility changed.
+ bool RefreshSaveCreditCardIconView();
+
// Updates the Translate icon based on the current tab's Translate status.
void RefreshTranslateIcon();
@@ -335,6 +344,7 @@ class LocationBarView : public LocationBar,
void FocusSearch() override;
void UpdateContentSettingsIcons() override;
void UpdateManagePasswordsIconAndBubble() override;
+ void UpdateSaveCreditCardIcon() override;
void UpdatePageActions() override;
void UpdateBookmarkStarVisibility() override;
void UpdateLocationBarVisibility(bool visible, bool animation) override;
@@ -451,6 +461,9 @@ class LocationBarView : public LocationBar,
// The page action icon views.
PageActionViews page_action_views_;
+ // The save credit card icon.
+ SaveCreditCardIconView* save_credit_card_icon_view_;
+
// The icon for Translate.
TranslateIconView* translate_icon_view_;

Powered by Google App Engine
This is Rietveld 408576698