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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 2040333002: Merge to M52: Fix a bug with the Chrome legacy window at times becoming a top level window with a n… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « content/browser/renderer_host/legacy_render_widget_host_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 2561 matching lines...) Expand 10 before | Expand all | Expand 10 after
2572 aura::client::GetCursorClient(window_->GetRootWindow()); 2572 aura::client::GetCursorClient(window_->GetRootWindow());
2573 if (cursor_client) 2573 if (cursor_client)
2574 cursor_client->RemoveObserver(this); 2574 cursor_client->RemoveObserver(this);
2575 2575
2576 DetachFromInputMethod(); 2576 DetachFromInputMethod();
2577 2577
2578 window_->GetHost()->RemoveObserver(this); 2578 window_->GetHost()->RemoveObserver(this);
2579 delegated_frame_host_->ResetCompositor(); 2579 delegated_frame_host_->ResetCompositor();
2580 2580
2581 #if defined(OS_WIN) 2581 #if defined(OS_WIN)
2582 // Update the legacy window's parent temporarily to the desktop window. It 2582 // Update the legacy window's parent temporarily to the hidden window. It
2583 // will eventually get reparented to the right root. 2583 // will eventually get reparented to the right root.
2584 if (legacy_render_widget_host_HWND_) 2584 if (legacy_render_widget_host_HWND_)
2585 legacy_render_widget_host_HWND_->UpdateParent(::GetDesktopWindow()); 2585 legacy_render_widget_host_HWND_->UpdateParent(ui::GetHiddenWindow());
2586 #endif 2586 #endif
2587 } 2587 }
2588 2588
2589 void RenderWidgetHostViewAura::DetachFromInputMethod() { 2589 void RenderWidgetHostViewAura::DetachFromInputMethod() {
2590 ui::InputMethod* input_method = GetInputMethod(); 2590 ui::InputMethod* input_method = GetInputMethod();
2591 if (input_method) 2591 if (input_method)
2592 input_method->DetachTextInputClient(this); 2592 input_method->DetachTextInputClient(this);
2593 } 2593 }
2594 2594
2595 void RenderWidgetHostViewAura::ForwardKeyboardEvent( 2595 void RenderWidgetHostViewAura::ForwardKeyboardEvent(
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
2858 2858
2859 //////////////////////////////////////////////////////////////////////////////// 2859 ////////////////////////////////////////////////////////////////////////////////
2860 // RenderWidgetHostViewBase, public: 2860 // RenderWidgetHostViewBase, public:
2861 2861
2862 // static 2862 // static
2863 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { 2863 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) {
2864 GetScreenInfoForWindow(results, NULL); 2864 GetScreenInfoForWindow(results, NULL);
2865 } 2865 }
2866 2866
2867 } // namespace content 2867 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/legacy_render_widget_host_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698