Honor can_activate flag in ShowWindowWithState
commit1ac832c6e9258a68bd17c85773719225f106b3ae
authormohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 16 May 2014 21:31:58 +0000 (16 21:31 +0000)
committermohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 16 May 2014 21:31:58 +0000 (16 21:31 +0000)
tree51a45493337c4ee868b0f62911b4ac51785bc3dd
parent3bdb0994b4ab7843e1c82289156761a95b4552e5
Honor can_activate flag in ShowWindowWithState

In HWNDMessageHandler::ShowWindowWitState(), when ui::SHOW_STATE_DEFAULT
is passed as state, the window grabs activation after being shown. The
correct behavior would be to activate the widget if and only if the
can_activate flag is set. HWNDMessageHandler::Show() method already does
this since r244605.
Also, the DefaultWidgetDelegate should honor InitParams::can_activate
flag.

BUG=340736

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271102 0039d316-1c4b-4281-b951-d872f2087c98
ui/views/controls/textfield/textfield.h
ui/views/test/test_views_delegate.cc
ui/views/test/test_views_delegate.h
ui/views/touchui/touch_selection_controller_impl.h
ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
ui/views/widget/widget_interactive_uitest.cc