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

Side by Side Diff: ash/public/cpp/ash_typography.h

Issue 2801583002: Use views::style for buttons, bootstrap ash_typography to do so. (Closed)
Patch Set: placate gn check. new_avatar_button now just avatar_button Created 3 years, 7 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
« no previous file with comments | « ash/public/cpp/BUILD.gn ('k') | ash/public/cpp/ash_typography.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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_
OLDNEW
« no previous file with comments | « ash/public/cpp/BUILD.gn ('k') | ash/public/cpp/ash_typography.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698