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

Unified Diff: chrome/browser/ui/views/tabs/tab.h

Issue 2441863002: Remove some more !IsModeMaterial code. (Closed)
Patch Set: pull more shades Created 4 years, 2 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: chrome/browser/ui/views/tabs/tab.h
diff --git a/chrome/browser/ui/views/tabs/tab.h b/chrome/browser/ui/views/tabs/tab.h
index c02763933008e9c28119290f1a1420b56ec08df6..2b9658b82be260e68f6726ed53f942575bbbceb9 100644
--- a/chrome/browser/ui/views/tabs/tab.h
+++ b/chrome/browser/ui/views/tabs/tab.h
@@ -233,13 +233,16 @@ class Tab : public gfx::AnimationDelegate,
// Paint with the "immersive mode" light-bar style.
void PaintImmersiveTab(gfx::Canvas* canvas);
- // Paint various portions of the Tab.
+ // Paint the background of an inactive tab.
Peter Kasting 2016/10/21 21:07:51 Nit: Paints (Bonus if you also fix the other func
Evan Stade 2016/10/21 22:11:12 Done.
void PaintInactiveTabBackground(gfx::Canvas* canvas, const gfx::Path& clip);
+
+ // Paints a tab background using the image defined by |fill_id| at the
+ // provided offset. If |fill_id| is 0, it will fall back to using the solid
+ // color defined by the theme provider and ignore the offset.
void PaintTabBackgroundUsingFillId(gfx::Canvas* fill_canvas,
gfx::Canvas* stroke_canvas,
bool is_active,
int fill_id,
- bool has_custom_image,
int y_offset);
// Paints the pinned tab title changed indicator and |favicon_|. |favicon_|

Powered by Google App Engine
This is Rietveld 408576698