Chromium Code Reviews| Index: ui/gfx/platform_font_ios.h |
| diff --git a/ui/gfx/platform_font_ios.h b/ui/gfx/platform_font_ios.h |
| index 5cc1224c0adf8bbdc2995d8397fe0021e1289456..4fd21113bcf63621c951d197c2bfb59d1158ec8a 100644 |
| --- a/ui/gfx/platform_font_ios.h |
| +++ b/ui/gfx/platform_font_ios.h |
| @@ -18,8 +18,11 @@ class PlatformFontIOS : public PlatformFont { |
| int font_size); |
| // Overridden from PlatformFont: |
| - Font DeriveFont(int size_delta, int style) const override; |
| + Font DeriveFont(int size_delta, |
| + int style, |
| + gfx::Font::Weight weight) const override; |
|
Alexei Svitkine (slow)
2016/04/05 16:38:51
Remove gfx::
|
| int GetHeight() override; |
| + gfx::Font::Weight GetWeight() const override; |
|
Alexei Svitkine (slow)
2016/04/05 16:38:51
Remove gfx::
|
| int GetBaseline() override; |
| int GetCapHeight() override; |
| int GetExpectedTextWidth(int length) override; |
| @@ -31,13 +34,17 @@ class PlatformFontIOS : public PlatformFont { |
| NativeFont GetNativeFont() const override; |
| private: |
| - PlatformFontIOS(const std::string& font_name, int font_size, int style); |
| + PlatformFontIOS(const std::string& font_name, |
| + int font_size, |
| + int style, |
| + Font::Weight weight); |
| ~PlatformFontIOS() override {} |
| // Initialize the object with the specified parameters. |
| void InitWithNameSizeAndStyle(const std::string& font_name, |
| int font_size, |
| - int style); |
| + int style, |
| + gfx::Font::Weight weight); |
|
Alexei Svitkine (slow)
2016/04/05 16:38:51
Remove gfx::
|
| // Calculate and cache the font metrics. |
| void CalculateMetrics(); |
| @@ -45,6 +52,7 @@ class PlatformFontIOS : public PlatformFont { |
| std::string font_name_; |
| int font_size_; |
| int style_; |
| + gfx::Font::Weight weight_; |
|
Alexei Svitkine (slow)
2016/04/05 16:38:51
Remove gfx::
|
| // Cached metrics, generated at construction. |
| int height_; |