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 ASH_COMMON_ASH_TYPOGRAPHY_H_ | |
6 #define ASH_COMMON_ASH_TYPOGRAPHY_H_ | |
7 | |
8 #include "ash/ash_export.h" | |
9 #include "ui/gfx/font.h" | |
10 #include "ui/views/style/typography.h" | |
11 | |
12 namespace ash { | |
13 | |
14 enum AshTextContext { | |
sky
2017/05/12 17:00:11
With the mustash work we want the only headers tha
tapted
2017/05/15 23:02:32
Done.
| |
15 ASH_TEXT_CONTEXT_START = views::style::VIEWS_TEXT_CONTEXT_END, | |
16 | |
17 // A button that appears in the launcher's status area. | |
18 CONTEXT_LAUNCHER_BUTTON = ASH_TEXT_CONTEXT_START, | |
19 | |
20 // Buttons and labels that appear in the fullscreen toast overlay UI. | |
21 CONTEXT_TOAST_OVERLAY, | |
22 | |
23 ASH_TEXT_CONTEXT_END | |
24 }; | |
25 | |
26 // Sets the |size_delta| and |font_weight| for ash-specific text contexts. | |
27 // Values are only set for contexts specific to ash. | |
28 void ASH_EXPORT GetDefaultAshFont(int context, | |
29 int style, | |
30 int* size_delta, | |
31 gfx::Font::Weight* font_weight); | |
32 | |
33 } // namespace ash | |
34 | |
35 #endif // ASH_COMMON_ASH_TYPOGRAPHY_H_ | |
OLD | NEW |