| Index: chrome/browser/gtk/tab_contents_container_gtk.cc
|
| ===================================================================
|
| --- chrome/browser/gtk/tab_contents_container_gtk.cc (revision 23643)
|
| +++ chrome/browser/gtk/tab_contents_container_gtk.cc (working copy)
|
| @@ -8,7 +8,6 @@
|
| #include "base/gfx/native_widget_types.h"
|
| #include "chrome/browser/gtk/gtk_floating_container.h"
|
| #include "chrome/browser/gtk/status_bubble_gtk.h"
|
| -#include "chrome/browser/gtk/view_id_util.h"
|
| #include "chrome/browser/tab_contents/tab_contents.h"
|
| #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h"
|
| #include "chrome/common/notification_service.h"
|
| @@ -70,7 +69,7 @@
|
| gtk_widget_show(fixed_);
|
| gtk_widget_show(floating_.get());
|
|
|
| - ViewIDUtil::SetID(widget(), VIEW_ID_TAB_CONTAINER);
|
| + ViewIDUtil::SetDelegateForWidget(widget(), this);
|
| }
|
|
|
| void TabContentsContainerGtk::SetTabContents(TabContents* tab_contents) {
|
| @@ -159,6 +158,20 @@
|
| SetTabContents(NULL);
|
| }
|
|
|
| +// -----------------------------------------------------------------------------
|
| +// ViewIDUtil::Delegate implementation
|
| +
|
| +GtkWidget* TabContentsContainerGtk::GetWidgetForViewID(ViewID view_id) {
|
| + if (view_id == VIEW_ID_TAB_CONTAINER ||
|
| + view_id == VIEW_ID_TAB_CONTAINER_FOCUS_VIEW) {
|
| + return widget();
|
| + }
|
| +
|
| + return NULL;
|
| +}
|
| +
|
| +// -----------------------------------------------------------------------------
|
| +
|
| // static
|
| void TabContentsContainerGtk::OnFixedSizeAllocate(
|
| GtkWidget* fixed,
|
|
|