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

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: 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/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..7c5d1914531a3b2e4a9612f599d75015818d6288 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.h
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.h
@@ -27,6 +27,8 @@ class OmniboxView;
class OmniboxPopupViewMac : public OmniboxPopupView,
public OmniboxPopupMatrixObserver {
public:
+ // Return the OmniboxPopupViewMac background color.
+ static NSColor* BackgroundColor(BOOL is_dark_theme);
tapted 2016/04/28 14:29:44 hm - I think constructors come before static metho
shrike 2016/04/28 21:05:35 Done.
OmniboxPopupViewMac(OmniboxView* omnibox_view,
OmniboxEditModel* edit_model,
NSTextField* field);
@@ -50,7 +52,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