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

Unified Diff: content/browser/web_contents/web_contents_view_aura.h

Issue 784553002: Hide the Legacy HWND when the RWHVA is destroyed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new_legacy_debug
Patch Set: Use WebContentsObserver Created 6 years 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
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_view_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cf5177662ae2eb360f53c2281a301001ab817ebd..589573ea9474314c6a679ffeaabbd854110bd950 100644
--- a/content/browser/web_contents/web_contents_view_aura.h
+++ b/content/browser/web_contents/web_contents_view_aura.h
@@ -13,6 +13,7 @@
#include "content/browser/renderer_host/render_view_host_delegate_view.h"
#include "content/browser/web_contents/web_contents_view.h"
#include "content/common/content_export.h"
+#include "content/public/browser/web_contents_observer.h"
#include "ui/aura/window_delegate.h"
#include "ui/aura/window_observer.h"
#include "ui/compositor/layer_animation_observer.h"
@@ -56,7 +57,8 @@ class WebContentsViewAura
public ui::ImplicitAnimationObserver,
public aura::WindowDelegate,
public aura::client::DragDropDelegate,
- public aura::WindowObserver {
+ public aura::WindowObserver,
+ public WebContentsObserver {
public:
WebContentsViewAura(WebContentsImpl* web_contents,
WebContentsViewDelegate* delegate);
@@ -196,6 +198,9 @@ class WebContentsViewAura
void OnDragExited() override;
int OnPerformDrop(const ui::DropTargetEvent& event) override;
+ // Overridden from WebContentsObserver:
+ void RenderProcessGone(base::TerminationStatus status) override;
+
// Overridden from aura::WindowObserver:
void OnWindowVisibilityChanged(aura::Window* window, bool visible) override;
@@ -205,6 +210,8 @@ class WebContentsViewAura
#if defined(OS_WIN)
// Overridden from LegacyRenderWidgetHostHWNDDelegate:
virtual gfx::NativeViewAccessible GetNativeViewAccessible() override;
+
+ void UpdateLegacyHwndVisibility();
#endif
scoped_ptr<aura::Window> window_;
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698