| Index: chrome/browser/gtk/constrained_window_gtk.cc
|
| diff --git a/chrome/browser/gtk/constrained_window_gtk.cc b/chrome/browser/gtk/constrained_window_gtk.cc
|
| index 14564dee7a7e4bffc95ce3cf82fdf9d3c523604a..cee66d7e3583beac2b5fb8a726c51f5a7c556280 100644
|
| --- a/chrome/browser/gtk/constrained_window_gtk.cc
|
| +++ b/chrome/browser/gtk/constrained_window_gtk.cc
|
| @@ -9,7 +9,12 @@
|
| #include "chrome/browser/browser_list.h"
|
| #include "chrome/browser/gtk/gtk_util.h"
|
| #include "chrome/browser/tab_contents/tab_contents.h"
|
| +
|
| +#if defined(TOUCH_UI)
|
| +#include "chrome/browser/views/tab_contents/tab_contents_view_views.h"
|
| +#else
|
| #include "chrome/browser/tab_contents/tab_contents_view_gtk.h"
|
| +#endif
|
|
|
| ConstrainedWindowGtkDelegate::~ConstrainedWindowGtkDelegate() {
|
| }
|
| @@ -62,8 +67,8 @@ ConstrainedWindowGtk::~ConstrainedWindowGtk() {
|
| void ConstrainedWindowGtk::ShowConstrainedWindow() {
|
| gtk_widget_show_all(border_.get());
|
|
|
| - // We collaborate with TabContentsViewGtk and stick ourselves in the
|
| - // TabContentsViewGtk's floating container.
|
| + // We collaborate with TabContentsView and stick ourselves in the
|
| + // TabContentsView's floating container.
|
| ContainingView()->AttachConstrainedWindow(this);
|
|
|
| visible_ = true;
|
| @@ -78,8 +83,8 @@ void ConstrainedWindowGtk::CloseConstrainedWindow() {
|
| delete this;
|
| }
|
|
|
| -TabContentsViewGtk* ConstrainedWindowGtk::ContainingView() {
|
| - return static_cast<TabContentsViewGtk*>(owner_->view());
|
| +TabContentsViewType* ConstrainedWindowGtk::ContainingView() {
|
| + return static_cast<TabContentsViewType*>(owner_->view());
|
| }
|
|
|
| gboolean ConstrainedWindowGtk::OnKeyPress(GtkWidget* sender,
|
|
|