summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-08 20:56:19 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-08 20:56:19 +0000
commitd09b0922f3831944386850682b584e4dccf60357 (patch)
tree3b1d187b5c59a8d6237b7cd5a22bfce341b413f8 /chrome/common
parent0281b06f8bbde4c064a9276e6d70484ba2a3eaec (diff)
downloadchromium_src-d09b0922f3831944386850682b584e4dccf60357.zip
chromium_src-d09b0922f3831944386850682b584e4dccf60357.tar.gz
chromium_src-d09b0922f3831944386850682b584e4dccf60357.tar.bz2
Move GTK spacing constants into chrome/common/gtk_util.h
BUG=11507 Review URL: http://codereview.chromium.org/118399 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17894 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/gtk_util.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h
index d9827d82..5e5a275 100644
--- a/chrome/common/gtk_util.h
+++ b/chrome/common/gtk_util.h
@@ -25,6 +25,24 @@ WindowOpenDisposition DispositionFromEventFlags(guint state);
namespace gtk_util {
+// Constants relating to the layout of dialog windows:
+// (See http://library.gnome.org/devel/hig-book/stable/design-window.html.en)
+
+// Spacing between controls of the same group.
+const int kControlSpacing = 6;
+
+// Horizontal spacing between a label and its control.
+const int kLabelSpacing = 12;
+
+// Indent of the controls within each group.
+const int kGroupIndent = 12;
+
+// Space around the outsides of a dialog's contents.
+const int kContentAreaBorder = 12;
+
+// Spacing between groups of controls.
+const int kContentAreaSpacing = 18;
+
// Create a GtkBin with |child| as its child widget. This bin will paint a
// border of color |color| with the sizes specified in pixels.
GtkWidget* CreateGtkBorderBin(GtkWidget* child, const GdkColor* color,