diff options
-rw-r--r-- | chrome/browser/renderer_host/render_widget_host_view_views.cc | 2 | ||||
-rw-r--r-- | chrome/browser/ui/gtk/constrained_window_gtk.cc | 2 | ||||
-rw-r--r-- | views/widget/widget.h | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host_view_views.cc b/chrome/browser/renderer_host/render_widget_host_view_views.cc index 30e3eac..6a35d1b 100644 --- a/chrome/browser/renderer_host/render_widget_host_view_views.cc +++ b/chrome/browser/renderer_host/render_widget_host_view_views.cc @@ -438,7 +438,7 @@ gfx::NativeView RenderWidgetHostViewViews::GetInnerNativeView() const { // TODO(sad): Ideally this function should be equivalent to GetNativeView, and // WidgetGtk-specific function call should not be necessary. const views::WidgetGtk* widget = - static_cast<const views::WidgetGtk*>(GetWidget()); + static_cast<const views::WidgetGtk*>(GetWidget()->native_widget()); return widget ? widget->window_contents() : NULL; } diff --git a/chrome/browser/ui/gtk/constrained_window_gtk.cc b/chrome/browser/ui/gtk/constrained_window_gtk.cc index 2078151..0584b89 100644 --- a/chrome/browser/ui/gtk/constrained_window_gtk.cc +++ b/chrome/browser/ui/gtk/constrained_window_gtk.cc @@ -123,7 +123,7 @@ void ConstrainedWindowGtk::FocusConstrainedWindow() { ConstrainedWindowGtk::TabContentsViewType* ConstrainedWindowGtk::ContainingView() { -#if defined(TOOLKIT_VIEWS) +#if defined(TOOLKIT_VIEWS) && !defined(TOUCH_UI) return static_cast<NativeTabContentsViewGtk*>( static_cast<TabContentsViewViews*>(owner_->view())-> native_tab_contents_view()); diff --git a/views/widget/widget.h b/views/widget/widget.h index 3c74618..13d7b5b 100644 --- a/views/widget/widget.h +++ b/views/widget/widget.h @@ -304,6 +304,7 @@ class Widget : public internal::NativeWidgetDelegate, ui::AccessibilityTypes::Event event_type, bool send_native_event); + const NativeWidget* native_widget() const { return native_widget_; } NativeWidget* native_widget() { return native_widget_; } // Overridden from NativeWidgetDelegate: |