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

Unified Diff: chrome/browser/autocomplete/autocomplete_popup_view_mac.h

Issue 115334: Use the Mac omnibox field's font as the basis for the fonts used in the field and popup. (Closed)
Patch Set: Address Pink's comments. Created 11 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/autocomplete/autocomplete_popup_view_mac.h
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view_mac.h b/chrome/browser/autocomplete/autocomplete_popup_view_mac.h
index eb00d239270c5afd7e7d22cb77b441047c2b5655..c58328b7c15057240cd7a1cc38e7d26f2f716dc5 100644
--- a/chrome/browser/autocomplete/autocomplete_popup_view_mac.h
+++ b/chrome/browser/autocomplete/autocomplete_popup_view_mac.h
@@ -71,8 +71,10 @@ class AutocompletePopupViewMac : public AutocompletePopupView {
void AcceptInput();
// Return the text to show for the match, based on the match's
- // contents and description.
- static NSMutableAttributedString* MatchText(const AutocompleteMatch& match);
+ // contents and description. Result will be in |font|, with the
+ // boldfaced version used for matches.
+ static NSAttributedString* MatchText(const AutocompleteMatch& match,
+ NSFont* font);
// Helper for MatchText() to allow sharing code between the contents
// and description cases. Returns NSMutableAttributedString as a
@@ -80,7 +82,7 @@ class AutocompletePopupViewMac : public AutocompletePopupView {
static NSMutableAttributedString* DecorateMatchedString(
const std::wstring &matchString,
const AutocompleteMatch::ACMatchClassifications &classifications,
- NSColor* textColor);
+ NSColor* textColor, NSFont* font);
private:
// Create the popup_ instance if needed.
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_mac.mm ('k') | chrome/browser/autocomplete/autocomplete_popup_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698