Fix broken Widget::InitParams::activatable logic as a result of https://codereview...
commitaa93d2361f0ad62dcb970123036666a760f81fc8
authorpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 21 May 2014 03:45:38 +0000 (21 03:45 +0000)
committerpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 21 May 2014 03:45:38 +0000 (21 03:45 +0000)
treeb7959aa6d43536c41c32bd57f2f5645b31363635
parent70c617c73bc67782f1fa0eb54e84da306ec11fc0
Fix broken Widget::InitParams::activatable logic as a result of https://codereview.chromium.org/286733002

This CL modifies the default return value of WidgetDelegate::CanActivate() based on the type passed into WidgetDelegate::InitParams::type
This allows whether the widget is activatable to change over time. In particular, whether the zoom bubble can be activated can change over its lifetime

BUG=353533,374095
TEST=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271850 0039d316-1c4b-4281-b951-d872f2087c98
ui/message_center/views/toast_contents_view.cc
ui/message_center/views/toast_contents_view.h
ui/views/widget/widget.cc
ui/views/widget/widget.h
ui/views/widget/widget_delegate.cc
ui/views/widget/widget_delegate.h