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

Unified Diff: chrome/browser/gtk/extension_shelf_gtk.h

Issue 174585: Draw background of Linux extension toolstrips. (Closed)
Patch Set: Created 11 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/gtk/extension_shelf_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/extension_shelf_gtk.h
diff --git a/chrome/browser/gtk/extension_shelf_gtk.h b/chrome/browser/gtk/extension_shelf_gtk.h
index 550f9ecc90080c3c5d221e4a589a74315b027c8f..4c124ebedb44d8311ff100763af24a89e345aecd 100644
--- a/chrome/browser/gtk/extension_shelf_gtk.h
+++ b/chrome/browser/gtk/extension_shelf_gtk.h
@@ -57,6 +57,9 @@ class ExtensionShelfGtk : public ExtensionShelfModelObserver,
// Create the contents of the extension shelf.
void Init(Profile* profile);
+ // Lazily initialize background bitmap. Can be called many times.
+ void InitBackground();
+
// Determines what is our target height and sets it.
void AdjustHeight();
@@ -80,6 +83,9 @@ class ExtensionShelfGtk : public ExtensionShelfModelObserver,
// Used to position all children.
GtkWidget* shelf_hbox_;
+ // Lazily-initialized background for toolstrips.
+ scoped_ptr<SkBitmap> background_;
+
GtkThemeProvider* theme_provider_;
// The model representing the toolstrips on the shelf.
« no previous file with comments | « no previous file | chrome/browser/gtk/extension_shelf_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698