diff options
Diffstat (limited to 'chrome/browser/gtk/tabs/tab_strip_gtk.h')
-rw-r--r-- | chrome/browser/gtk/tabs/tab_strip_gtk.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/gtk/tabs/tab_strip_gtk.h b/chrome/browser/gtk/tabs/tab_strip_gtk.h index 5445654..6ba5793 100644 --- a/chrome/browser/gtk/tabs/tab_strip_gtk.h +++ b/chrome/browser/gtk/tabs/tab_strip_gtk.h @@ -251,6 +251,17 @@ class TabStripGtk : public TabStripModelObserver, // Sets the bounds of the tab and moves the tab widget to those bounds. void SetTabBounds(TabGtk* tab, const gfx::Rect& bounds); + // Returns true if |rects| are all areas that match up with tab favicons. + // |rects| must be sorted from left to right. |tabs_to_paint| are the tab + // positions that match the rects. + bool CanPaintOnlyFavIcons(const GdkRectangle* rects, + int num_rects, + std::vector<int>* tabs_to_paint); + + // Paints the tab favicon areas for tabs in |tabs_to_paint|. + void PaintOnlyFavIcons(GdkEventExpose* event, + const std::vector<int>& tabs_to_paint); + // Initializes the new tab button. CustomDrawButton* MakeNewTabButton(); |