OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_TYPOGRAPHY_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_TYPOGRAPHY_PROVIDER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "ui/views/style/typography_provider.h" |
| 10 |
| 11 // TypographyProvider implementing the Harmony spec. |
| 12 class HarmonyTypographyProvider : public views::TypographyProvider { |
| 13 public: |
| 14 HarmonyTypographyProvider() = default; |
| 15 |
| 16 // TypographyProvider: |
| 17 const gfx::FontList& GetFont(int text_context, int text_style) const override; |
| 18 SkColor GetColor(int context, int style) const override; |
| 19 int GetLineHeight(int context, int style) const override; |
| 20 |
| 21 private: |
| 22 DISALLOW_COPY_AND_ASSIGN(HarmonyTypographyProvider); |
| 23 }; |
| 24 |
| 25 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_TYPOGRAPHY_PROVIDER_H_ |
OLD | NEW |