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

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

Issue 2643243002: Remove RenderWidgetHostImpl::SuppressEventsUntilKeyDown() (Closed)
Patch Set: just remove Created 3 years, 11 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/render_widget_host_impl.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 1736 matching lines...) Expand 10 before | Expand all | Expand 10 after
1747 return; 1747 return;
1748 1748
1749 host_->GotFocus(); 1749 host_->GotFocus();
1750 host_->SetActive(true); 1750 host_->SetActive(true);
1751 1751
1752 ui::InputMethod* input_method = GetInputMethod(); 1752 ui::InputMethod* input_method = GetInputMethod();
1753 if (input_method) { 1753 if (input_method) {
1754 // Ask the system-wide IME to send all TextInputClient messages to |this| 1754 // Ask the system-wide IME to send all TextInputClient messages to |this|
1755 // object. 1755 // object.
1756 input_method->SetFocusedTextInputClient(this); 1756 input_method->SetFocusedTextInputClient(this);
1757
1758 // Often the application can set focus to the view in response to a key
1759 // down. However, the following events shouldn't be sent to the web page.
1760 host_->SuppressEventsUntilKeyDown();
1761 } 1757 }
1762 1758
1763 BrowserAccessibilityManager* manager = 1759 BrowserAccessibilityManager* manager =
1764 host_->GetRootBrowserAccessibilityManager(); 1760 host_->GetRootBrowserAccessibilityManager();
1765 if (manager) 1761 if (manager)
1766 manager->OnWindowFocused(); 1762 manager->OnWindowFocused();
1767 } else if (window_ == lost_focus) { 1763 } else if (window_ == lost_focus) {
1768 host_->SetActive(false); 1764 host_->SetActive(false);
1769 host_->Blur(); 1765 host_->Blur();
1770 1766
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
2380 2376
2381 void RenderWidgetHostViewAura::SetPopupChild( 2377 void RenderWidgetHostViewAura::SetPopupChild(
2382 RenderWidgetHostViewAura* popup_child_host_view) { 2378 RenderWidgetHostViewAura* popup_child_host_view) {
2383 popup_child_host_view_ = popup_child_host_view; 2379 popup_child_host_view_ = popup_child_host_view;
2384 event_handler_->SetPopupChild( 2380 event_handler_->SetPopupChild(
2385 popup_child_host_view, 2381 popup_child_host_view,
2386 popup_child_host_view ? popup_child_host_view->event_handler() : nullptr); 2382 popup_child_host_view ? popup_child_host_view->event_handler() : nullptr);
2387 } 2383 }
2388 2384
2389 } // namespace content 2385 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698