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

Unified Diff: chrome/browser/ui/libgtkui/gtk_util.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/libgtkui/gtk_ui.cc ('k') | chrome/browser/ui/libgtkui/gtk_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtkui/gtk_util.h
diff --git a/chrome/browser/ui/libgtkui/gtk_util.h b/chrome/browser/ui/libgtkui/gtk_util.h
index d679f33fd61fc1cad1da0eadef74c006bb86bd62..c7d63ecd7493e5d6b9b988866da09e544e41fa6d 100644
--- a/chrome/browser/ui/libgtkui/gtk_util.h
+++ b/chrome/browser/ui/libgtkui/gtk_util.h
@@ -19,12 +19,20 @@ class CommandLine;
class Environment;
}
+namespace color_utils {
+struct HSL;
+}
+
namespace ui {
class Accelerator;
}
namespace libgtkui {
+// Default frame tints
+extern const color_utils::HSL kDefaultTintFrameIncognito;
+extern const color_utils::HSL kDefaultTintFrameIncognitoInactive;
+
extern const SkColor kInvalidColorIdColor;
extern const SkColor kURLTextColor;
@@ -131,10 +139,19 @@ typedef ScopedGObject<GtkStyleContext> ScopedStyleContext;
// must g_object_unref() the returned context.
ScopedStyleContext GetStyleContextFromCss(const char* css_selector);
+// Removes all border-type properties on |context| and all of its parents.
+void RemoveBorders(GtkStyleContext* context);
+
// Get the 'color' property from the style context created by
// GetStyleContextFromCss(|css_selector|).
SkColor GetFgColor(const char* css_selector);
+// Renders the backgrounds of all ancestors of |context|, then renders
+// the background for |context| itself.
+void RenderBackground(const gfx::Size& size,
+ cairo_t* cr,
+ GtkStyleContext* context);
+
// Renders a background from the style context created by
// GetStyleContextFromCss(|css_selector|) into a single pixel and
// returns the color.
« no previous file with comments | « chrome/browser/ui/libgtkui/gtk_ui.cc ('k') | chrome/browser/ui/libgtkui/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698