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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.h

Issue 1821823004: [Mac][Material Design] Update Omnibox dropdown on Mac to MD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback. 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/omnibox/omnibox_popup_view_mac.h
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.h b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.h
index 5d6c1b422f5e7d3001230cf91fe973da7ffad70e..3d2dc9bf00d22fd3f627f82397d867310a625a2e 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.h
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.h
@@ -32,6 +32,9 @@ class OmniboxPopupViewMac : public OmniboxPopupView,
NSTextField* field);
~OmniboxPopupViewMac() override;
+ // Return the OmniboxPopupViewMac background color.
+ static NSColor* BackgroundColor(bool is_dark_theme);
+
// Overridden from OmniboxPopupView:
bool IsOpen() const override;
void InvalidateLine(size_t line) override {}
@@ -50,7 +53,8 @@ class OmniboxPopupViewMac : public OmniboxPopupView,
size_t row) override;
// Returns the NSImage that should be used as an icon for the given match.
- NSImage* ImageForMatch(const AutocompleteMatch& match) const;
+ NSImage* ImageForMatch(const AutocompleteMatch& match,
+ BOOL ignore_dark_theme) const;
OmniboxPopupMatrix* matrix() { return matrix_; }

Powered by Google App Engine
This is Rietveld 408576698