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

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

Issue 2441863002: Remove some more !IsModeMaterial code. (Closed)
Patch Set: restore 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
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | 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 c02763933008e9c28119290f1a1420b56ec08df6..9c2ff815e917e3c369c996080dfa9199981afd56 100644
--- a/chrome/browser/ui/views/tabs/tab.h
+++ b/chrome/browser/ui/views/tabs/tab.h
@@ -226,20 +226,23 @@ 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. If |clip| is non-empty, the tab border
+ // Paints 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.
+ // Paints with the "immersive mode" light-bar style.
void PaintImmersiveTab(gfx::Canvas* canvas);
- // Paint various portions of the Tab.
+ // Paints the background of an inactive tab.
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_|
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698