diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-25 20:38:12 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-25 20:38:12 +0000 |
commit | 71c5c3b6906dbca8db3a3de52f459c4d30d036be (patch) | |
tree | 8270d974ccdd5ac7417d38fb684619305fdf82c9 /chrome/browser/ui/gtk/content_setting_bubble_gtk.cc | |
parent | 815d5f4e41b1ea064b090efad24d9cf8dca21776 (diff) | |
download | chromium_src-71c5c3b6906dbca8db3a3de52f459c4d30d036be.zip chromium_src-71c5c3b6906dbca8db3a3de52f459c4d30d036be.tar.gz chromium_src-71c5c3b6906dbca8db3a3de52f459c4d30d036be.tar.bz2 |
Revert "content: Start splitting up chrome/browser/ui/gtk/gtk_util.h"
This reverts r98287.
BUG=93804
Review URL: http://codereview.chromium.org/7749017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98290 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/gtk/content_setting_bubble_gtk.cc')
-rw-r--r-- | chrome/browser/ui/gtk/content_setting_bubble_gtk.cc | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/chrome/browser/ui/gtk/content_setting_bubble_gtk.cc b/chrome/browser/ui/gtk/content_setting_bubble_gtk.cc index 77c67b6..1018b41 100644 --- a/chrome/browser/ui/gtk/content_setting_bubble_gtk.cc +++ b/chrome/browser/ui/gtk/content_setting_bubble_gtk.cc @@ -22,7 +22,6 @@ #include "content/common/notification_source.h" #include "grit/generated_resources.h" #include "grit/ui_resources.h" -#include "ui/base/gtk/gtk_hig_constants.h" #include "ui/base/l10n/l10n_util.h" #include "ui/base/text/text_elider.h" #include "ui/gfx/gtk_util.h" @@ -89,7 +88,7 @@ void ContentSettingBubbleGtk::Observe(int type, void ContentSettingBubbleGtk::BuildBubble() { GtkThemeService* theme_provider = GtkThemeService::GetFrom(profile_); - GtkWidget* bubble_content = gtk_vbox_new(FALSE, ui::kControlSpacing); + GtkWidget* bubble_content = gtk_vbox_new(FALSE, gtk_util::kControlSpacing); gtk_container_set_border_width(GTK_CONTAINER(bubble_content), kContentBorder); const ContentSettingBubbleModel::BubbleContent& content = @@ -103,7 +102,7 @@ void ContentSettingBubbleGtk::BuildBubble() { const std::set<std::string>& plugins = content.resource_identifiers; if (!plugins.empty()) { - GtkWidget* list_content = gtk_vbox_new(FALSE, ui::kControlSpacing); + GtkWidget* list_content = gtk_vbox_new(FALSE, gtk_util::kControlSpacing); for (std::set<std::string>::const_iterator it = plugins.begin(); it != plugins.end(); ++it) { @@ -121,7 +120,7 @@ void ContentSettingBubbleGtk::BuildBubble() { FALSE, FALSE, 0); } gtk_box_pack_start(GTK_BOX(bubble_content), list_content, FALSE, FALSE, - ui::kControlSpacing); + gtk_util::kControlSpacing); } if (content_setting_bubble_model_->content_type() == @@ -147,8 +146,8 @@ void ContentSettingBubbleGtk::BuildBubble() { g_signal_connect(event_box, "button_press_event", G_CALLBACK(OnPopupIconButtonPressThunk), this); gtk_table_attach(GTK_TABLE(table), event_box, 0, 1, row, row + 1, - GTK_FILL, GTK_FILL, ui::kControlSpacing / 2, - ui::kControlSpacing / 2); + GTK_FILL, GTK_FILL, gtk_util::kControlSpacing / 2, + gtk_util::kControlSpacing / 2); } GtkWidget* button = gtk_chrome_link_button_new( @@ -157,8 +156,8 @@ void ContentSettingBubbleGtk::BuildBubble() { g_signal_connect(button, "clicked", G_CALLBACK(OnPopupLinkClickedThunk), this); gtk_table_attach(GTK_TABLE(table), button, 1, 2, row, row + 1, - GTK_FILL, GTK_FILL, ui::kControlSpacing / 2, - ui::kControlSpacing / 2); + GTK_FILL, GTK_FILL, gtk_util::kControlSpacing / 2, + gtk_util::kControlSpacing / 2); } gtk_box_pack_start(GTK_BOX(bubble_content), table, FALSE, FALSE, 0); @@ -194,7 +193,7 @@ void ContentSettingBubbleGtk::BuildBubble() { content.domain_lists.begin(); i != content.domain_lists.end(); ++i) { // Put each list into its own vbox to allow spacing between lists. - GtkWidget* list_content = gtk_vbox_new(FALSE, ui::kControlSpacing); + GtkWidget* list_content = gtk_vbox_new(FALSE, gtk_util::kControlSpacing); GtkWidget* label = gtk_label_new(BuildElidedText(i->title).c_str()); gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); @@ -208,7 +207,7 @@ void ContentSettingBubbleGtk::BuildBubble() { FALSE, FALSE, 0); } gtk_box_pack_start(GTK_BOX(bubble_content), list_content, FALSE, FALSE, - ui::kControlSpacing); + gtk_util::kControlSpacing); } if (!content.custom_link.empty()) { |