OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_TYPOGRAPHY_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_TYPOGRAPHY_PROVIDER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_TYPOGRAPHY_PROVIDER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_TYPOGRAPHY_PROVIDER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/views/style/typography_provider.h" | 9 #include "ui/views/style/typography_provider.h" |
10 | 10 |
11 // TypographyProvider implementing the Harmony spec. | 11 // TypographyProvider implementing the Harmony spec. |
12 class HarmonyTypographyProvider : public views::TypographyProvider { | 12 class HarmonyTypographyProvider : public views::TypographyProvider { |
13 public: | 13 public: |
14 HarmonyTypographyProvider() = default; | 14 HarmonyTypographyProvider() = default; |
15 | 15 |
16 // TypographyProvider: | 16 // TypographyProvider: |
17 const gfx::FontList& GetFont(int text_context, int text_style) const override; | 17 const gfx::FontList& GetFont(int context, int style) const override; |
18 SkColor GetColor(int context, int style) const override; | 18 SkColor GetColor(int context, |
| 19 int style, |
| 20 const ui::NativeTheme& theme) const override; |
19 int GetLineHeight(int context, int style) const override; | 21 int GetLineHeight(int context, int style) const override; |
20 | 22 |
21 private: | 23 private: |
22 DISALLOW_COPY_AND_ASSIGN(HarmonyTypographyProvider); | 24 DISALLOW_COPY_AND_ASSIGN(HarmonyTypographyProvider); |
23 }; | 25 }; |
24 | 26 |
25 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_TYPOGRAPHY_PROVIDER_H_ | 27 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_TYPOGRAPHY_PROVIDER_H_ |
OLD | NEW |