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_PUBLIC_CPP_ASH_TYPOGRAPHY_H_ | |
tapted
2017/05/15 23:02:33
I couldn't decide whether to drop the "ash_" and j
Peter Kasting
2017/05/15 23:29:47
You could solve this inconsistency by dropping it
| |
6 #define ASH_PUBLIC_CPP_ASH_TYPOGRAPHY_H_ | |
7 | |
8 #include "ash/public/cpp/ash_public_export.h" | |
9 #include "ui/gfx/font.h" | |
10 #include "ui/views/style/typography.h" | |
11 | |
12 namespace ash { | |
13 | |
14 enum AshTextContext { | |
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_PUBLIC_EXPORT ApplyAshFontStyles(int context, | |
29 int style, | |
30 int* size_delta, | |
31 gfx::Font::Weight* font_weight); | |
32 | |
33 } // namespace ash | |
34 | |
35 #endif // ASH_PUBLIC_CPP_ASH_TYPOGRAPHY_H_ | |
OLD | NEW |