Chromium Code Reviews| Index: ash/ash_typography.cc |
| diff --git a/ash/ash_typography.cc b/ash/ash_typography.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..48863dff57129488606df516a7ba3ae6a0ca9576 |
| --- /dev/null |
| +++ b/ash/ash_typography.cc |
| @@ -0,0 +1,23 @@ |
| +// 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. |
| + |
| +#include "ash/ash_typography.h" |
| + |
| +namespace ash { |
| + |
| +void GetDefaultAshFont(int context, |
| + int style, |
| + int* size_delta, |
| + gfx::Font::Weight* font_weight) { |
| + switch (context) { |
| + case CONTEXT_LAUNCHER_BUTTON: |
| + *size_delta = 2; |
| + break; |
| + case CONTEXT_TOAST_OVERLAY: |
| + *size_delta = 3; |
| + break; |
| + } |
|
sky
2017/05/12 17:00:11
Don't you need a default: NOTREACHED?
tapted
2017/05/15 23:02:32
I think this was confusing so I've renamed this me
|
| +} |
| + |
| +} // namespace ash |