| Index: chrome/browser/ui/views/harmony/chrome_layout_provider.h
|
| diff --git a/chrome/browser/ui/views/harmony/chrome_layout_provider.h b/chrome/browser/ui/views/harmony/chrome_layout_provider.h
|
| index c5185da53819f1798c03865be39c474a3096ca57..e931ff9f548c1c0cb621c0ead5211d59ec14ea29 100644
|
| --- a/chrome/browser/ui/views/harmony/chrome_layout_provider.h
|
| +++ b/chrome/browser/ui/views/harmony/chrome_layout_provider.h
|
| @@ -12,6 +12,11 @@
|
| #include "ui/views/layout/grid_layout.h"
|
| #include "ui/views/layout/layout_provider.h"
|
|
|
| +enum ChromeInsetsMetric {
|
| + // Margins used by toasts.
|
| + INSETS_TOAST = views::VIEWS_INSETS_END,
|
| +};
|
| +
|
| enum ChromeDistanceMetric {
|
| // Default minimum width of a button.
|
| DISTANCE_BUTTON_MINIMUM_WIDTH = views::VIEWS_DISTANCE_END,
|
| @@ -33,6 +38,10 @@ enum ChromeDistanceMetric {
|
| // Horizontal indent of a subsection relative to related items above, e.g.
|
| // checkboxes below explanatory text/headings.
|
| DISTANCE_SUBSECTION_HORIZONTAL_INDENT,
|
| + // Vertical margin for controls in a toast.
|
| + DISTANCE_TOAST_CONTROL_VERTICAL,
|
| + // Vertical margin for labels in a toast.
|
| + DISTANCE_TOAST_LABEL_VERTICAL,
|
| // Horizontal spacing between controls that are logically unrelated.
|
| DISTANCE_UNRELATED_CONTROL_HORIZONTAL,
|
| // Larger horizontal spacing between unrelated controls.
|
| @@ -54,6 +63,7 @@ class ChromeLayoutProvider : public views::LayoutProvider {
|
| static int GetControlHeightForFont(const gfx::FontList& font);
|
|
|
| // views::LayoutProvider:
|
| + gfx::Insets GetInsetsMetric(int metric) const override;
|
| int GetDistanceMetric(int metric) const override;
|
| const views::TypographyProvider& GetTypographyProvider() const override;
|
|
|
|
|