| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |