summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/browser_toolbar_gtk.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-26 23:33:05 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-26 23:33:05 +0000
commitdc64a63b39f2a047dd597068182c01a2943c396b (patch)
tree400f92c0e44ef36d358d00d28b7ae5937902a747 /chrome/browser/gtk/browser_toolbar_gtk.h
parente9754eb9c5971d176ab436a1ee6d9f6fc504c17f (diff)
downloadchromium_src-dc64a63b39f2a047dd597068182c01a2943c396b.zip
chromium_src-dc64a63b39f2a047dd597068182c01a2943c396b.tar.gz
chromium_src-dc64a63b39f2a047dd597068182c01a2943c396b.tar.bz2
Change NineBox to render into a GtkWidget. This offers a minor speedup and simplification of code because we get rid of the pixbuf middleman.
Review URL: http://codereview.chromium.org/42620 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12620 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/browser_toolbar_gtk.h')
-rw-r--r--chrome/browser/gtk/browser_toolbar_gtk.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/gtk/browser_toolbar_gtk.h b/chrome/browser/gtk/browser_toolbar_gtk.h
index 6663bcd..d4134ba9 100644
--- a/chrome/browser/gtk/browser_toolbar_gtk.h
+++ b/chrome/browser/gtk/browser_toolbar_gtk.h
@@ -20,6 +20,7 @@ class CustomContainerButton;
class CustomDrawButton;
class LocationBar;
class LocationBarViewGtk;
+class NineBox;
class Profile;
class TabContents;
class ToolbarModel;
@@ -82,6 +83,10 @@ class BrowserToolbarGtk : public CommandUpdater::CommandObserver,
unsigned int accelerator,
unsigned int accelerator_mod);
+ // Gtk callback for the "expose-event" signal.
+ static gboolean OnContentAreaExpose(GtkWidget* widget, GdkEventExpose* e,
+ BrowserToolbarGtk* toolbar);
+
// Gtk callback for the "clicked" signal.
static void OnButtonClick(GtkWidget* button, BrowserToolbarGtk* toolbar);
@@ -99,6 +104,12 @@ class BrowserToolbarGtk : public CommandUpdater::CommandObserver,
// Construct the Home button.
CustomDrawButton* MakeHomeButton();
+ // Initialize the background NineBox.
+ void InitNineBox();
+
+ // Ninebox for the toolbar background
+ scoped_ptr<NineBox> background_ninebox_;
+
// Gtk widgets. The toolbar is an hbox with each of the other pieces of the
// toolbar placed side by side.
GtkWidget* toolbar_;