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

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

Issue 2210033002: Proper rendering of stacked tabs for MD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 4 years, 4 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 | « no previous file | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 74f2fdaa20264df30cb2dc996303950400fbaad6..af3269cfe5e2177a5fb3636fa0cf3cbd32bd315e 100644
--- a/chrome/browser/ui/views/tabs/tab.h
+++ b/chrome/browser/ui/views/tabs/tab.h
@@ -231,15 +231,17 @@ class Tab : public gfx::AnimationDelegate,
// Invoked from SetData after |data_| has been updated to the new data.
void DataChanged(const TabRendererData& old);
- // Paint with the normal tab style.
- void PaintTab(gfx::Canvas* canvas);
+ // Paint with the normal tab style. If |clip| is non-empty, the tab border
+ // should be clipped against it.
+ void PaintTab(gfx::Canvas* canvas, const gfx::Path& clip);
// Paint with the "immersive mode" light-bar style.
void PaintImmersiveTab(gfx::Canvas* canvas);
// Paint various portions of the Tab.
- void PaintInactiveTabBackground(gfx::Canvas* canvas);
- void PaintTabBackgroundUsingFillId(gfx::Canvas* canvas,
+ void PaintInactiveTabBackground(gfx::Canvas* canvas, const gfx::Path& clip);
+ void PaintTabBackgroundUsingFillId(gfx::Canvas* fill_canvas,
+ gfx::Canvas* stroke_canvas,
bool is_active,
int fill_id,
bool has_custom_image,
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698