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

Unified Diff: content/browser/renderer_host/legacy_render_widget_host_win.cc

Issue 2031213002: Fix a bug with the Chrome legacy window at times becoming a top level window with a non functional … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/legacy_render_widget_host_win.cc
diff --git a/content/browser/renderer_host/legacy_render_widget_host_win.cc b/content/browser/renderer_host/legacy_render_widget_host_win.cc
index 3afb92cbe59ef0f2d8a18f74448db133b69e8ad0..cda1c072505cdee334e15ed20ce81070d21df5cd 100644
--- a/content/browser/renderer_host/legacy_render_widget_host_win.cc
+++ b/content/browser/renderer_host/legacy_render_widget_host_win.cc
@@ -62,14 +62,6 @@ void LegacyRenderWidgetHostHWND::UpdateParent(HWND parent) {
if (GetWindowEventTarget(GetParent()))
GetWindowEventTarget(GetParent())->HandleParentChanged();
::SetParent(hwnd(), parent);
- // If the new parent is the desktop Window, then we disable the child window
- // to ensure that it does not receive any input events. It should not because
- // of WS_EX_TRANSPARENT. This is only for safety.
- if (parent == ::GetDesktopWindow()) {
- ::EnableWindow(hwnd(), FALSE);
- } else {
- ::EnableWindow(hwnd(), TRUE);
- }
}
HWND LegacyRenderWidgetHostHWND::GetParent() {
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698