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

Unified Diff: ui/views/window/frame_background.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 | « ui/views/window/custom_frame_view.cc ('k') | ui/views/window/frame_background.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/frame_background.h
diff --git a/ui/views/window/frame_background.h b/ui/views/window/frame_background.h
index a420de556cf1e8e1643d6e67b3bbe3677e0e25e4..191e5209d94c947aede43d4aad6177eb4d6f3764 100644
--- a/ui/views/window/frame_background.h
+++ b/ui/views/window/frame_background.h
@@ -29,6 +29,16 @@ class VIEWS_EXPORT FrameBackground {
// Sets the color to draw under the frame images.
void set_frame_color(SkColor color) { frame_color_ = color; }
+ void set_use_custom_frame(bool use_custom_frame) {
+ use_custom_frame_ = use_custom_frame;
+ }
+
+ // Sets whether the frame to be drawn should have focus.
+ void set_is_active(bool is_active) { is_active_ = is_active; }
+
+ // Sets whether the frame to be drawn is in incognito mode.
+ void set_incognito(bool incognito) { incognito_ = incognito; }
+
// Sets the theme image for the top of the window. May be null (empty).
// Memory is owned by the caller.
void set_theme_image(const gfx::ImageSkia& image) { theme_image_ = image; }
@@ -74,7 +84,13 @@ class VIEWS_EXPORT FrameBackground {
// Fills the frame area with the frame color.
void PaintFrameColor(gfx::Canvas* canvas, const View* view) const;
+ // Paints the background of the tab strip.
+ void PaintFrameTopArea(gfx::Canvas* canvas, const View* view) const;
+
SkColor frame_color_;
+ bool use_custom_frame_;
+ bool is_active_;
+ bool incognito_;
gfx::ImageSkia theme_image_;
gfx::ImageSkia theme_overlay_image_;
int top_area_height_;
« no previous file with comments | « ui/views/window/custom_frame_view.cc ('k') | ui/views/window/frame_background.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698