Clamp keyboard context menu locations to visible ancestor areas.
commit37ea9a6d57233773d2a5daeab5ac44d14aa93882
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 26 Feb 2014 06:24:46 +0000 (26 06:24 +0000)
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 26 Feb 2014 06:24:46 +0000 (26 06:24 +0000)
tree8a7edf93ee80fe0fff5af7e44f322c6dce7bfef3
parent3ef3607d8621f5a75dd7475012ff8d2f6c432cbf
Clamp keyboard context menu locations to visible ancestor areas.

Previously, the menu could anchor outside an ancestor view.
See before/after pics at http://crbug.com/330496

BUG=330496
TEST=Keyboard-triggered context menus (via the Menu key or Shift+F10) show in reasonable locations.
R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253377 0039d316-1c4b-4281-b951-d872f2087c98
ui/views/widget/root_view.cc