| 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 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1764 // object. | 1764 // object. |
| 1765 input_method->SetFocusedTextInputClient(this); | 1765 input_method->SetFocusedTextInputClient(this); |
| 1766 } | 1766 } |
| 1767 | 1767 |
| 1768 BrowserAccessibilityManager* manager = | 1768 BrowserAccessibilityManager* manager = |
| 1769 host_->GetRootBrowserAccessibilityManager(); | 1769 host_->GetRootBrowserAccessibilityManager(); |
| 1770 if (manager) | 1770 if (manager) |
| 1771 manager->OnWindowFocused(); | 1771 manager->OnWindowFocused(); |
| 1772 } else if (window_ == lost_focus) { | 1772 } else if (window_ == lost_focus) { |
| 1773 host_->SetActive(false); | 1773 host_->SetActive(false); |
| 1774 host_->Blur(); | |
| 1775 | 1774 |
| 1776 DetachFromInputMethod(); | 1775 DetachFromInputMethod(); |
| 1777 | 1776 |
| 1778 selection_controller_->HideAndDisallowShowingAutomatically(); | 1777 selection_controller_->HideAndDisallowShowingAutomatically(); |
| 1779 | 1778 |
| 1780 if (overscroll_controller_) | 1779 if (overscroll_controller_) |
| 1781 overscroll_controller_->Cancel(); | 1780 overscroll_controller_->Cancel(); |
| 1782 | 1781 |
| 1783 BrowserAccessibilityManager* manager = | 1782 BrowserAccessibilityManager* manager = |
| 1784 host_->GetRootBrowserAccessibilityManager(); | 1783 host_->GetRootBrowserAccessibilityManager(); |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2380 | 2379 |
| 2381 void RenderWidgetHostViewAura::SetPopupChild( | 2380 void RenderWidgetHostViewAura::SetPopupChild( |
| 2382 RenderWidgetHostViewAura* popup_child_host_view) { | 2381 RenderWidgetHostViewAura* popup_child_host_view) { |
| 2383 popup_child_host_view_ = popup_child_host_view; | 2382 popup_child_host_view_ = popup_child_host_view; |
| 2384 event_handler_->SetPopupChild( | 2383 event_handler_->SetPopupChild( |
| 2385 popup_child_host_view, | 2384 popup_child_host_view, |
| 2386 popup_child_host_view ? popup_child_host_view->event_handler() : nullptr); | 2385 popup_child_host_view ? popup_child_host_view->event_handler() : nullptr); |
| 2387 } | 2386 } |
| 2388 | 2387 |
| 2389 } // namespace content | 2388 } // namespace content |
| OLD | NEW |