Chromium Code Reviews| Index: ui/native_theme/native_theme.h |
| diff --git a/ui/native_theme/native_theme.h b/ui/native_theme/native_theme.h |
| index 5f7a9d9ba5d82d55801f647f807d92fc3a029a87..32815e30e593a4cb70c9d64c202a149e3a7e4794 100644 |
| --- a/ui/native_theme/native_theme.h |
| +++ b/ui/native_theme/native_theme.h |
| @@ -45,6 +45,7 @@ class NATIVE_THEME_EXPORT NativeTheme { |
| // The part to be painted / sized. |
| enum Part { |
| kCheckbox, |
| + kFrameTopArea, |
| kInnerSpinButton, |
| kMenuList, |
| kMenuPopupBackground, |
| @@ -109,6 +110,16 @@ class NATIVE_THEME_EXPORT NativeTheme { |
| SkColor background_color; |
| }; |
| + struct FrameTopAreaExtraParams { |
| + // Distinguishes between active (foreground) and inactive |
| + // (background) window frame styles |
|
Peter Kasting
2017/01/12 22:02:56
Nit: Trailing period.
Tom (Use chromium acct)
2017/01/12 22:54:13
Done.
|
| + bool is_active; |
| + bool incognito; |
| + // If the NativeTheme will paint a solid color, it should use |
| + // |default_background_color|. |
| + SkColor default_background_color; |
| + }; |
| + |
| struct InnerSpinButtonExtraParams { |
| bool spin_up; |
| bool read_only; |
| @@ -207,6 +218,7 @@ class NATIVE_THEME_EXPORT NativeTheme { |
| ExtraParams(const ExtraParams& other); |
| ButtonExtraParams button; |
| + FrameTopAreaExtraParams frame_top_area; |
| InnerSpinButtonExtraParams inner_spin; |
| MenuArrowExtraParams menu_arrow; |
| MenuCheckExtraParams menu_check; |