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

Unified Diff: chrome/browser/ui/cocoa/location_bar/save_credit_card_decoration.h

Issue 1718563002: Convert location bar decorations to Material Design (Mac). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md_toolbar
Patch Set: Fix issue from browser test. Created 4 years, 9 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/cocoa/location_bar/save_credit_card_decoration.h
diff --git a/chrome/browser/ui/cocoa/location_bar/save_credit_card_decoration.h b/chrome/browser/ui/cocoa/location_bar/save_credit_card_decoration.h
index 7301018b288d4f610cd7416627eba725bf5ec0fc..802d76771a3d86195b48b0fd05f2518e14ceedb4 100644
--- a/chrome/browser/ui/cocoa/location_bar/save_credit_card_decoration.h
+++ b/chrome/browser/ui/cocoa/location_bar/save_credit_card_decoration.h
@@ -20,6 +20,11 @@ class SaveCreditCardDecoration : public ImageDecoration {
explicit SaveCreditCardDecoration(CommandUpdater* command_updater);
~SaveCreditCardDecoration() override;
+ // Set up the SaveCreditCardDecoration's icon to match the darkness of the
+ // location bar. This happens once the location bar has been added to the
+ // window so that we know the theme.
+ void SetIcon(bool locationBarIsDark);
+
// LocationBarDecoration implementation:
bool AcceptsMousePress() override;
bool OnMousePressed(NSRect frame, NSPoint location) override;

Powered by Google App Engine
This is Rietveld 408576698