Expose whether a frame is focused to the browser process
commita85eb3fe83825fdc46a01ec37616e10687772884
authormlamouri <mlamouri@chromium.org>
Mon, 26 Jan 2015 17:36:27 +0000 (26 09:36 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 26 Jan 2015 17:40:20 +0000 (26 17:40 +0000)
treea937c15c512b7dcde3e5640ccb8a5dd5c4d15385
parent3be83970173f29ff3fec067fe64ff9910ce53c73
Expose whether a frame is focused to the browser process

A frame is considered focused if its associated RenderWidgetHost is
focused and it is the focused frame inside its frame tree.

BUG=450634

Review URL: https://codereview.chromium.org/860393004

Cr-Commit-Position: refs/heads/master@{#313085}
content/browser/frame_host/frame_tree_node.cc
content/browser/frame_host/frame_tree_node.h
content/browser/frame_host/render_frame_host_impl.cc
content/browser/frame_host/render_frame_host_impl.h
content/browser/frame_host/render_frame_host_impl_browsertest.cc [new file with mode: 0644]
content/content_tests.gypi
content/test/data/render_frame_host/focus.html [new file with mode: 0644]