Index: content/browser/web_contents/web_contents_view_aura.h |
diff --git a/content/browser/web_contents/web_contents_view_aura.h b/content/browser/web_contents/web_contents_view_aura.h |
index a615c3486b2bb9aac0037ec337955aea43fc7db1..7b756886e0c8cec9ddc75f56fd0c8b73d509635e 100644 |
--- a/content/browser/web_contents/web_contents_view_aura.h |
+++ b/content/browser/web_contents/web_contents_view_aura.h |
@@ -18,6 +18,10 @@ |
#include "ui/compositor/layer_animation_observer.h" |
#include "ui/wm/public/drag_drop_delegate.h" |
+#if defined(OS_WIN) |
+#include "content/browser/renderer_host/legacy_render_widget_host_win.h" |
+#endif |
+ |
namespace aura { |
class Window; |
} |
@@ -37,8 +41,15 @@ class WebContentsViewDelegate; |
class WebContentsImpl; |
class WebDragDestDelegate; |
+#if defined(OS_WIN) |
+class LegacyRenderWidgetHostHWND; |
+#endif |
+ |
class WebContentsViewAura |
: public WebContentsView, |
+#if defined(OS_WIN) |
+ public LegacyRenderWidgetHostHWNDDelegate, |
+#endif |
public RenderViewHostDelegateView, |
public OverscrollControllerDelegate, |
public ui::ImplicitAnimationObserver, |
@@ -186,6 +197,14 @@ class WebContentsViewAura |
// Update the web contents visiblity. |
void UpdateWebContentsVisibility(bool visible); |
+#if defined(OS_WIN) |
+ // Overridden from LegacyRenderWidgetHostHWNDDelegate: |
+ virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager() |
+ OVERRIDE; |
+ virtual void OnLegacyHwndDestroyed(LegacyRenderWidgetHostHWND* owner) |
+ OVERRIDE; |
+#endif |
+ |
scoped_ptr<aura::Window> window_; |
// The window that shows the screenshot of the history page during an |
@@ -229,6 +248,10 @@ class WebContentsViewAura |
scoped_ptr<TouchEditableImplAura> touch_editable_; |
scoped_ptr<GestureNavSimple> gesture_nav_simple_; |
+#if defined(OS_WIN) |
+ scoped_ptr<LegacyRenderWidgetHostHWND> legacy_hwnd_; |
+#endif |
+ |
// On Windows we can run into problems if resources get released within the |
// initialization phase while the content (and its dimensions) are not known. |
bool is_or_was_visible_; |