diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-17 16:34:50 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-17 16:34:50 +0000 |
commit | f4a2435ea81199ac48dbaf07c8514aa38b7cb106 (patch) | |
tree | 3a0034978477f8cbdb3e80eb7b2c00aecd2fdc16 /chrome/browser/gtk/nine_box.h | |
parent | 8adbe223e105bbfd17dba1115ed0044466fd49fe (diff) | |
download | chromium_src-f4a2435ea81199ac48dbaf07c8514aa38b7cb106.zip chromium_src-f4a2435ea81199ac48dbaf07c8514aa38b7cb106.tar.gz chromium_src-f4a2435ea81199ac48dbaf07c8514aa38b7cb106.tar.bz2 |
Refactor NineBox to take 9 image ids instead of having to create
the GdkPixbuf array and passing it into the constructor. This allows
us to remove some resource_bundle.h includes.
Clean up the style in gtk_chrome_button.cc. There was some C style
and moved the globals to just static pointers. I verified with
a debugger that we call gtk_chrome_button_class_init only once.
Review URL: http://codereview.chromium.org/69025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13941 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/nine_box.h')
-rw-r--r-- | chrome/browser/gtk/nine_box.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/gtk/nine_box.h b/chrome/browser/gtk/nine_box.h index cf15b81..c4c5414 100644 --- a/chrome/browser/gtk/nine_box.h +++ b/chrome/browser/gtk/nine_box.h @@ -20,9 +20,10 @@ // nineboxes. class NineBox { public: - // Construct a NineBox with nine images. NULL images are allowed. - // Takes ownership of each image, but not the |images| array. - NineBox(GdkPixbuf* images[9]); + // Construct a NineBox with nine images. Images are specified using resource + // ids that will be passed to the resource bundle. Use 0 for no image. + NineBox(int top_left, int top, int top_right, int left, int center, int right, + int bottom_left, int bottom, int bottom_right); ~NineBox(); // Render the NineBox to |dst|. |