Chromium Code Reviews| Index: ash/ash_typography.h |
| diff --git a/ash/ash_typography.h b/ash/ash_typography.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e3017a672b56cd0b06bf40c280cd6646da71a443 |
| --- /dev/null |
| +++ b/ash/ash_typography.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ASH_COMMON_ASH_TYPOGRAPHY_H_ |
| +#define ASH_COMMON_ASH_TYPOGRAPHY_H_ |
| + |
| +#include "ash/ash_export.h" |
| +#include "ui/gfx/font.h" |
| +#include "ui/views/style/typography.h" |
| + |
| +namespace ash { |
| + |
| +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.
|
| + ASH_TEXT_CONTEXT_START = views::style::VIEWS_TEXT_CONTEXT_END, |
| + |
| + // A button that appears in the launcher's status area. |
| + CONTEXT_LAUNCHER_BUTTON = ASH_TEXT_CONTEXT_START, |
| + |
| + // Buttons and labels that appear in the fullscreen toast overlay UI. |
| + CONTEXT_TOAST_OVERLAY, |
| + |
| + ASH_TEXT_CONTEXT_END |
| +}; |
| + |
| +// Sets the |size_delta| and |font_weight| for ash-specific text contexts. |
| +// Values are only set for contexts specific to ash. |
| +void ASH_EXPORT GetDefaultAshFont(int context, |
| + int style, |
| + int* size_delta, |
| + gfx::Font::Weight* font_weight); |
| + |
| +} // namespace ash |
| + |
| +#endif // ASH_COMMON_ASH_TYPOGRAPHY_H_ |