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

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

Issue 524025: Alter NineBox so that it can accept a single sprite resource with insets that... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 12 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/nine_box.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/nine_box.h
===================================================================
--- chrome/browser/gtk/nine_box.h (revision 35462)
+++ chrome/browser/gtk/nine_box.h (working copy)
@@ -24,6 +24,11 @@
// 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);
+
+ // Construct a NineBox from a single image and insets indicating the sizes
+ // of the edges and corners.
+ NineBox(int image, int top_margin, int bottom_margin, int left_margin,
+ int right_margin);
~NineBox();
// Render the NineBox to |dst|.
@@ -46,6 +51,7 @@
private:
GdkPixbuf* images_[9];
+ bool unref_pixbufs_on_destroy_;
};
#endif // CHROME_BROWSER_GTK_NINE_BOX_H_
« no previous file with comments | « no previous file | chrome/browser/gtk/nine_box.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698