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

Unified Diff: ui/native_theme/native_theme.h

Issue 2628043002: Gtk3: Render a GtkHeaderBar as the background of the tab strip (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
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..d25806ca42fe844f90731e3dc18fcf0a8171a7d4 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,11 @@ class NATIVE_THEME_EXPORT NativeTheme {
SkColor background_color;
};
+ struct FrameTopAreaExtraParams {
+ bool is_active;
+ SkColor default_background_color; // The theme can ignore this color.
Tom (Use chromium acct) 2017/01/11 20:07:27 pkasting@: I was thinking of alternative ways to
Peter Kasting 2017/01/12 18:53:53 I think if I were going to change this, it would b
Tom (Use chromium acct) 2017/01/12 21:51:09 Changed the comment, hopefully this one's better
+ };
+
struct InnerSpinButtonExtraParams {
bool spin_up;
bool read_only;
@@ -207,6 +213,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;

Powered by Google App Engine
This is Rietveld 408576698