Commit 3ccbd088 authored by arthursonzogni's avatar arthursonzogni Committed by Commit Bot

Cleanup: Remove unused GetOuterRenderWidgetHostForKeyboardInput()

RenderFrameHostManager::GetOuterRenderWidgetHostForKeyboardInput() is no
more used. Remove it.

Bug: None.
Change-Id: I552ae9a4f54370463bc44919ad4064229e65d8f8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1626413Reviewed-by: default avatarIstiaque Ahmed <lazyboy@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#663147}
parent 882f8cf0
...@@ -181,20 +181,6 @@ bool RenderFrameHostManager::IsMainFrameForInnerDelegate() { ...@@ -181,20 +181,6 @@ bool RenderFrameHostManager::IsMainFrameForInnerDelegate() {
FrameTreeNode::kFrameTreeNodeInvalidId; FrameTreeNode::kFrameTreeNodeInvalidId;
} }
RenderWidgetHostImpl*
RenderFrameHostManager::GetOuterRenderWidgetHostForKeyboardInput() {
if (!IsMainFrameForInnerDelegate())
return nullptr;
FrameTreeNode* outer_contents_frame_tree_node =
FrameTreeNode::GloballyFindByID(
delegate_->GetOuterDelegateFrameTreeNodeId());
return outer_contents_frame_tree_node->parent()
->current_frame_host()
->render_view_host()
->GetWidget();
}
FrameTreeNode* RenderFrameHostManager::GetOuterDelegateNode() { FrameTreeNode* RenderFrameHostManager::GetOuterDelegateNode() {
int outer_contents_frame_tree_node_id = int outer_contents_frame_tree_node_id =
delegate_->GetOuterDelegateFrameTreeNodeId(); delegate_->GetOuterDelegateFrameTreeNodeId();
......
...@@ -207,12 +207,6 @@ class CONTENT_EXPORT RenderFrameHostManager ...@@ -207,12 +207,6 @@ class CONTENT_EXPORT RenderFrameHostManager
// that belongs to an inner WebContents. // that belongs to an inner WebContents.
bool IsMainFrameForInnerDelegate(); bool IsMainFrameForInnerDelegate();
// Returns the RenderWidgetHost of the outer WebContents (if any) that can be
// used to fetch the last keyboard event.
// TODO(lazyboy): This can be removed once input events are sent directly to
// remote frames.
RenderWidgetHostImpl* GetOuterRenderWidgetHostForKeyboardInput();
// If this is a RenderFrameHostManager for a main frame, this method returns // If this is a RenderFrameHostManager for a main frame, this method returns
// the FrameTreeNode for the frame in the outer WebContents (if any) that // the FrameTreeNode for the frame in the outer WebContents (if any) that
// contains the inner WebContents. // contains the inner WebContents.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment