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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.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_cell.h
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.h b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.h
index 34d69e76d1522a4b255a0733be485c50922bfa45..53c08c879c948153520142e0f7e7ebb25b4d17d5 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.h
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.h
@@ -45,6 +45,7 @@ class OmniboxPopupViewMac;
@property(readonly, retain, nonatomic) NSAttributedString* description;
@property(readonly, retain, nonatomic) NSAttributedString* prefix;
@property(readonly, retain, nonatomic) NSImage* image;
+@property(retain, nonatomic) NSImage* incognitoImage;
@property(readonly, retain, nonatomic) NSImage* answerImage;
@property(readonly, nonatomic) CGFloat contentsOffset;
@property(readonly, nonatomic) BOOL isContentsRTL;
@@ -54,7 +55,8 @@ class OmniboxPopupViewMac;
- (instancetype)initWithMatch:(const AutocompleteMatch&)match
contentsOffset:(CGFloat)contentsOffset
image:(NSImage*)image
- answerImage:(NSImage*)answerImage;
+ answerImage:(NSImage*)answerImage
+ forDarkTheme:(BOOL)isDarkTheme;
// Returns the width of the match contents.
- (CGFloat)getMatchContentsWidth;
@@ -72,7 +74,7 @@ class OmniboxPopupViewMac;
// shared by all OmniboxPopupCell instances through OmniboxPopupViewMac parent.
+ (CGFloat)computeContentsOffset:(const AutocompleteMatch&)match;
-+ (NSAttributedString*)createSeparatorString;
++ (NSAttributedString*)createSeparatorStringForDarkTheme:(BOOL)isDarkTheme;
@end

Powered by Google App Engine
This is Rietveld 408576698