diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-29 22:08:58 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-29 22:08:58 +0000 |
commit | 82c7bfb8ca07b27406154548434eca6dc111b097 (patch) | |
tree | 91bf01cc93abafa9f352ead86ac9117ecde7dd87 /chrome/browser/ui/gtk/gtk_util.h | |
parent | b278f54a3da951e3a222c2dc53c6d0b577a0891d (diff) | |
download | chromium_src-82c7bfb8ca07b27406154548434eca6dc111b097.zip chromium_src-82c7bfb8ca07b27406154548434eca6dc111b097.tar.gz chromium_src-82c7bfb8ca07b27406154548434eca6dc111b097.tar.bz2 |
content: Reapply "Start splitting up chrome/browser/ui/gtk/gtk_util.h" (r98287)
Now with fixes for builds that trybots don't cover by default.
(This yak needs shaving because chunks of gtk using code in chrome/ are being
moved to content/ to build the content_shell, but we can't depend on code in
chrome/. While I'm here, split gtk_util.h into a set of logical chunks: hig
constants, widget factory functions, etc instead of just moving the file.)
BUG=93804
TEST=none; code move
First Review URL: http://codereview.chromium.org/7737001
Review URL: http://codereview.chromium.org/7748026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/gtk/gtk_util.h')
-rw-r--r-- | chrome/browser/ui/gtk/gtk_util.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/chrome/browser/ui/gtk/gtk_util.h b/chrome/browser/ui/gtk/gtk_util.h index 3347f1f..f12c727 100644 --- a/chrome/browser/ui/gtk/gtk_util.h +++ b/chrome/browser/ui/gtk/gtk_util.h @@ -27,14 +27,6 @@ class GURL; class Profile; struct RendererPreferences; // from common/renderer_preferences.h -const int kSkiaToGDKMultiplier = 257; - -// Define a macro for creating GdkColors from RGB values. This is a macro to -// allow static construction of literals, etc. Use this like: -// GdkColor white = GDK_COLOR_RGB(0xff, 0xff, 0xff); -#define GDK_COLOR_RGB(r, g, b) {0, r * kSkiaToGDKMultiplier, \ - g * kSkiaToGDKMultiplier, b * kSkiaToGDKMultiplier} - namespace event_utils { // Translates event flags into what kind of disposition they represent. @@ -46,32 +38,6 @@ WindowOpenDisposition DispositionFromEventFlags(guint state); namespace gtk_util { -extern const GdkColor kGdkWhite; -extern const GdkColor kGdkGray; -extern const GdkColor kGdkBlack; -extern const GdkColor kGdkGreen; - -// 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 outside of a dialog's contents. -const int kContentAreaBorder = 12; - -// Spacing between groups of controls. -const int kContentAreaSpacing = 18; - -// Horizontal Spacing between controls in a form. -const int kFormControlSpacing = 10; - // Create a table of labeled controls, using proper spacing and alignment. // Arguments should be pairs of const char*, GtkWidget*, concluding with a // NULL. The first argument is a vector in which to place all labels |