summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/gtk/constrained_window_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/gtk/constrained_window_gtk.cc')
-rw-r--r--chrome/browser/ui/gtk/constrained_window_gtk.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/ui/gtk/constrained_window_gtk.cc b/chrome/browser/ui/gtk/constrained_window_gtk.cc
index a6c2621..2078151 100644
--- a/chrome/browser/ui/gtk/constrained_window_gtk.cc
+++ b/chrome/browser/ui/gtk/constrained_window_gtk.cc
@@ -13,6 +13,9 @@
#if defined(TOUCH_UI)
#include "chrome/browser/ui/views/tab_contents/tab_contents_view_touch.h"
+#elif defined(TOOLKIT_VIEWS)
+#include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.h"
+#include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h"
#else
#include "chrome/browser/tab_contents/tab_contents_view_gtk.h"
#endif
@@ -120,7 +123,13 @@ void ConstrainedWindowGtk::FocusConstrainedWindow() {
ConstrainedWindowGtk::TabContentsViewType*
ConstrainedWindowGtk::ContainingView() {
+#if defined(TOOLKIT_VIEWS)
+ return static_cast<NativeTabContentsViewGtk*>(
+ static_cast<TabContentsViewViews*>(owner_->view())->
+ native_tab_contents_view());
+#else
return static_cast<TabContentsViewType*>(owner_->view());
+#endif
}
gboolean ConstrainedWindowGtk::OnKeyPress(GtkWidget* sender,