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

Side by Side Diff: ash/common/ash_typography.h

Issue 2801583002: Use views::style for buttons, bootstrap ash_typography to do so. (Closed)
Patch Set: More self review 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 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 {
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 enum AshTextStyle {
Peter Kasting 2017/04/08 01:38:54 Do you need to add this enum at all? It seems lik
tapted 2017/04/10 12:27:33 removed.
27 ASH_TEXT_STYLE_START = views::style::VIEWS_TEXT_STYLE_END,
28 ASH_TEXT_STYLE_END
29 };
30
31 // Sets the |size_delta| and |font_weight| for ash-specific text contexts.
32 // Values are only set for contexts specific to ash.
33 void ASH_EXPORT GetDefaultAshFont(int context,
34 int style,
35 int* size_delta,
36 gfx::Font::Weight* font_weight);
37
38 } // namespace ash
39
40 #endif // ASH_COMMON_ASH_TYPOGRAPHY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698