diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-17 00:35:13 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-17 00:35:13 +0000 |
commit | 48e144ee5faf657841f2051f9a94b46b8a96fc89 (patch) | |
tree | 8bd5654425861bc62e38a374d9d37f745dc7517c | |
parent | d52e9709573bc7279ff6a3c13b2d31e9b62f97bb (diff) | |
download | chromium_src-48e144ee5faf657841f2051f9a94b46b8a96fc89.zip chromium_src-48e144ee5faf657841f2051f9a94b46b8a96fc89.tar.gz chromium_src-48e144ee5faf657841f2051f9a94b46b8a96fc89.tar.bz2 |
linux: add names to some widgets for parasite's benefit
Review URL: http://codereview.chromium.org/212002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26424 0039d316-1c4b-4281-b951-d872f2087c98
4 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc index 09d1ebe..2bd3b2f 100644 --- a/chrome/browser/gtk/browser_window_gtk.cc +++ b/chrome/browser/gtk/browser_window_gtk.cc @@ -1642,6 +1642,7 @@ void BrowserWindowGtk::InitWidgets() { // download shelf, find bar) are all clipped to that area. This is why // |render_area_vbox_| is packed in |render_area_event_box_|. render_area_vbox_ = gtk_vbox_new(FALSE, 0); + gtk_widget_set_name(render_area_vbox_, "chrome-render-area-vbox"); infobar_container_.reset(new InfoBarContainerGtk(this)); gtk_box_pack_start(GTK_BOX(render_area_vbox_), infobar_container_->widget(), diff --git a/chrome/browser/gtk/tab_contents_container_gtk.cc b/chrome/browser/gtk/tab_contents_container_gtk.cc index 41d0aae..3deda09 100644 --- a/chrome/browser/gtk/tab_contents_container_gtk.cc +++ b/chrome/browser/gtk/tab_contents_container_gtk.cc @@ -53,6 +53,7 @@ void TabContentsContainerGtk::Init() { // +------------------------------------------------------------------+ floating_.Own(gtk_floating_container_new()); + gtk_widget_set_name(floating_.get(), "chrome-tab-contents-container"); fixed_ = gtk_fixed_new(); g_signal_connect(fixed_, "size-allocate", diff --git a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc index 83c28b7..e4c460c 100644 --- a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc +++ b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc @@ -45,6 +45,7 @@ class RenderWidgetHostViewGtkWidget { public: static GtkWidget* CreateNewWidget(RenderWidgetHostViewGtk* host_view) { GtkWidget* widget = gtk_fixed_new(); + gtk_widget_set_name(widget, "chrome-render-widget-host-view"); gtk_fixed_set_has_window(GTK_FIXED(widget), TRUE); gtk_widget_set_double_buffered(widget, FALSE); gtk_widget_set_redraw_on_allocate(widget, FALSE); diff --git a/chrome/browser/tab_contents/tab_contents_view_gtk.cc b/chrome/browser/tab_contents/tab_contents_view_gtk.cc index 091f926..1eaaf4e 100644 --- a/chrome/browser/tab_contents/tab_contents_view_gtk.cc +++ b/chrome/browser/tab_contents/tab_contents_view_gtk.cc @@ -351,6 +351,7 @@ TabContentsViewGtk::TabContentsViewGtk(TabContents* tab_contents) floating_(gtk_floating_container_new()), fixed_(gtk_fixed_new()), popup_view_(NULL) { + gtk_widget_set_name(fixed_, "chrome-tab-contents-view"); g_signal_connect(fixed_, "size-allocate", G_CALLBACK(OnSizeAllocate), this); g_signal_connect(floating_.get(), "set-floating-position", |