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

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: Changes based on jamesr comments Created 7 years, 1 month 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 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after
1761 NotificationService::NoDetails()); 1761 NotificationService::NoDetails());
1762 } 1762 }
1763 1763
1764 void RenderViewHostImpl::OnTakeFocus(bool reverse) { 1764 void RenderViewHostImpl::OnTakeFocus(bool reverse) {
1765 RenderViewHostDelegateView* view = delegate_->GetDelegateView(); 1765 RenderViewHostDelegateView* view = delegate_->GetDelegateView();
1766 if (view) 1766 if (view)
1767 view->TakeFocus(reverse); 1767 view->TakeFocus(reverse);
1768 } 1768 }
1769 1769
1770 void RenderViewHostImpl::OnFocusedNodeChanged(bool is_editable_node) { 1770 void RenderViewHostImpl::OnFocusedNodeChanged(bool is_editable_node) {
1771 RenderWidgetHostImpl::FocusedNodeChanged(is_editable_node);
1771 NotificationService::current()->Notify( 1772 NotificationService::current()->Notify(
1772 NOTIFICATION_FOCUS_CHANGED_IN_PAGE, 1773 NOTIFICATION_FOCUS_CHANGED_IN_PAGE,
1773 Source<RenderViewHost>(this), 1774 Source<RenderViewHost>(this),
1774 Details<const bool>(&is_editable_node)); 1775 Details<const bool>(&is_editable_node));
1775 } 1776 }
1776 1777
1777 void RenderViewHostImpl::OnAddMessageToConsole( 1778 void RenderViewHostImpl::OnAddMessageToConsole(
1778 int32 level, 1779 int32 level,
1779 const string16& message, 1780 const string16& message,
1780 int32 line_no, 1781 int32 line_no,
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
2277 void RenderViewHostImpl::AttachToFrameTree() { 2278 void RenderViewHostImpl::AttachToFrameTree() {
2278 FrameTree* frame_tree = delegate_->GetFrameTree(); 2279 FrameTree* frame_tree = delegate_->GetFrameTree();
2279 2280
2280 frame_tree->SwapMainFrame(main_render_frame_host_.get()); 2281 frame_tree->SwapMainFrame(main_render_frame_host_.get());
2281 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { 2282 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) {
2282 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); 2283 frame_tree->OnFirstNavigationAfterSwap(main_frame_id());
2283 } 2284 }
2284 } 2285 }
2285 2286
2286 } // namespace content 2287 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698