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

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

Issue 56643003: Start using FocusedNodedChanged to restartInput. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
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_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1771 NotificationService::NoDetails()); 1771 NotificationService::NoDetails());
1772 } 1772 }
1773 1773
1774 void RenderViewHostImpl::OnTakeFocus(bool reverse) { 1774 void RenderViewHostImpl::OnTakeFocus(bool reverse) {
1775 RenderViewHostDelegateView* view = delegate_->GetDelegateView(); 1775 RenderViewHostDelegateView* view = delegate_->GetDelegateView();
1776 if (view) 1776 if (view)
1777 view->TakeFocus(reverse); 1777 view->TakeFocus(reverse);
1778 } 1778 }
1779 1779
1780 void RenderViewHostImpl::OnFocusedNodeChanged(bool is_editable_node) { 1780 void RenderViewHostImpl::OnFocusedNodeChanged(bool is_editable_node) {
1781 if (view_)
1782 view_->FocusedNodeChanged(is_editable_node);
1781 #if defined(OS_WIN) 1783 #if defined(OS_WIN)
1782 if (!is_editable_node && virtual_keyboard_requested_) { 1784 if (!is_editable_node && virtual_keyboard_requested_) {
1783 virtual_keyboard_requested_ = false; 1785 virtual_keyboard_requested_ = false;
1784 BrowserThread::PostDelayedTask( 1786 BrowserThread::PostDelayedTask(
1785 BrowserThread::UI, FROM_HERE, 1787 BrowserThread::UI, FROM_HERE,
1786 base::Bind(base::IgnoreResult(&DismissVirtualKeyboardTask)), 1788 base::Bind(base::IgnoreResult(&DismissVirtualKeyboardTask)),
1787 TimeDelta::FromMilliseconds(kVirtualKeyboardDisplayWaitTimeoutMs)); 1789 TimeDelta::FromMilliseconds(kVirtualKeyboardDisplayWaitTimeoutMs));
1788 } 1790 }
1789 #endif 1791 #endif
1790 NotificationService::current()->Notify( 1792 NotificationService::current()->Notify(
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
2255 void RenderViewHostImpl::AttachToFrameTree() { 2257 void RenderViewHostImpl::AttachToFrameTree() {
2256 FrameTree* frame_tree = delegate_->GetFrameTree(); 2258 FrameTree* frame_tree = delegate_->GetFrameTree();
2257 2259
2258 frame_tree->ResetForMainFrameSwap(); 2260 frame_tree->ResetForMainFrameSwap();
2259 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { 2261 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) {
2260 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); 2262 frame_tree->OnFirstNavigationAfterSwap(main_frame_id());
2261 } 2263 }
2262 } 2264 }
2263 2265
2264 } // namespace content 2266 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/ime_adapter_android.cc ('k') | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698