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

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

Issue 1414203012: Combine active and inactive tab background drawing functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@combine_radial_gradients
Patch Set: Compile fix for realz Created 5 years, 1 month 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 be60111969df15f6cd786d3d4a878625f260eff3..82610738ae87ab2c256b897231f21bf4d3454df4 100644
--- a/chrome/browser/ui/views/tabs/tab.h
+++ b/chrome/browser/ui/views/tabs/tab.h
@@ -239,9 +239,16 @@ class Tab : public gfx::AnimationDelegate,
void PaintTabBackground(gfx::Canvas* canvas);
void PaintInactiveTabBackgroundWithTitleChange(gfx::Canvas* canvas);
void PaintInactiveTabBackground(gfx::Canvas* canvas);
- void PaintInactiveTabBackgroundUsingResourceId(gfx::Canvas* canvas,
- int tab_id);
- void PaintActiveTabBackground(gfx::Canvas* canvas);
+ void PaintTabBackgroundUsingFillId(gfx::Canvas* canvas,
+ bool is_active,
+ int fill_id,
+ bool has_custom_image,
+ int y_offset);
+ void PaintTabFill(gfx::Canvas* canvas,
+ gfx::ImageSkia* fill_image,
+ int x_offset,
+ int y_offset,
+ bool is_active);
// Paints the favicon, mirrored for RTL if needed.
void PaintIcon(gfx::Canvas* canvas);
« 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