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

Unified Diff: ui/native_theme/native_theme.h

Issue 2628043002: Gtk3: Render a GtkHeaderBar as the background of the tab strip (Closed)
Patch Set: Guard kFrameTopArea with #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 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
« no previous file with comments | « chrome/browser/ui/views/frame/opaque_browser_frame_view.cc ('k') | ui/native_theme/native_theme_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme.h
diff --git a/ui/native_theme/native_theme.h b/ui/native_theme/native_theme.h
index 3595dffc3945d8d7b40f5a71bb639fad02263758..f392162b82825e654a32ea949c892dde9fc4111d 100644
--- a/ui/native_theme/native_theme.h
+++ b/ui/native_theme/native_theme.h
@@ -45,6 +45,9 @@ class NATIVE_THEME_EXPORT NativeTheme {
// The part to be painted / sized.
enum Part {
kCheckbox,
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+ kFrameTopArea,
+#endif
kInnerSpinButton,
kMenuList,
kMenuPopupBackground,
@@ -109,6 +112,19 @@ class NATIVE_THEME_EXPORT NativeTheme {
SkColor background_color;
};
+ struct FrameTopAreaExtraParams {
+ // Distinguishes between active (foreground) and inactive
+ // (background) window frame styles.
+ bool is_active;
+ bool incognito;
+ // True when Chromium renders the titlebar. False when the window
+ // manager renders the titlebar.
+ bool use_custom_frame;
+ // 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 +223,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;
« no previous file with comments | « chrome/browser/ui/views/frame/opaque_browser_frame_view.cc ('k') | ui/native_theme/native_theme_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698