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

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

Issue 1990703002: [Material][Mac] Update Omnibox bubble decorations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 7 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_decoration.h
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h b/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h
index 239cef421446a14f74c898273b7cf7cf0d822367..a35e2d3e30d3494f4b37c24dee5e88a91bbf7805 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h
@@ -105,6 +105,9 @@ class LocationBarDecoration {
// omitted for this width;
static const CGFloat kOmittedWidth;
+ // Material text color if the location bar is dark.
+ static const SkColor kMaterialDarkModeTextColor;
+
protected:
// Gets the color used to draw the Material Design icon. The default
// implementation satisfies most cases - few subclasses should need to
@@ -116,6 +119,9 @@ class LocationBarDecoration {
// some decorations are assigned their icon (vs. creating it themselves).
virtual gfx::VectorIconId GetMaterialVectorIconId() const;
+ // Gets the color used for the divider. Only used in Material design.
+ NSColor* GetDividerColor(bool location_bar_is_dark) const;
+
private:
bool visible_;

Powered by Google App Engine
This is Rietveld 408576698