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

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

Issue 7737001: content: Start splitting up chrome/browser/ui/gtk/gtk_util.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc ('k') | chrome/browser/ui/gtk/repost_form_warning_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/page_info_bubble_gtk.cc
diff --git a/chrome/browser/ui/gtk/page_info_bubble_gtk.cc b/chrome/browser/ui/gtk/page_info_bubble_gtk.cc
index e6c2edf2ba00925d6913b0efae09c64acdc804b5..115ad4064109be867cc6d5fa73737afe83b80a91 100644
--- a/chrome/browser/ui/gtk/page_info_bubble_gtk.cc
+++ b/chrome/browser/ui/gtk/page_info_bubble_gtk.cc
@@ -25,6 +25,7 @@
#include "googleurl/src/gurl.h"
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
+#include "ui/base/gtk/gtk_hig_constants.h"
#include "ui/base/l10n/l10n_util.h"
class Profile;
@@ -135,9 +136,9 @@ void PageInfoBubbleGtk::BubbleClosing(BubbleGtk* bubble,
void PageInfoBubbleGtk::InitContents() {
if (!contents_) {
- contents_ = gtk_vbox_new(FALSE, gtk_util::kContentAreaSpacing);
+ contents_ = gtk_vbox_new(FALSE, ui::kContentAreaSpacing);
gtk_container_set_border_width(GTK_CONTAINER(contents_),
- gtk_util::kContentAreaBorder);
+ ui::kContentAreaBorder);
} else {
gtk_util::RemoveAllChildren(contents_);
}
@@ -165,7 +166,7 @@ void PageInfoBubbleGtk::InitContents() {
GtkWidget* PageInfoBubbleGtk::CreateSection(
const PageInfoModel::SectionInfo& section) {
- GtkWidget* section_box = gtk_hbox_new(FALSE, gtk_util::kControlSpacing);
+ GtkWidget* section_box = gtk_hbox_new(FALSE, ui::kControlSpacing);
GdkPixbuf* pixbuf = *model_.GetIconImage(section.icon_id);
if (pixbuf) {
@@ -174,12 +175,12 @@ GtkWidget* PageInfoBubbleGtk::CreateSection(
gtk_misc_set_alignment(GTK_MISC(image), 0, 0);
}
- GtkWidget* vbox = gtk_vbox_new(FALSE, gtk_util::kControlSpacing);
+ GtkWidget* vbox = gtk_vbox_new(FALSE, ui::kControlSpacing);
gtk_box_pack_start(GTK_BOX(section_box), vbox, TRUE, TRUE, 0);
if (!section.headline.empty()) {
GtkWidget* label = theme_service_->BuildLabel(
- UTF16ToUTF8(section.headline), gtk_util::kGdkBlack);
+ UTF16ToUTF8(section.headline), ui::kGdkBlack);
gtk_label_set_selectable(GTK_LABEL(label), TRUE);
PangoAttrList* attributes = pango_attr_list_new();
pango_attr_list_insert(attributes,
@@ -193,7 +194,7 @@ GtkWidget* PageInfoBubbleGtk::CreateSection(
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
}
GtkWidget* label = theme_service_->BuildLabel(
- UTF16ToUTF8(section.description), gtk_util::kGdkBlack);
+ UTF16ToUTF8(section.description), ui::kGdkBlack);
gtk_label_set_selectable(GTK_LABEL(label), TRUE);
gtk_util::SetLabelWidth(label, 400);
// Allow linebreaking in the middle of words if necessary, so that extremely
« no previous file with comments | « chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc ('k') | chrome/browser/ui/gtk/repost_form_warning_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698