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

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

Issue 2057043002: Align the Mac Omnibox items vertically again. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_view_mac.h
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h
index b4cc9d4aa32d3b41d021f1daac49e53b322e0edb..cb311de3e3273b7e009348193a8be72d0302da90 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h
@@ -16,6 +16,7 @@
#include "components/omnibox/browser/omnibox_view.h"
#include "components/security_state/security_state_model.h"
#include "third_party/skia/include/core/SkColor.h"
+#include "ui/gfx/font.h"
class CommandUpdater;
class OmniboxPopupView;
@@ -126,10 +127,11 @@ class OmniboxViewMac : public OmniboxView,
// Helper to get the font to use in the field, exposed for the
// popup.
- static NSFont* GetNormalFieldFont();
- static NSFont* GetBoldFieldFont();
- static NSFont* GetLargeFont();
- static NSFont* GetSmallFont();
+ // The |style| parameter specifies the new style for the font, and is a
+ // bitmask of the values ITALIC and UNDERLINE (see ui/gfx/font.h).
+ static NSFont* GetFieldFont(int style, gfx::Font::Weight weight);
+ static NSFont* GetLargeFont(int style, gfx::Font::Weight weight);
+ static NSFont* GetSmallFont(int style, gfx::Font::Weight weight);
// If |resource_id| has a PDF image which can be used, return it.
// Otherwise return the PNG image from the resource bundle.

Powered by Google App Engine
This is Rietveld 408576698