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

Side by Side Diff: chrome/browser/ui/views/harmony/harmony_typography_provider.h

Issue 2765883004: Implement Harmony typography spec. (Closed)
Patch Set: respond to comments Created 3 years, 8 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698