Index: content/browser/frame_host/cross_process_frame_connector.cc |
diff --git a/content/browser/frame_host/cross_process_frame_connector.cc b/content/browser/frame_host/cross_process_frame_connector.cc |
index a09af6478228897801a3c1fdcd20df8cf6a96035..246be7204c9dea4e55e8d94ba8efc04117549c71 100644 |
--- a/content/browser/frame_host/cross_process_frame_connector.cc |
+++ b/content/browser/frame_host/cross_process_frame_connector.cc |
@@ -170,6 +170,13 @@ void CrossProcessFrameConnector::UpdateCursor(const WebCursor& cursor) { |
root_view->UpdateCursor(cursor); |
} |
+bool CrossProcessFrameConnector::HasFocus() { |
+ RenderWidgetHostViewBase* root_view = GetRootRenderWidgetHostView(); |
+ if (root_view) |
+ return root_view->HasFocus(); |
+ return false; |
+} |
+ |
void CrossProcessFrameConnector::OnForwardInputEvent( |
const blink::WebInputEvent* event) { |
if (!view_) |