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

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

Issue 18486007: Fix the misalignment on CrOS of the tab background images (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « chrome/browser/ui/gtk/tabs/tab_renderer_gtk.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 9b697a4f914250f669b14fff48456c99d50f7c60..2dfc3b6cdd0a86b77d8ebd45e0ad155d0eadd311 100644
--- a/chrome/browser/ui/views/tabs/tab.h
+++ b/chrome/browser/ui/views/tabs/tab.h
@@ -214,8 +214,9 @@ class Tab : public TabAudioIndicator::Delegate,
void PaintInactiveTabBackgroundWithTitleChange(gfx::Canvas* canvas,
ui::MultiAnimation* animation);
void PaintInactiveTabBackground(gfx::Canvas* canvas);
- void PaintInactiveTabBackgroundUsingResourceId(gfx::Canvas* canvas,
- int tab_id);
+ void PaintInactiveTabBackgroundUsingResourceIds(gfx::Canvas* canvas,
+ int background_id,
+ int background_overlay_id);
void PaintActiveTabBackground(gfx::Canvas* canvas);
// Paints the icon at the specified coordinates, mirrored for RTL if needed.
@@ -262,10 +263,11 @@ class Tab : public TabAudioIndicator::Delegate,
// Returns the rectangle for the light bar in immersive mode.
gfx::Rect GetImmersiveBarRect() const;
- // Gets the tab id and frame id.
- void GetTabIdAndFrameId(views::Widget* widget,
- int* tab_id,
- int* frame_id) const;
+ // Gets the resource ids of the theme images to use for painting the inactive
+ // tab background.
+ void GetInactiveBackgroundIdAndOverlayId(views::Widget* widget,
+ int* background_id,
+ int* background_overlay_id) const;
// Performs a one-time initialization of static resources such as tab images.
static void InitTabResources();
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc ('k') | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698