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_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 1751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1762 NotificationService::NoDetails()); | 1762 NotificationService::NoDetails()); |
1763 } | 1763 } |
1764 | 1764 |
1765 void RenderViewHostImpl::OnTakeFocus(bool reverse) { | 1765 void RenderViewHostImpl::OnTakeFocus(bool reverse) { |
1766 RenderViewHostDelegateView* view = delegate_->GetDelegateView(); | 1766 RenderViewHostDelegateView* view = delegate_->GetDelegateView(); |
1767 if (view) | 1767 if (view) |
1768 view->TakeFocus(reverse); | 1768 view->TakeFocus(reverse); |
1769 } | 1769 } |
1770 | 1770 |
1771 void RenderViewHostImpl::OnFocusedNodeChanged(bool is_editable_node) { | 1771 void RenderViewHostImpl::OnFocusedNodeChanged(bool is_editable_node) { |
1772 if (RenderWidgetHostImpl::view_) | |
jamesr
2013/11/20 00:36:56
why do you need the explicit RWHI:: qualification?
aurimas (slooooooooow)
2013/11/20 00:46:59
Done.
| |
1773 RenderWidgetHostImpl::view_->FocusedNodeChanged(is_editable_node); | |
jamesr
2013/11/20 00:36:56
ditto
aurimas (slooooooooow)
2013/11/20 00:46:59
Done.
| |
1772 NotificationService::current()->Notify( | 1774 NotificationService::current()->Notify( |
1773 NOTIFICATION_FOCUS_CHANGED_IN_PAGE, | 1775 NOTIFICATION_FOCUS_CHANGED_IN_PAGE, |
1774 Source<RenderViewHost>(this), | 1776 Source<RenderViewHost>(this), |
1775 Details<const bool>(&is_editable_node)); | 1777 Details<const bool>(&is_editable_node)); |
1776 } | 1778 } |
1777 | 1779 |
1778 void RenderViewHostImpl::OnAddMessageToConsole( | 1780 void RenderViewHostImpl::OnAddMessageToConsole( |
1779 int32 level, | 1781 int32 level, |
1780 const string16& message, | 1782 const string16& message, |
1781 int32 line_no, | 1783 int32 line_no, |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2278 void RenderViewHostImpl::AttachToFrameTree() { | 2280 void RenderViewHostImpl::AttachToFrameTree() { |
2279 FrameTree* frame_tree = delegate_->GetFrameTree(); | 2281 FrameTree* frame_tree = delegate_->GetFrameTree(); |
2280 | 2282 |
2281 frame_tree->SwapMainFrame(main_render_frame_host_.get()); | 2283 frame_tree->SwapMainFrame(main_render_frame_host_.get()); |
2282 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { | 2284 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { |
2283 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); | 2285 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); |
2284 } | 2286 } |
2285 } | 2287 } |
2286 | 2288 |
2287 } // namespace content | 2289 } // namespace content |
OLD | NEW |