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

Unified Diff: chrome/browser/gtk/tab_contents_container_gtk.cc

Issue 173030: Port more browser focus tests to linux.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: working on windows Created 11 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/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,

Powered by Google App Engine
This is Rietveld 408576698