diff options
Diffstat (limited to 'chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm')
-rw-r--r-- | chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm index efa97fe..0e8f701 100644 --- a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm +++ b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm @@ -1021,6 +1021,22 @@ NSFont* OmniboxViewMac::GetFieldFont(int style) { .GetPrimaryFont().GetNativeFont(); } +NSFont* OmniboxViewMac::GetLargeFont(int style) { + ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); + return rb.GetFontList(ui::ResourceBundle::LargeFont) + .Derive(1, style) + .GetPrimaryFont() + .GetNativeFont(); +} + +NSFont* OmniboxViewMac::GetSmallFont(int style) { + ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); + return rb.GetFontList(ui::ResourceBundle::SmallFont) + .Derive(1, style) + .GetPrimaryFont() + .GetNativeFont(); +} + int OmniboxViewMac::GetOmniboxTextLength() const { return static_cast<int>(GetTextLength()); } |