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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_matrix.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_matrix.h
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_matrix.h b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_matrix.h
index 920c8cfc22d60c235ec12d07fca479330126b37e..7666bb0d4c8cc71b6d9f85dfdd43146dcdd66651 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_matrix.h
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_matrix.h
@@ -68,14 +68,23 @@ class OmniboxPopupMatrixObserver {
CGFloat maxMatchContentsWidth_;
CGFloat answerLineHeight_;
+
+ // Left margin padding for the content (i.e. icon and text) in a cell.
+ CGFloat contentLeftPadding_;
+
+ // true if the OmniboxPopupMatrix should use the dark theme style.
+ BOOL hasDarkTheme_;
}
@property(retain, nonatomic) NSAttributedString* separator;
@property(nonatomic) CGFloat maxMatchContentsWidth;
@property(nonatomic) CGFloat answerLineHeight;
+@property(nonatomic) CGFloat contentLeftPadding;
+@property(nonatomic) BOOL hasDarkTheme;
tapted 2016/04/28 14:29:44 readonly?
shrike 2016/04/28 21:05:35 Sure.
// Create a zero-size matrix.
-- (instancetype)initWithObserver:(OmniboxPopupMatrixObserver*)observer;
+- (instancetype)initWithObserver:(OmniboxPopupMatrixObserver*)observer
+ forDarkTheme:(BOOL)isDarkTheme;
// Sets the observer.
- (void)setObserver:(OmniboxPopupMatrixObserver*)observer;

Powered by Google App Engine
This is Rietveld 408576698