Use a pre-target handler in RootView to open keyboard-generated context menus
commite6bdf2a0433985ed498a294255b70f82270ed603
authortdanderson@chromium.org <tdanderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 31 Mar 2014 19:53:31 +0000 (31 19:53 +0000)
committertdanderson@chromium.org <tdanderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 31 Mar 2014 19:53:31 +0000 (31 19:53 +0000)
tree37a70fd5c9415689867e069e03a5c7b709db6e08
parent1fdd4f461137625e22817e9897ba1fb8cb29bbcb
Use a pre-target handler in RootView to open keyboard-generated context menus

Move the code which checks whether a particular key event should trigger
a context menu from RootView::DispatchKeyEvent() into a pre-target
handler on RootView.

BUG=357286
TEST=RootViewTest.ContextMenuFromKeyEvent

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

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