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

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

Issue 1866523002: [Mac] Update location bar colors when change themes in Material Design. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up for review. Created 4 years, 8 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/location_bar_view_mac.h
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
index b0469bc9f3d10d5c71e6c97a6fabe9c5b937b0a7..0e0bb477719f3957a4ffd4147a17e7f62ae96b1c 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
@@ -162,11 +162,19 @@ class LocationBarViewMac : public LocationBar,
// Set the location bar's icon to the correct image for the current URL.
void UpdateLocationIcon();
+ // Set the location bar's controls to visibly match the current theme.
+ void UpdateColorsToMatchTheme();
+
// Notify the location bar that it was added to the browser window. Provides
// an update point for interface objects that need to set their appearance
// based on the window's theme.
void OnAddedToWindow();
+ // Notify the location bar that the browser window theme has changed. Provides
+ // an update point for interface objects that need to set their appearance
+ // based on the window's theme.
+ void OnThemeChanged();
+
// ChromeOmniboxEditController:
void UpdateWithoutTabRestore() override;
void OnChanged() override;

Powered by Google App Engine
This is Rietveld 408576698