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

Unified Diff: chrome/browser/ui/gtk/content_setting_bubble_gtk.cc

Issue 7748026: content: Reapply "Start splitting up chrome/browser/ui/gtk/gtk_util.h" (r98287) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on Monday. Created 9 years, 4 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
Index: chrome/browser/ui/gtk/content_setting_bubble_gtk.cc
diff --git a/chrome/browser/ui/gtk/content_setting_bubble_gtk.cc b/chrome/browser/ui/gtk/content_setting_bubble_gtk.cc
index 1018b41215b4ffc8589955d4e64f4e8254ddf124..77c67b6cd729c24b9787059ddf5a224fcf48d3af 100644
--- a/chrome/browser/ui/gtk/content_setting_bubble_gtk.cc
+++ b/chrome/browser/ui/gtk/content_setting_bubble_gtk.cc
@@ -22,6 +22,7 @@
#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"
@@ -88,7 +89,7 @@ void ContentSettingBubbleGtk::Observe(int type,
void ContentSettingBubbleGtk::BuildBubble() {
GtkThemeService* theme_provider = GtkThemeService::GetFrom(profile_);
- GtkWidget* bubble_content = gtk_vbox_new(FALSE, gtk_util::kControlSpacing);
+ GtkWidget* bubble_content = gtk_vbox_new(FALSE, ui::kControlSpacing);
gtk_container_set_border_width(GTK_CONTAINER(bubble_content), kContentBorder);
const ContentSettingBubbleModel::BubbleContent& content =
@@ -102,7 +103,7 @@ void ContentSettingBubbleGtk::BuildBubble() {
const std::set<std::string>& plugins = content.resource_identifiers;
if (!plugins.empty()) {
- GtkWidget* list_content = gtk_vbox_new(FALSE, gtk_util::kControlSpacing);
+ GtkWidget* list_content = gtk_vbox_new(FALSE, ui::kControlSpacing);
for (std::set<std::string>::const_iterator it = plugins.begin();
it != plugins.end(); ++it) {
@@ -120,7 +121,7 @@ void ContentSettingBubbleGtk::BuildBubble() {
FALSE, FALSE, 0);
}
gtk_box_pack_start(GTK_BOX(bubble_content), list_content, FALSE, FALSE,
- gtk_util::kControlSpacing);
+ ui::kControlSpacing);
}
if (content_setting_bubble_model_->content_type() ==
@@ -146,8 +147,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, gtk_util::kControlSpacing / 2,
- gtk_util::kControlSpacing / 2);
+ GTK_FILL, GTK_FILL, ui::kControlSpacing / 2,
+ ui::kControlSpacing / 2);
}
GtkWidget* button = gtk_chrome_link_button_new(
@@ -156,8 +157,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, gtk_util::kControlSpacing / 2,
- gtk_util::kControlSpacing / 2);
+ GTK_FILL, GTK_FILL, ui::kControlSpacing / 2,
+ ui::kControlSpacing / 2);
}
gtk_box_pack_start(GTK_BOX(bubble_content), table, FALSE, FALSE, 0);
@@ -193,7 +194,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, gtk_util::kControlSpacing);
+ GtkWidget* list_content = gtk_vbox_new(FALSE, ui::kControlSpacing);
GtkWidget* label = gtk_label_new(BuildElidedText(i->title).c_str());
gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
@@ -207,7 +208,7 @@ void ContentSettingBubbleGtk::BuildBubble() {
FALSE, FALSE, 0);
}
gtk_box_pack_start(GTK_BOX(bubble_content), list_content, FALSE, FALSE,
- gtk_util::kControlSpacing);
+ ui::kControlSpacing);
}
if (!content.custom_link.empty()) {
« no previous file with comments | « chrome/browser/ui/gtk/constrained_window_gtk.cc ('k') | chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698